net: bpfilter: change section name of bpfilter UMH blob.
Subsystems (2)
PATCH 1/1 net: bpfilter: change section name of bpfilter UMH blob.
The section of bpfilter UMH blob is the ".bpfilter_umh". but this is not an explicit section. so linking warning occurred at compile time for the powerpc.
So, this patch makes use of the ".rodata" instead of the ".bpfilter_umh".
Config condition:
CONFIG_BPFILTER=yCONFIG_BPFILTER_UMH=y
Result:
ld: warning: orphan section .bpfilter_umh' from net/bpfilter/bpfilter_umh_blob.o' being placed in section `.bpfilter_umh'
--- net/bpfilter/bpfilter_umh_blob.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bpfilter/bpfilter_umh_blob.S +1 -1
@@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0 */ - .section .bpfilter_umh, "a" + .section .rodata, "a" .global bpfilter_umh_start bpfilter_umh_start: .incbin "net/bpfilter/bpfilter_umh"
Signature · 1 line
2.17.1
From: Taehee Yoo <[email protected]>
Date: Wed, 16 Jan 2019 01:35:22 +0900
Quoted 10 lines
The section of bpfilter UMH blob is the ".bpfilter_umh". but this is not an explicit section. so linking warning occurred at compile time for the powerpc.
So, this patch makes use of the ".rodata" instead of the ".bpfilter_umh".Config condition:
CONFIG_BPFILTER=yCONFIG_BPFILTER_UMH=y
Quoted 8 lines
Result:
ld: warning: orphan section
.bpfilter_umh' fromnet/bpfilter/bpfilter_umh_blob.o' being placed in section `.bpfilter_umh'Fixes 61fbf5933d42 ("net: bpfilter: restart bpfilter_umh when error occurred")Reported-by Stephen Rothwell <[email protected]>Signed-off-by Taehee Yoo <[email protected]>
Applied.