[PATCH 5/5] riscv: cpufeature: Drop unused includes

Andrew Jones ajones at ventanamicro.com
Fri Feb 24 00:06:36 PST 2023


On Thu, Feb 23, 2023 at 11:29:43PM +0000, Conor Dooley wrote:
> On Tue, Feb 21, 2023 at 07:56:03PM +0100, Andrew Jones wrote:
> > Do some additional include pruning while dropping errata_list.h,
> > which is getting dropped, since cpufeature.c includes hwcap.h
> > directly to get cpufeature IDs.
> 
> This commit message is a wee bit confusingly written. Not advocating
> for a respin by any means, but putting the thing that motivated the
> change before the opportunistic cleanups would have made more sense to

I'll rearrange the text for v2.

> me. /shrug
> Reviewed-by: Conor Dooley <conor.dooley at microchip.com>

Thanks,
drew

> 
> 
> > Signed-off-by: Andrew Jones <ajones at ventanamicro.com>
> > ---
> >  arch/riscv/kernel/cpufeature.c | 5 -----
> >  1 file changed, 5 deletions(-)
> > 
> > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c
> > index 85c99ae64017..151e1a715db9 100644
> > --- a/arch/riscv/kernel/cpufeature.c
> > +++ b/arch/riscv/kernel/cpufeature.c
> > @@ -8,19 +8,14 @@
> >  
> >  #include <linux/bitmap.h>
> >  #include <linux/ctype.h>
> > -#include <linux/libfdt.h>
> >  #include <linux/log2.h>
> >  #include <linux/module.h>
> >  #include <linux/of.h>
> >  #include <asm/alternative.h>
> >  #include <asm/cacheflush.h>
> > -#include <asm/errata_list.h>
> >  #include <asm/hwcap.h>
> >  #include <asm/patch.h>
> > -#include <asm/pgtable.h>
> >  #include <asm/processor.h>
> > -#include <asm/smp.h>
> > -#include <asm/switch_to.h>
> >  
> >  #define NUM_ALPHA_EXTS ('z' - 'a' + 1)
> >  
> > -- 
> > 2.39.1
> > 
> > 
> > _______________________________________________
> > linux-riscv mailing list
> > linux-riscv at lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-riscv





More information about the linux-riscv mailing list