* [PATCH] kdbus: fix header guard name
@ 2015-03-17 3:03 lucas.de.marchi
2015-03-17 8:56 ` David Herrmann
0 siblings, 1 reply; 4+ messages in thread
From: lucas.de.marchi @ 2015-03-17 3:03 UTC (permalink / raw)
To: linux-kernel; +Cc: Greg Kroah-Hartman, daniel, David Herrmann, Lucas De Marchi
From: Lucas De Marchi <lucas.demarchi@intel.com>
UAPI headers have a _UAPI_ as prefix, which is removed during
headers_install. If it's put as a suffix it will not be removed and will
be the only header with UAPI in the header guard macro.
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
include/uapi/linux/kdbus.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/linux/kdbus.h b/include/uapi/linux/kdbus.h
index fc1d77d..302862f 100644
--- a/include/uapi/linux/kdbus.h
+++ b/include/uapi/linux/kdbus.h
@@ -5,8 +5,8 @@
* your option) any later version.
*/
-#ifndef _KDBUS_UAPI_H_
-#define _KDBUS_UAPI_H_
+#ifndef _UAPI_KDBUS_H_
+#define _UAPI_KDBUS_H_
#include <linux/ioctl.h>
#include <linux/types.h>
--
2.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] kdbus: fix header guard name
2015-03-17 3:03 [PATCH] kdbus: fix header guard name lucas.de.marchi
@ 2015-03-17 8:56 ` David Herrmann
2015-03-17 12:21 ` lucas.de.marchi
0 siblings, 1 reply; 4+ messages in thread
From: David Herrmann @ 2015-03-17 8:56 UTC (permalink / raw)
To: Lucas De Marchi
Cc: linux-kernel, Greg Kroah-Hartman, Daniel Mack, Lucas De Marchi,
Djalal Harouni
Hi
On Tue, Mar 17, 2015 at 4:03 AM, <lucas.de.marchi@gmail.com> wrote:
> From: Lucas De Marchi <lucas.demarchi@intel.com>
>
> UAPI headers have a _UAPI_ as prefix, which is removed during
> headers_install. If it's put as a suffix it will not be removed and will
> be the only header with UAPI in the header guard macro.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
> include/uapi/linux/kdbus.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/uapi/linux/kdbus.h b/include/uapi/linux/kdbus.h
> index fc1d77d..302862f 100644
> --- a/include/uapi/linux/kdbus.h
> +++ b/include/uapi/linux/kdbus.h
> @@ -5,8 +5,8 @@
> * your option) any later version.
> */
>
> -#ifndef _KDBUS_UAPI_H_
> -#define _KDBUS_UAPI_H_
> +#ifndef _UAPI_KDBUS_H_
> +#define _UAPI_KDBUS_H_
Looks good, but lacks an update of the last line in this header:
#endif /* _KDBUS_UAPI_H_ */
With this comment changed:
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Thanks
David!
> #include <linux/ioctl.h>
> #include <linux/types.h>
> --
> 2.3.3
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] kdbus: fix header guard name
2015-03-17 8:56 ` David Herrmann
@ 2015-03-17 12:21 ` lucas.de.marchi
2015-03-17 21:40 ` Greg Kroah-Hartman
0 siblings, 1 reply; 4+ messages in thread
From: lucas.de.marchi @ 2015-03-17 12:21 UTC (permalink / raw)
To: linux-kernel; +Cc: Greg Kroah-Hartman, daniel, David Herrmann, Lucas De Marchi
From: Lucas De Marchi <lucas.demarchi@intel.com>
UAPI headers have a _UAPI_ as prefix, which is removed during
headers_install. If it's put as a suffix it will not be removed and will
be the only header with UAPI in the header guard macro.
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
---
include/uapi/linux/kdbus.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/uapi/linux/kdbus.h b/include/uapi/linux/kdbus.h
index fc1d77d..2fe0a1c 100644
--- a/include/uapi/linux/kdbus.h
+++ b/include/uapi/linux/kdbus.h
@@ -5,8 +5,8 @@
* your option) any later version.
*/
-#ifndef _KDBUS_UAPI_H_
-#define _KDBUS_UAPI_H_
+#ifndef _UAPI_KDBUS_H_
+#define _UAPI_KDBUS_H_
#include <linux/ioctl.h>
#include <linux/types.h>
@@ -976,4 +976,4 @@ enum kdbus_ioctl_type {
struct kdbus_cmd_match),
};
-#endif /* _KDBUS_UAPI_H_ */
+#endif /* _UAPI_KDBUS_H_ */
--
2.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] kdbus: fix header guard name
2015-03-17 12:21 ` lucas.de.marchi
@ 2015-03-17 21:40 ` Greg Kroah-Hartman
0 siblings, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2015-03-17 21:40 UTC (permalink / raw)
To: lucas.de.marchi; +Cc: linux-kernel, daniel, David Herrmann, Lucas De Marchi
On Tue, Mar 17, 2015 at 09:21:42AM -0300, lucas.de.marchi@gmail.com wrote:
> From: Lucas De Marchi <lucas.demarchi@intel.com>
>
> UAPI headers have a _UAPI_ as prefix, which is removed during
> headers_install. If it's put as a suffix it will not be removed and will
> be the only header with UAPI in the header guard macro.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
> ---
> include/uapi/linux/kdbus.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-17 21:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-17 3:03 [PATCH] kdbus: fix header guard name lucas.de.marchi
2015-03-17 8:56 ` David Herrmann
2015-03-17 12:21 ` lucas.de.marchi
2015-03-17 21:40 ` Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.