From 0fcc21d87176b9bf05666001f5bbdd79edcdb4cc Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Thu, 17 Apr 2025 10:59:40 +0100 Subject: [PATCH] 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 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 Reviewed-by: Brad Griffis Tested-by: Brad Griffis Reviewed-by: svcacv --- scripts/conftest/conftest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/conftest/conftest.sh b/scripts/conftest/conftest.sh index f0d47e24..97a9e4d5 100755 --- a/scripts/conftest/conftest.sh +++ b/scripts/conftest/conftest.sh @@ -7505,8 +7505,8 @@ compile_test() { # CODE=" #include - bool conftest_hrtimer_setup(void) { - return hrtimer_setup(); + void conftest_hrtimer_setup(void) { + hrtimer_setup(); }" compile_check_conftest "$CODE" "NV_HRTIMER_SETUP_PRESENT" "" "functions" @@ -8327,7 +8327,7 @@ compile_test() { # CODE=" #include - bool conftest_timer_delete(void) { + int conftest_timer_delete(void) { return timer_delete(); }"