Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp479454pxb; Wed, 3 Mar 2021 07:56:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcCrIFNH2VHsFngoGvhdflvP4jwrlctLMGXXLt7tTbdq/DY/CwrR6Ej9rha999T7KVJXWD X-Received: by 2002:a17:906:a51:: with SMTP id x17mr6496687ejf.25.1614786902028; Wed, 03 Mar 2021 07:55:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614786902; cv=none; d=google.com; s=arc-20160816; b=AIPCJiOqfliRNvOu2eB4ur3KHEnuCJboHt+9RsRvev2S9JjO7b45H3jQ26pO6t5es7 bTNUiT3Oh73eQfm8Hg2tcaQ8TwcOR0itGErmeLwDELmY5Xuq4haLgUnRx4Wgq8m2badf 5xB4fu12KjP4BKHogG7RHG1Bup3enzAj5O9jMg0FX0jf+Uwj2d4IpTl1HZ6wg6lATY2c J9//xiwbubfskq8Qptr0MlKe7L4QLY7/zHQKyRKIhAMkoUuvrEMQO2HaR8irq+IIdZJd 3DarIgBj1iZsG2TY5+guh6x3Sd9k1CwCExe4KVg2cNDxP3OJwESHYsrASiZxOyNKG+ar Aptg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=D5AWreVV7iAjquvaZak8iAnrQQFb4c07W8KwC6FD5jk=; b=I5q0OrqJcZDLcssKWuvYMkr/Z2sL862esUgPlL4ylLMrgABhq311lilRLIVAAZD5ah GJtu4Wsv1kLMObqcnkXlvWAemR77b3uS9Xqgu8eo74ajeyb8JI8xVvy6JU6oXaFMvHpo hPe45d5FXobBhpTwWRA1mkWFh1CwCr5ayDGbrKhV122I81FG8/HwsUxN7oXLgK+lx9dI 4cQHn6KuN8R9HdyPQyoidff0LgOxr07DglRisQyM+KsYk6NpkF+25K9aVmJvbXsaBHD9 qKtR79AXr7QnFIupxdhfmDewkA0HeZOAkauj/pbxy2hP5i5hX7nHXcbPO6uI2fRLssBM y9Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="q3/i4h9u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kx18si12430805ejc.608.2021.03.03.07.54.04; Wed, 03 Mar 2021 07:55:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="q3/i4h9u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345372AbhCAXUB (ORCPT + 99 others); Mon, 1 Mar 2021 18:20:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:52490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239227AbhCAR7F (ORCPT ); Mon, 1 Mar 2021 12:59:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AF4976524D; Mon, 1 Mar 2021 17:27:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619675; bh=8OHyZyUzFVh/ELW1UiG+7dTWtN9HwcthoW9RT05Iy2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q3/i4h9uRUWGzG6wJRlFr1LZAFPoLmKfbDJCgJxb/GAYjdjibyy86A4O6WLB/myOI EbrNv90hZu1xz6wyTZStHxcfNgucaidKFhiR/ptSLskHolmMfD78xkzHsuX6H7F0Sj i3u1wFrz21yY+swSBzoMLJwXj16LuwieEWjgdc4s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Mark Brown Subject: [PATCH 5.10 523/663] ASoC: siu: Fix build error by a wrong const prefix Date: Mon, 1 Mar 2021 17:12:51 +0100 Message-Id: <20210301161207.717952087@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai commit ae07f5c7c5e9ebca5b9d6471bb4b99a9da5c6d88 upstream. A const prefix was put wrongly in the middle at the code refactoring commit 932eaf7c7904 ("ASoC: sh: siu_pcm: remove snd_pcm_ops"), which leads to a build error as: sound/soc/sh/siu_pcm.c:546:8: error: expected '{' before 'const' Also, another inconsistency is that the declaration of siu_component misses the const prefix. This patch corrects both failures. Fixes: 932eaf7c7904 ("ASoC: sh: siu_pcm: remove snd_pcm_ops") Cc: Signed-off-by: Takashi Iwai Link: https://lore.kernel.org/r/20210126154702.3974-1-tiwai@suse.de Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/sh/siu.h | 2 +- sound/soc/sh/siu_pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/sound/soc/sh/siu.h +++ b/sound/soc/sh/siu.h @@ -169,7 +169,7 @@ static inline u32 siu_read32(u32 __iomem #define SIU_BRGBSEL (0x108 / sizeof(u32)) #define SIU_BRRB (0x10c / sizeof(u32)) -extern struct snd_soc_component_driver siu_component; +extern const struct snd_soc_component_driver siu_component; extern struct siu_info *siu_i2s_data; int siu_init_port(int port, struct siu_port **port_info, struct snd_card *card); --- a/sound/soc/sh/siu_pcm.c +++ b/sound/soc/sh/siu_pcm.c @@ -543,7 +543,7 @@ static void siu_pcm_free(struct snd_soc_ dev_dbg(pcm->card->dev, "%s\n", __func__); } -struct const snd_soc_component_driver siu_component = { +const struct snd_soc_component_driver siu_component = { .name = DRV_NAME, .open = siu_pcm_open, .close = siu_pcm_close,