Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp348067ybi; Thu, 11 Jul 2019 20:40:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVJgpm67QB4O9c1bSC0DwtNmiE71LqHY8bbtsVcxOYOcGToJxRahQ7g/c7j0T6+T25ymT5 X-Received: by 2002:a63:e306:: with SMTP id f6mr8066999pgh.39.1562902828458; Thu, 11 Jul 2019 20:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562902828; cv=none; d=google.com; s=arc-20160816; b=lvAwi3gD8ooeYb0PVnbICMYnG5dARw5hGgaAEP7CLZsGETMBOgJawmnDKqe6M+cY/S APvXXd6n1R3hojlpq5i8vD9j4pakMMN3PnJG+ztDNkfVWLtpHoQ7m0Qj1KM/Ve5NHzME BJMnIOpHVPRRJVhsi2uQorYddJZXUZRoZ+3YnJr5DHeFn1TH2edqaSU+dXZ5gyMHai+l 4OBh5enBB2R2bP7S5RM4KB033KO3bJ+XLal+k9rY2IOnRBKtIgVX74y7CO76ff08lGfF vhPhbzjXBdSm4X42mQH7HLlta8UFp2gtQCjjwCxwUcsj4vYNsB8K+s9AQ6zvlRtRykUb EFtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=9ziMKjeTVYQSta4p9mrsMeS72A9GgGMeY+VBbGNEH7U=; b=Kfr8B/oPlz2qpvNBH9gllKs80YggeCegrQ6GQ/3DICnEqZ5Nbe21QUohZxncDmfu8l Zt3ZT4NN7MNqmdK2KE7+9DYiD2wZR0G+OoVlABRnDjxf9E2pspzhiv6qdY7WlCT1isdk aRecrOpvE1u0RinGCJITZ0w7iRuh+9vdiOgzDe8LtCXG8H1FGS/FSBE1rIzdZuGP5yDW PvBirfs5tPKvO8Oty0J1zggnwfqNAPuaFOiaXMOccRyVOHbGZETKmU+sAKj6CzzGb5Ap /1mD84EFTqGCRPe+dlKbn2DtAkFpBAslGbMt1zs8bp1a18w4zsAfxBDOZOo9ePJ1iKFM /Q8A== 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 r6si6662262pls.145.2019.07.11.20.40.12; Thu, 11 Jul 2019 20:40:28 -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 S1729513AbfGLDhy (ORCPT + 99 others); Thu, 11 Jul 2019 23:37:54 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:48832 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729467AbfGLDhx (ORCPT ); Thu, 11 Jul 2019 23:37:53 -0400 Date: 12 Jul 2019 12:37:51 +0900 X-IronPort-AV: E=Sophos;i="5.62,480,1554735600"; d="scan'208";a="21016610" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 12 Jul 2019 12:37:51 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id A7D3A40083F5; Fri, 12 Jul 2019 12:37:51 +0900 (JST) Message-ID: <87muhk53j1.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Nathan Chancellor 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 In-Reply-To: <20190712014554.62465-1-natechancellor@gmail.com> References: <20190712014357.84245-1-natechancellor@gmail.com> <20190712014554.62465-1-natechancellor@gmail.com> User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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