linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] driver-core: add include guard to linux/container.h
@ 2019-08-19  7:16 Masahiro Yamada
  2019-08-19  7:30 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2019-08-19  7:16 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rafael J . Wysocki
  Cc: linux-kernel, Masahiro Yamada, Allison Randal, Enrico Weigelt,
	Kate Stewart, Thomas Gleixner

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(+)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] driver-core: add include guard to linux/container.h
  2019-08-19  7:16 [PATCH] driver-core: add include guard to linux/container.h Masahiro Yamada
@ 2019-08-19  7:30 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2019-08-19  7:30 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: Greg Kroah-Hartman, Rafael J . Wysocki,
	Linux Kernel Mailing List, Allison Randal, Enrico Weigelt,
	Kate Stewart, Thomas Gleixner

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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-19  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-19  7:16 [PATCH] driver-core: add include guard to linux/container.h Masahiro Yamada
2019-08-19  7:30 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).