Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6703974imu; Mon, 3 Dec 2018 01:11:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/X7lbHSBWvxgNrsfuBbxQ4lPumIFwx7lwH+o1oWvo2zn/DahBlzZ89c0zXQ5pKyCDe2F6yG X-Received: by 2002:a63:5664:: with SMTP id g36mr12467095pgm.313.1543828299794; Mon, 03 Dec 2018 01:11:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543828299; cv=none; d=google.com; s=arc-20160816; b=QgCjBjCChbu1sKOC2aiuenDdL0o/1r75fVhUkT3HtF/20P0fSAZsU42fXQLc+Qyozm pq5tluft5nt+FFYXzAAi/Gw2azK6TXR+yu3hs9wulxeD7pGckPoCw2yXZj9347EAwNtQ injw6runQh97cXWV3LqnRN3f3rPK2EcTq58fe8d1TK4+MiBkVmKSb4VXYuUvhOAadYs4 o7y4ewrnuaPuGciGVzX+3Co1cnhOtJ/c3mgAYW20hFr1y6RDjhs6g3vw5W4c44zuU7+0 yq1ZvDOJcAH6CXXCgVLsIXiOfsvcGsXKZWJsmFW7kWG8fusknJXAv5JenhCeM8CMjV0I cWTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+Q0et8SXE7oo5kj5d1t6oGiGXQVYjxSJ2dxlB8IRYjE=; b=Jx/f1ijZx14OudbpN37Cl2pf4NG6G5x++PkowWAXxyuJlrHRDXqmS7g6Vw88c0z4U3 +Tp4l4wkTXXubvM0uRwOFRYp6XDH3wtH5yeyb+K5Nc0DE8Qh48KeD5xQXefuUM85yTep 0WF6mt/mFPP8etocW8CWj1fR3HeMPXJqFlkO7nQiZwLk8yYaYjHyckKRwxzNcXS6vz3h 2W8Yp4KoC9YyQoenh7HMQ5gmk1wMytCXyRnBeF1U6oEqGEyMRqXEdnB/4URBmV7WNBZ4 jGEM09hsFZRbXcWLVhyUUCE0/RBDGvmbMEIv9oRYDDULIZmc42ME6HcfRzL9mATMmIt1 pJNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l30si2798778plg.113.2018.12.03.01.11.24; Mon, 03 Dec 2018 01:11:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725967AbeLCJJv (ORCPT + 99 others); Mon, 3 Dec 2018 04:09:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:57430 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725849AbeLCJJu (ORCPT ); Mon, 3 Dec 2018 04:09:50 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7F993AE3A; Mon, 3 Dec 2018 09:09:40 +0000 (UTC) Date: Mon, 3 Dec 2018 10:09:39 +0100 From: Michal Hocko To: Yueyi Li Cc: "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] memblock: Anonotate memblock_is_reserved() with __init_memblock. Message-ID: <20181203090939.GI31738@dhcp22.suse.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 03-12-18 04:00:08, 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. Yes, it really doesn't make much sense to stand this out of all other helpers. > Signed-off-by: liyueyi Acked-by: Michal Hocko > --- > > Changes v2: correct typo in 'warning'. > > mm/memblock.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/memblock.c b/mm/memblock.c > index 9a2d5ae..81ae63c 100644 > --- a/mm/memblock.c > +++ b/mm/memblock.c > @@ -1727,7 +1727,7 @@ static int __init_memblock memblock_search(struct memblock_type *type, phys_addr > return -1; > } > > -bool __init memblock_is_reserved(phys_addr_t addr) > +bool __init_memblock memblock_is_reserved(phys_addr_t addr) > { > return memblock_search(&memblock.reserved, addr) != -1; > } > -- > 2.7.4 > -- Michal Hocko SUSE Labs