From patchwork Thu Jun 16 09:03:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9180113 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E68E360573 for ; Thu, 16 Jun 2016 09:06:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD593262F2 for ; Thu, 16 Jun 2016 09:06:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0DCA282FF; Thu, 16 Jun 2016 09:06:19 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4BA6C262F2 for ; Thu, 16 Jun 2016 09:06:18 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u5G92NdY018904; Thu, 16 Jun 2016 05:02:25 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u5G92LPb032222 for ; Thu, 16 Jun 2016 05:02:21 -0400 Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5G92LMv018427 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 16 Jun 2016 05:02:21 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7A379D4789; Thu, 16 Jun 2016 09:02:20 +0000 (UTC) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0Lx6wD-1bTBcu1Su1-016k5R; Thu, 16 Jun 2016 11:02:17 +0200 From: Arnd Bergmann To: Mike Snitzer Date: Thu, 16 Jun 2016 11:03:25 +0200 Message-Id: <20160616090359.984712-1-arnd@arndb.de> X-Provags-ID: V03:K0:5ig1hcGK4IhIj50kC2/gMVUyJCkTaNGJIFbWWtYuxKiS/qd9VxN CRGWeLHIciAvYExI/QAfjptqwRHdwITbaguLP5W3TlN7nE4BUWkAIYuXRConnd6UuNcffCK yvqi+XhNyS0nKQW3o4+jbT3kMWkmohrEhsyLzEggQpUKRxBzPTrdzorzG//PEkAhtlIcm46 AHftv3jxeVWX/nEjsa7xg== X-UI-Out-Filterresults: notjunk:1; V01:K0:1/wNLOvCjdY=:iykQNI9gO0A4TfSuJsCIhg Uzq2uxDMo2YME0tanyc8uaVXMrsk3a0OhcREwxbLEJ/gbs2KpSckcdFb0QS/KjaYExjYzGoxB 5igTiWmeG6eTvQjMnhD/gSC6d72h8+FGxvxkv1PfbNJdIg57/03cIkpyegkt4vXQC5coE551t sZuCMxI45qT4Ld74F9Pc7w68g/KZHcfHOwW9RASrYyT9SzXPjoYgF0fN2+iuecNrZk73zVtMw KsZz0LgyTZfUQE1/dYU4Jt10wD5FmYlh289QO/R5pF9YqGYUM8DNe7CM51PH45GgLXMyKMALh Kk8X4Qfh9k636A3RA7E5e4AqN0z4UaS4gAGWMb+AbqsC45h8w6eiAiSzCFvv1x5buOWYTNPNA xReUK95UcoC6grIxw46v/s1kAsrxhQf4DffyyFuAQsCnjwskEazv69aXXfoPHBsfQ0GxK/QPF PNra/eXQ7HAvjzRGinzPiagiwYh68iSStOwfqqxMaweVOmbrW5kifSmLz8vJv4EJ3lfq4iQZF xp6y1glnlw8DS8lpqvVwGEYEsuUMSrWkDM0AQQwqA0/zVStXgIwpEmU7NRxMuMbNiLqbOc8eb mxG3c/+C3CxyJDtaGanDOwH57KCd/iyI0UjELjb8Q0YYma2pRqtsGC2OM5VXaWgA4Z/E6wCI+ iFm8jsbB7gCj07Uq1P+WdThgXHYfiSipybbPuzDygCWUObcm/Idru1upFwmTnqphP+ro= X-Greylist: Sender IP whitelisted by DNSRBL, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 16 Jun 2016 09:02:21 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 16 Jun 2016 09:02:21 +0000 (UTC) for IP:'217.72.192.74' DOMAIN:'mout.kundenserver.de' HELO:'mout.kundenserver.de' FROM:'arnd@arndb.de' RCPT:'' X-RedHat-Spam-Score: 0.789 (BAYES_50, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2) 217.72.192.74 mout.kundenserver.de 217.72.192.74 mout.kundenserver.de X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.39 X-loop: dm-devel@redhat.com Cc: Arnd Bergmann , Heinz Mauelshagen , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, dm-devel@redhat.com, Shaohua Li , Alasdair Kergon Subject: [dm-devel] [PATCH] dm raid: don't use 'const' in function return X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP A newly introduced function has 'const int' as the return type, but as "make W=1" reports, that has no meaning: drivers/md/dm-raid.c:510:18: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers] This changes the return type to plain 'int'. Signed-off-by: Arnd Bergmann Fixes: 33e53f06850f ("dm raid: introduce extended superblock and new raid types to support takeover/reshaping") Acked-by: Geert Uytterhoeven --- drivers/md/dm-raid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index 96bcff7a0b94..55d25ac87bda 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -507,7 +507,7 @@ static const char *raid10_md_layout_to_format(int layout) } /* Return md raid10 algorithm for @name */ -static const int raid10_name_to_format(const char *name) +static int raid10_name_to_format(const char *name) { if (!strcasecmp(name, "near")) return ALGORITHM_RAID10_NEAR;