Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1931160ybv; Fri, 14 Feb 2020 08:25:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyXvc+MeZlUcfhIxRDcTsLiMyMoLxRHPvjIl/vigeWkgT712g700aMDl6R/fYBOUgfrxSL3 X-Received: by 2002:a05:6830:1184:: with SMTP id u4mr2812234otq.221.1581697544320; Fri, 14 Feb 2020 08:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581697544; cv=none; d=google.com; s=arc-20160816; b=cB8j1l6wIhlv8260nk8Y47AHPjHxMeJ/HNa29UMB/FbiffEfsZuwuBW/zFbLASJox/ rqNGwHgg4KWBGUmubkhMvsDRdrOgAtwzzsU2tjkxht3kmMbaV29dqxqjuCA6/SP6w6iO JaS5b4ca2/UCwxYwvCJEUtbcTeDXeN8bSm1y/LeVHSGaiS6W3+dYzoVIX/Q24/QNP4RS ub56R8WiU4pSRw91xyVxGZoQfL5QDWQJtE24tnhY9kKeffrYLoaxtyq/4SjBeRD8U6Ki A/Fyc4ja0wIkHCK5HPrPFXskn6efzrAv/w0d+DqTP3j17Bl/ivzzavhfTkNNALHj8zWV GsDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/Y8d0C8iea0VPXHLmA0ZjmBUUcK/8F8tPa0peE6r3eg=; b=xl8XP8CZzypDv0P5vSyZo4tFkSSxdLP+UNINd/1tIxyK1PQjLqxJ+L/evAULOqsEPG efWzPTl7NpBU8mavynq2fEG7dzsVWs/VQNYwpkQKJ/eSR9X+Ck/bGP322qjUr9YjB7SB oVAQ7TZH/p13S0+vT3bJHn6Mv2a9G/jmz49RXL+EBxHrCRSsm5Vjhk3XrzJN7denevTR 25yqMq27Qs+wope7206QTlIL0LDplSb+X1abKQuYc8qv1nQ9uBuQ+FsKvQ7bOPmFUOhv NElvt39hEakiNsXVulX0R7LKe0Z/S03N3H109BFrnbQNsASbF1oCggYE0qdTGUbhg05o 29vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZoMBo5ot; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18si3245882otk.80.2020.02.14.08.25.32; Fri, 14 Feb 2020 08:25:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZoMBo5ot; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393275AbgBNQY5 (ORCPT + 99 others); Fri, 14 Feb 2020 11:24:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:59014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393311AbgBNQXB (ORCPT ); Fri, 14 Feb 2020 11:23:01 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 71DFF24762; Fri, 14 Feb 2020 16:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697381; bh=N02X9PqL+PSwSETJUX0o70lLYJt42J+a+JvNu284jrw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZoMBo5otOgHGQg2ZwG6sc3VOTPUuRzkdxmRFr+pwHXVkiZCgLfjtPhmUPjmxQzFzu o6bqqmfsssaGX6OOGTEwynAFlFOkpC8LCYjlC5ZSMmv/n+rO4UvkTHNBKKbBRfcxkh Cp1vwXWmbUjwla1JJ5jh3p36QYuvQtQeuyKo9+go= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Takashi Iwai , Sasha Levin , alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 4.9 078/141] ALSA: sh: Fix compile warning wrt const Date: Fri, 14 Feb 2020 11:20:18 -0500 Message-Id: <20200214162122.19794-78-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai [ Upstream commit f1dd4795b1523fbca7ab4344dd5a8bb439cc770d ] A long-standing compile warning was seen during build test: sound/sh/aica.c: In function 'load_aica_firmware': sound/sh/aica.c:521:25: warning: passing argument 2 of 'spu_memload' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Fixes: 198de43d758c ("[ALSA] Add ALSA support for the SEGA Dreamcast PCM device") Link: https://lore.kernel.org/r/20200105144823.29547-69-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/sh/aica.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/sh/aica.c b/sound/sh/aica.c index fbbc252795599..2a127feb8e293 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c @@ -117,10 +117,10 @@ static void spu_memset(u32 toi, u32 what, int length) } /* spu_memload - write to SPU address space */ -static void spu_memload(u32 toi, void *from, int length) +static void spu_memload(u32 toi, const void *from, int length) { unsigned long flags; - u32 *froml = from; + const u32 *froml = from; u32 __iomem *to = (u32 __iomem *) (SPU_MEMORY_BASE + toi); int i; u32 val; -- 2.20.1