Re: [RFC] unify exported sparc header files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 05, 2008 at 11:48:59AM -0700, David Miller wrote:
> From: Sam Ravnborg <sam@xxxxxxxxxxxx>
> Date: Sun, 1 Jun 2008 09:20:45 +0200
> 
> > For all sparc32 specific files:
> >  - nothing
> > 
> > For all the sparc64 specific files:
> >  - copy file to asm-sparc
> >  - wrap the copied file in
> >    #if defined(__sparc_v9__) || defined(CONFIG_SPARC64)
> >       ... file content ...
> >    #endif
> >  - straight include from asm-sparc64 of the asm-sparc file
> > - Or I could just drop the wrapping?
> > 
> > For the non-unified files:
> > - Add content to asm-sparc file and wrap it into:
> >    #if defined(__sparc_v9__) || defined(CONFIG_SPARC64)
> > 	... sparc64 file content
> >    #else
> > 	... sparc32 file content
> >    #endif
> 
> This sounds fine to me.

Sorry that I missed this in the original email.

Can we use the same #if test we use for userspace also in kernelspace?

I'm asking since Sam's proposal would result in more CONFIG_ leakage to 
userspace headers.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux