From: Al Viro <viro@ftp.linux.org.uk>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Section mismatch warnings
Date: Fri, 23 Jun 2006 23:23:46 +0100 [thread overview]
Message-ID: <20060623222346.GC27946@ftp.linux.org.uk> (raw)
In-Reply-To: <20060623221217.GA372@mars.ravnborg.org>
On Sat, Jun 24, 2006 at 12:12:18AM +0200, Sam Ravnborg wrote:
> All the .smp_locks related warnings are gone when I get the kbuild.git
> tree pushed linus wise. Needs to spend only an hour or so before it is
> ready and will do so during the weekend.
Another fun toy that might be interesting there:
>From nobody Mon Sep 17 00:00:00 2001
From: Al Viro <viro@zeniv.linux.org.uk>
Date: Fri, 26 May 2006 08:35:22 -0400
Subject: [PATCH] add make listconfig (show all kconfig symbols seen by parser)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
scripts/kconfig/Makefile | 8 ++++++--
scripts/kconfig/confsyms.c | 31 +++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 2 deletions(-)
create mode 100644 scripts/kconfig/confsyms.c
9af44436bd3940c50b7cf68a8f2bf14e07ad2081
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index fd518f0..b655f60 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -2,7 +2,7 @@ # ======================================
# Kernel configuration targets
# These targets are used from top-level makefile
-PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
+PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config listconfig
xconfig: $(obj)/qconf
$< arch/$(ARCH)/Kconfig
@@ -23,6 +23,9 @@ oldconfig: $(obj)/conf
silentoldconfig: $(obj)/conf
$< -s arch/$(ARCH)/Kconfig
+listconfig: $(obj)/confsyms
+ $< arch/$(ARCH)/Kconfig
+
update-po-config: $(obj)/kxgettext
xgettext --default-domain=linux \
--add-comments --keyword=_ --keyword=N_ \
@@ -95,10 +98,11 @@ # gconf: Used for the gconfig target
# Based on GTK which needs to be installed to compile it
# object files used by all kconfig flavours
-hostprogs-y := conf mconf qconf gconf kxgettext
+hostprogs-y := conf mconf qconf gconf kxgettext confsyms
conf-objs := conf.o zconf.tab.o
mconf-objs := mconf.o zconf.tab.o
kxgettext-objs := kxgettext.o zconf.tab.o
+confsyms-objs := confsyms.o zconf.tab.o
ifeq ($(MAKECMDGOALS),xconfig)
qconf-target := 1
diff --git a/scripts/kconfig/confsyms.c b/scripts/kconfig/confsyms.c
new file mode 100644
index 0000000..3b20065
--- /dev/null
+++ b/scripts/kconfig/confsyms.c
@@ -0,0 +1,31 @@
+#define LKC_DIRECT_LINK
+#include "lkc.h"
+
+static char type[] = {
+ [S_BOOLEAN] = 'b',
+ [S_TRISTATE] = 't',
+ [S_INT] = 'i',
+ [S_HEX] = 'h',
+ [S_STRING] = 's',
+};
+
+static void list_symbols(struct menu *m)
+{
+ for (m = m->list; m; m = m->next) {
+ struct symbol *s = m->sym;
+ if (s && !sym_is_choice(s)) {
+ char c = s->type >= sizeof(type) ? '\0' : type[s->type];
+ printf("%c %s\n", c ? c : '?', s->name);
+ }
+ list_symbols(m);
+ }
+}
+
+int main(int argc, char **argv)
+{
+ if (argc > 1) {
+ conf_parse(argv[1]);
+ list_symbols(&rootmenu);
+ }
+ return 0;
+}
--
1.3.GIT
next prev parent reply other threads:[~2006-06-23 22:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-23 17:40 Section mismatch warnings Jan Engelhardt
2006-06-23 22:12 ` Sam Ravnborg
2006-06-23 22:22 ` Al Viro
2006-06-24 21:02 ` Sam Ravnborg
2006-06-23 22:23 ` Al Viro [this message]
2006-06-26 12:37 ` Roman Zippel
-- strict thread matches above, loose matches on Subject: below --
2007-07-30 17:48 Gabriel C
2007-07-30 18:51 ` Sam Ravnborg
2007-07-30 19:31 ` Gabriel C
2007-07-31 19:45 ` Gabriel C
2007-07-31 20:48 ` Sam Ravnborg
2007-07-31 21:58 ` Gabriel C
2007-08-02 14:27 ` Gabriel C
2007-08-02 16:31 ` Sam Ravnborg
2007-08-02 17:12 ` Gabriel C
2007-08-02 17:59 ` Sam Ravnborg
2007-08-02 18:24 ` Gabriel C
2014-10-06 18:42 section " Michael Hu (NSBU)
[not found] ` <D058300A.10185%humichael-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2014-10-07 14:31 ` Sergio Gonzalez Monroy
2014-10-07 16:46 ` Neil Horman
[not found] ` <20141007164635.GC27719-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-10-08 21:34 ` Michael Hu (NSBU)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060623222346.GC27946@ftp.linux.org.uk \
--to=viro@ftp.linux.org.uk \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.