netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* __user in atm.h
@ 2004-06-15 21:42 Stephen Hemminger
  2004-06-16  4:35 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2004-06-15 21:42 UTC (permalink / raw)
  To: Alexander Viro, David S. Miller; +Cc: netdev

Recent Sparse fixes put __user in atm.h 'struct atmif_sioc'
unfortunately, that structure gets used by tools that include atm.h as well
(like iproute2), and in that environment __user is not defined.

Usual fix is to include compiler.h to hide this breakage.

diff -Nru a/include/linux/atm.h b/include/linux/atm.h
--- a/include/linux/atm.h	2004-06-15 14:42:47 -07:00
+++ b/include/linux/atm.h	2004-06-15 14:42:47 -07:00
@@ -20,6 +20,7 @@
 #include <linux/socket.h>
 #include <linux/types.h>
 #endif
+#include <linux/compiler.h>
 #include <linux/atmapi.h>
 #include <linux/atmsap.h>
 #include <linux/atmioc.h>

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

* Re: __user in atm.h
  2004-06-15 21:42 __user in atm.h Stephen Hemminger
@ 2004-06-16  4:35 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-06-16  4:35 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: aviro, netdev


Applied, thanks Stephen.

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

end of thread, other threads:[~2004-06-16  4:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-15 21:42 __user in atm.h Stephen Hemminger
2004-06-16  4:35 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).