History log of /scripts/headerdep.pl
Revision Date Author Comments
1dcd81002453f9f22c6c4fd6c3c7d8f1c7c891fa 08-Mar-2010 Stephen Hemminger <shemminger@vyatta.com> headerdep: perlcritic warning

Minor perlcritic warning:
headerdep.pl: "return" statement with explicit "undef" at line 84, column 2. See page 199 of PBP. (Severity: 5)

The rationale according to PBP is that an explicit return of undef
(contrary to most people's expectations) doesn't
always evaluate as false. It has to with the fact that perl return value
depends on context the function is called. If function is used in
list context, the appropriate return value for false is an empty list;
whereas in scalar context the return value for false is undefined.
By just using a "return" both cases are handled.

In the context of a trivial script this doesn't matter. But one script
may be cut-paste into later code (most people like me only know 50%
of perl), that is why perlcritic always complains

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
79ff807cf23ffb527f3f35bdececf56cabcdee07 29-Mar-2009 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> kbuild: fix option processing for -I in headerdep

-I takes an argument. Without this change only a 1 is added to
@opt_include which is not helpful.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
179efcb47d5a5dd34a45be3f0eca4bffa717c6b4 16-Dec-2008 Vegard Nossum <vegard.nossum@gmail.com> kbuild: add headerdep used to detect inclusion cycles in header files

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>