m68k: math-emu: Add missing prototypes
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 17 Aug 2023 14:44:53 +0000 (16:44 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 6 Oct 2023 08:03:01 +0000 (10:03 +0200)
commit1fee121f8f2ade1ef2937f1b7d7b08775086fba9
treedeaa4fb96e6274ca9f1bffc47fb533d37a167a31
parent648c37ec0299fca3a0062f7b2f374cc5d1e2f109
m68k: math-emu: Add missing prototypes

When building with W=1:

    arch/m68k/math-emu/fp_arith.c:301:16: warning: no previous prototype for ‘fp_fsglmul’ [-Wmissing-prototypes]
      301 | struct fp_ext *fp_fsglmul(struct fp_ext *dest, struct fp_ext *src)
  |                ^~~~~~~~~~
    arch/m68k/math-emu/fp_arith.c:357:16: warning: no previous prototype for ‘fp_fsgldiv’ [-Wmissing-prototypes]
      357 | struct fp_ext *fp_fsgldiv(struct fp_ext *dest, struct fp_ext *src)
  |                ^~~~~~~~~~
      CC      arch/m68k/math-emu/fp_log.o
    ...

Fix this by adding the missing prototypes to header files.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230810141947.1236730-17-arnd@kernel.org/
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/96c039640d76973ea762d79018de0bc75bbdc1dc.1692283195.git.geert@linux-m68k.org
arch/m68k/math-emu/fp_arith.h
arch/m68k/math-emu/fp_log.c
arch/m68k/math-emu/fp_log.h [new file with mode: 0644]
arch/m68k/math-emu/fp_trig.h