summaryrefslogtreecommitdiff
path: root/include/linux/container_of.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-01-30 13:17:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-31 12:44:20 +0100
commit2b8e35337605ca581f777cad73d7a6ac2ccbf6ec (patch)
treea07fd5dc66e6f9abb4771a2caa8486393f13a741 /include/linux/container_of.h
parent90be1f15c39858a4f0f4346c39fa150697d231c1 (diff)
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 <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230130111746.59830-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/container_of.h')
-rw-r--r--include/linux/container_of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/container_of.h b/include/linux/container_of.h
index 1d898f9158b4..713890c867be 100644
--- a/include/linux/container_of.h
+++ b/include/linux/container_of.h
@@ -3,7 +3,7 @@
#define _LINUX_CONTAINER_OF_H
#include <linux/build_bug.h>
-#include <linux/err.h>
+#include <linux/stddef.h>
#define typeof_member(T, m) typeof(((T*)0)->m)