]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lib: packing: Include necessary headers
authorNathan Lynch <nathan.lynch@amd.com>
Tue, 24 Jun 2025 13:50:44 +0000 (08:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:15 +0000 (18:41 +0200)
commitc437bac35171ad1cc5347649d44fab6642c3f125
tree3dd5ca36a79a5b8b1026b3baf3413f8af93eb1af
parentdd66914be8a0160c069a2f8470ccf7a6441e9958
lib: packing: Include necessary headers

[ Upstream commit 8bd0af3154b2206ce19f8b1410339f7a2a56d0c3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/packing.h