Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp992637rwl; Thu, 10 Aug 2023 05:04:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9+XbFDmm0C277NWcB77hAx0DBpsWThnMszgL2akyP/R8bT4eChdACFWw6sixMoP84KfEc X-Received: by 2002:a92:cd8c:0:b0:349:784:4c40 with SMTP id r12-20020a92cd8c000000b0034907844c40mr3137837ilb.19.1691669051177; Thu, 10 Aug 2023 05:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691669051; cv=none; d=google.com; s=arc-20160816; b=qqrOq8ZSK/v/yYk9hi3Ea2eVeeEAHzXSozt4l37N68zM6NNP4MbTsXKQf+O+FLFaw9 P3wgFmxTIvMJw+N/jbZXmsdIKHt8DKC3j9vmU2ZARoSXPOr93Pi2nbBH+148cZMTmlXo 8rMlgCJZkv4EFwNJSGI6uZ0n89WIsVhfl698DGQtCfQoUh6CPgpIuW4s1sjf7XCaQQJE imstizQe7YXmw4pDNhkaMffKEzKz2QrV2nZ1/OQctLC2wiUTfa9A3+TUHxkBNUcKEcZ/ jsoFV3x2VZQZ8z0BPnsPtNAmNQMsaxdmxhinBAr/AVH7ha5zagTd+3pf+IFA9UNnTzOH CTSg== 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=GE4pGueQV8y2D52sbpZ8fiifhgsCMak0CFYGf7FSEn8=; fh=hNdebBiMSNYbxUQx3T5hlhyfZ5mDhnYahLqc2jV3AYc=; b=rnVQGGz4TwDufi4XZb32APNf1+ck3V/EHgQzEva+4mKwfEqUcaZS9Q2ZiDzpe1KrGx fNCoMiT7CCZgWBDiywBTP4dq6XZ4nhlUr212M/GWY2eZtfcI2p3jbbsuHG/sGFEoY+fH GlEoiFJaroSxsc1jPW766g3pcSBisdHFNSLRZkV7oWe4C4ecaMLWqoRz83Adp9udrw8j ZIq4q3uxtRE0Q16y6IDkkXUmsYielx65GAa7D7iY6H8JiZz/xJUuinA2ohI/0WqYjFRt Ooo62n52SwFzQlMrMRyu7+d6oUPFku8n+cJLtUZ9VuJWJ6EEJg47Gcll/5d8R+AReLX/ TzBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kN8NaS4+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e32-20020a630f20000000b00563deb65f93si1358672pgl.200.2023.08.10.05.03.55; Thu, 10 Aug 2023 05:04:11 -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=@gmail.com header.s=20221208 header.b=kN8NaS4+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232564AbjHJKUi (ORCPT + 99 others); Thu, 10 Aug 2023 06:20:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231533AbjHJKUg (ORCPT ); Thu, 10 Aug 2023 06:20:36 -0400 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36FC9F; Thu, 10 Aug 2023 03:20:35 -0700 (PDT) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-1bb782974f4so676716fac.3; Thu, 10 Aug 2023 03:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691662835; x=1692267635; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GE4pGueQV8y2D52sbpZ8fiifhgsCMak0CFYGf7FSEn8=; b=kN8NaS4+IX1YhOzjYiU/j5C2QaBh8E/y0dbQJPAdxDg6sA2hgAX8id7Gvsmzycd3dE rPgFrPDWW7iIfkuWbz6ILJQQaYrSUNi/TNnK4wW8Cekxl9Fx7cACO5dAQr/yZipImDnc 9PCds7NQ4Y/NIVUMdCEVhOybMTYjC9ltWg6uEENCPCO+DtWqu2Tl5/XY/3uuLpZSL6zV uI8pl/PKSybsDURl+tllZ2Wpf5EAdShSCf0L3e+wSNspEt/PJ71t1HKkwqndh9aAYRbB xjspt7Io3VRoU3d3/7pEUnjajOJeHaPgHOLJYFeEutawJYqKKiAgxkqxwvsALgDrJdhz yQuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691662835; x=1692267635; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GE4pGueQV8y2D52sbpZ8fiifhgsCMak0CFYGf7FSEn8=; b=kuh/I4RVEcjL36qXVpOoZ+LFfcG8eza14pb1NMpzYTU+bYKPZ5dR16ZFRUzS83kYnp N0wb7jI217Bs16DfRt5UB/bXiuobDLh2f5SeOdKLTzX6GfafAXUTB3B0CtjbBIHloVf7 l030Geo4XREbzDGoMOfhZuOdxe8iwiMBIa4d/PbRjU098cp9GxM9VEAe8p3eFKS1glTh eocfxMY0GIGcTxyGS0jcfgu0X80r9l/UGmsOONioOyxtdoEBmcIJ8CCnvz5+RbuiHs9p EYYyh7Cc7cZ/AcbwzFXYufoisWvFCoO+g4zyMHBYPNNyOIODUahXQJ1vn6vodRNxjiw7 +rJw== X-Gm-Message-State: AOJu0YwKHhEfyvoOCsqW4RQ2xcrAb63edH008r/gNhFxe4Jaft8yr5ng MDUBAhnz49D0hn839VKlgg119fmo9mVkhiOKlZo= X-Received: by 2002:a05:6870:a249:b0:1bb:b9d6:a879 with SMTP id g9-20020a056870a24900b001bbb9d6a879mr2203559oai.38.1691662835044; Thu, 10 Aug 2023 03:20:35 -0700 (PDT) MIME-Version: 1.0 References: <20230810095949.123473-1-krzysztof.kozlowski@linaro.org> In-Reply-To: <20230810095949.123473-1-krzysztof.kozlowski@linaro.org> From: Andy Shevchenko Date: Thu, 10 Aug 2023 13:19:59 +0300 Message-ID: Subject: Re: [PATCH] gpio: mxs: fix Wvoid-pointer-to-enum-cast warning To: Krzysztof Kozlowski Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andi Shyti Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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:59=E2=80=AFPM Krzysztof Kozlowski wrote: > > 'devid' is an enum, thus cast of pointer on 64-bit compile test with W=3D= 1 > causes: > > gpio-mxs.c:274:16: error: cast to smaller integer type 'enum mxs_gpio_i= d' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Reviewed-by: Andy Shevchenko --=20 With Best Regards, Andy Shevchenko