From: Nathan Lynch Date: Tue, 24 Jun 2025 13:50:44 +0000 (-0500) Subject: lib: packing: Include necessary headers X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8bd0af3154b2206ce19f8b1410339f7a2a56d0c3;p=thirdparty%2Flinux.git lib: packing: Include necessary headers packing.h uses ARRAY_SIZE(), BUILD_BUG_ON_MSG(), min(), max(), and sizeof_field() without including the headers where they are defined, potentially causing build failures. Fix this in packing.h and sort the result. Signed-off-by: Nathan Lynch Reviewed-by: Vladimir Oltean Link: https://patch.msgid.link/20250624-packing-includes-v1-1-c23c81fab508@amd.com Signed-off-by: Jakub Kicinski --- diff --git a/include/linux/packing.h b/include/linux/packing.h index 0589d70bbe043..20ae4d452c7bb 100644 --- a/include/linux/packing.h +++ b/include/linux/packing.h @@ -5,8 +5,12 @@ #ifndef _LINUX_PACKING_H #define _LINUX_PACKING_H -#include +#include #include +#include +#include +#include +#include #define GEN_PACKED_FIELD_STRUCT(__type) \ struct packed_field_ ## __type { \