[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <683b16dd-a3e9-4cc3-836a-95f3747d3c0a@oss.qualcomm.com>
Date: Tue, 18 Mar 2025 08:44:42 -0700
From: Jeff Johnson <jeff.johnson@....qualcomm.com>
To: Raj Kumar Bhagat <quic_rajkbhag@...cinc.com>, ath12k@...ts.infradead.org
Cc: Johannes Berg <johannes@...solutions.net>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley
<conor+dt@...nel.org>,
Jeff Johnson <jjohnson@...nel.org>, linux-wireless@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Balamurugan S <quic_bselvara@...cinc.com>,
P Praneesh <quic_ppranees@...cinc.com>,
Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@....qualcomm.com>
Subject: Re: [PATCH ath-next v11 08/13] wifi: ath12k: add AHB driver support
for IPQ5332
On 3/17/2025 1:46 PM, Raj Kumar Bhagat wrote:
> + hw_rev = (enum ath12k_hw_rev)of_device_get_match_data(&pdev->dev);
kernel test robot warns:
cast to smaller integer type 'enum ath12k_hw_rev' from 'const void *'
looks like others have fixed this by first casting to (uintptr_t)
a few examples:
tsa->version = (enum tsa_version)(uintptr_t)of_device_get_match_data(&pdev->dev);
model = (enum ep93xx_soc_model)(uintptr_t)device_get_match_data(dev);
priv->cks = (u8)(uintptr_t) of_device_get_match_data(dev);
rt5677->type = (enum rt5677_type)(uintptr_t)device_get_match_data(dev);
not sure if there is a "better" way
/jeff
Powered by blists - more mailing lists