Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1013607rdg; Fri, 11 Aug 2023 07:13:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOGnBAEK1hcGSwKpHMF3c5+EMvsKsE7W80GTT6QbWsWRvvpgy4eET1VKCLiqx5FyYjrBl5 X-Received: by 2002:a17:907:780d:b0:99b:de7b:7d2a with SMTP id la13-20020a170907780d00b0099bde7b7d2amr1826901ejc.67.1691763232985; Fri, 11 Aug 2023 07:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691763232; cv=none; d=google.com; s=arc-20160816; b=I3AlSJvJeDwQDYG/SqzXCyP8iLPXIbzNy9i/Iz9FtgmI2Pylq5gnB5YY/iyiES04va M6Z5vuvQeporXdatYEU3nhyXz9oalnYAie5ITSog6F0VLNeGeJmJAyXfISIhh72WquBr ovq8/gplPy6KGQxe6zeIV4Si7aJ8fFQy/rJBtmvV1nYmUm/afWZSHMp6ZvgmFxX/zGaL JhlIw5Y6TjnM7wVyFCk8yG4db4Zq5IJQkw7+42QHBotP7Fcgf/GYUh2EBUQoPFqUaYJL K1KQ1qiiYKs0/m8j+f1KL6JStfx2YVcbBWjoZ/seNdPldQUd/tTYzYTa9cWHA7cRfxaT psRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=K8l7FhPzmgm09P9qGRO1oZ6TSy9Hj3q7UWbgrG0ySdg=; fh=vWh/Wy0Hfy/4rHnAY+u/c6l9GHihtQUKsstH2//I/4Y=; b=ZXkTf8oX5eZFHhzDS6bSzxSNl9vvY7AVRxuRCb8NOvVxhl22tDKJIqOcfMq79jA7Ec T7dUVpmq0caYovEv71N2MocteuNsAFy+C648AerdliEys8DiS9alfRFrxz6F7vMv+5vD +s3ABIf/TKqW7K2gEx4HKxda/c4Qdvz69OfYCeCUK87U71TxJ2OnAVPYx/eC03VCy9Hk qlZFC+fn8en7D3mqE0tShD9gCPEcwmsHOhx/Pck70q4som9r1p/tAY7sthdFzVmAOk5/ DzDvEuX+WIvgjxhRtwXjr/pulfeGATAXr+2xn1SpvlllluOFetGyiU+FXkY6D/BWdOm0 sKiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="l/MFQNi1"; 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 a9-20020a1709064a4900b0099b633adf35si3614138ejv.454.2023.08.11.07.13.26; Fri, 11 Aug 2023 07:13:52 -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="l/MFQNi1"; 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 S230419AbjHKNPs (ORCPT + 99 others); Fri, 11 Aug 2023 09:15:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjHKNPr (ORCPT ); Fri, 11 Aug 2023 09:15: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 9C99F26B6 for ; Fri, 11 Aug 2023 06:15:47 -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 3372865CD5 for ; Fri, 11 Aug 2023 13:15:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 894B0C43391 for ; Fri, 11 Aug 2023 13:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691759746; bh=Q0V13OvTHe22/UjIUzwrCyQ9TTmZy8aejdY20cqAG8U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=l/MFQNi10259REPnnmXhsqSwMU/qesqqzavqh/Lwge8kk8X6NeuYaKDZ7CObdA/bt 2t+uXedSVWSuiqum9f5cu7CtrkX5XsyJOeEYApBAi095lHz83YnJbLxaOluVLsrIt/ TfdCph7Rx1XiV1iEeYShZdeeOjMJO9BaywnurXerHDPNJJ0a9xl48LyTTCYVSaLRPr Q5TNgttJyi/LaSy6t1Kmk63UWKNVc7D4A6vBvy094SDbJDxn5Oaf2Wa+5ry/fuSWQV B5SAmZHZEFCyG7yP+uxjEapsyOkSzugClyCeL1NAPjzCh7m44t515UX32u8OlA1PQZ ES/sqsalLarJQ== Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-564b6276941so1509127a12.3 for ; Fri, 11 Aug 2023 06:15:46 -0700 (PDT) X-Gm-Message-State: AOJu0Yx06dnCqJgai8wrh6vECfbHPetPlZMa8kskjHVAyWKIdb9GywOg iVZaXYdPJ6KYtV1mCMILSp41ZzsMRN5CjpQsJ2UzSQ== X-Received: by 2002:a17:90a:fd89:b0:268:1e51:3496 with SMTP id cx9-20020a17090afd8900b002681e513496mr1504264pjb.21.1691759746112; Fri, 11 Aug 2023 06:15:46 -0700 (PDT) MIME-Version: 1.0 References: <20230810095923.123388-1-krzysztof.kozlowski@linaro.org> <20230810101203.GB402@pendragon.ideasonboard.com> In-Reply-To: <20230810101203.GB402@pendragon.ideasonboard.com> From: Robert Foss Date: Fri, 11 Aug 2023 15:15:35 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] drm/bridge: adv7511: fix Wvoid-pointer-to-enum-cast warning To: Laurent Pinchart Cc: Krzysztof Kozlowski , Neil Armstrong , lima@lists.freedesktop.org, Jonas Karlman , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jernej Skrabec , Qiang Yu , Andrzej Hajda , Andi Shyti Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Thu, Aug 10, 2023 at 12:12=E2=80=AFPM Laurent Pinchart wrote: > > Hi Krzysztof, > > Thank you for the patch. > > On Thu, Aug 10, 2023 at 11:59:22AM +0200, Krzysztof Kozlowski wrote: > > 'type' is an enum, thus cast of pointer on 64-bit compile test with W= =3D1 > > causes: > > > > adv7511_drv.c:1214:19: error: cast to smaller integer type 'enum adv7= 511_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] > > > > Signed-off-by: Krzysztof Kozlowski > > Reviewed-by: Laurent Pinchart > > > --- > > drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu= /drm/bridge/adv7511/adv7511_drv.c > > index 2611afd2c1c1..0e284f379602 100644 > > --- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c > > +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c > > @@ -1211,7 +1211,7 @@ static int adv7511_probe(struct i2c_client *i2c) > > adv7511->status =3D connector_status_disconnected; > > > > if (dev->of_node) > > - adv7511->type =3D (enum adv7511_type)of_device_get_match_= data(dev); > > + adv7511->type =3D (uintptr_t)of_device_get_match_data(dev= ); > > else > > adv7511->type =3D id->driver_data; > > > > -- > Regards, > > Laurent Pinchart > Ack for drm/bridge part. Acked-by: Robert Foss