Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Wednesday, April 23, 2008 - 11:44 am

On Wed, Apr 23, 2008 at 03:36:23PM +0100, Will Newton wrote:

If we go the Kconfig route we should use the
HAVE_ semantic as expressed by the patch below.
It is preferable to defining a config symbol for each
arch.
This also address your point 1) and 4)
2) is not an issue since the symbols are not visible.

	Sam

Note: cut'n'pasted...

diff --git a/arch/Kconfig b/arch/Kconfig
index 694c9af..759bd5b 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -36,3 +36,9 @@ config HAVE_KPROBES

 config HAVE_KRETPROBES
        def_bool n
+
+# syscall symbols.
+# archs shall select the SYMBOL if they
+# implment this syscall
+config HAVE_SYS_SYSFS
+       defbool n
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 87a693c..487310f 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -24,6 +24,8 @@ config X86
        select HAVE_KRETPROBES
        select HAVE_KVM if ((X86_32 && !X86_VOYAGER && !X86_VISWS && !X86_NUMAQ) || X86_64)
        select HAVE_ARCH_KGDB
+       # kconfig selectable syscalls
+       select HAVE_SYS_SYSFS

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Tue Apr 22, 5:13 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Arnd Bergmann, (Tue Apr 22, 6:15 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Randy Dunlap, (Tue Apr 22, 8:12 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Tue Apr 22, 8:16 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 8:21 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 8:24 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Tue Apr 22, 8:34 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Arnd Bergmann, (Tue Apr 22, 8:38 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 8:38 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 8:42 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Wed Apr 23, 7:36 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Arnd Bergmann, (Wed Apr 23, 7:59 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Wed Apr 23, 8:40 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Wed Apr 23, 8:50 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Mike Frysinger, (Wed Apr 23, 9:05 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Mike Frysinger, (Wed Apr 23, 10:59 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Sam Ravnborg, (Wed Apr 23, 11:44 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Michal Simek, (Wed Apr 23, 2:16 pm)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Mike Frysinger, (Wed Apr 23, 2:38 pm)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Thu Apr 24, 2:18 am)
microblaze syscall list, Arnd Bergmann, (Thu Apr 24, 4:11 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Adrian Bunk, (Thu Apr 24, 7:51 am)
Re: microblaze syscall list, Michal Simek, (Thu Apr 24, 11:42 am)
Re: microblaze syscall list, Michal Simek, (Thu Apr 24, 1:51 pm)
Re: microblaze syscall list, Arnd Bergmann, (Thu Apr 24, 2:21 pm)
Re: microblaze syscall list, Arnd Bergmann, (Thu Apr 24, 2:37 pm)
Re: [microblaze-uclinux] Re: microblaze syscall list, John Williams, (Fri Apr 25, 2:36 am)
Re: [microblaze-uclinux] Re: microblaze syscall list, Matthew Wilcox, (Fri Apr 25, 3:06 am)
Re: [microblaze-uclinux] Re: microblaze syscall list, Geert Uytterhoeven, (Fri Apr 25, 4:32 am)
Re: [microblaze-uclinux] Re: microblaze syscall list, John Williams, (Sat Apr 26, 7:04 pm)
Re: microblaze syscall list, Michal Simek, (Sun Apr 27, 8:52 am)
Re: microblaze syscall list, Alan Cox, (Sun Apr 27, 9:50 am)
Re: microblaze syscall list, Arnd Bergmann, (Sun Apr 27, 1:15 pm)
Re: microblaze syscall list, John Williams, (Sun Apr 27, 5:15 pm)
Re: microblaze syscall list, Arnd Bergmann, (Mon Apr 28, 5:31 am)
Re: microblaze syscall list, Arnd Bergmann, (Thu May 1, 12:17 pm)
Re: microblaze syscall list, John Williams, (Thu May 1, 10:38 pm)
Re: microblaze syscall list, Michal Simek, (Fri May 2, 1:18 am)
Re: microblaze syscall list, John Williams, (Fri May 2, 8:49 pm)
Re: microblaze syscall list, Arnd Bergmann, (Sat May 3, 2:16 am)
Re: microblaze syscall list, Ulrich Drepper, (Sat May 3, 8:56 am)
Re: microblaze syscall list, Arnd Bergmann, (Sat May 3, 2:14 pm)
Re: microblaze syscall list, Arnd Bergmann, (Sat May 3, 2:57 pm)
Re: microblaze syscall list, Michal Simek, (Sun May 4, 2:12 am)
Re: microblaze syscall list, Arnd Bergmann, (Sun May 4, 12:37 pm)
Re: microblaze syscall list, H. Peter Anvin, (Sun May 4, 3:09 pm)
Re: microblaze syscall list, H. Peter Anvin, (Sun May 4, 3:53 pm)
Re: microblaze syscall list, Arnd Bergmann, (Sun May 4, 3:54 pm)
Re: microblaze syscall list, John Williams, (Sun May 4, 6:09 pm)
Re: microblaze syscall list, Michal Simek, (Sun May 4, 11:18 pm)
Re: microblaze syscall list, Arnd Bergmann, (Mon May 5, 7:08 am)
Re: microblaze syscall list, Michal Simek, (Tue May 6, 1:33 am)