Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878831 - sys-kernel/gentoo-sources-6.0.6: kernel/trace/bpf_trace.c:1030:22: error: ‘get_entry_ip’ defined but not used [-Werror=unused-function]
Summary: sys-kernel/gentoo-sources-6.0.6: kernel/trace/bpf_trace.c:1030:22: error: ‘ge...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: gentoo-sources-6.0.8, genpatches
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2022-10-30 16:55 UTC by xdev52
Modified: 2022-11-10 18:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel.log (kernel.7z,29.63 KB, application/x-7z-compressed)
2022-10-30 17:46 UTC, xdev52
Details
.config (.config,164.20 KB, text/plain)
2022-10-30 17:47 UTC, xdev52
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xdev52 2022-10-30 16:55:15 UTC
error: ‘get_entry_ip’ defined but not used [-Werror=unused-function]
 1030 | static unsigned long get_entry_ip(unsigned long fentry_ip)
      |                      ^~~~~~~~~~~~
cc1: all warnings being treated as errors


Reproducible: Always

Steps to Reproduce:
1. make 
2. make modules
3.
Actual Results:  
make modules
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  DESCEND objtool
  CHK     include/generated/compile.h
  CC      kernel/trace/bpf_trace.o
kernel/trace/bpf_trace.c:1030:22: error: ‘get_entry_ip’ defined but not used [-Werror=unused-function]
 1030 | static unsigned long get_entry_ip(unsigned long fentry_ip)
      |                      ^~~~~~~~~~~~
cc1: all warnings being treated as errors
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-30 16:59:52 UTC
Are you building with CONFIG_WERROR? You likely need to send this upstream.

Could you also please ideally try upload the build log (try 'make clean' && 'make V=1 &> kernel.log') and your .config please?
Comment 2 xdev52 2022-10-30 17:46:52 UTC
Created attachment 826165 [details]
kernel.log
Comment 3 xdev52 2022-10-30 17:47:55 UTC
Created attachment 826167 [details]
.config
Comment 4 Larry the Git Cow gentoo-dev 2022-11-10 18:49:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02de83bc65c375e12888909c2be98232041a5b63

commit 02de83bc65c375e12888909c2be98232041a5b63
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2022-11-10 18:48:22 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2022-11-10 18:48:22 +0000

    sys-kernel/gentoo-sources: add 6.0.8 and unused-function fix
    
    Closes: https://bugs.gentoo.org/878831
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/gentoo-sources/Manifest                 |  3 +++
 .../gentoo-sources/gentoo-sources-6.0.8.ebuild     | 28 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)