From: Andrew Morton Date: Tue, 17 Jul 2007 11:04:34 +0000 (-0700) Subject: nfsd warning fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12127498c8f5e479df15ee374a0932f5659df49e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git nfsd warning fix gcc-4.3: fs/nfsd/nfsctl.c: In function 'write_getfs': fs/nfsd/nfsctl.c:248: warning: cast from pointer to integer of different size Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 71c686dc7257..5ab80edc795b 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -245,7 +245,7 @@ static ssize_t write_getfs(struct file *file, char *buf, size_t size) } exp_readunlock(); if (err == 0) - err = res->fh_size + (int)&((struct knfsd_fh*)0)->fh_base; + err = res->fh_size + offsetof(struct knfsd_fh, fh_base); out: return err; }