Revision 8d65cd8d25fa23951171094553901d69a88ccdff authored by Eric Dumazet on 31 August 2021, 03:26:08 UTC, committed by David S. Miller on 31 August 2021, 11:03:33 UTC
We need to add __rcu qualifier to avoid these errors:

net/ipv4/fou.c:250:18: warning: incorrect type in assignment (different address spaces)
net/ipv4/fou.c:250:18:    expected struct net_offload const **offloads
net/ipv4/fou.c:250:18:    got struct net_offload const [noderef] __rcu **
net/ipv4/fou.c:251:15: error: incompatible types in comparison expression (different address spaces):
net/ipv4/fou.c:251:15:    struct net_offload const [noderef] __rcu *
net/ipv4/fou.c:251:15:    struct net_offload const *
net/ipv4/fou.c:272:18: warning: incorrect type in assignment (different address spaces)
net/ipv4/fou.c:272:18:    expected struct net_offload const **offloads
net/ipv4/fou.c:272:18:    got struct net_offload const [noderef] __rcu **
net/ipv4/fou.c:273:15: error: incompatible types in comparison expression (different address spaces):
net/ipv4/fou.c:273:15:    struct net_offload const [noderef] __rcu *
net/ipv4/fou.c:273:15:    struct net_offload const *
net/ipv4/fou.c:442:18: warning: incorrect type in assignment (different address spaces)
net/ipv4/fou.c:442:18:    expected struct net_offload const **offloads
net/ipv4/fou.c:442:18:    got struct net_offload const [noderef] __rcu **
net/ipv4/fou.c:443:15: error: incompatible types in comparison expression (different address spaces):
net/ipv4/fou.c:443:15:    struct net_offload const [noderef] __rcu *
net/ipv4/fou.c:443:15:    struct net_offload const *
net/ipv4/fou.c:489:18: warning: incorrect type in assignment (different address spaces)
net/ipv4/fou.c:489:18:    expected struct net_offload const **offloads
net/ipv4/fou.c:489:18:    got struct net_offload const [noderef] __rcu **
net/ipv4/fou.c:490:15: error: incompatible types in comparison expression (different address spaces):
net/ipv4/fou.c:490:15:    struct net_offload const [noderef] __rcu *
net/ipv4/fou.c:490:15:    struct net_offload const *
net/ipv4/udp_offload.c:170:26: warning: incorrect type in assignment (different address spaces)
net/ipv4/udp_offload.c:170:26:    expected struct net_offload const **offloads
net/ipv4/udp_offload.c:170:26:    got struct net_offload const [noderef] __rcu **
net/ipv4/udp_offload.c:171:23: error: incompatible types in comparison expression (different address spaces):
net/ipv4/udp_offload.c:171:23:    struct net_offload const [noderef] __rcu *
net/ipv4/udp_offload.c:171:23:    struct net_offload const *

Fixes: efc98d08e1ec ("fou: eliminate IPv4,v6 specific GRO functions")
Fixes: 8bce6d7d0d1e ("udp: Generalize skb_udp_segment")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 92548b0
History
File Mode Size
ext
Kconfig -rw-r--r-- 1.9 KB
Makefile -rw-r--r-- 749 bytes
array.c -rw-r--r-- 1.2 KB
hda_bus_type.c -rw-r--r-- 2.1 KB
hdac_bus.c -rw-r--r-- 7.4 KB
hdac_component.c -rw-r--r-- 9.7 KB
hdac_controller.c -rw-r--r-- 16.9 KB
hdac_device.c -rw-r--r-- 27.5 KB
hdac_i915.c -rw-r--r-- 4.2 KB
hdac_regmap.c -rw-r--r-- 15.2 KB
hdac_stream.c -rw-r--r-- 21.0 KB
hdac_sysfs.c -rw-r--r-- 11.2 KB
hdmi_chmap.c -rw-r--r-- 24.2 KB
intel-dsp-config.c -rw-r--r-- 12.5 KB
intel-nhlt.c -rw-r--r-- 2.9 KB
intel-sdw-acpi.c -rw-r--r-- 4.5 KB
local.h -rw-r--r-- 1.4 KB
trace.c -rw-r--r-- 107 bytes
trace.h -rw-r--r-- 2.1 KB

back to top