mtip32xx: dynamically allocate buffer in debugfs functions
authorDavid Milburn <dmilburn@redhat.com>
Thu, 23 May 2013 21:23:45 +0000 (16:23 -0500)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:50 +0000 (12:54 -0600)
commit9f1dfe6fe627aaf363269fdf7656bbf8e35a8f6e
tree31636d061a0d4bd599f3d6dab99e58d0333e98dc
parentedfdfd3db8d69cd997c121896f56a6a57210755c
mtip32xx: dynamically allocate buffer in debugfs functions

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: David Milburn <dmilburn@redhat.com>
Acked-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c