* [PATCH] vr41xx: added #indef __KERNEL__/#endif to vr41xx header files
@ 2006-07-13 8:33 Yoichi Yuasa
2006-07-13 14:15 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Yoichi Yuasa @ 2006-07-13 8:33 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips
Hi Ralf,
This patch has added #ifdef __KERNEL__/#endif to vr41xx header files.
Please apply.
Yoichi
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
diff -pruN -X mips/Documentation/dontdiff mips-orig/include/asm-mips/vr41xx/giu.h mips/include/asm-mips/vr41xx/giu.h
--- mips-orig/include/asm-mips/vr41xx/giu.h 2006-07-12 12:13:12.654431250 +0900
+++ mips/include/asm-mips/vr41xx/giu.h 2006-07-12 15:59:14.834000250 +0900
@@ -20,6 +20,8 @@
#ifndef __NEC_VR41XX_GIU_H
#define __NEC_VR41XX_GIU_H
+#ifdef __KERNEL__
+
typedef enum {
IRQ_TRIGGER_LEVEL,
IRQ_TRIGGER_EDGE,
@@ -66,4 +68,6 @@ typedef enum {
extern int vr41xx_gpio_pullupdown(unsigned int pin, gpio_pull_t pull);
+#endif /* __KERNEL__ */
+
#endif /* __NEC_VR41XX_GIU_H */
diff -pruN -X mips/Documentation/dontdiff mips-orig/include/asm-mips/vr41xx/pci.h mips/include/asm-mips/vr41xx/pci.h
--- mips-orig/include/asm-mips/vr41xx/pci.h 2006-07-12 12:13:12.654431250 +0900
+++ mips/include/asm-mips/vr41xx/pci.h 2006-07-12 15:59:14.834000250 +0900
@@ -20,6 +20,8 @@
#ifndef __NEC_VR41XX_PCI_H
#define __NEC_VR41XX_PCI_H
+#ifdef __KERNEL__
+
#define PCI_MASTER_ADDRESS_MASK 0x7fffffffU
struct pci_master_address_conversion {
@@ -87,4 +89,6 @@ struct pci_controller_unit_setup {
extern void vr41xx_pciu_setup(struct pci_controller_unit_setup *setup);
+#endif /* __KERNEL__ */
+
#endif /* __NEC_VR41XX_PCI_H */
diff -pruN -X mips/Documentation/dontdiff mips-orig/include/asm-mips/vr41xx/siu.h mips/include/asm-mips/vr41xx/siu.h
--- mips-orig/include/asm-mips/vr41xx/siu.h 2006-07-12 12:13:12.654431250 +0900
+++ mips/include/asm-mips/vr41xx/siu.h 2006-07-12 15:59:14.838000500 +0900
@@ -20,6 +20,8 @@
#ifndef __NEC_VR41XX_SIU_H
#define __NEC_VR41XX_SIU_H
+#ifdef __KERNEL__
+
typedef enum {
SIU_INTERFACE_RS232C,
SIU_INTERFACE_IRDA,
@@ -47,4 +49,6 @@ typedef enum {
extern void vr41xx_select_irda_module(irda_module_t module, irda_speed_t speed);
+#endif /* __KERNEL__ */
+
#endif /* __NEC_VR41XX_SIU_H */
diff -pruN -X mips/Documentation/dontdiff mips-orig/include/asm-mips/vr41xx/vr41xx.h mips/include/asm-mips/vr41xx/vr41xx.h
--- mips-orig/include/asm-mips/vr41xx/vr41xx.h 2006-07-12 13:51:13.821981250 +0900
+++ mips/include/asm-mips/vr41xx/vr41xx.h 2006-07-12 15:59:14.838000500 +0900
@@ -42,6 +42,8 @@
/* VR4133 0x00000c84- */
#define PRID_VR4133 0x00000c84
+#ifdef __KERNEL__
+
/*
* Bus Control Uint
*/
@@ -143,4 +145,6 @@ extern void vr41xx_disable_csiint(uint16
extern void vr41xx_enable_bcuint(void);
extern void vr41xx_disable_bcuint(void);
+#endif /* __KERNEL__ */
+
#endif /* __NEC_VR41XX_H */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] vr41xx: added #indef __KERNEL__/#endif to vr41xx header files
2006-07-13 8:33 [PATCH] vr41xx: added #indef __KERNEL__/#endif to vr41xx header files Yoichi Yuasa
@ 2006-07-13 14:15 ` Ralf Baechle
2006-07-14 0:43 ` Yoichi Yuasa
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2006-07-13 14:15 UTC (permalink / raw)
To: Yoichi Yuasa; +Cc: linux-mips
On Thu, Jul 13, 2006 at 05:33:56PM +0900, Yoichi Yuasa wrote:
> This patch has added #ifdef __KERNEL__/#endif to vr41xx header files.
None of the include/asm-mips/vr41xx/ files touched by this patch is
listed in include/asm-mips/Kbuild for installation so I don't see why
protecting with #indef __KERNEL__ would make sense?
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] vr41xx: added #indef __KERNEL__/#endif to vr41xx header files
2006-07-13 14:15 ` Ralf Baechle
@ 2006-07-14 0:43 ` Yoichi Yuasa
0 siblings, 0 replies; 3+ messages in thread
From: Yoichi Yuasa @ 2006-07-14 0:43 UTC (permalink / raw)
To: Ralf Baechle; +Cc: yoichi_yuasa, linux-mips
Hi,
On Thu, 13 Jul 2006 15:15:16 +0100
Ralf Baechle <ralf@linux-mips.org> wrote:
> On Thu, Jul 13, 2006 at 05:33:56PM +0900, Yoichi Yuasa wrote:
>
> > This patch has added #ifdef __KERNEL__/#endif to vr41xx header files.
>
> None of the include/asm-mips/vr41xx/ files touched by this patch is
> listed in include/asm-mips/Kbuild for installation so I don't see why
> protecting with #indef __KERNEL__ would make sense?
I see how it is.
Thanks for your comment.
Yoichi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-14 0:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-13 8:33 [PATCH] vr41xx: added #indef __KERNEL__/#endif to vr41xx header files Yoichi Yuasa
2006-07-13 14:15 ` Ralf Baechle
2006-07-14 0:43 ` Yoichi Yuasa
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.