Commit b09f8498 authored by Hanjun Guo's avatar Hanjun Guo Committed by Yang Yingliang
Browse files

clocksource/drivers/arch_timer: Fix vdso_fix compile error for arm32



hulk inclusion
category: bugfix
bugzilla: 47461
CVE: NA

-------------------------------------------------

We got compile error:

drivers/clocksource/arm_arch_timer.c: In function
'arch_counter_register':
drivers/clocksource/arm_arch_timer.c:1009:31: error: 'struct
arch_clocksource_data' has no member named 'vdso_fix'
1009 |   clocksource_counter.archdata.vdso_fix = vdso_fix;
      |                               ^
make[3]: ***
[/builds/1mzfdQzleCy69KZFb5qHNSEgabZ/scripts/Makefile.build:303:
drivers/clocksource/arm_arch_timer.o] Error 1
make[3]: Target '__build' not remade because of errors.

Fix it by guarding vdso_fix with #ifdef CONFIG_ARM64 .. #endif

Signed-off-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent d9eef3fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment