• O
    net: can: esd_usb2: Do not do dma on the stack · fae37f81
    Olivier Sobrie 提交于
    smatch reports the following warnings:
    drivers/net/can/usb/esd_usb2.c:640 esd_usb2_start() error: doing dma on the stack (&msg)
    drivers/net/can/usb/esd_usb2.c:846 esd_usb2_close() error: doing dma on the stack (&msg)
    drivers/net/can/usb/esd_usb2.c:855 esd_usb2_close() error: doing dma on the stack (&msg)
    drivers/net/can/usb/esd_usb2.c:923 esd_usb2_set_bittiming() error: doing dma on the stack (&msg)
    drivers/net/can/usb/esd_usb2.c:1047 esd_usb2_probe() error: doing dma on the stack (&msg)
    drivers/net/can/usb/esd_usb2.c:1053 esd_usb2_probe() error: doing dma on the stack (&msg)
    
    See "Documentation/DMA-API-HOWTO.txt" section "What memory is DMA'able?"
    Signed-off-by: NOlivier Sobrie <olivier@sobrie.be>
    Cc: Matthias Fuchs <matthias.fuchs@esd.eu>
    Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
    fae37f81
esd_usb2.c 26.3 KB