Re: [PATCH RFC v2 2/2] tpm_tis: Move ilb_base_addr to tpm_tis_tcg_phy

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

 



On Tue, Nov 14, 2017 at 04:28:12PM -0700, Jason Gunthorpe wrote:
> On Tue, Nov 07, 2017 at 01:32:08PM -0800, Azhar Shaikh wrote:
> 
> > +#ifdef CONFIG_X86
> > +	if (is_bsw())
> > +		iounmap(phy->ilb_base_addr);
> > +#endif
> 
> This whole thing would be much better if is_bsw was just
> 
> bool is_bsw(void)
> { 
>    if (!IS_ENABLED(CONFIG_X86))
>        return false;
>    [..]
> }
> 
> Then drop every single one of these #ifdef CONFIG_X86
> 
> Jason

+1

/Jarkko



[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