Commit e930fc65 authored by Miles Chen's avatar Miles Chen Committed by Greg Kroah-Hartman
Browse files

FROMLIST: scripts/sorttable: riscv: fix undelcred identifier 'EM_RISCV' error

Fix the following build break by adding a conditional definition
of EM_RISCV in order to allow cross-compilation on machines
which do not have EM_RISCV definition in their host.

build break log from [1]:
scripts/sorttable.c:352:7: error: use of undeclared identifier 'EM_RISCV'

[1] https://lore.kernel.org/lkml/e8965b25-f15b-c7b4-748c-d207dda9c8e8@i2se.com/



Fixes: 54fed35f ("riscv: Enable BUILDTIME_TABLE_SORT")
Cc: Jisheng Zhang <jszhang@kernel.org>
Reported-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Tested-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: default avatarJisheng Zhang <jszhang@kernel.org>
Signed-off-by: default avatarMiles Chen <miles.chen@mediatek.com>
Link: https://lore.kernel.org/r/20210913030625.4525-1-miles.chen@mediatek.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I597d91c741bfcc0e879908e4e0c8aa114b9ccda4
parent 544114d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment