diff options
| author | Arnd Bergmann <[email protected]> | 2016-11-24 16:26:22 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-11-28 00:59:50 +0000 |
| commit | c9bd28233b6d0d82ac3ba0215723be0a8262c39c (patch) | |
| tree | 437fab5df65c5a4a95e46071b742b8fea005025f /net/dsa/dsa.c | |
| parent | driver: ipvlan: Fix one possible memleak in ipvlan_link_new (diff) | |
| download | kernel-c9bd28233b6d0d82ac3ba0215723be0a8262c39c.tar.gz kernel-c9bd28233b6d0d82ac3ba0215723be0a8262c39c.zip | |
irda: fix overly long udelay()
irda_get_mtt() returns a hardcoded '10000' in some cases,
and with gcc-7, we get a build error because this triggers a
compile-time check in udelay():
drivers/net/irda/w83977af_ir.o: In function `w83977af_hard_xmit':
w83977af_ir.c:(.text.w83977af_hard_xmit+0x14c): undefined reference to `__bad_udelay'
Older compilers did not run into this because they either did not
completely inline the irda_get_mtt() or did not consider the
10000 value a constant expression.
The code has been wrong since the start of git history.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions
