Re: [PATCH ath-next v11 08/13] wifi: ath12k: add AHB driver support for IPQ5332

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18/03/2025 16:44, Jeff Johnson wrote:
> 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:
> 
Cast via (kernel_ulong_t)

But another point is that this patch at stage v11 should not have
compiler warnings and it's not our tools who should point it out. Except
W=1, all standard static analyzers (sparse, smatch and coccinelle) are
expected to be run.

Best regards,
Krzysztof




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux