mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-13 20:59:37 +02:00
ANDROID: Build with -D_GNU_SOURCE= to avoid redefinition warnings
To avoid warnings like: futex_requeue_pi.c:20: warning: "_GNU_SOURCE" redefined Use the form -D_GNU_SOURCE= to avoid setting _GNU_SOURCE to 1. Link: https://lore.kernel.org/all/20240531200755.128749-4-jhubbard@nvidia.com/ Bug: 339526723 Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:ded7d82f0e3c166205b58a7cc7df74e71c1f4959) Merged-In: Ibcb11578a7c0972ac246de519d71b5e804fb74ec Change-Id: Ibcb11578a7c0972ac246de519d71b5e804fb74ec
This commit is contained in:
parent
cb58ac06ff
commit
d564ca175a
24
BUILD.bazel
24
BUILD.bazel
|
@ -1121,7 +1121,7 @@ cc_binary_with_abi(
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi_mismatched_ops.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi_mismatched_ops.c"],
|
||||||
out = "futex_requeue_pi_mismatched_ops",
|
out = "futex_requeue_pi_mismatched_ops",
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -1142,7 +1142,7 @@ cc_binary_with_abi(
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c"],
|
||||||
out = "futex_requeue_pi_signal_restart",
|
out = "futex_requeue_pi_signal_restart",
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -1163,7 +1163,7 @@ cc_binary_with_abi(
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi.c"],
|
||||||
out = "futex_requeue_pi",
|
out = "futex_requeue_pi",
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -1184,7 +1184,7 @@ cc_binary_with_abi(
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_requeue.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_requeue.c"],
|
||||||
out = "futex_requeue",
|
out = "futex_requeue",
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -1205,7 +1205,7 @@ cc_binary_with_abi(
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c"],
|
||||||
out = "futex_wait_private_mapped_file",
|
out = "futex_wait_private_mapped_file",
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -1226,7 +1226,7 @@ cc_binary_with_abi(
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait_timeout.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait_timeout.c"],
|
||||||
out = "futex_wait_timeout",
|
out = "futex_wait_timeout",
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -1247,7 +1247,7 @@ cc_binary_with_abi(
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c"],
|
||||||
out = "futex_wait_uninitialized_heap",
|
out = "futex_wait_uninitialized_heap",
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -1268,7 +1268,7 @@ cc_binary_with_abi(
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait_wouldblock.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait_wouldblock.c"],
|
||||||
out = "futex_wait_wouldblock",
|
out = "futex_wait_wouldblock",
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -1289,7 +1289,7 @@ cc_binary_with_abi(
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait.c"],
|
||||||
out = "futex_wait",
|
out = "futex_wait",
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -1439,7 +1439,7 @@ cc_library(
|
||||||
srcs = ["tools/testing/selftests/mm/vm_util.c"],
|
srcs = ["tools/testing/selftests/mm/vm_util.c"],
|
||||||
hdrs = ["tools/testing/selftests/mm/vm_util.h"],
|
hdrs = ["tools/testing/selftests/mm/vm_util.h"],
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
],
|
],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -1453,7 +1453,7 @@ cc_binary_with_abi(
|
||||||
"tools/testing/selftests/mm/thuge-gen.c",
|
"tools/testing/selftests/mm/thuge-gen.c",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
"-Wno-macro-redefined",
|
"-Wno-macro-redefined",
|
||||||
],
|
],
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
|
@ -1473,7 +1473,7 @@ cc_binary_with_abi(
|
||||||
"tools/testing/selftests/mm/transhuge-stress.c",
|
"tools/testing/selftests/mm/transhuge-stress.c",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = [
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE=",
|
||||||
],
|
],
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user