]> www.infradead.org Git - users/jedix/linux-maple.git/commit
SUNRPC: Address kbuild warning in net/sunrpc/debugfs.c
authorChuck Lever <chuck.lever@oracle.com>
Tue, 25 Aug 2015 18:35:19 +0000 (12:35 -0600)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:45:55 +0000 (14:45 -0600)
commit8e2ce6fe705ef0f5e528432286a190be9daabf5f
treefe8b05e7b62298c41faadc9468f145207efda4e3
parent80d505b6131baacf524d9c4bb7cf46bf9790a943
SUNRPC: Address kbuild warning in net/sunrpc/debugfs.c

[ Upstream commit 5fd23f7e1d74c0fd100ffb0b04dc85727760d9ea ]

Cross-compile test on ARCH=mn10300:

In file included from include/linux/list.h:8:0,
                 from include/linux/wait.h:6,
                 from include/linux/fs.h:6,
                 from include/linux/debugfs.h:18,
                 from net/sunrpc/debugfs.c:7:
net/sunrpc/debugfs.c: In function 'fault_disconnect_write':
include/linux/kernel.h:723:17: warning: comparison of distinct pointer
types lacks a cast
    (void) (&_min1 == &_min2);  \
                   ^
>> net/sunrpc/debugfs.c:307:8: note: in expansion of macro 'min'
    len = min(len, sizeof(buffer) - 1);

Fixes: ('SUNRPC: Transport fault injection')
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/debugfs.c