Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1643145 > unrolled thread
| Started by | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| First post | 2017-05-17 10:50 +0200 |
| Last post | 2017-05-17 17:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] net: always include tcp.h in sock.c Arnd Bergmann <arnd@arndb.de> - 2017-05-17 10:50 +0200
Re: [PATCH] net: always include tcp.h in sock.c Eric Dumazet <eric.dumazet@gmail.com> - 2017-05-17 17:10 +0200
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2017-05-17 10:50 +0200 |
| Subject | [PATCH] net: always include tcp.h in sock.c |
| Message-ID | <tI2OC-O8-3@gated-at.bofh.it> |
kernelci reports a build regression in the latest 4.12 snapshots
in configurations without TCP:
net/core/sock.c: In function 'skb_orphan_partial':
net/core/sock.c:1810:6: error: implicit declaration of function 'skb_is_tcp_pure_ack' [-Werror=implicit-function-declaration]
The declaration is simply missing because the header is included
conditionally. There is no real reason to leave out the header, so
this just removes the #ifdef.
Fixes: f6ba8d33cfbb ("netem: fix skb_orphan_partial()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
net/core/sock.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/net/core/sock.c b/net/core/sock.c
index e43e71d7856b..727f924b7f91 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -139,10 +139,7 @@
#include <trace/events/sock.h>
-#ifdef CONFIG_INET
#include <net/tcp.h>
-#endif
-
#include <net/busy_poll.h>
static DEFINE_MUTEX(proto_list_mutex);
--
2.9.0
[toc] | [next] | [standalone]
| From | Eric Dumazet <eric.dumazet@gmail.com> |
|---|---|
| Date | 2017-05-17 17:10 +0200 |
| Message-ID | <tI8Kn-4GH-47@gated-at.bofh.it> |
| In reply to | #1643145 |
On Wed, 2017-05-17 at 10:47 +0200, Arnd Bergmann wrote:
> kernelci reports a build regression in the latest 4.12 snapshots
> in configurations without TCP:
>
> net/core/sock.c: In function 'skb_orphan_partial':
> net/core/sock.c:1810:6: error: implicit declaration of function 'skb_is_tcp_pure_ack' [-Werror=implicit-function-declaration]
>
> The declaration is simply missing because the header is included
> conditionally. There is no real reason to leave out the header, so
> this just removes the #ifdef.
>
> Fixes: f6ba8d33cfbb ("netem: fix skb_orphan_partial()")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> net/core/sock.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/net/core/sock.c b/net/core/sock.c
> index e43e71d7856b..727f924b7f91 100644
> --- a/net/core/sock.c
> +++ b/net/core/sock.c
> @@ -139,10 +139,7 @@
>
> #include <trace/events/sock.h>
>
> -#ifdef CONFIG_INET
> #include <net/tcp.h>
> -#endif
> -
> #include <net/busy_poll.h>
>
> static DEFINE_MUTEX(proto_list_mutex);
I sent the same patch yesterday.
https://patchwork.ozlabs.org/patch/763165/
Thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web