From patchwork Fri Jul 12 08:55:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 168909 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp586128ilk; Fri, 12 Jul 2019 01:56:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDUqm0BU9lRz2eW6k+7JPltauzC4jUeTnoG0qr8bttYkfSU/rzZ+VpK+xETIIOemXWj/Ik X-Received: by 2002:a17:902:42d:: with SMTP id 42mr9626352ple.228.1562921792741; Fri, 12 Jul 2019 01:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562921792; cv=none; d=google.com; s=arc-20160816; b=StBVssLJtep4uLccWlBRSxmGgXjrXnPbKFfeYmPdr29IhFEUJbET0jZy42hd0XHe+Y 6IAX3lYHlH6gwQE47MxXcrvXRv2Jn8swO9B7Wazm1tzLc186kbi5ZiL8d5O4yMyM+uYl I6WcBzvUuFAlI/HPKPMFZ7sSs+LrdKctWb1xM+xEQaxtToB519H56Wu5O87VJQ75/c+G QAHeQcYBNPyVj/YmWbWbjAzEObQIOm17he8dbr7sAtOzj2VRK+k4xg+B134JhuFkmdBG PG3tUJlMtJw4uij9abZwvKZdiYCzR2AUWWhiByz69zLaf2CuopNfevTDa4cT1NDV+PHU Pqcw== 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 g21si7427303plo.235.2019.07.12.01.56.32; Fri, 12 Jul 2019 01:56:32 -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 S1726273AbfGLI4b (ORCPT + 29 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 X-Provags-ID: V03:K1:Hsib/dpx4KDn7gfpU/f1Eq1bfZtFdE4qTB4i+zaN8zo+qEctdR3 RKhbz0fWRM/pmG+ONdUgpTK6N83UxgmjuGxUxS7I+VEOkD9WOzCJOk4ZXdWmO7duzQNCSei A5NbDsnu3Sc6uMaOzDDc1fb0aJb5+RDDmrBVPEgI2QA6jlwg3/3937dYE5w8TcKd4KK1pOZ deGBhKhCt9y0/q8rpEaKQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:H9OQC5DGb9s=:T6H67ZX8mqNhVjA447wWxh 0xlDBQb6lbn9z8MwFJsVML6VitaX0n5WZCMegYpH2Jy0StVWv8lATqy/cHcn1tV+fKPAmiRhZ oHt/SGJfCX5s0+doh3Nf+k7pjQ9PH4qbuyia0jUmUCgqbQDSy9gl8EFegYzMvdeIffdUZlg+s 6Sp7mKoJ1Ib3ka35DJzEpUrBWTPTN0n/SsrjYVsfHUXSeZSv7PF0hVM1/TH1bfXHA8xus7U2b isWiB7dFfUrW2bmfT/wRvgUKzPh/LkI/pcx00uSfTZc8yXEZbf6VY6fIz1xZ3Y7A5kSHvBBsi RuNMBXRhXQ1tf9uQUbTFGKJZmqXfCAkJzridws1PtHvOf8guQ0mhwkPADX/CjxraTT6Fx/cxk AswHICK7T/BCJii8NKWbmbGkUoiHDEYx3kTNC7Rb9+dD3jC2N82iRhxp2upDjBuBuf02MooPu QhIyEwkywdDOj6PxT7gTQxEO4MPvXcuw8yp45I8IiTtFFqt+SV5YNbn9Z3DTdS32BFr3T2UXC +1xGHKziI8ziqs+LGMsO/tozcLt2dza/qDnNx4j8MkzgxFB15O2oZA3IZWgZ+poZrEdmoYLY4 sHvztlc6Q8LopIyPGAGE1X2vxh+wginAcrEuHK3wh+q7fsGJmPew8aodII75QTI6Rfp5o0FYW 69ehGjuQkxZS5E1Ordsxhvy4mIfmW0dw6ebuxgojymabC/wA87Rc8aAPZiC8pccQuKHK35sx6 DDbKua9LRG55+5mjhlfjSZ7drvWb4qT2eFa8tA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-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(-) -- 2.20.0 Reviewed-by: Oleksandr Suvorov 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 */