Loading
arm64: ilp32: fix kabi change
hulk inclusion
category: feature
bugzilla: NA
CVE: NA
---------------------------
The following commit add 'include <linux/compat.h>' in
arch/arm64/include/asm/elf.h because it needs to refer
'is_compat_task()' which is implemented in
'arch/arm64/include/asm/is_compat.h'. But this will cause kabi change.
commit c43af1fd804dfd4d653aa3f8ba5ca0cc4ce818e6
arm64: introduce is_a32_compat_{task,thread} for AArch32 compat
Since 'asm/is_compat.h' has been included by 'asm/processor.h', which is
included by 'asm/elf.h', we don't need to include 'linux/compat.h'.
When CONFIG_COMPAT is disabled, 'is_compat_task()' is not defined. We
need to defined it as zero as what is done in 'linux/compat.h'.
Signed-off-by:
Xiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by:
Hanjun Guo <guohanjun@huawei.com <mailto:guohanjun@huawei.com>>
Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>