[josef-btrfs:fdinfo 1/1] fs/notify/inotify/inotify_user.c:321:18: warning: initialization from incompatible pointer type

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git fdinfo
head:   9ecc561fd5b586bf648bb23c929750294e81c6db
commit: 9ecc561fd5b586bf648bb23c929750294e81c6db [1/1] fdinfo: handle large fdinfo buffers
config: x86_64-randconfig-x012-201607 (attached as .config)
reproduce:
        git checkout 9ecc561fd5b586bf648bb23c929750294e81c6db
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

>> fs/notify/inotify/inotify_user.c:321:18: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     .start_fdinfo = fsnotify_start_fdinfo,
                     ^
   fs/notify/inotify/inotify_user.c:321:18: note: (near initialization for 'inotify_fops.start_fdinfo')

vim +321 fs/notify/inotify/inotify_user.c

   305					    list) {
   306				send_len += sizeof(struct inotify_event);
   307				send_len += round_event_name_len(fsn_event);
   308			}
   309			mutex_unlock(&group->notification_mutex);
   310			ret = put_user(send_len, (int __user *) p);
   311			break;
   312		}
   313	
   314		return ret;
   315	}
   316	
   317	static const struct file_operations inotify_fops = {
   318		.show_fdinfo	= inotify_show_fdinfo,
   319		.next_fdinfo	= fsnotify_next_fdinfo,
   320		.stop_fdinfo	= fsnotify_stop_fdinfo,
 > 321		.start_fdinfo	= fsnotify_start_fdinfo,
   322		.poll		= inotify_poll,
   323		.read		= inotify_read,
   324		.fasync		= fsnotify_fasync,
   325		.release	= inotify_release,
   326		.unlocked_ioctl	= inotify_ioctl,
   327		.compat_ioctl	= inotify_ioctl,
   328		.llseek		= noop_llseek,
   329	};

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux