From patchwork Tue Mar 23 21:57:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12159461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6FA0C433E2 for ; Tue, 23 Mar 2021 21:58:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 77B8361931 for ; Tue, 23 Mar 2021 21:58:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233663AbhCWV6Q (ORCPT ); Tue, 23 Mar 2021 17:58:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:34800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233630AbhCWV55 (ORCPT ); Tue, 23 Mar 2021 17:57:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 87955619D1; Tue, 23 Mar 2021 21:57:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616536677; bh=8EtGiHDV0aGfT6JHT+y8795nI5qrUiRVp2/1aJHgw3Y=; h=From:To:Cc:Subject:Date:From; b=Y6HWEAfJnMhDMS30qt92NgDTbvw6z2SvltX0zWvOBGC+Aq4XD42KCSK9aYwjYALH9 7N5oQUlCAXsNln2A6HUuZH5spYzMZEPaQVm6mKYwjBNmADVqF7QOpucHszg8oirOsL h7hrD+8gENTosITtjfpQ2Jzh93nIazoQ6rO+uMfF0aDAP3AGf/D92uRdt1cjIMn2VS pQP071aW3wTtLePyD6hS/qkn6zZte2vp/Gj8T2iE4pLRo/n4/LQIU9GQYOz0w6eNjS Tc0mXVoopoVuprZmhLQ8kuqFlC9cxH8Dq++C9NUD88z8n9pMeCXg7B2rd0e5EYtRMp X81FOjyEq92lg== From: Arnd Bergmann To: Joshua Morris , Philip Kelleher , Jens Axboe Cc: Arnd Bergmann , Nick Desaulniers , Nathan Chancellor , "Gustavo A. R. Silva" , Philip J Kelleher , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] rsxx: remove extraneous 'const' qualifier Date: Tue, 23 Mar 2021 22:57:26 +0100 Message-Id: <20210323215753.281668-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org From: Arnd Bergmann The returned string from rsxx_card_state_to_str is 'const', but the other qualifier doesn't change anything here except causing a warning with 'clang -Wextra': drivers/block/rsxx/core.c:393:21: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] static const char * const rsxx_card_state_to_str(unsigned int state) Fixes: f37912039eb0 ("block: IBM RamSan 70/80 trivial changes.") Reviewed-by: Nick Desaulniers Signed-off-by: Arnd Bergmann --- drivers/block/rsxx/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/rsxx/core.c b/drivers/block/rsxx/core.c index 5ac1881396af..813b0a554d4a 100644 --- a/drivers/block/rsxx/core.c +++ b/drivers/block/rsxx/core.c @@ -392,7 +392,7 @@ static irqreturn_t rsxx_isr(int irq, void *pdata) } /*----------------- Card Event Handler -------------------*/ -static const char * const rsxx_card_state_to_str(unsigned int state) +static const char *rsxx_card_state_to_str(unsigned int state) { static const char * const state_strings[] = { "Unknown", "Shutdown", "Starting", "Formatting",