mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:08:54 +00:00
1fee121f8f
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
45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
/*
|
|
|
|
fp_log.h: floating-point math routines for the Linux-m68k
|
|
floating point emulator.
|
|
|
|
Copyright (c) 1998-1999 David Huggins-Daines / Roman Zippel.
|
|
|
|
I hereby give permission, free of charge, to copy, modify, and
|
|
redistribute this software, in source or binary form, provided that
|
|
the above copyright notice and the following disclaimer are included
|
|
in all such copies.
|
|
|
|
THIS SOFTWARE IS PROVIDED "AS IS", WITH ABSOLUTELY NO WARRANTY, REAL
|
|
OR IMPLIED.
|
|
|
|
*/
|
|
|
|
#ifndef _FP_LOG_H
|
|
#define _FP_LOG_H
|
|
|
|
#include "fp_emu.h"
|
|
|
|
/* floating point logarithmic instructions:
|
|
|
|
the arguments to these are in the "internal" extended format, that
|
|
is, an "exploded" version of the 96-bit extended fp format used by
|
|
the 68881.
|
|
|
|
they return a status code, which should end up in %d0, if all goes
|
|
well. */
|
|
|
|
struct fp_ext *fp_fsqrt(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fetoxm1(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fetox(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_ftwotox(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_ftentox(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_flogn(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_flognp1(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_flog10(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_flog2(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fgetexp(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fgetman(struct fp_ext *dest, struct fp_ext *src);
|
|
|
|
#endif /* _FP_LOG_H */
|