From patchwork Fri Mar 12 10:55:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12134301 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 1DB23C4361A for ; Fri, 12 Mar 2021 10:56:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE06165004 for ; Fri, 12 Mar 2021 10:56:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233594AbhCLKz5 (ORCPT ); Fri, 12 Mar 2021 05:55:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233659AbhCLKzh (ORCPT ); Fri, 12 Mar 2021 05:55:37 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC6E8C061574 for ; Fri, 12 Mar 2021 02:55:36 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id d139-20020a1c1d910000b029010b895cb6f2so14905240wmd.5 for ; Fri, 12 Mar 2021 02:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vi8YKLs5KwVaFxKjaiBjlz1cXBojpCCGEw35f+O4dtY=; b=j7z+uYOO70ltOQL4GOyJ9R0QdnV1jtke8K0pmYvPWlYRriz34DqdictipRn5zk3Mo/ O0K0zDmcVf4uDDvFx5S23C84JTNRg7lOGV7+4f7qkvrBkkpIQStciOGUSHZkqnsDoL8C 4IxxZi+EWkfaM5BuV6ann9TENAStt8F9Bxj7n3uwEqAbAiMYz/ajZVvvsF9BhgXBVoKi P76EL04h+oQXd7QgTqanT/t5HFnyk+GmYCKyA1z6vWKS8r2gToaHstOB/xGfUWlv8sd7 K/ncTZjlObIicuM2fuKkgRtj2KIKSotBzfq9D/F0jCoECyGSeYobxNUrXOY/h/oZje2i ftMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vi8YKLs5KwVaFxKjaiBjlz1cXBojpCCGEw35f+O4dtY=; b=KXF6SMWbRqUjNOh+oNN56ksJBX7AhB/NtjfluxxTRQEy/V8cYdxuUkBIwAQywMIHxl C9ZUMCk6ntDlnn+yFNDM/awEsLnEYnVRG+00KjZxVVr3U0haQfZFlp5HK7E18suqiLlz ZhfFLDMx2OTD5jQJIL0/qIWtrS+kbNsUbuyz9erN+Ltf9ZtxB0yrOjvqGp1QVqNt0lZT AnFLsr4OdVutEGWvsVA5bPvm2h4rTwUsmQrQkWRMWAMmEupgp/rkmLAabtMzZb57G8DL 1KLP15LdgAkx+lqkWgzn1WBoFPYTJoTt/3fR5i7O5pyhg0wSRrp/aRqSflXVitk/k7u2 iHGg== X-Gm-Message-State: AOAM530GpIqFUCe7bMGqKqebZJqObpmTz+5skfSNiKRBOcBWWDhzBnq+ KlfTa+dUVj2UwTZAo0FsYI3z6A== X-Google-Smtp-Source: ABdhPJxufQqTU/7eaFRbbpeWTbLrnhEtXNOYhKwbYlwIz6JMrKAesY7QxYtH1T3od8aL7PF83B+Qhg== X-Received: by 2002:a7b:c3c1:: with SMTP id t1mr12367552wmj.47.1615546535520; Fri, 12 Mar 2021 02:55:35 -0800 (PST) Received: from dell.default ([91.110.221.204]) by smtp.gmail.com with ESMTPSA id q15sm7264962wrr.58.2021.03.12.02.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 02:55:34 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Joshua Morris , Philip Kelleher , Jens Axboe , linux-block@vger.kernel.org Subject: [PATCH 01/11] block: rsxx: core: Remove superfluous const qualifier Date: Fri, 12 Mar 2021 10:55:20 +0000 Message-Id: <20210312105530.2219008-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210312105530.2219008-1-lee.jones@linaro.org> References: <20210312105530.2219008-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org This function returns a const string. The second const qualifier is not required. Fixes the following W=1 kernel build warning(s): drivers/block/rsxx/core.c:395:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] Cc: Joshua Morris Cc: Philip Kelleher Cc: Jens Axboe Cc: linux-block@vger.kernel.org Signed-off-by: Lee Jones Reviewed-by: Bart Van Assche --- 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 5ac1881396afb..813b0a554d4a8 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",