From patchwork Mon Dec 3 04:00:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yueyi Li X-Patchwork-Id: 10708617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EBEA413BF for ; Mon, 3 Dec 2018 04:00:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCEFC2A9E7 for ; Mon, 3 Dec 2018 04:00:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C101F2A9F8; Mon, 3 Dec 2018 04:00:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BD662A9E7 for ; Mon, 3 Dec 2018 04:00:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3CFC66B6712; Sun, 2 Dec 2018 23:00:11 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3805D6B6713; Sun, 2 Dec 2018 23:00:11 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 247846B6714; Sun, 2 Dec 2018 23:00:11 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by kanga.kvack.org (Postfix) with ESMTP id EAEBA6B6712 for ; Sun, 2 Dec 2018 23:00:10 -0500 (EST) Received: by mail-ot1-f70.google.com with SMTP id a89so4957034otc.8 for ; Sun, 02 Dec 2018 20:00:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:thread-topic :thread-index:date:message-id:accept-language:content-language :content-transfer-encoding:mime-version; bh=TzwWAoKUcExgrH2MIJNMLUHo6y9PHK+FjJ+WzJ/qCkc=; b=n26Wuusxbi+A0wQNxDAU/thbWUD4Ly8N9JJi+ndSTAG8xmj4/DAXd4unVIfbnMB6P0 eBt9IsGpEa+MgetCL8tX3ZRJhS/W9Sw6c5aedYeVQuv1PKGihX05u47kpan5ceiPu/lf SmOhrgvmow+F3EyGmMim0ZSn2QsW82s1S7AXH2m1A2Jl+Puem6EIEoESdkxo0MspAMZ7 /8h7vFsNN9aJP9lNYvB79wnvKENBU4S3V2ukGTbt0dbYqeYlfdYr2bjWqgd1Q5a8NkNf Dl3uSbisqTCewu7Z7cU3JLwI5PGscEDUnfRo3wgu8T9EGWVxWwRbad7eqfI/v70yUVxC U1kg== X-Gm-Message-State: AA+aEWYBZHePkNhHgsFIej5fSJaLEDQqlN7s6u1KApGacZYzJJ/nU5HS vA2RLDyFyjrrXYPS8Pzwrs4B7UwmYOYUpt2PFGZ91rS398uYgoGwkXXMQyGNOckLfP5CN+pIR4i KRkxKyejf2b70s/s5gJGzZ7bzwXJr6er7FXJFFvgCW1cKzCXkl+1bBn4HFe+T9TCdVA== X-Received: by 2002:aca:b954:: with SMTP id j81mr8589059oif.68.1543809610592; Sun, 02 Dec 2018 20:00:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/UT2fxt4HKvYJkHErNhWq7pblerXQUrt1MhY2c41O7Q71jFOvqYdGfJl65nmlWnjTnk3W8n X-Received: by 2002:aca:b954:: with SMTP id j81mr8589039oif.68.1543809610039; Sun, 02 Dec 2018 20:00:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543809610; cv=none; d=google.com; s=arc-20160816; b=hY33QfxdCMBkxK84y7Ww/G01rtX7x6QRq+Ej8eExMqQ4cZq5hTFc+9b3xx3owaQ2nI w47hFk/u4qwlEqYzRAHGBHu4oBV9JzNQHcIBpHuUFrVLyi26sPzpJuUiLzvLirlLCmPH /n8SXpvABbOBhpq4kHlL4dCkllAyEMKBlbz+cDojEvhVQUSjXaCQQqLaNEU75PYPt5w/ PNKmPgVi7u+SvS2p9tcJUk75WV1sXqJkbaEVV+9QuUfLcb6hNWCK1pg1TsvcdWRZ608m 4iQuPaVjPKH1QkNrHEhG+/3RMCZ1j8MojG2jVbOEUGRa67m0C6GQ3PeEVrayfJDU+pNH OfKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=TzwWAoKUcExgrH2MIJNMLUHo6y9PHK+FjJ+WzJ/qCkc=; b=Xe3PDfrwy+WjSd5UeCbbUqjykAP/hQZnUU4kb8RjqRR0+w+WF9kPT0t74oz7lDr75U ln39EO3+nzNmm6n+h1i7khbqlmWRz9/tMYAU0vVAWzL/Jqzx3+vH8VAAg0qFRGhZf/Eo tX6KxDOslgaIfcPMZXNaTStoYenf7tXJc14zOilDoyFA9Xu1SHkNvwYOeBFjEe9qKwWC mGWa6Vmp7zNhiMqIGPdai5Y+JWBvGXqQdFuFOyUvm74ltxNAqPZyJaT1GSEDV2Z37tUL JHV3iBYKc1c8YBxqEntSecaH2HOUELiwLg4OdVAJrHkTjGPiLUTVjang2I8qwGdfh6h2 gg9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=MBko6OJw; spf=pass (google.com: domain of liyueyi@live.com designates 40.92.6.28 as permitted sender) smtp.mailfrom=liyueyi@live.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=live.com Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-oln040092006028.outbound.protection.outlook.com. [40.92.6.28]) by mx.google.com with ESMTPS id r10si5130924oia.78.2018.12.02.20.00.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Dec 2018 20:00:10 -0800 (PST) Received-SPF: pass (google.com: domain of liyueyi@live.com designates 40.92.6.28 as permitted sender) client-ip=40.92.6.28; Authentication-Results: mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=MBko6OJw; spf=pass (google.com: domain of liyueyi@live.com designates 40.92.6.28 as permitted sender) smtp.mailfrom=liyueyi@live.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=live.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TzwWAoKUcExgrH2MIJNMLUHo6y9PHK+FjJ+WzJ/qCkc=; b=MBko6OJwUh+0We7pAxA21IEMKnleILD5GuIDSisDNDE9rMOeJsGra5WyZPmUxvXnBUvl/LoyPT/WggqFktbLm8jXHIGJ1GeQrIeRJfKAii1XtUgm8sPxK1NAnHMNEV1FSZA04pwBpWhMogETbSXGuEFTjxeu2/DXhtKIiAeHqmfZMH+CyYw9CeUcKuod+GDvlbWVFtOIKAqZ9QoAXkhc9B3/+D4zDu7plnt9m9UklKJMoVMUG5t8HQbSp5Z3yz0WVtJTOpR+Isk3QsFvJgpQmfcbvFYGnS5xi/jjaX9YlEGF28SiD/iF25eh3m6Hro84r0YuzMOmHWe1/OCZwRrXVA== Received: from DM3NAM03FT057.eop-NAM03.prod.protection.outlook.com (10.152.82.59) by DM3NAM03HT033.eop-NAM03.prod.protection.outlook.com (10.152.83.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.18; Mon, 3 Dec 2018 04:00:08 +0000 Received: from BLUPR13MB0289.namprd13.prod.outlook.com (10.152.82.55) by DM3NAM03FT057.mail.protection.outlook.com (10.152.83.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.18 via Frontend Transport; Mon, 3 Dec 2018 04:00:08 +0000 Received: from BLUPR13MB0289.namprd13.prod.outlook.com ([fe80::19ff:b7ea:dfaa:2ee3]) by BLUPR13MB0289.namprd13.prod.outlook.com ([fe80::19ff:b7ea:dfaa:2ee3%2]) with mapi id 15.20.1404.011; Mon, 3 Dec 2018 04:00:08 +0000 From: Yueyi Li To: "akpm@linux-foundation.org" , "mhocko@suse.com" CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH v2] memblock: Anonotate memblock_is_reserved() with __init_memblock. Thread-Topic: [PATCH v2] memblock: Anonotate memblock_is_reserved() with __init_memblock. Thread-Index: AQHUiryuEY3GC2m5nk+tSrupm8LKDg== Date: Mon, 3 Dec 2018 04:00:08 +0000 Message-ID: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0PR04CA0006.apcprd04.prod.outlook.com (2603:1096:203:36::18) To BLUPR13MB0289.namprd13.prod.outlook.com (2a01:111:e400:5951::22) x-incomingtopheadermarker: OriginalChecksum:CADF5910D62F21D2D326401D14BB064476FBF0BB36CF0A5BDF8CE38B049FE3A4;UpperCasedChecksum:E536723D6C0517F71A0ECBF994BB0A9E0B92DB6E73214B41E27BBAE9AC8EE109;SizeAsReceived:7477;Count:48 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [B3Rb1htbLpTDb18nu9reItHvZCPrRL8q] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM3NAM03HT033;6:2rh28tb+OIUqbSXtQ8XJ+1sf+tNwv7bNklPJI3IfsAm2JAzGsBwo1RrLxMB0q5rYOwBAmqmOqeucR5+48JsKQvOPpi4pCNrapw4MrEY17bQ0z49QFU5MFOC5ggu5/Xp3NL3hsQLLqBYkpX7a+i2de9YipHSvttan6EJJHMAA2nYgrZFkM1+Ot8a2o5iOthaCe7EAkIMeaQ1ybFtpMqXWnMmTL1Jm68u5vlvFLOD9FZ1PH87aZFa9MHWaeTrNoIKTXBnY1CE1hatCb74YIoiYfCvkb1l/WhKHJXBmhaFy2yHlwSE7Uk0G8zrhmGC9kzxwAcIbkcy6C9mmQhf6MVHAKl2tG1NRqAkdetuIPZ5Lo7h5oYU7SrnRIQmNA9IH7CT6U6OWlCoJE5sTOcPEZap1I+tb7aOU4lENlaFRB5YBYOD9o9F1RCAwLbDxMI9olxvBSx5cMKw77+gsAdFhlGEDXQ==;5:6AJCQxvnvLEZbE3l8o2dXiI5E5sOb9oQqK/uhia8GtWWQ/gWebq7bHmscKNnibhCkjprPP7/5AxgMEAHrYMnV2KCzOFJ+q3pT6D6Ly1qDKBDlVynG03Kudjk1sBgDjq8q1VG1W6VYzBTGKzvv5tM+SOKPLmoU30yEUgMbka7Pqk=;7:KMmaHkYRTc/YLE1pThgD6JSX1wzDoDP7qp5WoQX62dfUDmbZ/YPNJmL8/6zV4OiFUNMW8gpyUSxKLMWDanUar/H4fTqCVVGkhlGow6jfLmkIgeH04DAa84qM8t4GDAgfXIEZGhlx+D9YgyxGuD4lgg== x-incomingheadercount: 48 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101475)(1601125500)(1701031045);SRVR:DM3NAM03HT033; x-ms-traffictypediagnostic: DM3NAM03HT033: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(4566010)(82015058);SRVR:DM3NAM03HT033;BCL:0;PCL:0;RULEID:;SRVR:DM3NAM03HT033; x-microsoft-antispam-message-info: iC9GG0UfEaCYgowctpYH8QIqCyrbp5MRU9UgwYsFGBXSeM3jkZOihBdWV/r/u2KZ MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: f12efbb0-867f-4c93-8261-502eceebfafa X-MS-Exchange-CrossTenant-Network-Message-Id: ff09b059-f8d9-4936-1262-08d658d3d08c X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: f12efbb0-867f-4c93-8261-502eceebfafa X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Dec 2018 04:00:08.7032 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3NAM03HT033 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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: Michal Hocko Reviewed-by: David Hildenbrand 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; }