* [PATCH 1/1] iomap: simplify header file include guard macro definition
@ 2018-07-16 7:07 Shan Hai
2018-07-17 13:13 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Shan Hai @ 2018-07-16 7:07 UTC (permalink / raw)
To: hch; +Cc: linux-fsdevel
The simple definition of a macro is enough for the include guard, it's not
necessary to assign a value to it, so remove the assignment.
Signed-off-by: Shan Hai <shan.hai@oracle.com>
---
include/linux/iomap.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index a044a82..25aa7d8 100644
--- a/include/linux/iomap.h
+++ b/include/linux/iomap.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_IOMAP_H
-#define LINUX_IOMAP_H 1
+#define LINUX_IOMAP_H
#include <linux/types.h>
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] iomap: simplify header file include guard macro definition
2018-07-16 7:07 [PATCH 1/1] iomap: simplify header file include guard macro definition Shan Hai
@ 2018-07-17 13:13 ` Christoph Hellwig
2018-07-17 13:47 ` Matthew Wilcox
2018-07-17 13:52 ` Shan Hai
0 siblings, 2 replies; 4+ messages in thread
From: Christoph Hellwig @ 2018-07-17 13:13 UTC (permalink / raw)
To: Shan Hai; +Cc: hch, linux-fsdevel
On Mon, Jul 16, 2018 at 03:07:16PM +0800, Shan Hai wrote:
> The simple definition of a macro is enough for the include guard, it's not
> necessary to assign a value to it, so remove the assignment.
>
> Signed-off-by: Shan Hai <shan.hai@oracle.com>
And what is the exact benefit of changing this?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] iomap: simplify header file include guard macro definition
2018-07-17 13:13 ` Christoph Hellwig
@ 2018-07-17 13:47 ` Matthew Wilcox
2018-07-17 13:52 ` Shan Hai
1 sibling, 0 replies; 4+ messages in thread
From: Matthew Wilcox @ 2018-07-17 13:47 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Shan Hai, linux-fsdevel
On Tue, Jul 17, 2018 at 03:13:49PM +0200, Christoph Hellwig wrote:
> On Mon, Jul 16, 2018 at 03:07:16PM +0800, Shan Hai wrote:
> > The simple definition of a macro is enough for the include guard, it's not
> > necessary to assign a value to it, so remove the assignment.
> >
> > Signed-off-by: Shan Hai <shan.hai@oracle.com>
>
> And what is the exact benefit of changing this?
doesn't seem worthwhile to me either. If anything's going to change,
it should probably be _LINUX_IOMAP_H (insofaras we have a standard for
include guards, a single _ seems to be preferred)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] iomap: simplify header file include guard macro definition
2018-07-17 13:13 ` Christoph Hellwig
2018-07-17 13:47 ` Matthew Wilcox
@ 2018-07-17 13:52 ` Shan Hai
1 sibling, 0 replies; 4+ messages in thread
From: Shan Hai @ 2018-07-17 13:52 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-fsdevel
On 2018年07月17日 21:13, Christoph Hellwig wrote:
> On Mon, Jul 16, 2018 at 03:07:16PM +0800, Shan Hai wrote:
>> The simple definition of a macro is enough for the include guard, it's not
>> necessary to assign a value to it, so remove the assignment.
>>
>> Signed-off-by: Shan Hai <shan.hai@oracle.com>
> And what is the exact benefit of changing this?
The guard macro definition looks consistent with others, that's all :)
Thanks
Shan Hai
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-07-17 14:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-16 7:07 [PATCH 1/1] iomap: simplify header file include guard macro definition Shan Hai
2018-07-17 13:13 ` Christoph Hellwig
2018-07-17 13:47 ` Matthew Wilcox
2018-07-17 13:52 ` Shan Hai
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).