Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp623537ybi; Fri, 12 Jul 2019 01:58:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwd/UAKtynngSY7qKQ376YubPGuZE014NDKkg4M3heSKegEirKBhaS68MPwiyih1hqzvhnp X-Received: by 2002:a63:4823:: with SMTP id v35mr3312885pga.138.1562921909494; Fri, 12 Jul 2019 01:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562921909; cv=none; d=google.com; s=arc-20160816; b=k8ybA4uDLwnFWR4Mhbnz87kC9wJZN4ZGTh1g+SmuIfXEcMeC8CGV1gU9iGo/TCT+/K wFYCj7MrmavOXSbHHy5hXqx9oEVXj3dYDXdCCAM54b17L6dyxIcMSkqnc//twjRcQGdW NhqshyGZAMWjHnqiUVHdt+E6bvmDqLox4O2E7saIKWum81xh1271yUbpkN88lYCpBOo/ kMNByfCCVYWsvVhXm4mmObqBmUwJuuth51JM0SCeCImK0rhBYSGdSW1nB574comxDCd8 Yx2b2R4O313RNzOLvy3CCtX9ngJ/svqhG2sjiqFNBSNVBLjyNQMeVRCQhdqo3/hul5v6 K1Zw== 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 :message-id:date:subject:cc:to:from; bh=ubawmpARa6Ocq9nlwXfzimr0z3+rMb0BYSf3Iz+azsU=; b=LzQ4g7QgBJSFhIjh4vuk8WN2GIdg/qZSzIQEKNvn5CSpgOYVpvqt4+oKgKhUvtuEZK g9o6Cfg1w3EEwWdXkNjAm2a3CKv8YIUNc1Vss17zZGVEHZuL8DrR5B5yTnopp3rXG1rg CYlOB+GNAX5hpx64J5BzOTY8UwxVkT/iS1HyUVGnQ74B3BjFWA69zFPDgAoD2o4wj1px sv6D7HnyttMno/3geBs9IvBvPWtMsd3l4tFJ6s5PXOeTaB8HNBNGRsA0j6TO99FIeTDS XYv7wYY4H+kBHPqPpgMnyR00z35KkZKwzonRFNGaHYB9Fw1Kzd3hgoK7kfmLnfikpZR8 KfXA== ARC-Authentication-Results: i=1; mx.google.com; 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 u71si7749852pgd.279.2019.07.12.01.58.13; Fri, 12 Jul 2019 01:58:29 -0700 (PDT) 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; 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 S1726260AbfGLI4b (ORCPT + 99 others); Fri, 12 Jul 2019 04:56:31 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:43047 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbfGLI4a (ORCPT ); Fri, 12 Jul 2019 04:56:30 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1MCsDe-1hd5uB1CKW-008uVX; Fri, 12 Jul 2019 10:56:07 +0200 From: Arnd Bergmann To: Liam Girdwood , Mark Brown Cc: Arnd Bergmann , Wen Yang , Kuninori Morimoto , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: audio-graph-card: fix type mismatch warning Date: Fri, 12 Jul 2019 10:55:53 +0200 Message-Id: <20190712085605.4062896-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:Hsib/dpx4KDn7gfpU/f1Eq1bfZtFdE4qTB4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ID: X-Mailing-List: linux-kernel@vger.kernel.org The new temporary variable is lacks a 'const' annotation: sound/soc/generic/audio-graph-card.c:87:7: error: assigning to 'u32 *' (aka 'unsigned int *') from 'const void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] Fixes: c152f8491a8d ("ASoC: audio-graph-card: fix an use-after-free in graph_get_dai_id()") Signed-off-by: Arnd Bergmann --- sound/soc/generic/audio-graph-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c index c8abb86afefa..288df245b2f0 100644 --- a/sound/soc/generic/audio-graph-card.c +++ b/sound/soc/generic/audio-graph-card.c @@ -63,7 +63,7 @@ static int graph_get_dai_id(struct device_node *ep) struct device_node *endpoint; struct of_endpoint info; int i, id; - u32 *reg; + const u32 *reg; int ret; /* use driver specified DAI ID if exist */ -- 2.20.0