diff mbox series

block: pg: add header include guard

Message ID 20190720120526.7722-1-yamada.masahiro@socionext.com
State Accepted
Commit 3a4b46c3bc73240b31cd324b3551fc4231d9f1d5
Headers show
Series block: pg: add header include guard | expand

Commit Message

Masahiro Yamada July 20, 2019, 12:05 p.m. UTC
Add a header include guard just in case.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 include/uapi/linux/pg.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.17.1

Comments

Masahiro Yamada Oct. 3, 2019, 2:29 a.m. UTC | #1
Hi

On Sat, Jul 20, 2019 at 9:06 PM Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
>

> Add a header include guard just in case.

>

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>



Ping?


> ---

>

>  include/uapi/linux/pg.h | 5 ++++-

>  1 file changed, 4 insertions(+), 1 deletion(-)

>

> diff --git a/include/uapi/linux/pg.h b/include/uapi/linux/pg.h

> index 364c350e85cd..62b6f69bd9fb 100644

> --- a/include/uapi/linux/pg.h

> +++ b/include/uapi/linux/pg.h

> @@ -35,6 +35,9 @@

>

>  */

>

> +#ifndef _UAPI_LINUX_PG_H

> +#define _UAPI_LINUX_PG_H

> +

>  #define PG_MAGIC       'P'

>  #define PG_RESET       'Z'

>  #define PG_COMMAND     'C'

> @@ -61,4 +64,4 @@ struct pg_read_hdr {

>

>  };

>

> -/* end of pg.h */

> +#endif /* _UAPI_LINUX_PG_H */

> --

> 2.17.1

>



-- 
Best Regards
Masahiro Yamada
Jens Axboe Oct. 3, 2019, 2:32 a.m. UTC | #2
On 7/20/19 6:05 AM, Masahiro Yamada wrote:
> Add a header include guard just in case.


Applied, thanks.

-- 
Jens Axboe
diff mbox series

Patch

diff --git a/include/uapi/linux/pg.h b/include/uapi/linux/pg.h
index 364c350e85cd..62b6f69bd9fb 100644
--- a/include/uapi/linux/pg.h
+++ b/include/uapi/linux/pg.h
@@ -35,6 +35,9 @@ 
 
 */
 
+#ifndef _UAPI_LINUX_PG_H
+#define _UAPI_LINUX_PG_H
+
 #define PG_MAGIC	'P'
 #define PG_RESET	'Z'
 #define PG_COMMAND	'C'
@@ -61,4 +64,4 @@  struct pg_read_hdr {
 
 };
 
-/* end of pg.h */
+#endif /* _UAPI_LINUX_PG_H */