From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mikko Rapeli Subject: [PATCH] linux/if.h linux/hdlc/ioctl.h: move IFNAMSIZ definition to hdlc/ioctl.h Date: Thu, 15 Oct 2015 20:11:54 +0200 Message-ID: <1444932714-13156-1-git-send-email-mikko.rapeli@iki.fi> References: <20151015180850.GC6104@lakka.kapsi.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20151015180850.GC6104-dqH1CgrzRhOk/eJAJmRu5A@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: fransklaver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Cc: mikko.rapeli-X3B1VOXEql0@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-api@vger.kernel.org =46ixes userspace compiler error: error: =E2=80=98IFNAMSIZ=E2=80=99 undeclared here (not in a function) Suggested by Frans Klaver on lkml message <20150530195223.GA15645-LuJdRk73L+f/9pzu0YdTqQ@public.gmane.org>. Signed-off-by: Mikko Rapeli --- include/uapi/linux/hdlc/ioctl.h | 1 + include/uapi/linux/if.h | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/hdlc/ioctl.h b/include/uapi/linux/hdlc/= ioctl.h index 04bc027..d1b1de5 100644 --- a/include/uapi/linux/hdlc/ioctl.h +++ b/include/uapi/linux/hdlc/ioctl.h @@ -1,6 +1,7 @@ #ifndef __HDLC_IOCTL_H__ #define __HDLC_IOCTL_H__ =20 +#define IFNAMSIZ 16 =20 #define GENERIC_HDLC_VERSION 4 /* For synchronization with sethdlc uti= lity */ =20 diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.h index 9cf2394..0f98f0a 100644 --- a/include/uapi/linux/if.h +++ b/include/uapi/linux/if.h @@ -22,10 +22,8 @@ #include /* for "__kernel_caddr_t" et al */ #include /* for "struct sockaddr" et al */ #include /* for "__user" et al */ - -#define IFNAMSIZ 16 -#define IFALIASZ 256 -#include +#include /* for IFNAMSIZ = */ +#define IFALIASZ 256 =20 /** * enum net_device_flags - &struct net_device flags --=20 2.6.1