Skip to content

Commit df78416

Browse files
olofjdavem330
authored andcommitted
net: eth: davinci_cpdma: Mark a local variable static
Only used locally. Found by sparse. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c767db5 commit df78416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/davinci_cpdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ struct cpdma_control_info {
971971
#define ACCESS_RW (ACCESS_RO | ACCESS_WO)
972972
};
973973

974-
struct cpdma_control_info controls[] = {
974+
static struct cpdma_control_info controls[] = {
975975
[CPDMA_CMD_IDLE] = {CPDMA_DMACONTROL, 3, 1, ACCESS_WO},
976976
[CPDMA_COPY_ERROR_FRAMES] = {CPDMA_DMACONTROL, 4, 1, ACCESS_RW},
977977
[CPDMA_RX_OFF_LEN_UPDATE] = {CPDMA_DMACONTROL, 2, 1, ACCESS_RW},

0 commit comments

Comments
 (0)