linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Zaibo, Xu," <xuzaibo@huawei.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Herbert Xu <herbert@gondor.apana.org.au>,
	Longfang Liu <liulongfang@huawei.com>
Subject: arch/ia64/include/asm/page.h:42:20: warning: conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '4294967296' to '0'
Date: Wed, 3 Jun 2020 19:04:00 +0800	[thread overview]
Message-ID: <202006031949.qgp4SdGk%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d6f9469a03d832dcd17041ed67774ffb5f3e73b3
commit: 416d82204df44ef727de6eafafeaa4d12fdc78dc crypto: hisilicon - add HiSilicon SEC V2 driver
date:   6 months ago
config: ia64-randconfig-r026-20200603 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 416d82204df44ef727de6eafafeaa4d12fdc78dc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from arch/ia64/include/asm/ptrace.h:46,
from arch/ia64/include/asm/processor.h:20,
from include/linux/mutex.h:19,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dma-mapping.h:7,
from drivers/crypto/hisilicon/sgl.c:3:
drivers/crypto/hisilicon/sgl.c: In function 'hisi_acc_create_sgl_pool':
>> arch/ia64/include/asm/page.h:42:20: warning: conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '4294967296' to '0' [-Woverflow]
42 | #define PAGE_SIZE  (__IA64_UL_CONST(1) << PAGE_SHIFT)
|                    ^
>> drivers/crypto/hisilicon/sgl.c:69:15: note: in expansion of macro 'PAGE_SIZE'
69 |  block_size = PAGE_SIZE * (1 << (MAX_ORDER - 1));
|               ^~~~~~~~~

vim +42 arch/ia64/include/asm/page.h

^1da177e4c3f415 include/asm-ia64/page.h Linus Torvalds 2005-04-16  41  
^1da177e4c3f415 include/asm-ia64/page.h Linus Torvalds 2005-04-16 @42  #define PAGE_SIZE		(__IA64_UL_CONST(1) << PAGE_SHIFT)
^1da177e4c3f415 include/asm-ia64/page.h Linus Torvalds 2005-04-16  43  #define PAGE_MASK		(~(PAGE_SIZE - 1))
^1da177e4c3f415 include/asm-ia64/page.h Linus Torvalds 2005-04-16  44  

:::::: The code at line 42 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, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

                 reply	other threads:[~2020-06-03 11:05 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=202006031949.qgp4SdGk%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liulongfang@huawei.com \
    --cc=xuzaibo@huawei.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;
as well as URLs for NNTP newsgroup(s).