]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: iop-adma: make array 'handler' static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Sep 2019 16:37:26 +0000 (17:37 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 14 Oct 2019 08:28:08 +0000 (13:58 +0530)
commit941b1b06a5598325643477d336d68a1b92497261
treee68429387c1ff0453bee92e5c706d09e173b3fe5
parent0d9b5ccb4430b2a66848647553940eb2ccab6a15
dmaengine: iop-adma: make array 'handler' static const, makes object smaller

Don't populate the array 'handler' on the stack but instead make it
static const. Makes the object code smaller by 80 bytes.

Before:
   text    data     bss     dec     hex filename
  38225    9084      64   47373    b90d drivers/dma/iop-adma.o

After:
   text    data     bss     dec     hex filename
  38081    9148      64   47293    b8bd drivers/dma/iop-adma.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190905163726.19690-1-colin.king@canonical.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/iop-adma.c