diff mbox series

riscv: skip errata_cip_453.o if CONFIG_ERRATA_SIFIVE_CIP_453 is disabled

Message ID 1621640415-24971-1-git-send-email-vincent.chen@sifive.com (mailing list archive)
State New, archived
Headers show
Series riscv: skip errata_cip_453.o if CONFIG_ERRATA_SIFIVE_CIP_453 is disabled | expand

Commit Message

Vincent Chen May 21, 2021, 11:40 p.m. UTC
From: Vincent <vincent.chen@sifive.com>

The errata_cip_453.o should be built only when the Kconfig
CONFIG_ERRATA_SIFIVE_CIP_453 is enabled.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Vincent <vincent.chen@sifive.com>
Fixes: 0e0d4992517f ("riscv: enable SiFive errata CIP-453 and CIP-1200 Kconfig only if CONFIG_64BIT=y")
---
 arch/riscv/errata/sifive/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Palmer Dabbelt May 29, 2021, 10:44 p.m. UTC | #1
On Fri, 21 May 2021 16:40:15 PDT (-0700), vincent.chen@sifive.com wrote:
> From: Vincent <vincent.chen@sifive.com>
>
> The errata_cip_453.o should be built only when the Kconfig
> CONFIG_ERRATA_SIFIVE_CIP_453 is enabled.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Vincent <vincent.chen@sifive.com>
> Fixes: 0e0d4992517f ("riscv: enable SiFive errata CIP-453 and CIP-1200 Kconfig only if CONFIG_64BIT=y")
> ---
>  arch/riscv/errata/sifive/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/errata/sifive/Makefile b/arch/riscv/errata/sifive/Makefile
> index bdd5fc843b8e..2fde48db0619 100644
> --- a/arch/riscv/errata/sifive/Makefile
> +++ b/arch/riscv/errata/sifive/Makefile
> @@ -1,2 +1,2 @@
> -obj-y += errata_cip_453.o
> +obj-$(CONFIG_ERRATA_SIFIVE_CIP_453) += errata_cip_453.o
>  obj-y += errata.o

Thanks, this is on fixes.
diff mbox series

Patch

diff --git a/arch/riscv/errata/sifive/Makefile b/arch/riscv/errata/sifive/Makefile
index bdd5fc843b8e..2fde48db0619 100644
--- a/arch/riscv/errata/sifive/Makefile
+++ b/arch/riscv/errata/sifive/Makefile
@@ -1,2 +1,2 @@ 
-obj-y += errata_cip_453.o
+obj-$(CONFIG_ERRATA_SIFIVE_CIP_453) += errata_cip_453.o
 obj-y += errata.o