kernel_samsung_a53x/include/trace/events
Geert Uytterhoeven e7627cae4b neighbor: tracing: Move pin6 inside CONFIG_IPV6=y section
commit 2915240eddba96b37de4c7e9a3d0ac6f9548454b upstream.

When CONFIG_IPV6=n, and building with W=1:

    In file included from include/trace/define_trace.h:102,
		     from include/trace/events/neigh.h:255,
		     from net/core/net-traces.c:51:
    include/trace/events/neigh.h: In function ‘trace_event_raw_event_neigh_create’:
    include/trace/events/neigh.h:42:34: error: variable ‘pin6’ set but not used [-Werror=unused-but-set-variable]
       42 |                 struct in6_addr *pin6;
	  |                                  ^~~~
    include/trace/trace_events.h:402:11: note: in definition of macro ‘DECLARE_EVENT_CLASS’
      402 |         { assign; }                                                     \
	  |           ^~~~~~
    include/trace/trace_events.h:44:30: note: in expansion of macro ‘PARAMS’
       44 |                              PARAMS(assign),                   \
	  |                              ^~~~~~
    include/trace/events/neigh.h:23:1: note: in expansion of macro ‘TRACE_EVENT’
       23 | TRACE_EVENT(neigh_create,
	  | ^~~~~~~~~~~
    include/trace/events/neigh.h:41:9: note: in expansion of macro ‘TP_fast_assign’
       41 |         TP_fast_assign(
	  |         ^~~~~~~~~~~~~~
    In file included from include/trace/define_trace.h:103,
		     from include/trace/events/neigh.h:255,
		     from net/core/net-traces.c:51:
    include/trace/events/neigh.h: In function ‘perf_trace_neigh_create’:
    include/trace/events/neigh.h:42:34: error: variable ‘pin6’ set but not used [-Werror=unused-but-set-variable]
       42 |                 struct in6_addr *pin6;
	  |                                  ^~~~
    include/trace/perf.h:51:11: note: in definition of macro ‘DECLARE_EVENT_CLASS’
       51 |         { assign; }                                                     \
	  |           ^~~~~~
    include/trace/trace_events.h:44:30: note: in expansion of macro ‘PARAMS’
       44 |                              PARAMS(assign),                   \
	  |                              ^~~~~~
    include/trace/events/neigh.h:23:1: note: in expansion of macro ‘TRACE_EVENT’
       23 | TRACE_EVENT(neigh_create,
	  | ^~~~~~~~~~~
    include/trace/events/neigh.h:41:9: note: in expansion of macro ‘TP_fast_assign’
       41 |         TP_fast_assign(
	  |         ^~~~~~~~~~~~~~

Indeed, the variable pin6 is declared and initialized unconditionally,
while it is only used and needlessly re-initialized when support for
IPv6 is enabled.

Fix this by dropping the unused variable initialization, and moving the
variable declaration inside the existing section protected by a check
for CONFIG_IPV6.

Fixes: fc651001d2c5ca4f ("neighbor: Add tracepoint to __neigh_create")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Simon Horman <horms@kernel.org> # build-tested
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-08 11:26:11 +01:00
..
9p.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acme.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
afs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
alarmtimer.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
android_fs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
android_fs_template.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asoc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
avc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcache.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
block.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bpf_test_run.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bridge.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btrfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cachefiles.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cgroup.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compaction.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
context_tracking.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuhp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
damon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devfreq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devlink.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma_fence.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ems.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ems_debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
erofs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error_report.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ext4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_devfreq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
f2fs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fib6.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
filelock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
filemap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fs_dax.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fscache.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsi_master_aspeed.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsi_master_ast_cf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsi_master_gpio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpu_mem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
host1x.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
huge_memory.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwmon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_mad.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_umad.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
initcall.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-sst.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_ish.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io_uring.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iocost.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq_matrix.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iscsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jbd2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kmem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kvm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kyber.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mce.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mem_bw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
migrate.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlxsw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmflags.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
module.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
namei.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
napi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nbd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
neigh.h neighbor: tracing: Move pin6 inside CONFIG_IPV6=y section 2024-11-08 11:26:11 +01:00
net.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net_probe_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nilfs2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
objagg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oom.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
page_isolation.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
page_pool.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
page_ref.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pagefault.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pagemap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
percpu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
power.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
power_cpu_migrate.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
preemptirq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
printk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qdisc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qla.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qrtr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdma_core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regulator.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpcgss.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpcrdma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rseq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rwmmio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rxrpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sched.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sctp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
siox.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smbus.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunrpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunvnet.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
swiotlb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscalls.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
systrace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
target.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
task.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra_apb_dma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_exynos.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_exynos_gpu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_power_allocator.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
timer.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tlb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ufs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ufs_exynos_perf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vb2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmscan.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vsock_virtio_transport_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wbt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
workqueue.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
writeback.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xen.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00