All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] NULL undeclared on Fedora
@ 2014-02-10  7:45 Davis, Arlin R
       [not found] ` <54347E5A035A054EAE9D05927FB467F972DEC731-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Davis, Arlin R @ 2014-02-10  7:45 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org

 
Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
---
 dat/include/dat2/dat_platform_specific.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dat/include/dat2/dat_platform_specific.h b/dat/include/dat2/dat_platform_specific.h
index ba4cfbc..8d62bd0 100644
--- a/dat/include/dat2/dat_platform_specific.h
+++ b/dat/include/dat2/dat_platform_specific.h
@@ -147,6 +147,7 @@ typedef DAT_UINT64		DAT_PADDR;
 #if defined(__KERNEL__)
 #include <linux/types.h>
 #else
+#include <stdio.h>
 #include <sys/types.h>
 #include <linux/stddef.h>
 #endif /* defined(__KERNEL__) */
-- 
1.7.3




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

* Re: [PATCH 1/4] NULL undeclared on Fedora
       [not found] ` <54347E5A035A054EAE9D05927FB467F972DEC731-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2014-02-10 11:52   ` Yann Droneaud
  2014-02-10 19:14     ` Davis, Arlin R
  0 siblings, 1 reply; 4+ messages in thread
From: Yann Droneaud @ 2014-02-10 11:52 UTC (permalink / raw)
  To: Davis, Arlin R
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org

Hi,

Le lundi 10 février 2014 à 07:45 +0000, Davis, Arlin R a écrit :
>  Signed-off-by: Arlin Davis <arlin.r.davis-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> ---
>  dat/include/dat2/dat_platform_specific.h |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/dat/include/dat2/dat_platform_specific.h b/dat/include/dat2/dat_platform_specific.h
> index ba4cfbc..8d62bd0 100644
> --- a/dat/include/dat2/dat_platform_specific.h
> +++ b/dat/include/dat2/dat_platform_specific.h
> @@ -147,6 +147,7 @@ typedef DAT_UINT64		DAT_PADDR;
>  #if defined(__KERNEL__)
>  #include <linux/types.h>
>  #else
> +#include <stdio.h>

You could use #include <stddef.h> if only NULL is needed
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html

>  #include <sys/types.h>
>  #include <linux/stddef.h>
>  #endif /* defined(__KERNEL__) */

Regards.

-- 
Yann Droneaud
OPTEYA


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

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

* Re: [PATCH 1/4] NULL undeclared on Fedora
  2014-02-10 11:52   ` Yann Droneaud
@ 2014-02-10 19:14     ` Davis, Arlin R
       [not found]       ` <54347E5A035A054EAE9D05927FB467F972DEC88A-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Davis, Arlin R @ 2014-02-10 19:14 UTC (permalink / raw)
  To: Yann Droneaud; +Cc: linux-rdma@vger.kernel.org, ofw@lists.openfabrics.org

> > --- a/dat/include/dat2/dat_platform_specific.h
> > +++ b/dat/include/dat2/dat_platform_specific.h
> > @@ -147,6 +147,7 @@ typedef DAT_UINT64		DAT_PADDR;
> >  #if defined(__KERNEL__)
> >  #include <linux/types.h>
> >  #else
> > +#include <stdio.h>
> 
> You could use #include <stddef.h> if only NULL is needed
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html

There was an issue with Fedora where linux/stddef.h is empty. Looks like
I need to clean this up and use <stddef.h> instead of <linux/stddef.h> 
for the non-kernel build.

Thanks.

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

* Re: [PATCH 1/4] NULL undeclared on Fedora
       [not found]       ` <54347E5A035A054EAE9D05927FB467F972DEC88A-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2014-02-11 11:37         ` Yann Droneaud
  0 siblings, 0 replies; 4+ messages in thread
From: Yann Droneaud @ 2014-02-11 11:37 UTC (permalink / raw)
  To: Davis, Arlin R
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org

Hi,

Le lundi 10 février 2014 à 19:14 +0000, Davis, Arlin R a écrit :
> > > --- a/dat/include/dat2/dat_platform_specific.h
> > > +++ b/dat/include/dat2/dat_platform_specific.h
> > > @@ -147,6 +147,7 @@ typedef DAT_UINT64		DAT_PADDR;
> > >  #if defined(__KERNEL__)
> > >  #include <linux/types.h>
> > >  #else
> > > +#include <stdio.h>
> > 
> > You could use #include <stddef.h> if only NULL is needed
> > http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html
> 
> There was an issue with Fedora where linux/stddef.h is empty. Looks like
> I need to clean this up and use <stddef.h> instead of <linux/stddef.h> 
> for the non-kernel build.
> 

In the kernel sources include/uapi/linux/stddef.h has only one line :
#include <linux/compiler.h>.

And <linux/compiler.h> is in include/linux/compiler.h thus not made
available to userspace: it's removed as part of header sanitise process
in make headers_install (see scripts/headers_install.sh).

I believe empty linux/stddef.h is kept for userspace compatibility:
http://codesearch.debian.net/search?q=%23include+%3Clinux%2Fstddef.h%3E

Newer userspace code should probably not use it anymore.

Regards.

-- 
Yann Droneaud
OPTEYA


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

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

end of thread, other threads:[~2014-02-11 11:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-10  7:45 [PATCH 1/4] NULL undeclared on Fedora Davis, Arlin R
     [not found] ` <54347E5A035A054EAE9D05927FB467F972DEC731-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-02-10 11:52   ` Yann Droneaud
2014-02-10 19:14     ` Davis, Arlin R
     [not found]       ` <54347E5A035A054EAE9D05927FB467F972DEC88A-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-02-11 11:37         ` Yann Droneaud

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.