[vfs:devel 2/6] security/selinux/selinuxfs.c:1487:16: warning: unused variable 'inode'

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

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git devel
head:   ac9b74d6d25d6f6ef5b45eedfffd77b7aa613ecf
commit: bc19e0b219d6c47164e1ef899f237a0ec0562072 [2/6] new helper: file_inode(file)
config: make ARCH=x86_64 allmodconfig

All warnings:

   security/selinux/selinuxfs.c: In function 'sel_read_initcon':
>> security/selinux/selinuxfs.c:1487:16: warning: unused variable 'inode' [-Wunused-variable]

vim +/inode +1487 security/selinux/selinuxfs.c

  1471	
  1472			inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode);
  1473			if (!inode)
  1474				return -ENOMEM;
  1475	
  1476			inode->i_fop = files[i].ops;
  1477			inode->i_ino = ++sel_last_ino;
  1478			d_add(dentry, inode);
  1479		}
  1480	
  1481		return 0;
  1482	}
  1483	
  1484	static ssize_t sel_read_initcon(struct file *file, char __user *buf,
  1485					size_t count, loff_t *ppos)
  1486	{
> 1487		struct inode *inode;
  1488		char *con;
  1489		u32 sid, len;
  1490		ssize_t ret;
  1491	
  1492		sid = file_inode(file)->i_ino&SEL_INO_MASK;
  1493		ret = security_sid_to_context(sid, &con, &len);
  1494		if (ret)
  1495			return ret;

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux