Linux IA64 platform development
 help / color / mirror / Atom feed
* [PATCH 2/6] headers_check fix: ia64, fpswa.h
       [not found] ` <1244118476.5172.29.camel@ht.satnam>
@ 2009-06-04 12:41   ` Jaswinder Singh Rajput
  2009-06-04 20:22     ` Sam Ravnborg
  2009-06-05  9:26     ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Arnd Bergmann
  0 siblings, 2 replies; 5+ messages in thread
From: Jaswinder Singh Rajput @ 2009-06-04 12:41 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Ingo Molnar, Andrew Morton, LKML, Tony Luck, linux-ia64


fix the following 'make headers_check' warning:

  usr/include/asm-ia64/fpswa.h:71: extern's make no sense in userspace

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
 arch/ia64/include/asm/fpswa.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/ia64/include/asm/fpswa.h b/arch/ia64/include/asm/fpswa.h
index 62edfce..797b064 100644
--- a/arch/ia64/include/asm/fpswa.h
+++ b/arch/ia64/include/asm/fpswa.h
@@ -68,6 +68,7 @@ typedef struct {
 	efi_fpswa_t	 fpswa;
 } fpswa_interface_t;
 
+#ifdef __KERNEL__
 extern fpswa_interface_t *fpswa_interface;
-
+#endif
 #endif /* _ASM_IA64_FPSWA_H */
-- 
1.6.0.6




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

* Re: [PATCH 2/6] headers_check fix: ia64, fpswa.h
  2009-06-04 12:41   ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Jaswinder Singh Rajput
@ 2009-06-04 20:22     ` Sam Ravnborg
  2009-06-08 16:33       ` Luck, Tony
  2009-06-05  9:26     ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Arnd Bergmann
  1 sibling, 1 reply; 5+ messages in thread
From: Sam Ravnborg @ 2009-06-04 20:22 UTC (permalink / raw)
  To: Jaswinder Singh Rajput, Tony Luck
  Cc: Ingo Molnar, Andrew Morton, LKML, Tony Luck, linux-ia64

On Thu, Jun 04, 2009 at 05:59:59PM +0530, Jaswinder Singh Rajput wrote:
> 
> fix the following 'make headers_check' warning:
> 
>   usr/include/asm-ia64/fpswa.h:71: extern's make no sense in userspace
> 
> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>

Tony - is this file really used from userspace.
Looking at the definitions I think not.

I not then the real fix is to unexport it.

	Sam

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

* Re: [PATCH 2/6] headers_check fix: ia64, fpswa.h
  2009-06-04 12:41   ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Jaswinder Singh Rajput
  2009-06-04 20:22     ` Sam Ravnborg
@ 2009-06-05  9:26     ` Arnd Bergmann
  1 sibling, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2009-06-05  9:26 UTC (permalink / raw)
  To: Jaswinder Singh Rajput
  Cc: Sam Ravnborg, Ingo Molnar, Andrew Morton, LKML, Tony Luck,
	linux-ia64

On Thursday 04 June 2009, Jaswinder Singh Rajput wrote:

> index 62edfce..797b064 100644
> --- a/arch/ia64/include/asm/fpswa.h
> +++ b/arch/ia64/include/asm/fpswa.h
> @@ -68,6 +68,7 @@ typedef struct {
>  	efi_fpswa_t	 fpswa;
>  } fpswa_interface_t;
>  
> +#ifdef __KERNEL__
>  extern fpswa_interface_t *fpswa_interface;
> -
> +#endif
>  #endif /* _ASM_IA64_FPSWA_H */

It's pretty obvious that the above data structure also doesn't
apply in user space. In fact it looks like the whole file should
just not be exported. Your patch is not helpful there because
it just silences the warning.

	Arnd <><

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

* RE: [PATCH 2/6] headers_check fix: ia64, fpswa.h
  2009-06-04 20:22     ` Sam Ravnborg
@ 2009-06-08 16:33       ` Luck, Tony
  2009-06-08 17:48         ` [PATCH] ia64: unexport fpswa.h Sam Ravnborg
  0 siblings, 1 reply; 5+ messages in thread
From: Luck, Tony @ 2009-06-08 16:33 UTC (permalink / raw)
  To: Sam Ravnborg, Jaswinder Singh Rajput
  Cc: Ingo Molnar, Andrew Morton, LKML, linux-ia64@vger.kernel.org

> Tony - is this file really used from userspace.
> Looking at the definitions I think not.
>
> I not then the real fix is to unexport it.

Sam,

FPSWA should be completely invisible to user space.  You are correct that the
right fix is to unexport it.

-Tony

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

* [PATCH] ia64: unexport fpswa.h
  2009-06-08 16:33       ` Luck, Tony
@ 2009-06-08 17:48         ` Sam Ravnborg
  0 siblings, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2009-06-08 17:48 UTC (permalink / raw)
  To: Luck, Tony
  Cc: Jaswinder Singh Rajput, Ingo Molnar, Andrew Morton, LKML,
	linux-ia64@vger.kernel.org

fpswa.h is not relevant for userspace,
so do not export it.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Jaswinder Singh Rajput <jaswinder@kernel.org>
---
diff --git a/arch/ia64/include/asm/Kbuild b/arch/ia64/include/asm/Kbuild
index ccbe8ae..c7d0a71 100644
--- a/arch/ia64/include/asm/Kbuild
+++ b/arch/ia64/include/asm/Kbuild
@@ -2,7 +2,6 @@ include include/asm-generic/Kbuild.asm
 
 header-y += break.h
 header-y += fpu.h
-header-y += fpswa.h
 header-y += ia64regs.h
 header-y += intel_intrin.h
 header-y += perfmon_default_smpl.h

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

end of thread, other threads:[~2009-06-08 17:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1244118232.5172.26.camel@ht.satnam>
     [not found] ` <1244118476.5172.29.camel@ht.satnam>
2009-06-04 12:41   ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Jaswinder Singh Rajput
2009-06-04 20:22     ` Sam Ravnborg
2009-06-08 16:33       ` Luck, Tony
2009-06-08 17:48         ` [PATCH] ia64: unexport fpswa.h Sam Ravnborg
2009-06-05  9:26     ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Arnd Bergmann

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