Message ID | 20221215115258.80810-1-sv@linux.ibm.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6035e7e35482653d6d93f35f01e1a320573d58f0 |
Headers | show |
Series | powerpc/32: Curb objtool unannotated intra-function call warning | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/github-powerpc_selftests | success | Successfully ran 8 jobs. |
snowpatch_ozlabs/github-powerpc_ppctests | success | Successfully ran 8 jobs. |
snowpatch_ozlabs/github-powerpc_clang | success | Successfully ran 6 jobs. |
snowpatch_ozlabs/github-powerpc_sparse | success | Successfully ran 4 jobs. |
snowpatch_ozlabs/github-powerpc_kernel_qemu | success | Successfully ran 24 jobs. |
On Thu, 15 Dec 2022 17:22:58 +0530, Sathvika Vasireddy wrote: > objtool throws the following warning: > arch/powerpc/kexec/relocate_32.o: warning: objtool: .text+0x2bc: unannotated intra-function call > > Fix this warning by annotating intra-function call, using > ANNOTATE_INTRA_FUNCTION_CALL macro, to indicate that the branch target > is valid. > > [...] Applied to powerpc/next. [1/1] powerpc/32: Curb objtool unannotated intra-function call warning https://git.kernel.org/powerpc/c/6035e7e35482653d6d93f35f01e1a320573d58f0 cheers
diff --git a/arch/powerpc/kexec/relocate_32.S b/arch/powerpc/kexec/relocate_32.S index d9f0dd9b34ff..104c9911f406 100644 --- a/arch/powerpc/kexec/relocate_32.S +++ b/arch/powerpc/kexec/relocate_32.S @@ -8,6 +8,7 @@ * Author: Suzuki Poulose <suzuki@in.ibm.com> */ +#include <linux/objtool.h> #include <asm/reg.h> #include <asm/page.h> #include <asm/mmu.h> @@ -349,6 +350,7 @@ write_utlb: cmpwi r10, PPC47x_TLB0_4K bne 0f li r10, 0x1000 /* r10 = 4k */ + ANNOTATE_INTRA_FUNCTION_CALL bl 1f 0:
objtool throws the following warning: arch/powerpc/kexec/relocate_32.o: warning: objtool: .text+0x2bc: unannotated intra-function call Fix this warning by annotating intra-function call, using ANNOTATE_INTRA_FUNCTION_CALL macro, to indicate that the branch target is valid. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com> --- arch/powerpc/kexec/relocate_32.S | 2 ++ 1 file changed, 2 insertions(+)