Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1059206rdb; Tue, 15 Aug 2023 23:37:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFln0KBt4OXf89yvF6aPLhq0XZ/42jsK68DvbpTOefAaryFS95FwveCeXlq7WLjNQrgJhN8 X-Received: by 2002:a05:6a21:35c4:b0:143:f4dd:dfae with SMTP id ba4-20020a056a2135c400b00143f4dddfaemr1132003pzc.43.1692167838030; Tue, 15 Aug 2023 23:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692167838; cv=none; d=google.com; s=arc-20160816; b=dhcAbRV+la04bgF9J7juJ0PVXR9Km57cy71zbJhvUbKEj21dwIDmLwIP5q/OdnYC1W J4a36Vp4HLlX3O3bYwnIu9RoCh940+aXq9UEV7CixsMBDZG8HrLWJCAIwCu7Ct/RXpDz Aby5Z0Fz3JjSMWGaDgEQHC9u9yeDFk1jvYnferQ6nM9eWWo9j+rFHYG3w0ixG+a7YcyI g4xzT23yB+r/z6NrixCuYjZO++MNg4VsyS95WY6v2VRD0ojbH8VKiHmE/tlZuLXwBE7D tmlW/4o9/tlm3ZdoVytov5NThP5mHZn34jv7qWKjzx2QVDX5+vyO0aKghLyebKCoKSD8 ebhg== 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=2zagDXMenjZog8D136rjb7mDVCsKQuCmGc7eTTfWgI0=; fh=PhdB+cMOQCIMuuflobAf2GndnbyoVUppG0CiEJFytc0=; b=t9c2T/4EUDv+N0dZgrzTGtzdeyXGr2VEzO8zFxK0H5SN1ct4zRZk/HDbJUqM/tNVUT 6L0LZv+3gI7v4+NB+20Ev6FePrUbXu4ZJSSzq808lOrSip2PzHkKTzSLf/lrRoIGOvm3 DYp9kAZlhf9f/Pfl/3qMrVgujfrf0mpcqOJK5Z9H1vUXCUDdCQbcTHI02IqvMm3AwgAs xqUvKFLnSvgtursAOEHSyDAtH8DWcQ+Qjz/WEBlQZzeer0W2v38bE65Y1KTKAuQrrzYE O6/GgO5Hr3NyAR0JeMnT2nUUOpssK3EH9y9V2KUSuyKWtKdDamrZXJpkY4e06xsr3gFl s3WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HvklSn5g; 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 r20-20020a6560d4000000b005649f501e33si2031528pgv.789.2023.08.15.23.37.01; Tue, 15 Aug 2023 23:37:18 -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=HvklSn5g; 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 S237510AbjHOOQS (ORCPT + 99 others); Tue, 15 Aug 2023 10:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236872AbjHOOPq (ORCPT ); Tue, 15 Aug 2023 10:15:46 -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 7FB00199A for ; Tue, 15 Aug 2023 07:15:45 -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 D66F061693 for ; Tue, 15 Aug 2023 14:15:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFFD7C433C7; Tue, 15 Aug 2023 14:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692108944; bh=Pvw0knH5aK1JT76Gogw5tdklLV3FIclvxoJl43eExcA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HvklSn5g0JGJd5ghvIpMvQuV6qnVfCz3qsGVAi+1A4rAE6xlGgw5yHuqiKwTKI84v Nhg+POoqt+u9pWOPVFtKcgc0v8Kk6aU9w2FW5fogV7q4fV/eRPkB/SLnKrWpxh1ufd knLpxqm8LtSFVn+ejy1lJKTzkHTlyfbrNVyKKiOad3eFTMZVz6bOSTLeXhE20K3Bq2 V5mIRvBq7/QiOD7kWtq7DYwXpIwa4ZdnTtJ4y0BRb7jniiQiTFtasPXL2hG4ohqBg5 IWszMUGsiVF0YdlqWcOJV8LfMlLAbu2bNv3ayhTo7ylUQ1uZxYeBmkGyhLbs69zyd7 epSohgoPyeMjg== Date: Tue, 15 Aug 2023 07:15:41 -0700 From: Nathan Chancellor To: Mark Brown Cc: Justin Stitt , Oder Chiou , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: rt5677: fix -Wvoid-pointer-to-enum-cast warning Message-ID: <20230815141541.GA4129040@dev-arch.thelio-3990X> References: <20230814-void-sound-soc-codecs-rt5677-v1-1-5c468c60fa37@google.com> <94c059a6-07bf-4887-8c67-b8b0724baa49@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94c059a6-07bf-4887-8c67-b8b0724baa49@sirena.org.uk> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Tue, Aug 15, 2023 at 01:54:40PM +0100, Mark Brown wrote: > 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. It looks like Andy fixed this warning as part of the refactoring to device_get_match_data(): https://git.kernel.org/broonie/sound/c/043bb9c012ee7d092a477159cc66dbdf62fd2666 Cheers, Nathan