aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKeith Owens <kaos@ocs.com.au>2004-08-29 14:17:02 +0200
committerTom Rini <trini@kernel.crashing.org>2004-08-29 14:17:02 +0200
commit3887929c9e7c41fed02ca0fc4537e09d26690e49 (patch)
treeabe7a3fc3c6a25360deca7181848f1757c25f16b /Makefile
parent8a0aa84ca26612b2138d18e005782613e27f2ad0 (diff)
downloadhistory-3887929c9e7c41fed02ca0fc4537e09d26690e49.tar.gz
kbuild: Add 'make namespacecheck'
make namespacecheck lists globally visible symbols that are not used outside the file that defines them. These symbols are candidates for static declarations. It also lists multiply defined symbols. namespace.pl knows about lots of special cases in the kernel code, including exported symbols and conglomerate objects. The patch also corrects the usage of scripts/reference*.pl, they need $(src). Signed-off-by: Keith Owens <kaos@ocs.com.au> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Index: 2.6.9-rc1/Makefile ===================================================================
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0b3d1be392f6f8..f6b8c0431a2475 100644
--- a/Makefile
+++ b/Makefile
@@ -1123,8 +1123,11 @@ versioncheck:
| xargs $(PERL) -w scripts/checkversion.pl
buildcheck:
- $(PERL) scripts/reference_discarded.pl
- $(PERL) scripts/reference_init.pl
+ $(PERL) $(src)/scripts/reference_discarded.pl
+ $(PERL) $(src)/scripts/reference_init.pl
+
+namespacecheck:
+ $(PERL) $(src)/scripts/namespace.pl
endif #ifeq ($(config-targets),1)
endif #ifeq ($(mixed-targets),1)