public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [nfs:devel 17/39] fs/nfs/pnfs.c:1043:20: warning: unused variable 'nfsi'
@ 2012-09-26  1:38 Fengguang Wu
  2012-09-26 14:47 ` Myklebust, Trond
  0 siblings, 1 reply; 2+ messages in thread
From: Fengguang Wu @ 2012-09-26  1:38 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: Yuanhan Liu, kernel-janitors, linux-nfs

Hi Trond,

FYI, there are new compile warnings show up in

tree:   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git devel
head:   f743c735b817547b590d36a6e275235c7beb8600
commit: a9c310af706112f44c15cf5172e81ba3ee755cab [17/39] NFSv4.1: Add helpers for setting/reading the I/O fail bit

All warnings:

fs/nfs/pnfs.c: In function 'pnfs_update_layout':
fs/nfs/pnfs.c:1043:20: warning: unused variable 'nfsi' [-Wunused-variable]

vim +1043 fs/nfs/pnfs.c
  1027	 * The appropriate layout segment is referenced and returned to the caller.
  1028	 */
  1029	struct pnfs_layout_segment *
  1030	pnfs_update_layout(struct inode *ino,
  1031			   struct nfs_open_context *ctx,
  1032			   loff_t pos,
  1033			   u64 count,
  1034			   enum pnfs_iomode iomode,
  1035			   gfp_t gfp_flags)
  1036	{
  1037		struct pnfs_layout_range arg = {
  1038			.iomode = iomode,
  1039			.offset = pos,
  1040			.length = count,
  1041		};
  1042		unsigned pg_offset;
> 1043		struct nfs_inode *nfsi = NFS_I(ino);
  1044		struct nfs_server *server = NFS_SERVER(ino);
  1045		struct nfs_client *clp = server->nfs_client;
  1046		struct pnfs_layout_hdr *lo;
  1047		struct pnfs_layout_segment *lseg = NULL;
  1048		bool first = false;
  1049	
  1050		if (!pnfs_enabled_sb(NFS_SERVER(ino)))
  1051			return NULL;

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu, Yuanhan Liu                              Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-26 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26  1:38 [nfs:devel 17/39] fs/nfs/pnfs.c:1043:20: warning: unused variable 'nfsi' Fengguang Wu
2012-09-26 14:47 ` Myklebust, Trond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox