Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp993079rwl; Thu, 10 Aug 2023 05:04:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHR9CjRu6+ZFZz5i0p5Alc99vFyNmHXdatdbEVULDKe3Ui4ZUYAv0yk5BOPgqig4qyBa4FJ X-Received: by 2002:a05:6e02:d42:b0:349:76c3:e8af with SMTP id h2-20020a056e020d4200b0034976c3e8afmr2171671ilj.16.1691669068890; Thu, 10 Aug 2023 05:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691669068; cv=none; d=google.com; s=arc-20160816; b=QzgQ+1Ooc/8OAovfyLOYxopjqoOwjRnA/URNQ82YrM74gdX2cm8GpVQ9krrL6+OTSY 0EHK+V27WM/a5BwJ4k+CcvbjkdzZ9hrvQx5zzHxRrvwBsw7EZQxxpBTiaDWb38pFCzE4 3daDccMlOJ75GcjP51balE1b3q+rlPF2jFm0pBk31XFShvmWxbTKNCMcGvzFyx0ErqZA rAFKToU6mPg9Eb6kVl01ZqoXARrmmFlUIfgCmbFlKq6A2rzW/sSTC6v+37+mHAncv1sS j/u21+kDqqLUDjrUSUIpe4yF42cfROSeH/NP7NeESeNIPV1/JuuNSdO8Df7Ij1MQk/5W w2fw== 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=aaG8QMHcQV6PLP7dFnHkV3g5fyxC+fNRuXFdhHBToq4=; fh=xNawRhCNgMExDxISH2KYFEtKKtlySgXc/r0XlubK8mM=; b=ohJ5EXIDIhvrrSNwG69u0E93CeEnlwW+xNGe+nX5+4CyiDjOLtFaX7q8km74Dt/Nis 1UgjZNDtBlsJP3OwTtEG8fHk2fWTeJGCYiJxdQfZ+ZGRd70K8QCKZhRrg2lMdt850MH6 ATh7l7qpK0M3GkplvwohX1yOZqq2Hi7bII/K5sLwM6VwM2BPXgg+vqu8NBc0URm957/U j08+HtnyZjT+tM+hJptwwKxojFA2VmDKdVCT17SIlvz8FT1h+BybTGk/FVI6gDzBA/k9 d37sc2QCbPMswchQKJBfiHB+c2D+SuuorX2BAcsTffuGx7vzVRBtzfVkfTUy0XdrylR3 Pvsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=BfVQBT3k; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x64-20020a638643000000b005641697e83asi1445206pgd.131.2023.08.10.05.04.14; Thu, 10 Aug 2023 05:04:28 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=BfVQBT3k; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234191AbjHJKMI (ORCPT + 99 others); Thu, 10 Aug 2023 06:12:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234449AbjHJKMA (ORCPT ); Thu, 10 Aug 2023 06:12:00 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B95A83 for ; Thu, 10 Aug 2023 03:11:58 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 736742CF; Thu, 10 Aug 2023 12:10:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1691662247; bh=JLzx34SATwxcqWWL9wKiniqBwX1I2Wbwoo5F/RC7m6Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BfVQBT3kj2sf/7XTD879gx41bBPEHP0keGuFsu1pTVjYFhEQdvc8RHUVHO3dGKq3o 3tSEghKm2dreXCH8S3HVzUdeXWW2ZKwEHvaAxP1/s7d/+cbF/lpT+CASxqfzjYAEXH 5RTZeEfOoIIO+z+pu1q9f63tqQb0/UQorWkGGOw8= Date: Thu, 10 Aug 2023 13:12:03 +0300 From: Laurent Pinchart To: Krzysztof Kozlowski Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Qiang Yu , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, lima@lists.freedesktop.org, Andi Shyti Subject: Re: [PATCH 1/2] drm/bridge: adv7511: fix Wvoid-pointer-to-enum-cast warning Message-ID: <20230810101203.GB402@pendragon.ideasonboard.com> References: <20230810095923.123388-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230810095923.123388-1-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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 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=1 > causes: > > adv7511_drv.c:1214:19: error: cast to smaller integer type 'enum adv7511_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 = connector_status_disconnected; > > if (dev->of_node) > - adv7511->type = (enum adv7511_type)of_device_get_match_data(dev); > + adv7511->type = (uintptr_t)of_device_get_match_data(dev); > else > adv7511->type = id->driver_data; > -- Regards, Laurent Pinchart