• David Milburn's avatar
    mtip32xx: dynamically allocate buffer in debugfs functions · c8afd0dc
    David Milburn authored
    Dynamically allocate buf to prevent warnings:
    
    drivers/block/mtip32xx/mtip32xx.c: In function ‘mtip_hw_read_device_status’:
    drivers/block/mtip32xx/mtip32xx.c:2823: warning: the frame size of 1056 bytes is larger than 1024 bytes
    drivers/block/mtip32xx/mtip32xx.c: In function ‘mtip_hw_read_registers’:
    drivers/block/mtip32xx/mtip32xx.c:2894: warning: the frame size of 1056 bytes is larger than 1024 bytes
    drivers/block/mtip32xx/mtip32xx.c: In function ‘mtip_hw_read_flags’:
    drivers/block/mtip32xx/mtip32xx.c:2917: warning: the frame size of 1056 bytes is larger than 1024 bytes
    Signed-off-by: default avatarDavid Milburn <dmilburn@redhat.com>
    Acked-by: default avatarAsai Thambi S P <asamymuthupa@micron.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    c8afd0dc
mtip32xx.c 118 KB