powerpc/kvm: Fix unannotated intra-function call warning
authorSathvika Vasireddy <sv@linux.ibm.com>
Sat, 28 Jan 2023 12:41:58 +0000 (18:11 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 Jan 2023 05:01:04 +0000 (16:01 +1100)
commitfe6de81b610e5d0b9d2231acff2de74a35482e7d
tree62ce812876a77c8c3e0cb93d8b8d596cd86b5263
parent8afffce6aa3bddc940ac1909627ff1e772b6cbf1
powerpc/kvm: Fix unannotated intra-function call warning

objtool throws the following warning:
  arch/powerpc/kvm/booke.o: warning: objtool: kvmppc_fill_pt_regs+0x30:
  unannotated intra-function call

Fix the warning by setting the value of 'nip' using the _THIS_IP_ macro,
without using an assembly bl/mflr sequence to save the instruction
pointer.

Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230128124158.1066251-1-sv@linux.ibm.com
arch/powerpc/kvm/booke.c