[PATCH v2 19/36] KVM: arm64: gic-v5: Check for pending PPIs

Jonathan Cameron jonathan.cameron at huawei.com
Thu Jan 8 08:57:29 PST 2026


> > > Signed-off-by: Sascha Bischoff <sascha.bischoff at arm.com>  
> > Hi Sascha,
> > 
> > One thing I notice in here is the use of unsigned long vs u64 is a
> > bit
> > inconsistent.  When it's a register or something we just read from a
> > register
> > I'd always use u64.  
> 
> Yeah, I'd like to do the same. The issue is that the for_each_set_bit()
> loop construct only works with unsigned long, and not u64. I'll rework
> the code to use u64 wherever possible.

Whilst is a bit silly with a single u64, there is bitmap_from_arr64()
The compiler should be able to see enough to flatten that to an assignment
so it's pretty cheap and ends up documenting why types are different.



More information about the linux-arm-kernel mailing list