Commit 3887929c authored by Keith Owens's avatar Keith Owens Committed by Tom Rini

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: default avatarKeith Owens <kaos@ocs.com.au>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>

Index: 2.6.9-rc1/Makefile
===================================================================
parent 8a0aa84c
......@@ -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)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment