[nfs:devel 17/39] fs/nfs/pnfs.c:1043:20: warning: unused variable 'nfsi'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux