aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2014-04-07 18:39:06 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-07 19:36:09 -0400
commitc638b1074837c601808fee93f33b9c19224ea4cf (patch)
tree4f82ec07cb2ebbcc3fe506ec5b1aa338268bf3e1 /arch/cris
parentae797bdf7f12a2e0216161eb82a568809f6e5c94 (diff)
cris: cpuinfo_op should depend on CONFIG_PROC_FS
Fix breakage which will be exposed by the patch "kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT". Now allnoconfig started disabling CONFIG_PROC_FS: arch/cris/kernel/built-in.o:(.rodata+0xc): undefined reference to `show_cpuinfo' make: *** [vmlinux] Error 1 Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Mikael Starvik <starvik@axis.com> Cc: Jesper Nilsson <jesper.nilsson@axis.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/cris/kernel/setup.c b/arch/cris/kernel/setup.c
index 32c3d248868e..905b70ea9939 100644
--- a/arch/cris/kernel/setup.c
+++ b/arch/cris/kernel/setup.c
@@ -165,6 +165,7 @@ void __init setup_arch(char **cmdline_p)
165 strcpy(init_utsname()->machine, cris_machine_name); 165 strcpy(init_utsname()->machine, cris_machine_name);
166} 166}
167 167
168#ifdef CONFIG_PROC_FS
168static void *c_start(struct seq_file *m, loff_t *pos) 169static void *c_start(struct seq_file *m, loff_t *pos)
169{ 170{
170 return *pos < nr_cpu_ids ? (void *)(int)(*pos + 1) : NULL; 171 return *pos < nr_cpu_ids ? (void *)(int)(*pos + 1) : NULL;
@@ -188,6 +189,7 @@ const struct seq_operations cpuinfo_op = {
188 .stop = c_stop, 189 .stop = c_stop,
189 .show = show_cpuinfo, 190 .show = show_cpuinfo,
190}; 191};
192#endif /* CONFIG_PROC_FS */
191 193
192static int __init topology_init(void) 194static int __init topology_init(void)
193{ 195{