Re: [PATCH v7 14/21] tpm: Add HMAC session name/handle append

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

 



On Fri, 2024-02-23 at 19:06 +0200, Jarkko Sakkinen wrote:
> > +static inline enum tpm2_mso_type tpm2_handle_mso(u32 handle)
> > +{
> > +       return handle >> 24;
> 
> did we have macro for this (cannot recall)? like oppposite
> of BIT().

No, that's why I added this. inline functions are easier to type check
than macros.

James





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux