conftest: update tests for ICC functions

Add the existing ICC function tests in the Makefile and remove
unncessary check interconnect header file check in the tests.

Bug 4963969

Change-Id: I10f57798d444b656d8866613b1ea6db3df76bcd1
Signed-off-by: Johnny Liu <johnliu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3328824
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
This commit is contained in:
Johnny Liu
2025-03-26 05:26:06 +00:00
committed by Jon Hunter
parent b62ef100a7
commit f654e9aed9
2 changed files with 4 additions and 8 deletions

View File

@@ -5326,9 +5326,7 @@ compile_test() {
# interconnect API")
#
CODE="
#if defined(NV_LINUX_INTERCONNECT_H_PRESENT)
#include <linux/interconnect.h>
#endif
void conftest_icc_get(void)
{
icc_get();
@@ -5346,9 +5344,7 @@ compile_test() {
# exported API for user interconnect API")
#
CODE="
#if defined(NV_LINUX_INTERCONNECT_H_PRESENT)
#include <linux/interconnect.h>
#endif
void conftest_devm_of_icc_get(void)
{
devm_of_icc_get();
@@ -5366,9 +5362,7 @@ compile_test() {
# interconnect API")
#
CODE="
#if defined(NV_LINUX_INTERCONNECT_H_PRESENT)
#include <linux/interconnect.h>
#endif
void conftest_icc_set_bw(void)
{
icc_set_bw();
@@ -5386,9 +5380,7 @@ compile_test() {
# interconnect API")
#
CODE="
#if defined(NV_LINUX_INTERCONNECT_H_PRESENT)
#include <linux/interconnect.h>
#endif
void conftest_icc_put(void)
{
icc_put();