-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'linux_kselftest-fixes-6.10-rc5' of git://git.kernel.org/pu…
…b/scm/linux/kernel/git/shuah/linux-kselftest Pull kselftest fixes from Shuah Khan: - filesystems: warn_unused_result warnings - seccomp: format-zero-length warnings - fchmodat2: clang build warnings due to-static-libasan - openat2: clang build warnings due to static-libasan, LOCAL_HDRS * tag 'linux_kselftest-fixes-6.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests/fchmodat2: fix clang build failure due to -static-libasan selftests/openat2: fix clang build failures: -static-libasan, LOCAL_HDRS selftests: seccomp: fix format-zero-length warnings selftests: filesystems: fix warn_unused_result build warnings
- Loading branch information
Showing
4 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined -static-libasan $(KHDR_INCLUDES) | ||
CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined $(KHDR_INCLUDES) | ||
|
||
# gcc requires -static-libasan in order to ensure that Address Sanitizer's | ||
# library is the first one loaded. However, clang already statically links the | ||
# Address Sanitizer if -fsanitize is specified. Therefore, simply omit | ||
# -static-libasan for clang builds. | ||
ifeq ($(LLVM),) | ||
CFLAGS += -static-libasan | ||
endif | ||
|
||
TEST_GEN_PROGS := fchmodat2_test | ||
|
||
include ../lib.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined -static-libasan | ||
CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined | ||
TEST_GEN_PROGS := openat2_test resolve_test rename_attack_test | ||
|
||
# gcc requires -static-libasan in order to ensure that Address Sanitizer's | ||
# library is the first one loaded. However, clang already statically links the | ||
# Address Sanitizer if -fsanitize is specified. Therefore, simply omit | ||
# -static-libasan for clang builds. | ||
ifeq ($(LLVM),) | ||
CFLAGS += -static-libasan | ||
endif | ||
|
||
LOCAL_HDRS += helpers.h | ||
|
||
include ../lib.mk | ||
|
||
$(TEST_GEN_PROGS): helpers.c helpers.h | ||
$(TEST_GEN_PROGS): helpers.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters