Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [tnguy-next-queue:dev-queue 44/51] arch/mips/include/asm/page.h:35:25: warning: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '65536' to '0'
@ 2023-07-24 12:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-24 12:13 UTC (permalink / raw)
  To: Paul M Stillwell Jr; +Cc: Tony Nguyen, Intel Wired LAN, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head:   57fdab1d44c1c14e211323a8f4c674ee0fb18e88
commit: 67faf1179b9bc657536050a5381e540ca651b9cb [44/51] ice: add ability to read FW log data and configure the number of log buffers
config: mips-randconfig-r021-20230724 (https://download.01.org/0day-ci/archive/20230724/202307242017.3f4YsHnA-lkp@intel.com/config)
compiler: mips64el-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230724/202307242017.3f4YsHnA-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/202307242017.3f4YsHnA-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/mips/include/asm/io.h:29,
                    from arch/mips/include/asm/mmiowb.h:5,
                    from include/linux/spinlock.h:66,
                    from include/linux/vmalloc.h:5,
                    from drivers/net/ethernet/intel/ice/ice_fwlog.c:4:
   drivers/net/ethernet/intel/ice/ice_fwlog.c: In function 'ice_fwlog_alloc_ring_buffs':
>> arch/mips/include/asm/page.h:35:25: warning: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '65536' to '0' [-Woverflow]
      35 | #define PAGE_SIZE       (_AC(1,UL) << PAGE_SHIFT)
         |                         ^
   drivers/net/ethernet/intel/ice/ice_fwlog.c:41:35: note: in expansion of macro 'PAGE_SIZE'
      41 |                 ring->data_size = PAGE_SIZE;
         |                                   ^~~~~~~~~


vim +35 arch/mips/include/asm/page.h

^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  16  
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  17  /*
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  18   * PAGE_SHIFT determines the page size
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  19   */
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  20  #ifdef CONFIG_PAGE_SIZE_4KB
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  21  #define PAGE_SHIFT	12
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  22  #endif
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  23  #ifdef CONFIG_PAGE_SIZE_8KB
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  24  #define PAGE_SHIFT	13
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  25  #endif
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  26  #ifdef CONFIG_PAGE_SIZE_16KB
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  27  #define PAGE_SHIFT	14
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  28  #endif
c52399bece85cd arch/mips/include/asm/page.h Ralf Baechle   2009-04-02  29  #ifdef CONFIG_PAGE_SIZE_32KB
c52399bece85cd arch/mips/include/asm/page.h Ralf Baechle   2009-04-02  30  #define PAGE_SHIFT	15
c52399bece85cd arch/mips/include/asm/page.h Ralf Baechle   2009-04-02  31  #endif
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  32  #ifdef CONFIG_PAGE_SIZE_64KB
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  33  #define PAGE_SHIFT	16
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  34  #endif
99502d94c3649c arch/mips/include/asm/page.h Nelson Elhage  2009-07-31 @35  #define PAGE_SIZE	(_AC(1,UL) << PAGE_SHIFT)
800dc4f49cc002 arch/mips/include/asm/page.h Dan Williams   2016-01-22  36  #define PAGE_MASK	(~((1 << PAGE_SHIFT) - 1))
^1da177e4c3f41 include/asm-mips/page.h      Linus Torvalds 2005-04-16  37  

:::::: The code at line 35 was first introduced by commit
:::::: 99502d94c3649c5c5e6e81e323caf422a2f1591c MIPS: make page.h constants available to assembly.

:::::: TO: Nelson Elhage <nelhage@ksplice.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

only message in thread, other threads:[~2023-07-24 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-24 12:13 [Intel-wired-lan] [tnguy-next-queue:dev-queue 44/51] arch/mips/include/asm/page.h:35:25: warning: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '65536' to '0' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox