Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp937960rwl; Thu, 10 Aug 2023 04:11:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHzzVaa9Tfn9AOff11dEZdzR7zmZya3riciLrmFkgAg7CQFz+3ZV7kjkEVcNf1SW5iuOAAs X-Received: by 2002:a17:906:76d5:b0:99b:4210:cc76 with SMTP id q21-20020a17090676d500b0099b4210cc76mr2082380ejn.28.1691665877875; Thu, 10 Aug 2023 04:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691665877; cv=none; d=google.com; s=arc-20160816; b=yTyvtpxheTqiWSEqOxx7ZDN++QyR4ayjEbpsxgpkVkx4US09536owognWvtHysk/7s 1f59ZsjsAjqc4LnHjYE5ih1lM+RoTJtv12hoRkLiSMt1M7vDiEPL3qCYzm1RtxDuq4GB BNms4u2By1CNbKooeGdx9uvE29wgkvbf1NJ3a/7cmMh1Gb21yPPZPU0HFdOXI3ZwuplL RTK+2soN3cxUrIw+c5YI2ssGym3j0Asb2W2oyo2N49NZvQ2ApbjrDRcQQNrksYIM1iN9 zmobziXBq3tmNv8f7hPlGCd//PUZy8nZZXPZbSqk8gPKBQk2zaub/Lu3monJdXC+cZdP ZvdA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zekv1qUTHsXZMS52D/bblKYQ9yuAb3K5khsXk7JIads=; fh=WBlI1L+yoQSe31GwwUqQVKDOBZlMUDrlf/nUBWAshIs=; b=YI0HKkyO8VViBD4kNVwLI30HCtFBWVzQKVqUymuLAsdgkcOjJ7NnqMRLQ9gulOvI6H cBtRrDxW6SQqmlouGbESqz913Zd2PfgKbTQKa4Tgcz4bUKT+5FAqSImJ8mbDtjFqtx1o /1JmEHv74paYYwFzkSLYdgZ0yYfe8Rj8YcinVkyMgTFVJ5cCu2WuaesG0JgAxIj5Ne6e q6wj7hA65ndpwoJAoc/lQV3FumUAUvHWD/vLSpxu48pqn1tKigRiQVIxSKU7ayDQcehD dL3unLA6gGPDXNTFpFdF8AFd6nfwrITvRAcMPwPjHRL3gsCEZiP5GqDX77CblIC/XUgl +kFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hsk6a635; 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 re24-20020a170906d8d800b00986432cf57csi1228142ejb.942.2023.08.10.04.10.53; Thu, 10 Aug 2023 04:11:17 -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=Hsk6a635; 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 S235051AbjHJJ7j (ORCPT + 99 others); Thu, 10 Aug 2023 05:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235020AbjHJJ7E (ORCPT ); Thu, 10 Aug 2023 05:59:04 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49E1310C7 for ; Thu, 10 Aug 2023 02:59:03 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fe5c0e5747so3988885e9.0 for ; Thu, 10 Aug 2023 02:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661542; x=1692266342; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zekv1qUTHsXZMS52D/bblKYQ9yuAb3K5khsXk7JIads=; b=Hsk6a635P0uAUW2FI8CFKpCkorA724IY5XNrKigMaVTe/XyKck9fs2A+yBzzHij0M0 1qvAV8izKdrfUxYxu/93N605HJJ2hYYenHqzHQ3SO88mUlm/eJsuLphnT2WcfyRCGr+B OcG0uJNM9uVqWzAts3ZaJhhp4nkc0eksQF4tFOlvlot8gdUmd9SxDrfZbTSgN6yVJabE QDznRHzUux8migZ8J8W86WYwetjShJ+e0HordOTY9j3Bbo9ijueh498qxo6sVf/R6rKC ugpF4xt/BXsFr7Rcq7ITQOCppE5QX6rkKvq7rAC9kJcTFB5YJ8lJf9+OxHknho83FEdB la7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661542; x=1692266342; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zekv1qUTHsXZMS52D/bblKYQ9yuAb3K5khsXk7JIads=; b=ZPHmgax9TAM0qdv8RosC0Yduw8TZ3r/G+mr3IP9fPnZEHGNbw51xIhxpkqty5CcRXk JoC5FpFpgAP+KMqWdzL3f0ryybL+cPR3OlgChYExyaQefq5OiTQS58L90UV1ssgtyFtB U6/HXgncaVQfeHagX/UkTw3VjA3xpch8txqk8pXNNT/Eo4ApawEvs9AUxWMoqEGhHPeW 9iaXVSQUt7BzHppTWfXAqogy8ilRY84mnBUECDld/eUGdFQbPH8MTkKB4804Vfo+cfIE uwJm6C9EgEZ/m4g8o8l/a/BW12G9u5MAtXgSOHlVJqVBpYZ0AGiRuu01jxXGU24hXoi6 Otww== X-Gm-Message-State: AOJu0YxTZItPJdua0JcsbTl8UgoZY8POemNt1kV2iu/ThXKoNzNmSFP1 wlvHrG2tEXJpJ5NTy+IXXv9KZg== X-Received: by 2002:a05:600c:2909:b0:3fe:1b5e:82 with SMTP id i9-20020a05600c290900b003fe1b5e0082mr1114932wmd.20.1691661541849; Thu, 10 Aug 2023 02:59:01 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id p1-20020adfcc81000000b003179b3fd837sm1621372wrj.33.2023.08.10.02.59.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:59:01 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Chanwoo Choi , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Maxime Coquelin , Alexandre Torgue , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, patches@opensource.cirrus.com Cc: Andi Shyti Subject: [PATCH 7/9] mfd: wm8994: Fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:58:47 +0200 Message-Id: <20230810095849.123321-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810095849.123321-1-krzysztof.kozlowski@linaro.org> References: <20230810095849.123321-1-krzysztof.kozlowski@linaro.org> 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: wm8994-core.c:631:19: error: cast to smaller integer type 'enum wm8994_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/wm8994-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index 1e4f1694f065..aba7af688175 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -628,7 +628,7 @@ static int wm8994_i2c_probe(struct i2c_client *i2c) if (i2c->dev.of_node) { of_id = of_match_device(wm8994_of_match, &i2c->dev); if (of_id) - wm8994->type = (enum wm8994_type)of_id->data; + wm8994->type = (uintptr_t)of_id->data; } else { wm8994->type = id->driver_data; } -- 2.34.1