]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: ti: knav_dma: Remove unused DMA_PRIO_MASK macro
authorNishanth Menon <nm@ti.com>
Tue, 12 May 2026 17:06:20 +0000 (12:06 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 22 May 2026 15:55:55 +0000 (10:55 -0500)
commit2b47cc255a952d3bd7ec3c0f38fdd81ccde3cb58
tree30663240f06b886a223972ce09b2529d3a80c247
parentebc1a345bf1166b22035f0cfbf877b9d0e80ba4e
soc: ti: knav_dma: Remove unused DMA_PRIO_MASK macro

DMA_PRIO_MASK (GENMASK(3, 0)) is defined alongside the other priority
macros but is never referenced in the code. tx_priority and rx_priority
are only ever assigned DMA_PRIO_DEFAULT (0) and are never sourced from
device tree or user-controlled input, so no out-of-range value is
possible. W=2 builds report:

  knav_dma.c:32:9: warning: macro is not used [-Wunused-macros]
  32 | #define DMA_PRIO_MASK           GENMASK(3, 0)

Remove the dead macro.

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-9-nm@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/soc/ti/knav_dma.c