summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-01-13 17:10:58 +0100
committerDavid S. Miller <davem@davemloft.net>2015-01-13 17:08:21 -0500
commit3e7a8716e20b759eec0ad88145255bb33174f0c8 (patch)
treee16e402f232cb104bcc0dd42fe7001dfe8f43f8a /drivers/net/ethernet/sun
parent7835bfb5261501590a508b3de3379e2231cb4853 (diff)
downloadlinux-3e7a8716e20b759eec0ad88145255bb33174f0c8.tar.gz
linux-3e7a8716e20b759eec0ad88145255bb33174f0c8.tar.bz2
linux-3e7a8716e20b759eec0ad88145255bb33174f0c8.zip
mISDN: avoid arch specific __builtin_return_address call
Not all architectures are able to call __builtin_return_address(). On ARM, the mISDN code produces this warning: hardware/mISDN/w6692.c: In function 'w6692_dctrl': hardware/mISDN/w6692.c:1181:75: warning: unsupported argument to '__builtin_return_address' pr_debug("%s: %s dev(%d) open from %p\n", card->name, __func__, ^ hardware/mISDN/mISDNipac.c: In function 'open_dchannel': hardware/mISDN/mISDNipac.c:759:75: warning: unsupported argument to '__builtin_return_address' pr_debug("%s: %s dev(%d) open from %p\n", isac->name, __func__, ^ In a lot of cases, this is relatively easy to work around by passing the value of __builtin_return_address(0) from the callers into the functions that want it. One exception is the indirect 'open' function call in struct isac_hw. While it would be possible to fix this as well, this patch only addresses the other callers properly and lets this one return the direct parent function, which should be good enough. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun')
0 files changed, 0 insertions, 0 deletions