Re: [PATCH 1/4] Fix wrong source path in scripts/namespace.pl

From: Cong Wang
Date: Fri Oct 01 2010 - 02:24:41 EST


On 10/01/10 13:56, Stephen Hemminger wrote:
On Thu, 30 Sep 2010 14:28:55 +0800
Amerigo Wang<amwang@xxxxxxxxxx> wrote:

File::Find will do chdir automatically, so we need to get
the absolute patch with $File::Find::dir.

Reported-by: Stephen Hemminger<shemminger@xxxxxxxxxx>
Signed-off-by: Amerigo Wang<amwang@xxxxxxxxxx>
---
scripts/namespace.pl | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

How did you test this? I tried your patches and when I run
it on a compiled kernel in a way that most developers would
do it:
$ make allmodconfig
$ make
$ ./scripts/namespace.pl


I use 'make namespacecheck'.


With your patch it still doesn't find the kernel source files.
I find it frustrating because my patch worked, yours didn't.

--------
No source file found for arch/x86/crypto/aes-i586-asm_32.o
No source file found for arch/x86/crypto/aes_glue.o
...

Actually, this shows it is working. :)

There are two reasons why you got so many of these:

1) You didn't do a 'make mrproper', so some source file may be
deleted or renamed in git repo;

2) There are no path/to/foo.c for path/to/foo.o which is
normal, we should add those files to exception list.

I got much fewer of such warning when I tested it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/