]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ISDN: eicon: silence misleading array-bounds warning
authorArnd Bergmann <arnd@arndb.de>
Fri, 27 Jan 2017 12:32:14 +0000 (13:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:16 +0000 (14:04 +0200)
commitddf2415ce73a4282359a1f40907cc03d2bb55cc1
tree86e25c389cbd1f4afbb021535839008cc446c70d
parentdb2b7cd8f8489e8c4a55d7556b61282c7b7cc98d
ISDN: eicon: silence misleading array-bounds warning

commit 950eabbd6ddedc1b08350b9169a6a51b130ebaaf upstream.

With some gcc versions, we get a warning about the eicon driver,
and that currently shows up as the only remaining warning in one
of the build bots:

In file included from ../drivers/isdn/hardware/eicon/message.c:30:0:
eicon/message.c: In function 'mixer_notify_update':
eicon/platform.h:333:18: warning: array subscript is above array bounds [-Warray-bounds]

The code is easily changed to open-code the unusual PUT_WORD() line
causing this to avoid the warning.

Link: http://arm-soc.lixom.net/buildlogs/stable-rc/v4.4.45/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/isdn/hardware/eicon/message.c