Skip to content

Commit 71fc41e

Browse files
xzpeterakpm00
authored andcommitted
selftests/mm: rename COW_EXTRA_LIBS to IOURING_EXTRA_LIBS
The macro and facility can be reused in other tests too. Make it general. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peter Xu <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Axel Rasmussen <[email protected]> Cc: Mika Penttilä <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Nadav Amit <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent cff2945 commit 71fc41e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tools/testing/selftests/mm/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ warn_32bit_failure:
161161
endif
162162
endif
163163

164-
# cow_EXTRA_LIBS may get set in local_config.mk, or it may be left empty.
165-
$(OUTPUT)/cow: LDLIBS += $(COW_EXTRA_LIBS)
164+
# IOURING_EXTRA_LIBS may get set in local_config.mk, or it may be left empty.
165+
$(OUTPUT)/cow: LDLIBS += $(IOURING_EXTRA_LIBS)
166166

167167
$(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap
168168

@@ -175,11 +175,11 @@ local_config.mk local_config.h: check_config.sh
175175

176176
EXTRA_CLEAN += local_config.mk local_config.h
177177

178-
ifeq ($(COW_EXTRA_LIBS),)
178+
ifeq ($(IOURING_EXTRA_LIBS),)
179179
all: warn_missing_liburing
180180

181181
warn_missing_liburing:
182182
@echo ; \
183-
echo "Warning: missing liburing support. Some COW tests will be skipped." ; \
183+
echo "Warning: missing liburing support. Some tests will be skipped." ; \
184184
echo
185185
endif

tools/testing/selftests/mm/check_config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ $CC -c $tmpfile_c -o $tmpfile_o >/dev/null 2>&1
2121

2222
if [ -f $tmpfile_o ]; then
2323
echo "#define LOCAL_CONFIG_HAVE_LIBURING 1" > $OUTPUT_H_FILE
24-
echo "COW_EXTRA_LIBS = -luring" > $OUTPUT_MKFILE
24+
echo "IOURING_EXTRA_LIBS = -luring" > $OUTPUT_MKFILE
2525
else
2626
echo "// No liburing support found" > $OUTPUT_H_FILE
2727
echo "# No liburing support found, so:" > $OUTPUT_MKFILE
28-
echo "COW_EXTRA_LIBS = " >> $OUTPUT_MKFILE
28+
echo "IOURING_EXTRA_LIBS = " >> $OUTPUT_MKFILE
2929
fi
3030

3131
rm ${tmpname}.*

0 commit comments

Comments
 (0)