mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/5] kbuild: remove deprecated use of defined in timeconst.pl
@ 2012-11-18 20:05 pefoley2
  2012-11-18 20:05 ` [PATCH 2/5] kbuild: silence rule for extra_certificates pefoley2
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: pefoley2 @ 2012-11-18 20:05 UTC (permalink / raw)
  To: linux-kernel, linux-kbuild, mmarek; +Cc: Peter Foley

From: Peter Foley <pefoley2@verizon.net>

Fix this warning by removing a unneeded use of defined

TIMEC   kernel/timeconst.h
defined(@array) is deprecated at kernel/timeconst.pl line 373.
  	(Maybe you should just omit the defined()?)

Signed-off-by: Peter Foley <pefoley2@verizon.net>
---
 kernel/timeconst.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl
index eb51d76..0461239 100644
--- a/kernel/timeconst.pl
+++ b/kernel/timeconst.pl
@@ -370,7 +370,7 @@ if ($hz eq '--can') {
 	}
 
 	@val = @{$canned_values{$hz}};
-	if (!defined(@val)) {
+	if (!@val) {
 		@val = compute_values($hz);
 	}
 	output($hz, @val);
-- 
1.8.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-12-11  1:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-18 20:05 [PATCH 1/5] kbuild: remove deprecated use of defined in timeconst.pl pefoley2
2012-11-18 20:05 ` [PATCH 2/5] kbuild: silence rule for extra_certificates pefoley2
2012-12-09 16:54   ` Michal Marek
2012-12-10  0:08     ` Rusty Russell
2012-12-11  1:18       ` Peter Foley
2012-11-18 20:05 ` [PATCH 3/5] add eboot.o and efi_stub_$(BITS).o to $(targets) pefoley2
2012-12-09 16:35   ` Michal Marek
2012-11-18 20:05 ` [PATCH 4/5] silence 'arch/x86/realmode/rm/realmode.bin' is up to date message pefoley2
2012-12-09 16:37   ` Michal Marek
2012-11-18 20:05 ` [PATCH 5/5] x86: add dummy rules to avoid 'nothing to be done' messages pefoley2
2012-12-09 16:37   ` Michal Marek
2012-12-09 16:57 ` [PATCH 1/5] kbuild: remove deprecated use of defined in timeconst.pl Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome