LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: kbuild-all@lists.01.org,
	"Darrick J. Wong" <darrick.wong@oracle.com>,
	linux-kernel@vger.kernel.org
Subject: [djwong-xfs:other-stuff-for-5.15 21/23] arch/sh/include/asm/pgtable.h:39:25: warning: left shift of negative value
Date: Wed, 4 Aug 2021 14:56:14 +0800	[thread overview]
Message-ID: <202108041404.HKEzdGr2-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git other-stuff-for-5.15
head:   1aa974ba9fad4f0ada9281690c0771dc74d26718
commit: 2c286bab5e5a4d47e58d84c7e4bb244ae0a1c0a7 [21/23] xfs: automatic resource cleanup of for_each_perag*
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 10.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
        # https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/commit/?id=2c286bab5e5a4d47e58d84c7e4bb244ae0a1c0a7
        git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
        git fetch --no-tags djwong-xfs other-stuff-for-5.15
        git checkout 2c286bab5e5a4d47e58d84c7e4bb244ae0a1c0a7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=sh 

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 >>):

   In file included from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_trace.c:6:
   arch/sh/include/asm/pgtable.h: In function 'neff_sign_extend':
>> arch/sh/include/asm/pgtable.h:39:25: warning: left shift of negative value [-Wshift-negative-value]
      39 | #define NEFF_MASK (-1LL << NEFF)
         |                         ^~
   arch/sh/include/asm/pgtable.h:44:46: note: in expansion of macro 'NEFF_MASK'
      44 |  return (extended & NEFF_SIGN) ? (extended | NEFF_MASK) : extended;
         |                                              ^~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
   Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
   Selected by
   - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
   - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +39 arch/sh/include/asm/pgtable.h

^1da177e4c3f41 include/asm-sh/pgtable.h Linus Torvalds 2005-04-16  32  
36bcd39dbca824 include/asm-sh/pgtable.h Paul Mundt     2007-11-10  33  /*
36bcd39dbca824 include/asm-sh/pgtable.h Paul Mundt     2007-11-10  34   * Effective and physical address definitions, to aid with sign
36bcd39dbca824 include/asm-sh/pgtable.h Paul Mundt     2007-11-10  35   * extension.
36bcd39dbca824 include/asm-sh/pgtable.h Paul Mundt     2007-11-10  36   */
36bcd39dbca824 include/asm-sh/pgtable.h Paul Mundt     2007-11-10  37  #define NEFF		32
36bcd39dbca824 include/asm-sh/pgtable.h Paul Mundt     2007-11-10  38  #define	NEFF_SIGN	(1LL << (NEFF - 1))
36bcd39dbca824 include/asm-sh/pgtable.h Paul Mundt     2007-11-10 @39  #define	NEFF_MASK	(-1LL << NEFF)
36bcd39dbca824 include/asm-sh/pgtable.h Paul Mundt     2007-11-10  40  

:::::: The code at line 39 was first introduced by commit
:::::: 36bcd39dbca824daffe16d607ae574b6edc7d31a sh: Split out 29-bit and 32-bit physical mode definitions.

:::::: TO: Paul Mundt <lethal@linux-sh.org>
:::::: CC: Paul Mundt <lethal@linux-sh.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: 54997 bytes --]

                 reply	other threads:[~2021-08-04  6:57 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=202108041404.HKEzdGr2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=darrick.wong@oracle.com \
    --cc=djwong@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: [djwong-xfs:other-stuff-for-5.15 21/23] arch/sh/include/asm/pgtable.h:39:25: warning: left shift of negative value' \
    /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

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).