Message ID | 20190819071606.10965-1-yamada.masahiro@socionext.com |
---|---|
State | Accepted |
Commit | 1d5a013f9c0f5b4ef3cf64ac61e9c1f386c7b750 |
Headers | show |
Series | driver-core: add include guard to linux/container.h | expand |
On Mon, Aug 19, 2019 at 9:24 AM Masahiro Yamada <yamada.masahiro@socionext.com> wrote: > > Add a header include guard just in case. > > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > --- > > include/linux/container.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/container.h b/include/linux/container.h > index 0cc2ee91905c..2566a1baa736 100644 > --- a/include/linux/container.h > +++ b/include/linux/container.h > @@ -6,6 +6,9 @@ > * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > */ > > +#ifndef _LINUX_CONTAINER_H > +#define _LINUX_CONTAINER_H > + > #include <linux/device.h> > > /* drivers/base/power/container.c */ > @@ -20,3 +23,5 @@ static inline struct container_dev *to_container_dev(struct device *dev) > { > return container_of(dev, struct container_dev, dev); > } > + > +#endif /* _LINUX_CONTAINER_H */ > -- > 2.17.1 >
diff --git a/include/linux/container.h b/include/linux/container.h index 0cc2ee91905c..2566a1baa736 100644 --- a/include/linux/container.h +++ b/include/linux/container.h @@ -6,6 +6,9 @@ * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> */ +#ifndef _LINUX_CONTAINER_H +#define _LINUX_CONTAINER_H + #include <linux/device.h> /* drivers/base/power/container.c */ @@ -20,3 +23,5 @@ static inline struct container_dev *to_container_dev(struct device *dev) { return container_of(dev, struct container_dev, dev); } + +#endif /* _LINUX_CONTAINER_H */
Add a header include guard just in case. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> --- include/linux/container.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.1