From: Yueyi Li <liyueyi@live.com>
To: Wei Yang <richard.weiyang@gmail.com>
Cc: "akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"mhocko@suse.com" <mhocko@suse.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] memblock: Anonotate memblock_is_reserved() with __init_memblock.
Date: Wed, 5 Dec 2018 05:37:37 +0000 [thread overview]
Message-ID: <BLUPR13MB02891C690507E91D0581E79FDFA80@BLUPR13MB0289.namprd13.prod.outlook.com> (raw)
In-Reply-To: <20181204030415.zpcvbzh5gxz5hxc6@master>
On 2018/12/4 11:04, Wei Yang wrote:
> On Mon, Dec 03, 2018 at 04:00:08AM +0000, Yueyi Li wrote:
>> Found warning:
>>
>> WARNING: EXPORT symbol "gsi_write_channel_scratch" [vmlinux] version generation failed, symbol will not be versioned.
>> WARNING: vmlinux.o(.text+0x1e0a0): Section mismatch in reference from the function valid_phys_addr_range() to the function .init.text:memblock_is_reserved()
>> The function valid_phys_addr_range() references
>> the function __init memblock_is_reserved().
>> This is often because valid_phys_addr_range lacks a __init
>> annotation or the annotation of memblock_is_reserved is wrong.
>>
>> Use __init_memblock instead of __init.
> Not familiar with this error, the change looks good to me while have
> some questions.
>
> 1. I don't see valid_phys_addr_range() reference memblock_is_reserved().
> This is in which file or arch?
Yes, I modified valid_phys_addr_range() for some other debugging.
> 2. In case a function reference memblock_is_reserved(), should it has
> the annotation of __init_memblock too? Or just __init is ok? If my
> understanding is correct, annotation __init is ok. Well, I don't see
> valid_phys_addr_range() has an annotation.
> 3. The only valid_phys_addr_range() reference some memblock function is
> the one in arch/arm64/mm/mmap.c. Do we suppose to add an annotation to
> this?
Actually, __init_memblock is null in arch arm64, this warning is due to
CONFIG_DEBUG_SECTION_MISMATCH enabled, the help text in lib/Kconfig.debug.
Thanks,
Yueyi
next prev parent reply other threads:[~2018-12-05 5:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-03 4:00 Yueyi Li
2018-12-03 9:09 ` Michal Hocko
2018-12-03 11:09 ` David Hildenbrand
2018-12-03 17:46 ` Mike Rapoport
2018-12-04 3:04 ` Wei Yang
2018-12-05 5:37 ` Yueyi Li [this message]
2018-12-05 6:59 ` Wei Yang
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=BLUPR13MB02891C690507E91D0581E79FDFA80@BLUPR13MB0289.namprd13.prod.outlook.com \
--to=liyueyi@live.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=richard.weiyang@gmail.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