[next:master 2912/2956] fs/autofs4/root.c:466:25: sparse: incompatible types in comparison expression (different address spaces)

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

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   03af78748485f63e8ed21d2e2585b5d1ec862ba6
commit: 1e55998017283d2f630d00f5ebc8b75202edc120 [2912/2956] autofs4: d_manage() should return -EISDIR when appropriate in rcu-walk mode.
reproduce: make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> fs/autofs4/root.c:466:25: sparse: incompatible types in comparison expression (different address spaces)

vim +466 fs/autofs4/root.c

   450		if (status)
   451			return status;
   452	
   453		if (rcu_walk) {
   454			/* We don't need fs_lock in rcu_walk mode,
   455			 * just testing 'AUTOFS_INFO_NO_RCU' is enough.
   456			 * simple_empty() takes a spinlock, so leave it
   457			 * to last.
   458			 * We only return -EISDIR when certain this isn't
   459			 * a mount-trap.
   460			 */
   461			struct inode *inode;
   462			if (ino->flags & (AUTOFS_INF_EXPIRING | AUTOFS_INF_NO_RCU))
   463				return 0;
   464			if (d_mountpoint(dentry))
   465				return 0;
 > 466			inode = rcu_dereference(dentry->d_inode);
   467			if (inode && S_ISLNK(inode->i_mode))
   468				return -EISDIR;
   469			if (list_empty(&dentry->d_subdirs))
   470				return 0;
   471			if (!simple_empty(dentry))
   472				return -EISDIR;
   473			return 0;
   474		}

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]