From patchwork Wed May 22 10:03:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philippe Mazenauer X-Patchwork-Id: 10955531 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 2C6E11390 for ; Wed, 22 May 2019 10:03:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CD9728A4E for ; Wed, 22 May 2019 10:03:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 114A828B56; Wed, 22 May 2019 10:03:53 +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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,MALFORMED_FREEMAIL, MISSING_HEADERS,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 78C3828B57 for ; Wed, 22 May 2019 10:03:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:Message-ID:Date :Subject:From:Reply-To:To:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UkehibFyAUetu2o2YAddH7hhaiBK46P8rOQFdDiqVFI=; b=HLOAnbRMZVwaph AMsRX0TSOSFMY2UGBm4A4eZDKJTozwEk7z2gIhLIgfZ0aEz6A6Rh8X96FO+ldVtlD+uIpW5T9azZh SPW3G4SnOZcNsqUjooOjWdHKImy5xZ8sTBhTGOG1NE1m0rvYzbkfu76X/jUwyANrTtGMxQ9EIecgt 8lj4f/8pwj/0Uat4xAAdlem4yaA6TeWkQ0oagCYpRXeE7iXD58gIJHJQyEjL29qVk8qDqwnf6RMaC rM2YsQSFofMFskrt9A8+V2scwao9jbjNYOZMs+Wznz9NMVrp6yJdYpnuaIah6+/9PakrRDo5ZGMBb c11XpdNqRt+Hv9JC8zCw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTO66-000065-Oy; Wed, 22 May 2019 10:03:46 +0000 Received: from mail-db5eur03olkn0818.outbound.protection.outlook.com ([2a01:111:f400:fe0a::818] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTO5h-0008PB-0Y for linux-arm-kernel@lists.infradead.org; Wed, 22 May 2019 10:03:29 +0000 Received: from DB5EUR03FT027.eop-EUR03.prod.protection.outlook.com (10.152.20.60) by DB5EUR03HT010.eop-EUR03.prod.protection.outlook.com (10.152.20.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1922.16; Wed, 22 May 2019 10:03:18 +0000 Received: from VI1PR07MB4432.eurprd07.prod.outlook.com (10.152.20.52) by DB5EUR03FT027.mail.protection.outlook.com (10.152.20.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1922.16 via Frontend Transport; Wed, 22 May 2019 10:03:18 +0000 Received: from VI1PR07MB4432.eurprd07.prod.outlook.com ([fe80::91f:b1bb:a60a:fdc3]) by VI1PR07MB4432.eurprd07.prod.outlook.com ([fe80::91f:b1bb:a60a:fdc3%7]) with mapi id 15.20.1922.013; Wed, 22 May 2019 10:03:17 +0000 From: Philippe Mazenauer Subject: [PATCH] arm: topology: make function static Thread-Topic: [PATCH] arm: topology: make function static Thread-Index: AQHVEIWUn/i0+75iwk+EnwEgRCDTcw== Date: Wed, 22 May 2019 10:03:17 +0000 Message-ID: Accept-Language: de-CH, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR15CA0050.namprd15.prod.outlook.com (2603:10b6:301:4c::12) To VI1PR07MB4432.eurprd07.prod.outlook.com (2603:10a6:802:67::17) x-incomingtopheadermarker: OriginalChecksum:B2CF39FDFDD89AAA0052F75E9B8DCBAE08792BD69B67008FB2B3B2D5119C3C7F; UpperCasedChecksum:62CEE253371D47573478AC960DC26245A833E06E5F2A90DC4E1016866B5C54CB; SizeAsReceived:7452; Count:47 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [Te3Kow79IK5edHwUwcUouDi32pwLaVe6] x-microsoft-original-message-id: <20190522100255.157960-1-philippe.mazenauer@outlook.de> x-ms-publictraffictype: Email x-incomingheadercount: 47 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045); SRVR:DB5EUR03HT010; x-ms-traffictypediagnostic: DB5EUR03HT010: x-microsoft-antispam-message-info: 8WLtpJQc7MTNj3jj1KRuaXfkIkyIa7N5x35J8RRDo42SAEmVXeaDD0jvvl7OWX45A4ruKddmCyy1MPQxiN4pu7uMU+eP9g2SYMs6A1APSklzIyI5AP//bDhUXzjMAxABBY0vqLsAK/bhAaVnio36tkyFDn1DTXzXAmJnYTzS53a+Q+X2sXm2/K1URtOz+9Nb Content-ID: <2B3C6BEBC5B5E94FB67AC814F0603D07@eurprd07.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 9b07c1ee-b58f-479c-6977-08d6de9cb660 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2019 10:03:17.9347 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR03HT010 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190522_030321_229651_B92185E9 X-CRM114-Status: GOOD ( 12.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Philippe Mazenauer , Russell King , "moderated list:ARM PORT" , open list Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Make function cpu_corepower_mask() static, as it is only referenced in this file. ../arch/arm/kernel/topology.c:195:23: warning: no previous prototype for ‘cpu_corepower_mask’ [-Wmissing-prototypes] const struct cpumask *cpu_corepower_mask(int cpu) ^~~~~~~~~~~~~~~~~~ Signed-off-by: Philippe Mazenauer --- arch/arm/kernel/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 60e375ce1ab2..5c8075ec8065 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -192,7 +192,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu) * The current assumption is that we can power gate each core independently. * This will be superseded by DT binding once available. */ -const struct cpumask *cpu_corepower_mask(int cpu) +static const struct cpumask *cpu_corepower_mask(int cpu) { return &cpu_topology[cpu].thread_sibling; }