]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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@kernel.dk>
Tue, 17 Sep 2013 18:19:52 +0000 (12:19 -0600)
commitfb36f18b341721d37fd580bb42ca9670031990b5
treebcfd4ffe91a5375ef564482df11af04876e03495
parent21d2e5a5e6120af929e480e7844f9e95f932f5fb
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