]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib: packing: Include necessary headers
authorNathan Lynch <nathan.lynch@amd.com>
Tue, 24 Jun 2025 13:50:44 +0000 (08:50 -0500)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Jun 2025 22:30:00 +0000 (15:30 -0700)
commit8bd0af3154b2206ce19f8b1410339f7a2a56d0c3
treea2739b8765b6d2b0007e924556e4ac0f8cec2ccd
parent4b70e2a069d90cdc447c6bf8437c8b99345852e9
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 <nathan.lynch@amd.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://patch.msgid.link/20250624-packing-includes-v1-1-c23c81fab508@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/packing.h