Commit 2b8e3533 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman
Browse files

container_of: Update header inclusions



The commit 848dba78 ("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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230130111746.59830-1-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 90be1f15
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3,7 +3,7 @@
#define _LINUX_CONTAINER_OF_H
#define _LINUX_CONTAINER_OF_H


#include <linux/build_bug.h>
#include <linux/build_bug.h>
#include <linux/err.h>
#include <linux/stddef.h>


#define typeof_member(T, m)	typeof(((T*)0)->m)
#define typeof_member(T, m)	typeof(((T*)0)->m)