From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mark:treewide/gnu99 2/2] arch/sh/include/asm/pgtable.h:39:31: error: left shift of negative value
Date: Fri, 14 Jan 2022 06:03:19 +0800 [thread overview]
Message-ID: <202201140534.ii9mlcnU-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3995 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git treewide/gnu99
head: 4c56f3c557cbc276326c329e05f64a53398affec
commit: 4c56f3c557cbc276326c329e05f64a53398affec [2/2] treewide: use -std=gnu99
config: sh-randconfig-r026-20220113 (https://download.01.org/0day-ci/archive/20220114/202201140534.ii9mlcnU-lkp(a)intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.2.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/mark/linux.git/commit/?id=4c56f3c557cbc276326c329e05f64a53398affec
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark treewide/gnu99
git checkout 4c56f3c557cbc276326c329e05f64a53398affec
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
cc1: error: arch/sh/include/mach-hp6xx: No such file or directory [-Werror=missing-include-dirs]
cc1: error: arch/sh/include/mach-hp6xx: No such file or directory [-Werror=missing-include-dirs]
In file included from include/linux/pgtable.h:6,
from arch/sh/include/asm/io.h:21,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from arch/sh/include/asm/hardirq.h:9,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from arch/sh/cchips/hd6446x/hd64461.c:11:
arch/sh/include/asm/pgtable.h: In function 'neff_sign_extend':
>> arch/sh/include/asm/pgtable.h:39:31: error: left shift of negative value [-Werror=shift-negative-value]
39 | #define NEFF_MASK (-1LL << NEFF)
| ^~
arch/sh/include/asm/pgtable.h:44:53: note: in expansion of macro 'NEFF_MASK'
44 | return (extended & NEFF_SIGN) ? (extended | NEFF_MASK) : extended;
| ^~~~~~~~~
arch/sh/cchips/hd6446x/hd64461.c: At top level:
arch/sh/cchips/hd6446x/hd64461.c:75:12: error: no previous prototype for 'setup_hd64461' [-Werror=missing-prototypes]
75 | int __init setup_hd64461(void)
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
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@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(a)lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mark:treewide/gnu99 2/2] arch/sh/include/asm/pgtable.h:39:31: error: left shift of negative value
Date: Fri, 14 Jan 2022 06:03:19 +0800 [thread overview]
Message-ID: <202201140534.ii9mlcnU-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git treewide/gnu99
head: 4c56f3c557cbc276326c329e05f64a53398affec
commit: 4c56f3c557cbc276326c329e05f64a53398affec [2/2] treewide: use -std=gnu99
config: sh-randconfig-r026-20220113 (https://download.01.org/0day-ci/archive/20220114/202201140534.ii9mlcnU-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.2.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/mark/linux.git/commit/?id=4c56f3c557cbc276326c329e05f64a53398affec
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark treewide/gnu99
git checkout 4c56f3c557cbc276326c329e05f64a53398affec
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
cc1: error: arch/sh/include/mach-hp6xx: No such file or directory [-Werror=missing-include-dirs]
cc1: error: arch/sh/include/mach-hp6xx: No such file or directory [-Werror=missing-include-dirs]
In file included from include/linux/pgtable.h:6,
from arch/sh/include/asm/io.h:21,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from arch/sh/include/asm/hardirq.h:9,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from arch/sh/cchips/hd6446x/hd64461.c:11:
arch/sh/include/asm/pgtable.h: In function 'neff_sign_extend':
>> arch/sh/include/asm/pgtable.h:39:31: error: left shift of negative value [-Werror=shift-negative-value]
39 | #define NEFF_MASK (-1LL << NEFF)
| ^~
arch/sh/include/asm/pgtable.h:44:53: note: in expansion of macro 'NEFF_MASK'
44 | return (extended & NEFF_SIGN) ? (extended | NEFF_MASK) : extended;
| ^~~~~~~~~
arch/sh/cchips/hd6446x/hd64461.c: At top level:
arch/sh/cchips/hd6446x/hd64461.c:75:12: error: no previous prototype for 'setup_hd64461' [-Werror=missing-prototypes]
75 | int __init setup_hd64461(void)
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
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
next reply other threads:[~2022-01-13 22:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 22:03 kernel test robot [this message]
2022-01-13 22:03 ` [mark:treewide/gnu99 2/2] arch/sh/include/asm/pgtable.h:39:31: error: left shift of negative value kernel test robot
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=202201140534.ii9mlcnU-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 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.