]> git.baikalelectronics.ru Git - kernel.git/commitdiff
NFSD fix mismatching type in nfsd4_set_netaddr
authorOlga Kornievskaia <olga.kornievskaia@gmail.com>
Wed, 4 Dec 2019 20:13:52 +0000 (15:13 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 9 Dec 2019 16:44:07 +0000 (11:44 -0500)
Fix __be32 and u32 mismatch in return and assignment.

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: dbd4c2dd8f13 ("NFSD add COPY_NOTIFY operation")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsd.h

index 0ff6ef964a486922ffe747e9b1d84debf6e5890e..c679afd9fee9bf1662eead3a5c27c71d0b30df7c 100644 (file)
@@ -388,7 +388,7 @@ void                nfsd_lockd_shutdown(void);
 
 extern const u32 nfsd_suppattrs[3][3];
 
-static inline u32 nfsd4_set_netaddr(struct sockaddr *addr,
+static inline __be32 nfsd4_set_netaddr(struct sockaddr *addr,
                                    struct nfs42_netaddr *netaddr)
 {
        struct sockaddr_in *sin = (struct sockaddr_in *)addr;