]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
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)
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

index e5f5e3142fc4681b51cd6984e8419785bb1ee2fb..462d181ca56453a9c317716911b4be5c4bb34cae 100644 (file)
@@ -29,7 +29,6 @@
 #define DMA_TX_FILT_EINFO      BIT(30)
 #define DMA_TX_PRIO_SHIFT      0
 #define DMA_RX_PRIO_SHIFT      16
-#define DMA_PRIO_MASK          GENMASK(3, 0)
 #define DMA_PRIO_DEFAULT       0
 #define DMA_RX_TIMEOUT_DEFAULT 17500 /* cycles */
 #define DMA_RX_TIMEOUT_MASK    GENMASK(16, 0)