Message ID | BLUPR13MB0289EFC5F40ADCAC2146F687DFAE0@BLUPR13MB0289.namprd13.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 D5E591057 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 3 Dec 2018 03:51:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0D722A9F8 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 3 Dec 2018 03:51:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4C692A98E; Mon, 3 Dec 2018 03:51:10 +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 0D2E82A98E for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 3 Dec 2018 03:51:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9A55C6B6707; Sun, 2 Dec 2018 22:51:08 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 952D76B6708; Sun, 2 Dec 2018 22:51:08 -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 842906B6709; Sun, 2 Dec 2018 22:51:08 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by kanga.kvack.org (Postfix) with ESMTP id 417AE6B6707 for <linux-mm@kvack.org>; Sun, 2 Dec 2018 22:51:08 -0500 (EST) Received: by mail-pl1-f199.google.com with SMTP id v2so9252741plg.6 for <linux-mm@kvack.org>; Sun, 02 Dec 2018 19:51:08 -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=JwMVRJP0Tg+SdOgkTSb7+5BinAzL5pXMv7v5qdeHE+Q=; b=pHE4LV1BCEQ5l1PlcWhQoaaDZaDNj72AXwaqYkjOKvd5fttPfnaLcB67IZuu515YlY zLsB4+UA57mTPEQhhYZ/jCcjoFOGlzBFA8ygsNaytLUDTCpx5T09DBWaa3NM/aBexNiL 5Ft2BXSMeyjs754cGb946KHm6GFdHEM6bnEurfCaIVQkrXbl/WEv44pCvsKsPpq71QT4 zL2wQyXUqHYVIhUMsWBnTfYAaQzG6ImIxcappoD/lD3nSy7ZMKVL2VyfVCui133j1YAP sqzzviK3v5YGiaR65Q7zJ4vX35ExSJ+E//2NwDQdmK0tNBuSFsQcKN2c178l3pXNKQHp RRSA== X-Gm-Message-State: AA+aEWZBjxF8HQVyFDR00OWuusNc2VhvSZBLQmfXqH/WJr1NG5Fj5BDg 1iFZ57oryaV9ywbVMnclQ/K0sVHlsjaECL8kkKOujW8hHn2/vgyyodUU0Ci7hU1B7kAUwBWvjRC hizzrH6ArAKOcVdSDL/GcSS480b80qsygbZ1E+H1WgcPisftN9tvgcwoNQgjBwy64/w== X-Received: by 2002:a63:d10:: with SMTP id c16mr12106778pgl.382.1543809067758; Sun, 02 Dec 2018 19:51:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/VNrMsqiuon2MrfKUTgDBodlpWmJWqAiaXoN14CSt/grjsMJ1LFSL4NoVo49jw3mJeesdty X-Received: by 2002:a63:d10:: with SMTP id c16mr12106733pgl.382.1543809066735; Sun, 02 Dec 2018 19:51:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543809066; cv=none; d=google.com; s=arc-20160816; b=RDc/kCtu8cVlrgnAWbkXTh3fAIz72x2Gju1ATILyvq3yh3c21WGNI2yPRo62CK7/4H IKUpo5cSSwI9Ob6iOJYZ2CHmlSB58+y24d57aOYybH+eNiJmjG9tjz0pnNRyOMCeaXNX yp9ralEVp641ucGkQN8kQrLjaSu4HlxACFmHNG9NAO+itotAcqrzlO7fW5hSb554YRMb vEZCa/6Zl4rKhtCbZV6R/iFdV1AgKAwMPfoOM4c4ny6qzqZDIY1vZ9IBDi8NSJDUlpVO HxzVCXGFMMsuLrG432Ss1GvOzgkEMbcS5oVylk07tv7ZEPi1PSD0G4OGOLiqujJ2K74m uUsg== 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=JwMVRJP0Tg+SdOgkTSb7+5BinAzL5pXMv7v5qdeHE+Q=; b=gJylULoAu5f/Lt9OANsuGZSUvfMVXewbcem3qA6EOcNCA4ygUmriorxyjlhNPVWzAU KJw8OBNrIHqnl3Cq6wK4OtObKAKvqpXWYDn4mFFTg2ruVfNN18lvVT13J6QKX/IaI3ZV 0riL6+BfdPFAUGeg+Mu1E4ybdxoxlPvLoglKMK8vjNRO34yuNgcnJ+ZKhxOvi5QdOfcN gHgyw6Eu5hIclD8dtIZUenmJEjRUqcn5IwNxlN7QI2j7/A6ZQAa9fROMabaxxsqPQPzB jrnuzjwze7OlDm61jQPvSXSEiTjsnifEYpy8uVg8mNqvgAoerbIqIZ6Uod+490gISLYE ZVEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=Ny7Udhkp; spf=pass (google.com: domain of liyueyi@live.com designates 40.92.8.20 as permitted sender) smtp.mailfrom=liyueyi@live.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=live.com Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-oln040092008020.outbound.protection.outlook.com. [40.92.8.20]) by mx.google.com with ESMTPS id o6si13058724plh.23.2018.12.02.19.51.06 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Dec 2018 19:51:06 -0800 (PST) Received-SPF: pass (google.com: domain of liyueyi@live.com designates 40.92.8.20 as permitted sender) client-ip=40.92.8.20; Authentication-Results: mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=Ny7Udhkp; spf=pass (google.com: domain of liyueyi@live.com designates 40.92.8.20 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=JwMVRJP0Tg+SdOgkTSb7+5BinAzL5pXMv7v5qdeHE+Q=; b=Ny7UdhkpRQDTwcaiS5OOgSecJ/uEjoWRFSCH80EDqy+xUZQnbfhgW6omL0VD8ZQm/Sh7QzAeNIFmx9SarBXmTTJrb0k/AadXz2lQWuQ9kOHbk0nZTR7odvHuT2Ynlzzrd2KlOKCTK5tKz+pQm1+N0bhWh+McbLQcmiLAyrx02L6q/Ji8BvLVX6CAc5E0SGvdqn4yYGxlvYbqhuPOtojd4ApslmXJ7+Icd9dc8PwWpjkXLTHjDoICSXNiT6oVln8Q0xuM2rmd8/Ku5p1guzHO/Lu7NFeUXCawPPxy2cMuLI/V7YRHJyXl+VB7qjeiZvcPpIiHTaBY0QmaxaLEe1mHyA== Received: from DM3NAM03FT030.eop-NAM03.prod.protection.outlook.com (10.152.82.57) by DM3NAM03HT210.eop-NAM03.prod.protection.outlook.com (10.152.83.14) 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 03:51:05 +0000 Received: from BLUPR13MB0289.namprd13.prod.outlook.com (10.152.82.55) by DM3NAM03FT030.mail.protection.outlook.com (10.152.82.203) 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 03:51:05 +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 03:51:05 +0000 From: Yueyi Li <liyueyi@live.com> To: "akpm@linux-foundation.org" <akpm@linux-foundation.org>, "mhocko@suse.com" <mhocko@suse.com> CC: "linux-mm@kvack.org" <linux-mm@kvack.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Subject: [PATCH] memblock: Anonotate memblock_is_reserved() with __init_memblock. Thread-Topic: [PATCH] memblock: Anonotate memblock_is_reserved() with __init_memblock. Thread-Index: AQHUirtqtuzF7rWp1EuMR6Zuhke7FQ== Date: Mon, 3 Dec 2018 03:51:05 +0000 Message-ID: <BLUPR13MB0289EFC5F40ADCAC2146F687DFAE0@BLUPR13MB0289.namprd13.prod.outlook.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR02CA0148.apcprd02.prod.outlook.com (2603:1096:202:16::32) To BLUPR13MB0289.namprd13.prod.outlook.com (2a01:111:e400:5951::22) x-incomingtopheadermarker: OriginalChecksum:23A99CE9DFD4FE9E963AD6BE761DFC59F0B1960D1B5B24B31F3AA52EEF89D03E;UpperCasedChecksum:94C04BC4F8988D58C468B80510F4369B15FDA4F097C793F3E790E45DC7569440;SizeAsReceived:7472;Count:48 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [DBXn40p1D61h5wf6KYr6VyOjwh7yHJ/y] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM3NAM03HT210;6:fiLjNPdCa83hchLSAUFl2zRV//iV3iZ7r8fczHmj3Ge/686ElnItRro5O2+qbNBL0flRUvgWE5QZ2Ydnm60dW9m1fry2r9bi2fP/3Aij7cY9Ba9wHB2ob+fJSj2WxAWOZ3b7Xjq1Jy87ePHq740I1fgZK+qibMwpPBaDto7ITq3ASUF+aw8P8RPWPdvdkZrDCkXAmRSqLn2vcmUlKPALws/fDl87jehxtAMxvP5YC2HcaBg4nGgUY8ZcxDUTcuQRLafOAlt7bTVEAYnJQuUJV1Jb7ifZhFJJiIbC+Sxrjfb+KnV2poi0UyCGMCw9uTqGQ8KDeeuRUCygnXahDNsRFM6eeLh1hndMDUR5mN1oyhnSGksnolsQmb3tnqrUBfo2TI6C9xbbeGS5gh2T5e7rcgjrVVXquEv4c6ng1vzwtAke31scPj6S0U44oz1CdC5ixZlHdobmMuZSBOnWR7/lfA==;5:Yh8NmZILjE4CghzQ1DOPo4tl0CUb3zDS6cZdN+U4fJ4ZDxIhHocTIy7wJnOWLMNZv58fD6rzpiLqgcl8ZiJhcjUAto5MN+caSTGaQgrU2zvUpmfq2c7TZI5LwAHlx3GGZ+i+BJcuQiPYhYFkP3M3F9M6+fkHYQzsE5O1AEKTle8=;7:WZNCEFl+v6OnHKIqWXvCjoy0GyVFuLaRnFo8rPlcLGIe7jMi9Ih0i4XexWYzey4Ug+7PEDX98spHCTluL4hoc4yHpme/9A9jIWmajrur74gOtNkEmt98ndcSRsNLb5JJD3RtvYILCh07QMURbN1g8g== 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:DM3NAM03HT210; x-ms-traffictypediagnostic: DM3NAM03HT210: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(4566010)(82015058);SRVR:DM3NAM03HT210;BCL:0;PCL:0;RULEID:;SRVR:DM3NAM03HT210; x-microsoft-antispam-message-info: OsWRV2+ZgZmp8Pmjpjw4S+D50uoOnamQz5H2gDVTPMeleByiT4ySIsq9R2s7aD4o Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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: 09d3d101-f355-47ea-7570-08d658d28ca6 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: f12efbb0-867f-4c93-8261-502eceebfafa X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Dec 2018 03:51:05.4349 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3NAM03HT210 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
memblock: Anonotate memblock_is_reserved() with __init_memblock.
|
expand
|
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; }
Found warring: 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 <liyueyi@live.com> --- mm/memblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)