summaryrefslogtreecommitdiff
path: root/xmalloc.h
AgeCommit message (Expand)AuthorFilesLines
2013-06-12ioops: misc: add dup{,2}_or_die to ioopsDaniel Borkmann1-1/+0
2013-06-04misc: cleanup header commentsDaniel Borkmann1-6/+0
2013-05-12xmalloc: Make xfree a two part macro/inlineTobias Klauser1-6/+11
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+35
move&id=c9bd28233b6d0d82ac3ba0215723be0a8262c39c'>437fab5df65c5a4a95e46071b742b8fea005025f parent147fd2874d8a8ba69970f0069d67ac341bf0bb09 (diff)
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 <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat