Skip to content

Commit

Permalink
driver: clocksource: Change 'hv_get_register' to 'hv_get_msr'
Browse files Browse the repository at this point in the history
Error Logs:
drivers/clocksource/hyperv_timer.c: In function 'read_hv_clock_msr':
drivers/clocksource/hyperv_timer.c:394:16: error: implicit declaration of function 'hv_get_register'; did you mean 'nvmem_register'? [-Wimplicit-function-declaration]
  394 |         return hv_get_register(HV_MSR_TIME_REF_COUNT);
      |                ^~~~~~~~~~~~~~~
      |                nvmem_register
make[4]: *** [scripts/Makefile.build:244: drivers/clocksource/hyperv_timer.o] Error 1

 * In 0e3f7d1, 'hv_get_register' function changed to 'hv_get_msr'.
 * This commit fixes 3fc7838.

Signed-off-by: Yang Jeong Hun <[email protected]>
  • Loading branch information
Nevuly committed Sep 16, 2024
1 parent 761d651 commit 7ed0836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/hyperv_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static __always_inline u64 read_hv_clock_msr(void)
* register it doesn't need the GHCB path.
*/
#ifdef CONFIG_ARM64
return hv_get_register(HV_MSR_TIME_REF_COUNT);
return hv_get_msr(HV_MSR_TIME_REF_COUNT);
#else
return hv_raw_get_msr(HV_MSR_TIME_REF_COUNT);
#endif
Expand Down

0 comments on commit 7ed0836

Please sign in to comment.