From da1b446b643ad4b4be9cbaa872ab6e7b88d47363 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Thu, 1 Aug 2024 14:43:50 +0100 Subject: [PATCH] scripts: conftest: Fix of_property_for_each_u32 test The conftest test for detecting the number of arguments for the macro of_property_for_each_u32() is not working as expected because the header file for the function pr_info() is not included. Fix and simplify this by removing pr_info() altogether. Bug 4749580 Change-Id: I42eb91e1cb647b44f3e0c87f1c56fe5e29a56b34 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3186544 Tested-by: mobile promotions Reviewed-by: mobile promotions --- scripts/conftest/conftest.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/conftest/conftest.sh b/scripts/conftest/conftest.sh index e96cc6bd..6f2f6399 100755 --- a/scripts/conftest/conftest.sh +++ b/scripts/conftest/conftest.sh @@ -7475,8 +7475,7 @@ compile_test() { char *propname) { u32 val; - of_property_for_each_u32(np, propname, val) - pr_info(\"val %u\n\", val); + of_property_for_each_u32(np, propname, val); }" compile_check_conftest "$CODE" "NV_OF_PROPERTY_FOR_EACH_REMOVED_INTERNAL_ARGS" "" "types"