mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
4b2e0162e4
With gcc < 4.2 (e.g. 4.1.2):
CC fs/proc/task_mmu.o
cc1: error: unrecognized command line option "-Wno-override-init"
To fix this, only enable the compiler option when it is actually
supported by the compiler.
Fixes: ca52953f5f
("fs/proc/task_mmu.c: suppress compilation warnings with W=1")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
34 lines
818 B
Makefile
34 lines
818 B
Makefile
#
|
|
# Makefile for the Linux proc filesystem routines.
|
|
#
|
|
|
|
obj-y += proc.o
|
|
|
|
CFLAGS_task_mmu.o += $(call cc-option,-Wno-override-init,)
|
|
proc-y := nommu.o task_nommu.o
|
|
proc-$(CONFIG_MMU) := task_mmu.o
|
|
|
|
proc-y += inode.o root.o base.o generic.o array.o \
|
|
fd.o
|
|
proc-$(CONFIG_TTY) += proc_tty.o
|
|
proc-y += cmdline.o
|
|
proc-y += consoles.o
|
|
proc-y += cpuinfo.o
|
|
proc-y += devices.o
|
|
proc-y += interrupts.o
|
|
proc-y += loadavg.o
|
|
proc-y += meminfo.o
|
|
proc-y += stat.o
|
|
proc-y += uptime.o
|
|
proc-y += version.o
|
|
proc-y += softirqs.o
|
|
proc-y += namespaces.o
|
|
proc-y += self.o
|
|
proc-y += thread_self.o
|
|
proc-$(CONFIG_PROC_SYSCTL) += proc_sysctl.o
|
|
proc-$(CONFIG_NET) += proc_net.o
|
|
proc-$(CONFIG_PROC_KCORE) += kcore.o
|
|
proc-$(CONFIG_PROC_VMCORE) += vmcore.o
|
|
proc-$(CONFIG_PRINTK) += kmsg.o
|
|
proc-$(CONFIG_PROC_PAGE_MONITOR) += page.o
|