From: Andy Shevchenko Date: Mon, 30 Jan 2023 11:17:46 +0000 (+0200) Subject: container_of: Update header inclusions X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2b8e35337605ca581f777cad73d7a6ac2ccbf6ec;p=linux.git container_of: Update header inclusions The commit 848dba781f19 ("container_of: remove container_of_safe()") removed the code that uses err.h. Replace the inclusion by stddef.h which provides offsetof() definition which is still in use. Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20230130111746.59830-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/container_of.h b/include/linux/container_of.h index 1d898f9158b45..713890c867bea 100644 --- a/include/linux/container_of.h +++ b/include/linux/container_of.h @@ -3,7 +3,7 @@ #define _LINUX_CONTAINER_OF_H #include -#include +#include #define typeof_member(T, m) typeof(((T*)0)->m)