include: linux: Update kernel.h 04/307404/1 accepted/tizen_base accepted/tizen_base_asan accepted/tizen_base_toolchain accepted/tizen_base_x accepted/tizen_base_x_asan sandbox/dkson95/linux-glibc-devel-update tizen_base accepted/tizen/base/20240403.212427 accepted/tizen/base/asan/20240406.082608 accepted/tizen/base/toolchain/20240311.005036 accepted/tizen/base/toolchain/20240313.085657 accepted/tizen/base/x/20240408.015907 accepted/tizen/base/x/asan/20240412.002841
authorPhil Sutter <phil@nwl.cc>
Wed, 6 Sep 2023 17:02:52 +0000 (19:02 +0200)
committerDongkyun Son <dongkyun.s@samsung.com>
Fri, 8 Mar 2024 05:17:38 +0000 (14:17 +0900)
commita48501cf24a6bcc208a1401b3fc2cc2e8c6ac6ac
tree1278bc57094c8110031db07f11c58480081da531
parentd55f26410f351caf9b6646151f7dec225efe5b81
include: linux: Update kernel.h

Its contents were moved into const.h and sysinfo.h, apply these changes
to the cached copies. Fixes for the following warning when compiling
xtables-monitor.c with new kernel headers in /usr/include:

| In file included from ../include/linux/netfilter/x_tables.h:3,
|                  from ../include/xtables.h:19,
|                  from xtables-monitor.c:36:
| ../include/linux/kernel.h:7: warning: "__ALIGN_KERNEL" redefined
|     7 | #define __ALIGN_KERNEL(x, a)            __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
|       |
| In file included from /usr/include/linux/netlink.h:5,
|                  from /home/n0-1/git/libmnl/install/include/libmnl/libmnl.h:9,
|                  from xtables-monitor.c:30:
| /usr/include/linux/const.h:31: note: this is the location of the previous definition
|    31 | #define __ALIGN_KERNEL(x, a)            __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1)
|       |

Signed-off-by: Phil Sutter <phil@nwl.cc>
Cherry-picked from: cb884bf73a4d8585a7739702ca690fdc590341ba
Change-Id: Ifbdce5b37c1fed8c49339b1086998effefd3ef27
include/linux/const.h [new file with mode: 0644]
include/linux/kernel.h
include/linux/sysinfo.h [new file with mode: 0644]