dynamic_debug-use-address-of-operator-on-section-symbols.patch removed from -mm tree
The patch titled
Subject: lib/dynamic_debug.c: use address-of operator on section symbols
has been removed from the -mm tree. Its filename was
dynamic_debug-use-address-of-operator-on-section-symbols.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Nathan Chancellor <[email protected]>
Subject: lib/dynamic_debug.c: use address-of operator on section symbols
Clang warns:
../lib/dynamic_debug.c:1034:24: warning: array comparison always evaluates to false [-Wtautological-compare]
if (__start___verbose == __stop___verbose) {
^1 warning generated.
These are not true arrays, they are linker defined symbols, which are just addresses. Using the address of operator silences the warning and does not change the resulting assembly with either clang/ld.lld or gcc/ld (tested with diff + objdump -Dr).
---
lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/dynamic_debug.c renamed from lib/dynamic_debug.c~dynamic_debug-use-address-of-operator-on-section-symbols +1 -1
@@ -1031,7 +1031,7 @@ static int __init dynamic_debug_init(voiint n =0 , entries =0 , modct =0 ;int verbose_bytes =0 ; -if (__start___verbose == __stop___verbose) { +if (&__start___verbose == &__stop___verbose) {pr_warn ("_ddebug table is empty in a CONFIG_DYNAMIC_DEBUG build\n" );return 1 ; }
_
Patches currently in -mm which might be from [email protected] are