mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Chen, Rong A" <rong.a.chen@intel.com>
To: Helge Deller <deller@gmx.de>, kernel test robot <lkp@intel.com>,
	Masahiro Yamada <masahiroy@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: Re: [kbuild-all] Re: include/linux/smp.h:34:33: error: requested alignment '20' is not a positive power of 2
Date: Mon, 14 Feb 2022 17:10:27 +0800	[thread overview]
Message-ID: <a99e0842-09a5-878d-3235-ac117fef7403@intel.com> (raw)
In-Reply-To: <1c419d0f-9f37-9a7b-7353-44b6f2f2c11a@gmx.de>



On 2/14/2022 4:44 AM, Helge Deller wrote:
> On 2/13/22 10:59, kernel test robot wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   b81b1829e7e39f6cebdf6e4d5484eacbceda8554
>> commit: 5f6e0fe01b6b33894cf6f61b359ab5a6d2b7674e parisc: Fix compile failure when building 64-bit kernel natively
>> date:   6 months ago
>> config: parisc-randconfig-r004-20220213 (https://download.01.org/0day-ci/archive/20220213/202202131741.c6BPpfzd-lkp@intel.com/config)
>> compiler: hppa64-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/torvalds/linux.git/commit/?id=5f6e0fe01b6b33894cf6f61b359ab5a6d2b7674e
>>          git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>          git fetch --no-tags linus master
>>          git checkout 5f6e0fe01b6b33894cf6f61b359ab5a6d2b7674e
>>          # 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=parisc prepare
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>> All error/warnings (new ones prefixed by >>):
>>
>>     In file included from arch/parisc/include/asm/bitops.h:203,
>>                      from include/linux/bitops.h:32,
>>                      from include/linux/kernel.h:12,
>>                      from arch/parisc/include/asm/bug.h:5,
>>                      from include/linux/bug.h:5,
>>                      from include/linux/page-flags.h:10,
>>                      from kernel/bounds.c:10:
>>     include/asm-generic/bitops/__fls.h: In function '__fls':
>>>> include/asm-generic/bitops/__fls.h:18:28: warning: left shift count >= width of type [-Wshift-count-overflow]
>>        18 |         if (!(word & (~0ul << 32))) {
> 
> 
> This kind of build error usually happens if you use the 64-bit compiler
> (hppa64-linux-gcc) to compile a kernel config for a 32-bit kernel.
> 
> Looking at the config:
>> config: parisc-randconfig-r004-20220213 (https://download.01.org/0day-ci/archive/20220213/202202131741.c6BPpfzd-lkp@intel.com/config)
> CONFIG_64BIT is set to Y, so that's correct here.
> 
> But this is how you call the compiler:
>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc prepare
> 
> The "ARCH=parisc" is wrong in this case.
> You need:
> "ARCH=parisc64".
> This is starting with Linux kernel 5.14.
> Before "ARCH=parisc" worked for 32- and 64-bit kernels.
> 
> Can you adjust the call command?

Hi Helge,

Thanks for the feedback, we'll update it.

Best Regards,
Rong Chen

      reply	other threads:[~2022-02-14  9:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-13  9:59 kernel test robot
2022-02-13 20:44 ` Helge Deller
2022-02-14  9:10   ` Chen, Rong A [this message]

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=a99e0842-09a5-878d-3235-ac117fef7403@intel.com \
    --to=rong.a.chen@intel.com \
    --cc=deller@gmx.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=masahiroy@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®