Skip to contentSkip to conversation

AVR32: switch to generic param.h

PATCH In review Joachim Eastwood 2 participants 2 messages Nov 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AVR32: switch to generic param.h

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.

---
 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
arch/avr32/include/asm/Kbuild +1 -0
index 4807ded..f52bd7d 100644
@@ -1,3 +1,4 @@
 
 generic-y	+= clkdev.h
 generic-y	+= exec.h
+generic-y	+= param.h
arch/avr32/include/asm/param.h deleted +0 -9
deleted file mode 100644
index 009a167..0000000
@@ -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 */
Signature · 1 line
1.8.0
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · 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.

<snipp diff>

Signature · 1 line
HcE