conftest: Fix return types for timer functions

The function hrtimer_setup() returns void and the function
timer_delete() returns int, and so correct the return types
for the respective conftest functions.

JIRA LINQPJ14-47

Change-Id: I569f4fae0bf01f894583570116125a44a1757ff3
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3342808
(cherry picked from commit b9d81360d102ca2f573a9cdeafb0868d82edf77d)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3499794
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Tested-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
Jon Hunter
2025-04-17 10:59:40 +01:00
committed by mobile promotions
parent 2ec6cdcc9b
commit 0fcc21d871

View File

@@ -7505,8 +7505,8 @@ compile_test() {
# #
CODE=" CODE="
#include <linux/hrtimer.h> #include <linux/hrtimer.h>
bool conftest_hrtimer_setup(void) { void conftest_hrtimer_setup(void) {
return hrtimer_setup(); hrtimer_setup();
}" }"
compile_check_conftest "$CODE" "NV_HRTIMER_SETUP_PRESENT" "" "functions" compile_check_conftest "$CODE" "NV_HRTIMER_SETUP_PRESENT" "" "functions"
@@ -8327,7 +8327,7 @@ compile_test() {
# #
CODE=" CODE="
#include <linux/timer.h> #include <linux/timer.h>
bool conftest_timer_delete(void) { int conftest_timer_delete(void) {
return timer_delete(); return timer_delete();
}" }"