Skip to content

Commit 27b8e90

Browse files
committed
tools headers uapi: Sync linux/in.h copy from the kernel sources
To get the changes in this cset: f275ee0 ("IN_BADCLASS: fix macro to actually work") The macros changed in this cset are not used in tools/, so this is just to silence this perf tools build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/in.h' differs from latest version at 'include/uapi/linux/in.h' diff -u tools/include/uapi/linux/in.h include/uapi/linux/in.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David S. Miller <davem@davemloft.net> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-xbk34kwamn8bw8ywpuxetct9@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent d34cecf commit 27b8e90

File tree

1 file changed

+1
-1
lines changed
  • tools/include/uapi/linux

1 file changed

+1
-1
lines changed

tools/include/uapi/linux/in.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ struct sockaddr_in {
268268
#define IN_MULTICAST(a) IN_CLASSD(a)
269269
#define IN_MULTICAST_NET 0xe0000000
270270

271-
#define IN_BADCLASS(a) ((((long int) (a) ) == 0xffffffff)
271+
#define IN_BADCLASS(a) (((long int) (a) ) == (long int)0xffffffff)
272272
#define IN_EXPERIMENTAL(a) IN_BADCLASS((a))
273273

274274
#define IN_CLASSE(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000)

0 commit comments

Comments
 (0)