From 3079e1c4aa6d25854b99109d69e2bc3536e30ffc Mon Sep 17 00:00:00 2001 From: veqcc Date: Tue, 4 Mar 2025 16:28:47 +0900 Subject: [PATCH] minor fix Signed-off-by: veqcc --- agnocast_kmod/Makefile | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/agnocast_kmod/Makefile b/agnocast_kmod/Makefile index c79664c3..b4bf47dc 100644 --- a/agnocast_kmod/Makefile +++ b/agnocast_kmod/Makefile @@ -3,19 +3,19 @@ ccflags-y += -Wall -Werror ifneq ($(KUNIT_BUILD),y) obj-m := agnocast.o else - ifeq ($(CONFIG_KUNIT),y) and ($(CONFIG_GCOV_KERNEL),y) + ifeq ($(CONFIG_KUNIT)$(CONFIG_GCOV_KERNEL),yy) obj-m := agnocast_kunit.o agnocast_kunit-m := agnocast_kunit_main.o agnocast.o \ - agnocast_kunit/agnocast_kunit_subscriber_add.o \ - agnocast_kunit/agnocast_kunit_publisher_add.o \ - agnocast_kunit/agnocast_kunit_increment_rc.o \ - agnocast_kunit/agnocast_kunit_decrement_rc.o \ - agnocast_kunit/agnocast_kunit_receive_msg.o \ - agnocast_kunit/agnocast_kunit_publish_msg.o \ - agnocast_kunit/agnocast_kunit_take_msg.o \ - agnocast_kunit/agnocast_kunit_new_shm.o \ - agnocast_kunit/agnocast_kunit_get_subscriber_num.o \ - agnocast_kunit/agnocast_kunit_get_topic_list.o + agnocast_kunit/agnocast_kunit_subscriber_add.o \ + agnocast_kunit/agnocast_kunit_publisher_add.o \ + agnocast_kunit/agnocast_kunit_increment_rc.o \ + agnocast_kunit/agnocast_kunit_decrement_rc.o \ + agnocast_kunit/agnocast_kunit_receive_msg.o \ + agnocast_kunit/agnocast_kunit_publish_msg.o \ + agnocast_kunit/agnocast_kunit_take_msg.o \ + agnocast_kunit/agnocast_kunit_new_shm.o \ + agnocast_kunit/agnocast_kunit_get_subscriber_num.o \ + agnocast_kunit/agnocast_kunit_get_topic_list.o ccflags-y += -DKUNIT_BUILD -fprofile-arcs -ftest-coverage else $(warning "CONFIG_KUNIT or CONFIG_GCOV_KERNEL is not set") @@ -38,7 +38,6 @@ ifeq ($(shell expr $(KERNEL_MAJOR) \< 5 \| $(KERNEL_MAJOR) = 5 \& $(KERNEL_MINOR ccflags-y += -std=gnu11 endif - # In Linux kernel versions v6.4 and earlier, the top-level Makefile includes # -Wdeclaration-after-statement, which requires all variables used within # a function to be declared at the beginning of the function. To suppress