mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rong Chen <rong.a.chen@intel.com>
To: "Jürgen Groß" <jgross@suse.com>, "kernel test robot" <lkp@intel.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org, Borislav Petkov <bp@suse.de>,
	Nick Desaulniers <ndesaulniers@google.com>
Subject: Re: [kbuild-all] Re: WARNING: modpost: vmlinux.o(.text+0x1a8edb8): Section mismatch in reference from the function stop_machine() to the function .init.text:intel_rng_hw_init()
Date: Thu, 25 Feb 2021 16:17:21 +0800	[thread overview]
Message-ID: <a7013b23-af0b-e1dd-324c-904a536d9f01@intel.com> (raw)
In-Reply-To: <83ab58cb-581f-135f-21fd-05c15860cafa@suse.com>



On 2/24/21 10:26 PM, Jürgen Groß wrote:
> On 24.02.21 15:20, kernel test robot wrote:
>> tree: 
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
>> master
>> head:   c03c21ba6f4e95e406a1a7b4c34ef334b977c194
>> commit: ab234a260b1f625b26cbefa93ca365b0ae66df33 x86/pv: Rework 
>> arch_local_irq_restore() to not use popf
>> date:   2 weeks ago
>> config: x86_64-randconfig-a005-20210223 (attached as .config)
>> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
>> f14a14dd2564703db02f80c00db8ae492b594f77)
>> 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
>>          # install x86_64 cross compiling tool for clang build
>>          # apt-get install binutils-x86-64-linux-gnu
>>          # 
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ab234a260b1f625b26cbefa93ca365b0ae66df33
>>          git remote add linus 
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>          git fetch --no-tags linus master
>>          git checkout ab234a260b1f625b26cbefa93ca365b0ae66df33
>>          # save the attached .config to linux build tree
>>          COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 
>> ARCH=x86_64
>>
>> 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 <<):
>>
>>>> WARNING: modpost: vmlinux.o(.text+0x1a8edb8): Section mismatch in 
>>>> reference from the function stop_machine() to the function 
>>>> .init.text:intel_rng_hw_init()
>> The function stop_machine() references
>> the function __init intel_rng_hw_init().
>> This is often because stop_machine lacks a __init
>> annotation or the annotation of intel_rng_hw_init is wrong.
>
> I'd be very interested to know how the identified patch would be able to
> have this effect.

Hi Clang Team,

The problem is found by the latest clang, and I can't reproduce it with 
clang-11,
could you take a look?

Best Regards,
Rong Chen

  reply	other threads:[~2021-02-25  8:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-24 14:20 kernel test robot
2021-02-24 14:26 ` Jürgen Groß
2021-02-25  8:17   ` Rong Chen [this message]
2021-02-25 18:34     ` [kbuild-all] " Nathan Chancellor
2021-02-25 21:15       ` Nick Desaulniers

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=a7013b23-af0b-e1dd-324c-904a536d9f01@intel.com \
    --to=rong.a.chen@intel.com \
    --cc=bp@suse.de \
    --cc=clang-built-linux@googlegroups.com \
    --cc=jgross@suse.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=ndesaulniers@google.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

all inboxes | Powered by JetHome®