All of lore.kernel.org
 help / color / mirror / Atom feed
* include/math-emu/double.h:59:21: warning: '__BIG_ENDIAN' is not defined, evaluates to 0
@ 2026-01-01  2:34 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-01-01  2:34 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: oe-kbuild-all, linux-kernel, Madhavan Srinivasan

Hi Paul,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b69053dd3ffbc0d2dedbbc86182cdef6f641fe1b
commit: aca95fb6bb572a77f39d42d83ab72a965026577d powerpc/microwatt: Add SMP support
date:   10 months ago
config: powerpc64-randconfig-r113-20251231 (https://download.01.org/0day-ci/archive/20260101/202601011003.bwpVuFs1-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project f43d6834093b19baf79beda8c0337ab020ac5f17)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260101/202601011003.bwpVuFs1-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601011003.bwpVuFs1-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from <built-in>:3:
   In file included from include/linux/compiler_types.h:171:
   include/linux/compiler-clang.h:28:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
      28 | #define __SANITIZE_ADDRESS__
         |         ^
   <built-in>:354:9: note: previous definition is here
     354 | #define __SANITIZE_ADDRESS__ 1
         |         ^
   In file included from arch/powerpc/math-emu/math.c:14:
>> include/math-emu/double.h:59:21: warning: '__BIG_ENDIAN' is not defined, evaluates to 0 [-Wundef]
      59 | #if __BYTE_ORDER == __BIG_ENDIAN
         |                     ^
   2 warnings generated.
--
   In file included from <built-in>:3:
   In file included from include/linux/compiler_types.h:171:
   include/linux/compiler-clang.h:28:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
      28 | #define __SANITIZE_ADDRESS__
         |         ^
   <built-in>:354:9: note: previous definition is here
     354 | #define __SANITIZE_ADDRESS__ 1
         |         ^
   In file included from arch/powerpc/math-emu/fsqrts.c:8:
>> include/math-emu/double.h:59:21: warning: '__BIG_ENDIAN' is not defined, evaluates to 0 [-Wundef]
      59 | #if __BYTE_ORDER == __BIG_ENDIAN
         |                     ^
   In file included from arch/powerpc/math-emu/fsqrts.c:9:
>> include/math-emu/single.h:50:21: warning: '__BIG_ENDIAN' is not defined, evaluates to 0 [-Wundef]
      50 | #if __BYTE_ORDER == __BIG_ENDIAN
         |                     ^
   3 warnings generated.


vim +/__BIG_ENDIAN +59 include/math-emu/double.h

^1da177e4c3f415 Linus Torvalds 2005-04-16  54  
^1da177e4c3f415 Linus Torvalds 2005-04-16  55  union _FP_UNION_D
^1da177e4c3f415 Linus Torvalds 2005-04-16  56  {
^1da177e4c3f415 Linus Torvalds 2005-04-16  57    double flt;
^1da177e4c3f415 Linus Torvalds 2005-04-16  58    struct {
^1da177e4c3f415 Linus Torvalds 2005-04-16 @59  #if __BYTE_ORDER == __BIG_ENDIAN
^1da177e4c3f415 Linus Torvalds 2005-04-16  60      unsigned sign  : 1;
^1da177e4c3f415 Linus Torvalds 2005-04-16  61      unsigned exp   : _FP_EXPBITS_D;
^1da177e4c3f415 Linus Torvalds 2005-04-16  62      unsigned frac1 : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0) - _FP_W_TYPE_SIZE;
^1da177e4c3f415 Linus Torvalds 2005-04-16  63      unsigned frac0 : _FP_W_TYPE_SIZE;
^1da177e4c3f415 Linus Torvalds 2005-04-16  64  #else
^1da177e4c3f415 Linus Torvalds 2005-04-16  65      unsigned frac0 : _FP_W_TYPE_SIZE;
^1da177e4c3f415 Linus Torvalds 2005-04-16  66      unsigned frac1 : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0) - _FP_W_TYPE_SIZE;
^1da177e4c3f415 Linus Torvalds 2005-04-16  67      unsigned exp   : _FP_EXPBITS_D;
^1da177e4c3f415 Linus Torvalds 2005-04-16  68      unsigned sign  : 1;
^1da177e4c3f415 Linus Torvalds 2005-04-16  69  #endif
^1da177e4c3f415 Linus Torvalds 2005-04-16  70    } bits __attribute__((packed));
^1da177e4c3f415 Linus Torvalds 2005-04-16  71  };
^1da177e4c3f415 Linus Torvalds 2005-04-16  72  

:::::: The code at line 59 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread
* include/math-emu/double.h:59:21: warning: '__BIG_ENDIAN' is not defined, evaluates to 0
@ 2025-07-30  8:59 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-07-30  8:59 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: oe-kbuild-all, linux-kernel, Madhavan Srinivasan

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4b290aae788e06561754b28c6842e4080957d3f7
commit: aca95fb6bb572a77f39d42d83ab72a965026577d powerpc/microwatt: Add SMP support
date:   5 months ago
config: powerpc64-randconfig-r064-20250730 (https://download.01.org/0day-ci/archive/20250730/202507301656.7FEX6J5W-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 8f09b03aebb71c154f3bbe725c29e3f47d37c26e)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250730/202507301656.7FEX6J5W-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507301656.7FEX6J5W-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/powerpc/math-emu/math.c:14:
>> include/math-emu/double.h:59:21: warning: '__BIG_ENDIAN' is not defined, evaluates to 0 [-Wundef]
      59 | #if __BYTE_ORDER == __BIG_ENDIAN
         |                     ^
   1 warning generated.
--
   In file included from arch/powerpc/math-emu/fsqrts.c:8:
>> include/math-emu/double.h:59:21: warning: '__BIG_ENDIAN' is not defined, evaluates to 0 [-Wundef]
      59 | #if __BYTE_ORDER == __BIG_ENDIAN
         |                     ^
   In file included from arch/powerpc/math-emu/fsqrts.c:9:
>> include/math-emu/single.h:50:21: warning: '__BIG_ENDIAN' is not defined, evaluates to 0 [-Wundef]
      50 | #if __BYTE_ORDER == __BIG_ENDIAN
         |                     ^
   2 warnings generated.


vim +/__BIG_ENDIAN +59 include/math-emu/double.h

^1da177e4c3f41 Linus Torvalds 2005-04-16  54  
^1da177e4c3f41 Linus Torvalds 2005-04-16  55  union _FP_UNION_D
^1da177e4c3f41 Linus Torvalds 2005-04-16  56  {
^1da177e4c3f41 Linus Torvalds 2005-04-16  57    double flt;
^1da177e4c3f41 Linus Torvalds 2005-04-16  58    struct {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @59  #if __BYTE_ORDER == __BIG_ENDIAN
^1da177e4c3f41 Linus Torvalds 2005-04-16  60      unsigned sign  : 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16  61      unsigned exp   : _FP_EXPBITS_D;
^1da177e4c3f41 Linus Torvalds 2005-04-16  62      unsigned frac1 : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0) - _FP_W_TYPE_SIZE;
^1da177e4c3f41 Linus Torvalds 2005-04-16  63      unsigned frac0 : _FP_W_TYPE_SIZE;
^1da177e4c3f41 Linus Torvalds 2005-04-16  64  #else
^1da177e4c3f41 Linus Torvalds 2005-04-16  65      unsigned frac0 : _FP_W_TYPE_SIZE;
^1da177e4c3f41 Linus Torvalds 2005-04-16  66      unsigned frac1 : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0) - _FP_W_TYPE_SIZE;
^1da177e4c3f41 Linus Torvalds 2005-04-16  67      unsigned exp   : _FP_EXPBITS_D;
^1da177e4c3f41 Linus Torvalds 2005-04-16  68      unsigned sign  : 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16  69  #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16  70    } bits __attribute__((packed));
^1da177e4c3f41 Linus Torvalds 2005-04-16  71  };
^1da177e4c3f41 Linus Torvalds 2005-04-16  72  

:::::: The code at line 59 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-01  2:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-01  2:34 include/math-emu/double.h:59:21: warning: '__BIG_ENDIAN' is not defined, evaluates to 0 kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2025-07-30  8:59 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.