diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2015-12-14 23:30:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-10 07:39:21 -0800 |
commit | a5bb227c433a9467086917ab0e22206cf028096a (patch) | |
tree | 5d21f0bf365e92a57b14e3137a516785565c7abf /include | |
parent | e57bb9912c92b17cc4926a6e00c9505fb38b65d0 (diff) | |
download | linux-stable-a5bb227c433a9467086917ab0e22206cf028096a.tar.gz linux-stable-a5bb227c433a9467086917ab0e22206cf028096a.tar.bz2 linux-stable-a5bb227c433a9467086917ab0e22206cf028096a.zip |
net: fix warnings in 'make htmldocs' by moving macro definition out of field declaration
[ Upstream commit 7bbadd2d1009575dad675afc16650ebb5aa10612 ]
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index a40bc8c0af4b..76afe92a0f4a 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -379,8 +379,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; |