diff options
| author | Nishanth Menon <nm@ti.com> | 2026-05-12 20:06:14 +0300 |
|---|---|---|
| committer | Nishanth Menon <nm@ti.com> | 2026-05-22 18:55:55 +0300 |
| commit | 7db27a04fb8a33a7f9904961ee6f3c75f65d1118 (patch) | |
| tree | fd9e7495710f0844f865311d94f053555be30b59 /include/linux/debugobjects.h | |
| parent | a76c24eb1f10366f128c621f876c20a13ae53489 (diff) | |
| download | linux-7db27a04fb8a33a7f9904961ee6f3c75f65d1118.tar.xz | |
soc: ti: knav_qmss: Rename global kdev to knav_qdev to fix -Wshadow
Building with W=2 (clang, LLVM=1) produces 22 -Wshadow warnings in
knav_qmss_queue.c because the file-scoped singleton 'kdev' is shadowed
by a parameter of the same name in 21 internal functions and one local
variable, e.g.:
knav_qmss_queue.c:194:49: warning: declaration shadows a variable
in the global scope [-Wshadow]
194 | knav_queue_match_id_to_inst(struct knav_device *kdev, unsigned id)
Rename the global singleton from kdev to knav_qdev rather than
renaming all ~21 function parameters, as this requires fewer changes
and leaves function signatures, struct field accesses, and header
macros in knav_qmss.h untouched.
Reviewed-by: Sai Sree Kartheek Adivi <s-adivi@ti.com>
Reviewed-by: Hari Prasath Gujulan Elango <gehariprasath@ti.com>
Link: https://patch.msgid.link/20260512170623.3174416-3-nm@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
