Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1623118ybv; Fri, 21 Feb 2020 00:29:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzO8g0gEVdIeOHsrfiK1eaGMz/1/3YzD/zSAuRDn3doyNr6bqlZXk6J89EXc9c5mAXHuQEp X-Received: by 2002:aca:49ce:: with SMTP id w197mr1074405oia.16.1582273750296; Fri, 21 Feb 2020 00:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582273750; cv=none; d=google.com; s=arc-20160816; b=O4ifu8HWjo8qbRs4Dmt5WVuHpOt25TGfIIoKcSN7CM55IpJuBRjlbbI4gkUjFdW276 5MJTlJrsy8Ns6SFuCEOkW17XHbX1PrQ6YRdakDdp3Rss/a3HJWtxDuIhs6gy+ol443Sk 06Ri57zZzZ01QTWzt4clWpCJ3pJATrqXdbgHz5b6qIdx1HyKrvcHhcdvYeIFW6WFwjen rQ5GWvVLuFKbvP42YYHuN0J04uCDfc6Pex+xNfjkJJfQlxLS8V78bW8Epo6hrjAR3MxL r1le6ssFkqDBU0xyMnKwdpdlAUwR83tdxbcAiibRp3ZmiGgO8c4NnnBIuQhZ3Kq9qzdD uQXQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xc5zUtogcZkaROvcyX4cGrd+8DPStAPUdZtgxr+ZztU=; b=dG3GYXIIeGG2r/i1sZg/bsOAJ71XvlfxhXUr944PbIzC+/c7hlGSieBAK5RGK36uNa 0jQPjL8ezgwcDnquOl+azWM5v5dlQS/JS87m5BE+tos3WxdeKhjjk+HEU16sxVEjnbrK IoJjhQkI2+unKl4Aen5050nvSjy8RC9OkoSlPAETCrLr8mijrIqmTM1GFDnfvYxZ2iAv B47ge0Z+SsQ+OXwgCb23yfTpeLaq2Im7rsB0ZJrIFoGPUiIXYstvRWahQd6sgNlA0BGq ja5i6B++KzO5tBko5ZL9NJNbnv1iQh9eBFvwlamEkXSV3gbB/GQ+HPfSrml7MM+OZKHi 1Lig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rTIIaRBY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si440349oie.96.2020.02.21.00.28.58; Fri, 21 Feb 2020 00:29:10 -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=rTIIaRBY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388529AbgBUI2N (ORCPT + 99 others); Fri, 21 Feb 2020 03:28:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:59784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732385AbgBUIUh (ORCPT ); Fri, 21 Feb 2020 03:20:37 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0BA7A2469E; Fri, 21 Feb 2020 08:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582273237; bh=sRSHDjt1zfYM/QXsil6XobwK6csvrwRtCUObDsVdiHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rTIIaRBYFNJXf/yrO4yi0rpdX02+bSEwv9sSrU6EyZiEsys5KIWfkIqwn17w/+wd/ qWZbTT8I6JGzhp/GXxESrgT5rQ1Dbaw5kPCR+fSgvbxldtwnTTEASw6T7o7/UBGTjl iROkXKkUhWObvjNJSMWvySdCznuKVayE2eXrS/f8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Sasha Levin Subject: [PATCH 4.19 097/191] ALSA: sh: Fix compile warning wrt const Date: Fri, 21 Feb 2020 08:41:10 +0100 Message-Id: <20200221072302.830601727@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072250.732482588@linuxfoundation.org> References: <20200221072250.732482588@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 ad3f71358486a..69ac44b335602 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