Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit 5105e6e

Browse files
authored
Merge pull request #395 from coreosbot/v4.19.111-coreos
Rebase 4.19.109 patches onto 4.19.111
2 parents 93556fb + 7a2549b commit 5105e6e

File tree

5 files changed

+45
-1
lines changed

5 files changed

+45
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
143143

144144
# Invoke a second make in the output directory, passing relevant variables
145145
sub-make:
146-
$(Q)$(MAKE) -C $(KBUILD_OUTPUT) KBUILD_SRC=$(CURDIR) \
146+
$(Q)$(MAKE) -C $(KBUILD_OUTPUT) \
147+
KBUILD_SRC=$(shell realpath --relative-to=$(KBUILD_OUTPUT) $(CURDIR)) \
147148
-f $(CURDIR)/Makefile $(filter-out _all sub-make,$(MAKECMDGOALS))
148149

149150
# Leave processing to above invocation of make

net/netfilter/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ config NF_CONNTRACK
7070

7171
To compile it as a module, choose M here. If unsure, say N.
7272

73+
config NF_CONNTRACK_IPV4_COMPAT
74+
tristate "Netfilter connection tracking IPv4 compatibility module"
75+
depends on NF_CONNTRACK
76+
default NF_CONNTRACK
77+
help
78+
Compatibility nf_conntrack_ipv4 module that loads nf_conntrack.ko,
79+
since kube-proxy cares about the names of loaded kernel modules.
80+
7381
config NF_LOG_COMMON
7482
tristate
7583

net/netfilter/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ obj-$(CONFIG_NETFILTER_NETLINK_OSF) += nfnetlink_osf.o
2424

2525
# connection tracking
2626
obj-$(CONFIG_NF_CONNTRACK) += nf_conntrack.o
27+
obj-$(CONFIG_NF_CONNTRACK_IPV4_COMPAT) += nf_conntrack_ipv4.o
2728

2829
obj-$(CONFIG_NF_CT_PROTO_GRE) += nf_conntrack_proto_gre.o
2930

net/netfilter/nf_conntrack_ipv4.c

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
/*
3+
* Compatibility nf_conntrack_ipv4 module that depends on nf_conntrack
4+
* to keep kube-proxy happy.
5+
*
6+
* Copyright (c) 2018 Red Hat, Inc.
7+
*
8+
* This program is free software; you can redistribute it and/or modify it
9+
* under the terms of the GNU General Public License as published by the Free
10+
* Software Foundation; either version 2 of the License, or (at your option)
11+
* any later version.
12+
*/
13+
14+
#include <linux/module.h>
15+
#include <linux/printk.h>
16+
#include <net/netfilter/nf_conntrack.h>
17+
18+
unsigned int *pointer_to_nf_conntrack_data = &nf_conntrack_max;
19+
20+
static int __init nf_conntrack_ipv4_init(void) {
21+
pr_notice("nf_conntrack_ipv4: loaded compatibility alias for nf_conntrack\n");
22+
return 0;
23+
}
24+
25+
static void __exit nf_conntrack_ipv4_exit(void) {}
26+
27+
module_init(nf_conntrack_ipv4_init);
28+
module_exit(nf_conntrack_ipv4_exit);
29+
30+
MODULE_DESCRIPTION("kube-proxy compatibility wrapper for nf_conntrack.ko");
31+
MODULE_LICENSE("GPL");

tools/lib/subcmd/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ ifneq ($(WERROR),0)
4141
CFLAGS += -Werror
4242
endif
4343

44+
# Don't fail on fallthrough with newer GCCs.
45+
CFLAGS += -Wno-error=implicit-fallthrough
46+
4447
CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
4548

4649
CFLAGS += -I$(srctree)/tools/include/

0 commit comments

Comments
 (0)