All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] AVR32: switch to generic param.h
@ 2012-11-17 15:04 Joachim Eastwood
  2012-11-17 18:01 ` Hans-Christian Egtvedt
  0 siblings, 1 reply; 2+ messages in thread
From: Joachim Eastwood @ 2012-11-17 15:04 UTC (permalink / raw)
  To: dhowells, hskinnemoen, egtvedt; +Cc: linux-kernel, geert, Joachim Eastwood

Since commit 83b9d3a0 (UAPI: (Scripted) Disintegrate arch/avr32/include/asm)
building AVR32 spews out tons warnings like this:
 In file included from include/linux/sched.h:11,
                  from init/do_mounts_initrd.c:17:
 /linux-2.6/arch/avr32/include/asm/param.h:6:1: warning: "HZ" redefined

Everything we need from param.h on AVR32 is already in
asm-generic so let's use that.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
---
 arch/avr32/include/asm/Kbuild  | 1 +
 arch/avr32/include/asm/param.h | 9 ---------
 2 files changed, 1 insertion(+), 9 deletions(-)
 delete mode 100644 arch/avr32/include/asm/param.h

diff --git a/arch/avr32/include/asm/Kbuild b/arch/avr32/include/asm/Kbuild
index 4807ded..f52bd7d 100644
--- a/arch/avr32/include/asm/Kbuild
+++ b/arch/avr32/include/asm/Kbuild
@@ -1,3 +1,4 @@
 
 generic-y	+= clkdev.h
 generic-y	+= exec.h
+generic-y	+= param.h
diff --git a/arch/avr32/include/asm/param.h b/arch/avr32/include/asm/param.h
deleted file mode 100644
index 009a167..0000000
--- a/arch/avr32/include/asm/param.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef __ASM_AVR32_PARAM_H
-#define __ASM_AVR32_PARAM_H
-
-#include <uapi/asm/param.h>
-
-# define HZ		CONFIG_HZ
-# define USER_HZ	100		/* User interfaces are in "ticks" */
-# define CLOCKS_PER_SEC	(USER_HZ)	/* frequency at which times() counts */
-#endif /* __ASM_AVR32_PARAM_H */
-- 
1.8.0


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

end of thread, other threads:[~2012-11-17 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-17 15:04 [PATCH] AVR32: switch to generic param.h Joachim Eastwood
2012-11-17 18:01 ` Hans-Christian Egtvedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.