Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp358364ybi; Thu, 11 Jul 2019 20:53:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMRmSOw6YKWLPEhNrLdPXmH7hmu2VuvXWfOMucrK2S95+tpdE9EQiConiyRx4citJ7p+FD X-Received: by 2002:a17:90a:bd93:: with SMTP id z19mr9063512pjr.49.1562903617926; Thu, 11 Jul 2019 20:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562903617; cv=none; d=google.com; s=arc-20160816; b=r6aRSDoJDNcIN3u0tFUjKINWaQIb/eNeMNpCHo4Ye/jTJ6a/ms0ar9EOqr/v6RNjX5 xjL9FInE4zmwaulkP1zXtMprnAa32JqEt3pbH376Uk5x7HW+tdWgQvtgVT4s6OcF1KKl Uc2GGkKCDerwKJ0iN3OgPzQfrXSh1sheEe3/GnSVBGbteUoveCHQF7/gvqYH8h6BpIMH zr5HCQSUNhQY1ENxZrwzkRfAuI8CybzftrzdZ7kHnF3Xu6RFd1F2f6NOGcgSJjXnICQ0 OKaY62wTUQ5c8vV+0Ud20QOp1JFYcAEbGXhFXy8osIlKmeiRMDnC0cg6PGYGp4Cd1eg+ 9b9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P3Q6cX33JeEZeR4z0+wnkhuDYyByu9jPKIafQF/Bv80=; b=kckyBF+1PpNccZug/cmF9cTKBiyrgetK/WrX1Ktd0sTqPYOMJi/ig9nWuBynCdMsvP iWZuOI5lEhki1Ec1Wg5fb18OMrx8Cpl9pPBl0Znve5joTvXFXUwooJwZBEE8eIYP5sob DvU9vTHHcAyCpzYxXnaPKKw0ggjaRP4J+aQMTkN9edSSguyZ4VL/l766Q/kSQOJYshHk RDVDkePWfFh6qJDH5i8yoKPlBXsk5w0hEswfvcNQ+IaCLTC6bmaPDpNDBXNQ3tgB07SY 5SGyAykLZbRjWSx+uKgzWqEBvlF95M0UMDR/pyr95OlS8jjKdphqn56DHokixVZImHdV CPeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tId65nli; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si6669739pgp.568.2019.07.11.20.53.22; Thu, 11 Jul 2019 20:53:37 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tId65nli; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729623AbfGLDws (ORCPT + 99 others); Thu, 11 Jul 2019 23:52:48 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39507 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729573AbfGLDws (ORCPT ); Thu, 11 Jul 2019 23:52:48 -0400 Received: by mail-ed1-f66.google.com with SMTP id m10so7912598edv.6 for ; Thu, 11 Jul 2019 20:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=P3Q6cX33JeEZeR4z0+wnkhuDYyByu9jPKIafQF/Bv80=; b=tId65nli6ZbZrOSSIurWH63eDKaybL2rMPGTvVrKcH5FO/Pb7tnabHWtdkmJ0UQ5t/ Ah81xW4NiL530KsJOQQb/gUCzHQdtoseJi4K96kWRABaJrlDRX55Va79dc311qfiVX2w YqJ84pkdatHN7TarR6ZZwYLQrBr8yMrVhKchOciIxyq89gX8iMKpgeoM/IM/Gxk40F1v EQ9OhkPLcQcoD33yrGbp20dfOXpOX2DP1X4ZoWoqdIi4lfduRAKR9l7SU3x+iL5VTf66 cI0UgCHTaMYEDrrXuDVhL3ESiubl9jPPc3+9yeyczKmuGnMGzyk8+/9fS8FOexqfFRX/ UTWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=P3Q6cX33JeEZeR4z0+wnkhuDYyByu9jPKIafQF/Bv80=; b=g1PyEuD6G1D9i3ovVVCu/YFfqzlEJjfAZIVy1mZH1s2PNLkj7qH6g/2UzpH0NGN33v CPVzz+E6TXZW+3Pz1P8Yk8lek/jyTP8ff1kEHKZgulRcLJAqlBTl89ThT4QQ/L8wfujw ALqAKjzlaDuxONuH0R0n5tHSPpCog3kC0QvVDmXTZS9KmQYb65VdM63CvMqsfWL2ME73 3mqYUdNxAW5hW78lv6DZhGZWiARrkrLUFx39NhDFAQI/wT9vPEpd2xAIfquTdGxDvgCB vCAK+cPgfu+545SgH8l6sWE2HFq8ohn2PTPwDwFs/4KL8yU2I5CpI/5rY/ulAmtoy4mQ KqkA== X-Gm-Message-State: APjAAAWnrgClCpCLbmO3IGDICDxFe/PNufJz5NMg0w7bBf1eG2rtorMt lDsIdfhL5gSQ+qihGM4rlbw= X-Received: by 2002:a17:906:a481:: with SMTP id m1mr6078797ejz.87.1562903566598; Thu, 11 Jul 2019 20:52:46 -0700 (PDT) Received: from archlinux-epyc ([2a01:4f9:2b:2b15::2]) by smtp.gmail.com with ESMTPSA id gz5sm1532335ejb.21.2019.07.11.20.52.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Jul 2019 20:52:45 -0700 (PDT) Date: Thu, 11 Jul 2019 20:52:44 -0700 From: Nathan Chancellor To: Kuninori Morimoto Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Wen Yang , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH v2] ASoC: audio-graph-card: Constify reg in graph_get_dai_id Message-ID: <20190712035244.GA67442@archlinux-epyc> References: <20190712014357.84245-1-natechancellor@gmail.com> <20190712014554.62465-1-natechancellor@gmail.com> <87muhk53j1.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87muhk53j1.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 12, 2019 at 12:37:51PM +0900, Kuninori Morimoto wrote: > > Hi Nathan > > > clang errors: > > > > 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] > > reg = of_get_property(node, "reg", NULL); > > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > 1 error generated. > > > > Move the declaration up a bit to keep the reverse christmas tree look. > > > > Fixes: c152f8491a8d ("ASoC: audio-graph-card: fix an use-after-free in graph_get_dai_id()") > > Link: https://github.com/ClangBuiltLinux/linux/issues/600 > > Signed-off-by: Nathan Chancellor > > --- > > Maybe > > ec3042ad39d4e2ddbc3a3344f90bb10d8feb53bc > ("ASoC: audio-graph-card: add missing const at graph_get_dai_id()") > > Thank you for your help !! > Best regards > --- > Kuninori Morimoto Ugh, I even checked Mark's tree before sending this, just completely glossed over that patch. Sorry for the noise :( Cheers, Nathan