Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp797736rdb; Tue, 15 Aug 2023 12:15:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCrr1GY+R7z8N/hOsaBnXBzTdA6uAwh54t7AYn1jf6L2WzAZIaJmOuXWy0WbsQmBjFhEQB X-Received: by 2002:a05:6402:100b:b0:523:35df:af86 with SMTP id c11-20020a056402100b00b0052335dfaf86mr9027612edu.39.1692126927067; Tue, 15 Aug 2023 12:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692126927; cv=none; d=google.com; s=arc-20160816; b=SRZJjY1FyCzL+tm5XW51/Vs5+Nv4hpFo68O+UCjg0pNy69G4MwjFt1l/+GGIkaRsJO Qiq0c2T4IsFuBytQa/XsFdm4VaMQZJgqx5N9fg97WNFfjkR5X//oSPf1vTSOj/bv2XwT 6CF1iDuopGUShcr5xANXaBorGoC5Y4ViVRDUHjTkwCvLLQRE9sTebadNP/UUlnpzhNds NkaIPKV9v4gXZ0lYE6veAX1P5RbhXv/+xS45bJldNm2jo0J5wibgHYiP03of4Qx5syPa +mNjbeKeHgQ9KXen+s+wYRCkQyaLILJdKbBzTLJ78u17EHvnFGd6TnxRxyMXVcTvX4a9 CoWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dDxA4P/ZLn0zQb28IKxF87UEdyaPxIaZJh97gjQPCRQ=; fh=ZJWNkGEWT5EZBnRcI2OGiC9L+0rOc6AAt0KBqix1lc4=; b=tWNmTQIE23heKh8utrtQwGOoBDpuKWYd3myuOvLcwWJmuvDUdADa8okhL8hRNkB0Dm ZKumlFnvZIxqXpxz6ce+spNSbB+NjRAqleQZxEmhP2KPPUId9zeauwFfukXsOZyLrxsn fR9QjkK3YiSKuLn/d9vilsJ9KSVISlVtIREwB1huxMFIcTpj9OA6S2CpomwxjdauSXDK /C2ZV2HJU6jH7CTBjvViwgpGWOS+4CCgIdJuU4hzfnQOsqzbwNOTPOoSmE8Iq+5ynG3c hWyF2hRJN5CjZyKNeamA5sfWvadnbv8ghqxec+cSOo+k+WCVV0mOERrk3UHdO1GIO5NR M9mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QWVFPbj8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a056402044600b005233567744fsi10232920edw.154.2023.08.15.12.14.49; Tue, 15 Aug 2023 12:15:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QWVFPbj8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235016AbjHOMy4 (ORCPT + 99 others); Tue, 15 Aug 2023 08:54:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237150AbjHOMyr (ORCPT ); Tue, 15 Aug 2023 08:54:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 877989C for ; Tue, 15 Aug 2023 05:54:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1CC446164D for ; Tue, 15 Aug 2023 12:54:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3732C433C7; Tue, 15 Aug 2023 12:54:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692104085; bh=dDxA4P/ZLn0zQb28IKxF87UEdyaPxIaZJh97gjQPCRQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QWVFPbj8W++h4LpRMo1kgy+7LokGjP+dYNiWn9M/OiNenkud+wNPDjergae57ty2d jnI/+/NGZmyNnAaf6VxdGgvOyY1CxIZC/kYOcEquOde7/RfPvrI1UupMj89qfoH/d7 04lNatHOWvkk1GjeW+pkT/LXeko9fVSXyTPN1ccmWLTS2fYVk/KJBkrKuCO9ZJMNB6 1qrbSaxSPV2AFjMKT+MMJgJ2WUQDdxUXsmsdOYF/G5lPa+v8y/yblTUEObJd1K7dbS m0kUoci+TqG18GhSv6Qnj1UYK8gfBhI1A7+YGh9h2rVI6h4aWXgfUovPB2/IB2L8EJ 8NslK7xU1FXRA== Date: Tue, 15 Aug 2023 13:54:40 +0100 From: Mark Brown To: Justin Stitt Cc: Oder Chiou , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: Re: [PATCH] ASoC: rt5677: fix -Wvoid-pointer-to-enum-cast warning Message-ID: <94c059a6-07bf-4887-8c67-b8b0724baa49@sirena.org.uk> References: <20230814-void-sound-soc-codecs-rt5677-v1-1-5c468c60fa37@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EmsSKH7ZmGf/qlZE" Content-Disposition: inline In-Reply-To: <20230814-void-sound-soc-codecs-rt5677-v1-1-5c468c60fa37@google.com> X-Cookie: The meek don't want it. X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --EmsSKH7ZmGf/qlZE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 14, 2023 at 09:58:56PM +0000, Justin Stitt wrote: > `match_id->data` is a void* and as such is being truncated when cast to > `enum rt5677_type` which is only int-width. This doesn't apply against current code, please check and resend. --EmsSKH7ZmGf/qlZE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTbdY8ACgkQJNaLcl1U h9AUKgf/Vhx88QCeNdlUEOFEPe17Q9i+vhTRysJ3Y1UFUFNv8cZ5HOebgWf5eYTO lf5rHb+Y+tuT0+8HCQHVJtVGI3/gZwDzIVusQvcBRsLjBtEafkkGqfswhD8k8e9d nQ8XT6a4kPc4/GYvS+YXeZoOSiq97cPdbbdODPuQB6UmaQreXLChHHan1ya6gfcH bCr12qm48qfAJsK9EUUTcvPFyMpnrwC5CWIBoGrdi6eSzRHbOa+rGxdgFWorYPxE ua34eCXIOxhBhbF15pCD5VyuRTbitN7/fhQo6HC2eszsMyv7u7wKTS3pBFl2roDc b67QT9S3kboOvHRDaJYu+Ekcxo8WBQ== =77Zb -----END PGP SIGNATURE----- --EmsSKH7ZmGf/qlZE--