Hi IngoThis is waht make C=1 is for. If this is broken then we should fix it. Just trying it out: $ make C=1 kernel/sched.o CHECK kernel/sched.c kernel/sched_fair.c:37:14: warning: symbol 'sysctl_sched_latency' was not declar ed. Should it be static? kernel/sched_fair.c:43:14: warning: symbol 'sysctl_sched_min_granularity' was no t declared. Should it be static? kernel/sched_fair.c:72:14: warning: symbol 'sysctl_sched_wakeup_granularity' was not declared. Should it be static? ... CC kernel/sched.o So make C=1 works as intended and let you run sparse on the files that are built - and only those. Already present. That would then be on a directory basis. You can do: diff --git a/kernel/Makefile b/kernel/Makefile index 1c9938a..1ba00aa 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -2,6 +2,7 @@ # Makefile for the linux kernel. # +KBUILD_CHECKSRC=1 obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \ exit.o itimer.o time.o softirq.o resource.o \ sysctl.o capability.o ptrace.o timer.o user.o \ already today. It applies recursively so we will then run sparse on kernel/time/*.o too. There is no easy way to cover all of arch/x86/*.o as the files are distributed in several Makefiles and there is no common one. This could be a simple: ifdef CONFIG_CHECK_IS_ERROR CHECKFLAGS += -Werror endif And teach sparse about -Werror For each Makefile (does not apply recursively): ccflags-$(CONFIG_PROMOTE_WARNINGS_TO_ERROR) += -Werror When I get around to it: ccflags-sched.o-$(CONFIG_PROMOTE_WARNINGS_TO_ERROR) += -Werror Sam --
| Andrew Morton | Re: Linux 2.6.21-rc4 |
| Andrew Morton | -mm merge plans for 2.6.23 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Balbir Singh | Re: [RFC][PATCH 2/7] RSS controller core |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Andreas Henriksson | [PATCH 06/12] Remove bogus reference to tc-filters(8) from tc(8) manpage. |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
