Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp834791rwl; Thu, 10 Aug 2023 02:16:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcGWE3dwJs8VWGX5icYJeVEJgRQMnxm9SVD40YHJYsdfuV0Nsj+Avfr7sypGmpuSuTK0J6 X-Received: by 2002:a17:902:cec7:b0:1b8:6952:5381 with SMTP id d7-20020a170902cec700b001b869525381mr2410021plg.9.1691658985929; Thu, 10 Aug 2023 02:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691658985; cv=none; d=google.com; s=arc-20160816; b=cCEJs6Sj8TwxQAkERD+nciEjMHkSa83cWHYBiyFGzRPOOETydlSs2rLo0xIi5gE/v/ dZRb2E3joWSQ1/HYzsypRVumgDTXRxk2x/FU0uDrut8ouxh6ws9NsjRWFXHWJyuBCK1A OaIKI386JZ8y5UUDfe3Dg4tN2kOrIXUsjd6S8h7F0dfXxvhITAFMPIF8Js3XokRRJPL9 a9cq8Jt+6D03aA84u6+cRHBuhupXN/T0SvMVXkcdHCvVrKbIBGoszc/EOLkQhJ5KYM7X y8qOcyyUipL8vkAwKSe7illHVLzM+bRlfUdbqmF8zL2T23rCTMZdv+79jFmhB/FqKF0E tTdg== 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=S4vMnao8ynro5sLCotm+nXaNSlXbnXYXpD09POJdN54=; fh=LlY2rYllgbWXn4eNOnQubvgrL/lvvpbMg7R/LclgorY=; b=wdNY0jyzjuHJHnWqvPCZD9q1/gSv0I723xtg48P64hzdZTbEOti/v1Q2WKVbEVdC1q A+Q5AhSP13cmmUU4102+nQ6hjZJQitXbdDPiiihXCbpJyWf/Z29gLJRyhI0Olpt8n5ll ZNEg5IW6tLNal910AOczDT9VOOucK7dRLO2ELEaXIUi8cs8H4Ilj7jPCL5U84laa6cRd yBLZLRst6nkFIZNCrFGrxSL8yMg6bvtSl8UWUFMy6QvqeKpzuDxreU+IEhtM5EWAYd69 Uz6VOs1XKF98gPGjYx+LR9Jt/nccZmouFjzcpPlvcFhSA00EumojQX2tbQFIt7Yo216w wD8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PRSq9Xj1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 z11-20020a1709027e8b00b001afd000029bsi1032128pla.581.2023.08.10.02.16.17; Thu, 10 Aug 2023 02:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=PRSq9Xj1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S234608AbjHJJND (ORCPT + 56 others); Thu, 10 Aug 2023 05:13:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234591AbjHJJMd (ORCPT ); Thu, 10 Aug 2023 05:12:33 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B664626AB for ; Thu, 10 Aug 2023 02:12:30 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4fe11652b64so990297e87.0 for ; Thu, 10 Aug 2023 02:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691658749; x=1692263549; 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=S4vMnao8ynro5sLCotm+nXaNSlXbnXYXpD09POJdN54=; b=PRSq9Xj1IwTUFdZFXwacGPyOX36KteDLnBAqQZN52uLMB7PYQf2EPsvnZVy8gGvjbz KVFPapCZIm9wwTvAmbRN1QYN03qcVJOOkA+tRZhFv0wKfNH6uoHZyxNWALRl9pcIek9o TJgsjeSHCrMGD6ZBzNcLXdiB6Pf3coayM/uku3fWcqyBmunH5meFWWQ+6KbjNdeIgM2n LgNwjeG/+D2cmUuILvGz1Ll9sGNZKUOG+O72D9Vaze0sB1oQ5R19ABkR2BzpbaJkKN/2 aPm6aTaJrmhvP9MNjqsVVIAkntwOlJqyfLVzsIASNvwmN7ecd7armrAo1nfsqWXIq+pz 4sHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691658749; x=1692263549; 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=S4vMnao8ynro5sLCotm+nXaNSlXbnXYXpD09POJdN54=; b=c4N4+23t0Mar+G7ItdHmwpvq2n0pT2MEsF0yw0bexJkrxFYUZ52mNxr3lFqT+j45Vo u7IWvCXHGooHJxznJDgHenaEWMlfRZXwXG9oORPbZlUufs+79PvtUwfi4i2lsdMv31oa t2PdE74SBi8WfQ9s5gF6N4sZQIsoKo+sfbFnSIPEb7BXRAsBcMcZgEPKfToNfTguL0JT TWTh/ulLTHsfgDQqsCF2gLMTk99WWvM26WiQjWevJrOaYwL4iD46S9FbkgoBLFrtCu/M RzO8HlEEUx68/JXEWIVGoojBufhbYIYF9lazEAPslkeb7ud9QajIRhOhp9BErfZHWNrt gANQ== X-Gm-Message-State: AOJu0Yy/7IPxsAffsk57OHNtGHtZkAVT0F2s88DDUNCaw29NHldqeBjH 8f4/ffZDoZDitWk07VuS4k0Pcg== X-Received: by 2002:ac2:4d19:0:b0:4f8:5905:8e0a with SMTP id r25-20020ac24d19000000b004f859058e0amr1236690lfi.6.1691658748922; Thu, 10 Aug 2023 02:12:28 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id f14-20020a50ee8e000000b0051ded17b30bsm531961edr.40.2023.08.10.02.12.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:12:28 -0700 (PDT) From: Krzysztof Kozlowski To: Kalle Valo , Jeff Johnson , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH net-next 2/2] wifi: ath10k: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:12:24 +0200 Message-Id: <20230810091224.70088-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810091224.70088-1-krzysztof.kozlowski@linaro.org> References: <20230810091224.70088-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-wireless@vger.kernel.org 'hw_rev' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: ath10k/ahb.c:736:11: error: cast to smaller integer type 'enum ath10k_hw_rev' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/net/wireless/ath/ath10k/ahb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/ahb.c b/drivers/net/wireless/ath/ath10k/ahb.c index 4a006fb4d424..95bcf54ddc3f 100644 --- a/drivers/net/wireless/ath/ath10k/ahb.c +++ b/drivers/net/wireless/ath/ath10k/ahb.c @@ -733,7 +733,7 @@ static int ath10k_ahb_probe(struct platform_device *pdev) int ret; struct ath10k_bus_params bus_params = {}; - hw_rev = (enum ath10k_hw_rev)of_device_get_match_data(&pdev->dev); + hw_rev = (uintptr_t)of_device_get_match_data(&pdev->dev); if (!hw_rev) { dev_err(&pdev->dev, "OF data missing\n"); return -EINVAL; -- 2.34.1