Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7244057imu; Mon, 3 Dec 2018 09:48:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/XtM/pJSWK9JgGFsnQ7jgTWRlnYXYWRmFxMEbgNVENA06/v56VnYQwNvh3o2MbSJ0Vi5rpK X-Received: by 2002:a65:55ca:: with SMTP id k10mr13851221pgs.448.1543859285237; Mon, 03 Dec 2018 09:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543859285; cv=none; d=google.com; s=arc-20160816; b=nuem/GXI0aWe1Q3w8hEVjzJ634imo0SAldlkqU5k0i+a34I61G1WDzm+jhqZtdSyp/ P9Ez4Bv4T2sFu8MzgtMfPNkPp7EvZhaDTsG0KvDpZTX7X0ZRzaMBj7Jos+65EPsDIwOI 6lqXTpt3wZ4y9fMM34JDHJ5x5xVqekn5JnPErbRi8QvPsgt5ISx/Y7eHbQapzAHpU3EM Mh1xUvBhD8YJLN2JQNjtogYQwNMSItab39wXf/OVcoWB78keizVJz+eL55fXNMaVtKiS U66yHsCSsnkYIiE73eOHvFuTyAkYFY8KB9DkFqutqnLyykzHY4YSGGLy4ppaVrMd5yaB vZ+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=VxlghO17NvNGDettwEKghQUKiANPJudUEY9RdKbWOR4=; b=U+3pV1diW0VddjABFe/QGmgThUNxPcIJf3HnuuB7tK2F8fzDbJUh17DHc8Wemkmj8c +pYjkiTe5j36Gx0ZEYqZrrdAUVj+42JEmc2F4eAgg7ZjtC/LFdoq0tlYyjM/sE+aDkKf 1LDxbScx1bYD8ZqdiYWeCVMsxi+8iTJcNCzwkvNDDZ0lOwpwqRZSASO+vJAGHHTkF+O4 fqE587I9Egnd57o1LBDt6R05KafgyZxszMShj9aMmagBAz6eq/kGvSFwm5F6y7ko02ga MgYTpGzKQ6c32iTs/PPXRLBWo9cZ46CzcvDiqbKkjAA9gKYfYLzB7rhReNoT4OhpQFC7 HKlw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b60si14705730plc.95.2018.12.03.09.47.49; Mon, 03 Dec 2018 09:48:05 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726927AbeLCRq4 (ORCPT + 99 others); Mon, 3 Dec 2018 12:46:56 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:45930 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726657AbeLCRqz (ORCPT ); Mon, 3 Dec 2018 12:46:55 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wB3HibbX001188 for ; Mon, 3 Dec 2018 12:46:52 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2p588nu5re-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 03 Dec 2018 12:46:52 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 3 Dec 2018 17:46:50 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 3 Dec 2018 17:46:47 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wB3HkkvI30670982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 3 Dec 2018 17:46:46 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 20FB24C04A; Mon, 3 Dec 2018 17:46:46 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6C3BA4C040; Mon, 3 Dec 2018 17:46:45 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.206.196]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 3 Dec 2018 17:46:45 +0000 (GMT) Date: Mon, 3 Dec 2018 19:46:43 +0200 From: Mike Rapoport To: Yueyi Li Cc: "akpm@linux-foundation.org" , "mhocko@suse.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] memblock: Anonotate memblock_is_reserved() with __init_memblock. References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18120317-0008-0000-0000-0000029C46C4 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18120317-0009-0000-0000-00002206A1E9 Message-Id: <20181203174642.GD26700@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-03_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812030164 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > Signed-off-by: liyueyi Acked-by: Mike Rapoport > --- > > 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 > -- Sincerely yours, Mike.