All of lore.kernel.org
 help / color / mirror / Atom feed
* [bcache:nvdimm-meta 1/16] ./usr/include/linux/bcache-nvm.h:142:14: error: 'UINT_MAX' undeclared
@ 2021-03-29 20:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-29 20:52 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3100 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git nvdimm-meta
head:   be0f72faa6d269aa7d824296859cd055f0ba61a0
commit: 0f8dc635ad43d07f564e83a6617a27f49c0c9281 [1/16] bcache: add initial data structures for nvm pages
config: i386-randconfig-c001-20210329 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git/commit/?id=0f8dc635ad43d07f564e83a6617a27f49c0c9281
        git remote add bcache https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git
        git fetch --no-tags bcache nvdimm-meta
        git checkout 0f8dc635ad43d07f564e83a6617a27f49c0c9281
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   In file included from <command-line>:32:
>> ./usr/include/linux/bcache-nvm.h:110:3: error: #error "Non-64bit platform is not supported"
     110 |  #error "Non-64bit platform is not supported"
         |   ^~~~~
   ./usr/include/linux/bcache-nvm.h: In function 'pgalloc_rec_pageoff':
>> ./usr/include/linux/bcache-nvm.h:127:26: warning: left shift count >= width of type [-Wshift-count-overflow]
     127 |  return (rec->v & ~(~0UL << BCH_NVM_PAGES_PGOFF_BITS));
         |                          ^~
   ./usr/include/linux/bcache-nvm.h: In function 'set_pgalloc_rec_pageoff':
   ./usr/include/linux/bcache-nvm.h:133:17: warning: left shift count >= width of type [-Wshift-count-overflow]
     133 |  rec->v &= ~0UL << BCH_NVM_PAGES_PGOFF_BITS;
         |                 ^~
   ./usr/include/linux/bcache-nvm.h:134:23: warning: left shift count >= width of type [-Wshift-count-overflow]
     134 |  rec->v |= v & ~(~0UL << BCH_NVM_PAGES_PGOFF_BITS);
         |                       ^~
   ./usr/include/linux/bcache-nvm.h: In function 'pgalloc_rec_order':
>> ./usr/include/linux/bcache-nvm.h:142:14: error: 'UINT_MAX' undeclared (first use in this function)
     142 |  return (r & UINT_MAX);
         |              ^~~~~~~~
   ./usr/include/linux/bcache-nvm.h:88:1: note: 'UINT_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
      87 | #include <linux/types.h>
     +++ |+#include <limits.h>
      88 | 
   ./usr/include/linux/bcache-nvm.h:142:14: note: each undeclared identifier is reported only once for each function it appears in
     142 |  return (r & UINT_MAX);
         |              ^~~~~~~~
   ./usr/include/linux/bcache-nvm.h: In function 'set_pgalloc_rec_order':
   ./usr/include/linux/bcache-nvm.h:150:56: warning: left shift count >= width of type [-Wshift-count-overflow]
     150 |  rec->v |= (v & ~(~0UL << BCH_NVM_PAGES_PGORDER_BITS)) <<
         |                                                        ^~

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37408 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-29 20:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29 20:52 [bcache:nvdimm-meta 1/16] ./usr/include/linux/bcache-nvm.h:142:14: error: 'UINT_MAX' undeclared 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.