]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Squash sparse warnings in opal-call.c
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Thu, 14 Mar 2019 04:27:27 +0000 (15:27 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Apr 2019 12:03:19 +0000 (22:03 +1000)
commit9189049f9de0573a2091c6b87bda62e5ec3f2b0a
tree9a4b64efb14b03690cb6d582e20e8f94e0611ea6
parentb67198e21e0481a15387cd67b1cf82c7f9f843b3
powerpc/powernv: Squash sparse warnings in opal-call.c

sparse complains a lot about opal-call.c:

  arch/powerpc/platforms/powernv/opal-call.c:128:1: warning: symbol 'opal_invalid_call' was not declared. Should it be static?
  arch/powerpc/platforms/powernv/opal-call.c:129:1: warning: symbol 'opal_console_write' was not declared. Should it be static?
  arch/powerpc/platforms/powernv/opal-call.c:130:1: warning: symbol 'opal_console_read' was not declared. Should it be static?

Those symbols are forward declared in opal.h, but we can't include that
because the function signatures in opal.h are different. So instead, just
add an extra forward declaration to the OPAL_CALL macro to shut sparse up.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-call.c