Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp949123rwl; Thu, 10 Aug 2023 04:22:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtC+xNKPkWnNEGGRTzU4yuERPFfzPPDJ65NEU+n37GW4i+XUbm3RYMZ25C7U2HJeIC0ZqQ X-Received: by 2002:a05:6a00:2189:b0:687:535f:6712 with SMTP id h9-20020a056a00218900b00687535f6712mr2365727pfi.14.1691666530430; Thu, 10 Aug 2023 04:22:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691666530; cv=none; d=google.com; s=arc-20160816; b=Nz/ebfHwdZ5uqIXczgqidUGNA5Yokq+1CFMHEN+0ZuIamZ3RB0OlavshrBl2kyNiX3 flJprg2VsndjgvWFdlUVemMJazUpnxoPtUUaqQuAi7sgkGzOSA8QIMCDaAaGJmfoim+u nsrOgO1Ty5hdH/9u558foC5w8iLWPFx3+iDJGWzWkcS99ZLTLv9qhsrq5Oedpr4Rdvbp gQF6ROgflh3IGad53OGVcwsz6NqfX1D1G/KCg3k8pMmQi1CAaoy/SGTvw9IN/fh9WGWs MVEKO/Ppk3jLKOuMvHWSENUlQ1RqS2Rgr1REcgDqYUZBsEGRi3zwZFXcK/MsQ5fSaw6c F8lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3DbDWowkXJ8CHoc7ekr/xcmqd0aQK/hBwEyNws4eo4A=; fh=pLdQqVjt8j/dbpewIzknuOWyLBxXN5I/0WkEt+WUOok=; b=Dybxa5X36oNchWZnSVQ4kjv+r2+L4Y8Qd89wwUDxf06+rwJ4+VUlcnEKU7dqifB4T9 GNVNwmVZjzymjaf2Wjmgx+Laf7sqQAyQCi9qYSTQKD7LLxVodF9qNpNfPdweDqa3TV+b a08c7N1Wv3Kyj3nx3BJ+dj84n3127sLjQ87JTGLdEI5vj3Qwjfg8sGi2lYcwACNCT4sD zc9keEKR2kkAtcPj+0/OKcUXHAS/5pD1uywitBLn1VAAiPwX4phJSPIAbJrzFuaEypSx b+z9u6zVeZW7ulObyZLkOoKIvFSVrDPFOlH4TMhapWpFOoba1ZGPyN0xdn2qFOU41Plq SelA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fEpu3P8z; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a056a000cc400b0068730af8c95si1437355pfv.267.2023.08.10.04.21.58; Thu, 10 Aug 2023 04:22:10 -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=@linaro.org header.s=google header.b=fEpu3P8z; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235162AbjHJKBR (ORCPT + 99 others); Thu, 10 Aug 2023 06:01:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235161AbjHJKAf (ORCPT ); Thu, 10 Aug 2023 06:00:35 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CCD135B6 for ; Thu, 10 Aug 2023 02:59:48 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5233deb7cb9so823722a12.3 for ; Thu, 10 Aug 2023 02:59:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661586; x=1692266386; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3DbDWowkXJ8CHoc7ekr/xcmqd0aQK/hBwEyNws4eo4A=; b=fEpu3P8zAA6g7fvRKT2cpmWB+RQRVV+s3zv8bjnpqc5yMAo2GYdQt69/ZdgjF+1uiM h8moA7LpmwcRIBx8RtuLFpfmTKUB/67tqoWQhqikKz+/VhoRLRpOzPWunEe2Heh86X60 XcNuUTZbzN4jYV0ZDzwhJnOSn5kqWgRzPea6hv/xOdKUAis45iHhxStH/TV74qSVnjCp W37VVZMgP6ljLw7eqElsaNvQw9SjkCBaqfcBqDQzhxypH73my2bDGcqDL/ftJ9nUk58A Iop686p7ftJbt+00lN9WdQbkU1MMZ9wa4Qdtj7NgFco5DWgP3GHYE6FANlCmfTwuZEzH L9bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661586; x=1692266386; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3DbDWowkXJ8CHoc7ekr/xcmqd0aQK/hBwEyNws4eo4A=; b=X1iseS/TCaDNhbyGRYWVmmgcrvNTDUSQcOd3Rjm1OaATNrxwlCk7bSpGe+6SfPpHQw /q++nY2FLQ0+21m7lLAhTfSNrq6z3PZ3ZcurIlEUcf+ewfgGKm6Oipeep5sNQIqA3H/J Dy2VIdT6szT53C+FtKwxOLXoXFxPnZc4oSMs5oIRiUlkUk27KiS5HFw1PIwCwDIZZg7k eqedMBNs/Yd9I83FMbZQLzzbArN0yyhOeG9Jzak8RlTfU7cx6WvIxOVFYfd2AxaDiYkV 3wydHG3gfdkfpixI4E2x1d5PwwkhUhXBXE3fG31nH+aoc38ptLfItPWUc9kXRvazg3fD m3MA== X-Gm-Message-State: AOJu0YzUjyiaV8t9+AdiSd/kKzzzYqdTL7gQwx8XXj9YYWcFlOJkZHyF z128r6xOk/4TQca8v22cXZ5h2CiW7taiL059jXD1Gw== X-Received: by 2002:a7b:cc85:0:b0:3fe:173e:4a53 with SMTP id p5-20020a7bcc85000000b003fe173e4a53mr1551533wma.0.1691661566553; Thu, 10 Aug 2023 02:59:26 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id v1-20020adff681000000b00313e2abfb8dsm1610969wrp.92.2023.08.10.02.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:59:26 -0700 (PDT) From: Krzysztof Kozlowski To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Qiang Yu , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, lima@lists.freedesktop.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 1/2] drm/bridge: adv7511: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:59:22 +0200 Message-Id: <20230810095923.123388-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_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 '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 --- 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; -- 2.34.1