* [PATCH net] net: fix warnings in 'make htmldocs' by moving macro definition out of field declaration
@ 2015-12-14 22:30 Hannes Frederic Sowa
2015-12-16 16:44 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Frederic Sowa @ 2015-12-14 22:30 UTC (permalink / raw)
To: netdev
Docbook does not like the definition of macros inside a field declaration
and adds a warning. Move the definition out.
Fixes: 79462ad02e86180 ("net: add validation for the socket syscall protocol argument")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
---
include/net/sock.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/sock.h b/include/net/sock.h
index c4205e0a3a2d28..47ad810c1ca48f 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -403,8 +403,8 @@ struct sock {
sk_no_check_rx : 1,
sk_userlocks : 4,
sk_protocol : 8,
-#define SK_PROTOCOL_MAX U8_MAX
sk_type : 16;
+#define SK_PROTOCOL_MAX U8_MAX
kmemcheck_bitfield_end(flags);
int sk_wmem_queued;
gfp_t sk_allocation;
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] net: fix warnings in 'make htmldocs' by moving macro definition out of field declaration
2015-12-14 22:30 [PATCH net] net: fix warnings in 'make htmldocs' by moving macro definition out of field declaration Hannes Frederic Sowa
@ 2015-12-16 16:44 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-12-16 16:44 UTC (permalink / raw)
To: hannes; +Cc: netdev
From: Hannes Frederic Sowa <hannes@stressinduktion.org>
Date: Mon, 14 Dec 2015 23:30:43 +0100
> Docbook does not like the definition of macros inside a field declaration
> and adds a warning. Move the definition out.
>
> Fixes: 79462ad02e86180 ("net: add validation for the socket syscall protocol argument")
> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-16 16:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14 22:30 [PATCH net] net: fix warnings in 'make htmldocs' by moving macro definition out of field declaration Hannes Frederic Sowa
2015-12-16 16:44 ` David Miller
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).