Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
	Intel Wired LAN <intel-wired-lan@lists.osuosl.org>,
	oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Mon, 24 Jul 2023 20:13:23 +0800	[thread overview]
Message-ID: <202307242017.3f4YsHnA-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-07-24 12:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202307242017.3f4YsHnA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=paul.m.stillwell.jr@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox