Re: [PATCH bpf v4 7/7] selftests/bpf: Test outer map update operations in syscall program

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

 



On Thu, Nov 30, 2023 at 10:01:20PM +0800, Hou Tao wrote:
>  
> -	prog_load_attr.license = (long) license;
> -	prog_load_attr.insns = (long) insns;
> +	prog_load_attr.license = (unsigned long)license;
> +	prog_load_attr.insns = (unsigned long)insns;

Maybes keep it as (long) ?
There are plenty of case where we cast a pointer to (long) because
it's less verbose. Signedness shouldn't really matter.
Or use ptr_to_u64().

pw-bot: cr




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux