Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330890
| From | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 3/6] fixdep: minor cleanup |
| Date | 2016-02-10 06:10 +0100 |
| Message-ID | <r0vcm-6bK-15@gated-at.bofh.it> (permalink) |
| References | <r0vcm-6bK-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Simple code reorganization to make coming changes more obvious.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
---
scripts/basic/fixdep.c | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c
index 5b327c67a8..63f129021d 100644
--- a/scripts/basic/fixdep.c
+++ b/scripts/basic/fixdep.c
@@ -236,21 +236,20 @@ static void parse_config_file(const char *map, size_t len)
continue;
p += 7;
for (q = p; q < map + len; q++) {
- if (!(isalnum(*q) || *q == '_'))
- goto found;
+ if (!(isalnum(*q) || *q == '_')) {
+ if (!memcmp(q - 7, "_MODULE", 7))
+ q -= 7;
+ if (q - p > 0)
+ use_config(p, q - p);
+ break;
+ }
}
continue;
- found:
- if (!memcmp(q - 7, "_MODULE", 7))
- q -= 7;
- if (q - p < 0)
- continue;
- use_config(p, q - p);
}
}
-/* test is s ends in sub */
+/* test if s ends in sub */
static int strrcmp(const char *s, const char *sub)
{
int slen = strlen(s);
--
2.5.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/6] Trim unused exported kernel symbols Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-10 06:10 +0100 [PATCH v2 3/6] fixdep: minor cleanup Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-10 06:10 +0100 [PATCH v2 1/6] kbuild: record needed exported symbols for modules Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-10 06:10 +0100 [PATCH v2 6/6] kconfig option for TRIM_UNUSED_KSYMS Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-10 06:10 +0100 [PATCH v2 2/6] allow for per-symbol configurable EXPORT_SYMBOL() Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-10 06:10 +0100 [PATCH v2 5/6] create/adjust generated/autoksyms.h Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-10 06:20 +0100 [PATCH v2 4/6] fixdep: add fine grained build dependencies for exported symbols Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-10 06:20 +0100
csiph-web