diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-05-17 11:45:18 -0400 |
---|---|---|
committer | Hans-Christian Egtvedt <egtvedt@samfundet.no> | 2013-05-22 15:05:44 -0400 |
commit | 0c9b5a317b8ae7201fed07ec66d642b2ad7ea1b0 (patch) | |
tree | 5c9203f8b1da977685d054afe4dbe367ba208839 /arch/avr32 | |
parent | e68c636d88db3fda74e664ecb1a213ae0d50a7d8 (diff) |
avr32: fix building warnings caused by redefinitions of HZ
As suggested by David Howells <dhowells@redhat.com>, use
asm-generic/param.h and uapi/asm-generic/param.h for AVR32.
It also fixes building warnings caused by redefinitions of HZ:
In file included from /ws/linux/kernel/linux.git/include/uapi/linux/param.h:4,
from include/linux/timex.h:63,
from include/linux/jiffies.h:8,
from include/linux/ktime.h:25,
from include/linux/timer.h:5,
from include/linux/workqueue.h:8,
from include/linux/srcu.h:34,
from include/linux/notifier.h:15,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:777,
from include/linux/gfp.h:4,
from arch/avr32/mm/init.c:10:
/ws/linux/kernel/linux.git/arch/avr32/include/asm/param.h:6:1: warning: "HZ" redefined
In file included from /ws/linux/kernel/linux.git/arch/avr32/include/asm/param.h:4,
from /ws/linux/kernel/linux.git/include/uapi/linux/param.h:4,
from include/linux/timex.h:63,
from include/linux/jiffies.h:8,
from include/linux/ktime.h:25,
from include/linux/timer.h:5,
from include/linux/workqueue.h:8,
from include/linux/srcu.h:34,
from include/linux/notifier.h:15,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:777,
from include/linux/gfp.h:4,
from arch/avr32/mm/init.c:10:
/ws/linux/kernel/linux.git/arch/avr32/include/uapi/asm/param.h:6:1: warning: this is the location of the previous definition
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Diffstat (limited to 'arch/avr32')
-rw-r--r-- | arch/avr32/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/avr32/include/asm/param.h | 9 | ||||
-rw-r--r-- | arch/avr32/include/uapi/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/avr32/include/uapi/asm/param.h | 18 |
4 files changed, 2 insertions, 27 deletions
diff --git a/arch/avr32/include/asm/Kbuild b/arch/avr32/include/asm/Kbuild index 4dd4f78d3dcc..d22af851f3f6 100644 --- a/arch/avr32/include/asm/Kbuild +++ b/arch/avr32/include/asm/Kbuild | |||
@@ -2,3 +2,4 @@ | |||
2 | generic-y += clkdev.h | 2 | generic-y += clkdev.h |
3 | generic-y += exec.h | 3 | generic-y += exec.h |
4 | generic-y += trace_clock.h | 4 | generic-y += trace_clock.h |
5 | 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 009a167aea1f..000000000000 --- a/arch/avr32/include/asm/param.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef __ASM_AVR32_PARAM_H | ||
2 | #define __ASM_AVR32_PARAM_H | ||
3 | |||
4 | #include <uapi/asm/param.h> | ||
5 | |||
6 | # define HZ CONFIG_HZ | ||
7 | # define USER_HZ 100 /* User interfaces are in "ticks" */ | ||
8 | # define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */ | ||
9 | #endif /* __ASM_AVR32_PARAM_H */ | ||
diff --git a/arch/avr32/include/uapi/asm/Kbuild b/arch/avr32/include/uapi/asm/Kbuild index df53e7a46774..3b85eaddf525 100644 --- a/arch/avr32/include/uapi/asm/Kbuild +++ b/arch/avr32/include/uapi/asm/Kbuild | |||
@@ -33,3 +33,4 @@ header-y += termbits.h | |||
33 | header-y += termios.h | 33 | header-y += termios.h |
34 | header-y += types.h | 34 | header-y += types.h |
35 | header-y += unistd.h | 35 | header-y += unistd.h |
36 | generic-y += param.h | ||
diff --git a/arch/avr32/include/uapi/asm/param.h b/arch/avr32/include/uapi/asm/param.h deleted file mode 100644 index d28aa5ee6d37..000000000000 --- a/arch/avr32/include/uapi/asm/param.h +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | #ifndef _UAPI__ASM_AVR32_PARAM_H | ||
2 | #define _UAPI__ASM_AVR32_PARAM_H | ||
3 | |||
4 | |||
5 | #ifndef HZ | ||
6 | # define HZ 100 | ||
7 | #endif | ||
8 | |||
9 | /* TODO: Should be configurable */ | ||
10 | #define EXEC_PAGESIZE 4096 | ||
11 | |||
12 | #ifndef NOGROUP | ||
13 | # define NOGROUP (-1) | ||
14 | #endif | ||
15 | |||
16 | #define MAXHOSTNAMELEN 64 | ||
17 | |||
18 | #endif /* _UAPI__ASM_AVR32_PARAM_H */ | ||