Skip to content

Commit 494e87f

Browse files
committed
xtensa: add default definition for XCHAL_HAVE_DIV32
When variant FSF is set, XCHAL_HAVE_DIV32 is not defined. Add default definition for that macro to prevent build warnings: arch/xtensa/lib/divsi3.S:9:5: warning: "XCHAL_HAVE_DIV32" is not defined, evaluates to 0 [-Wundef] 9 | #if XCHAL_HAVE_DIV32 arch/xtensa/lib/modsi3.S:9:5: warning: "XCHAL_HAVE_DIV32" is not defined, evaluates to 0 [-Wundef] 9 | #if XCHAL_HAVE_DIV32 Fixes: 173d668 ("xtensa: remove extra header files") Suggested-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Reported-by: kernel test robot <lkp@intel.com> Closes: lore.kernel.org/r/202309150556.t0yCdv3g-lkp@intel.com
1 parent ce9ecca commit 494e87f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

arch/xtensa/include/asm/core.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
#include <variant/core.h>
88

9+
#ifndef XCHAL_HAVE_DIV32
10+
#define XCHAL_HAVE_DIV32 0
11+
#endif
12+
913
#ifndef XCHAL_HAVE_EXCLUSIVE
1014
#define XCHAL_HAVE_EXCLUSIVE 0
1115
#endif

0 commit comments

Comments
 (0)