From patchwork Fri Jun 13 16:40:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 4351061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 778BCBEEAA for ; Fri, 13 Jun 2014 16:43:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F31F5201BF for ; Fri, 13 Jun 2014 16:43:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD24E201DD for ; Fri, 13 Jun 2014 16:43:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WvUXT-00071I-IL; Fri, 13 Jun 2014 16:41:15 +0000 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WvUXQ-0006uc-OP for linux-arm-kernel@lists.infradead.org; Fri, 13 Jun 2014 16:41:13 +0000 Received: by mail-pd0-f171.google.com with SMTP id ft15so2296052pdb.30 for ; Fri, 13 Jun 2014 09:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=T3Yh9pwZP5f6ErkJ6wAWKRcKVk2APz761++OZduGcO8=; b=Mwz+TFm9SjfPo5XKwiQ0A92DduAYUFIGkwmgV/kefvj0havxooFU0+CpEtMVFQmXAR eG+qC56PUJ/yfiQkf79uyYcQ6dXyr+xhuprcOk/5JSSI/x6KebJWDV5cYO0joDDZrKwD kc9VoRQfM98R8A+cWacj8NlQN7kxZN2NynbHOT8THu51nhZyFYVxDQFBFwnAOdzCfQck CGaUdogq3T/SsCSLhFiU8s0MWC2zRqacTrcW5g8OdVGWPaCJbOapd+jJ9KZ01Mxf8X65 Tk53SfS9uJtEr0w/7Cq1AMBDvY2Cxffz5MM/c+EGiOq7uoDWrHTGvdmHPHHrcPKxLVX7 Kq7w== X-Received: by 10.66.219.6 with SMTP id pk6mr4754020pac.9.1402677650802; Fri, 13 Jun 2014 09:40:50 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by mx.google.com with ESMTPSA id ec2sm4466307pbc.63.2014.06.13.09.40.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Jun 2014 09:40:50 -0700 (PDT) From: Guenter Roeck To: Russell King Subject: [PATCH] arm: Fix build warning Date: Fri, 13 Jun 2014 09:40:35 -0700 Message-Id: <1402677635-28406-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140613_094112_810395_5B18E989 X-CRM114-Status: UNSURE ( 9.82 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 2.0 (++) Cc: Guenter Roeck , Vincent Guittot , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD,SUSPICIOUS_RECIPS,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If compiled with W=1, the following warning is seen in arm builds. arch/arm/kernel/topology.c:278:25: warning: type qualifiers ignored on function return type This is caused by a function returning 'const int', which doesn't make sense to gcc. Drop 'const' to fix the problem. Reported-by: Vincent Guittot Signed-off-by: Guenter Roeck Acked-by: David Rientjes --- 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 3997c41..cc52061 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -275,7 +275,7 @@ void store_cpu_topology(unsigned int cpuid) cpu_topology[cpuid].socket_id, mpidr); } -static inline const int cpu_corepower_flags(void) +static inline int cpu_corepower_flags(void) { return SD_SHARE_PKG_RESOURCES | SD_SHARE_POWERDOMAIN; }