[tiwai-sound:for-next 50/52] sound/usb/fcp.c:889:15: error: incompatible function pointer types assigning to 'long (*)(struct snd_hwdep *, char *, long, loff_t *)' (aka 'long (*)(struct snd_hwdep *, char *, long, long long *)') from 'ssize_t (struct snd_hwdep *, char *, ssize_t, loff...

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head:   dd85bbb7fc482b5cdb78f8b5e8f9ef7a3919d6ef
commit: 46757a3e7d50dac923888e7fbe68377736f13c70 [50/52] ALSA: FCP: Add Focusrite Control Protocol driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250119/202501192122.ngosycnT-lkp@xxxxxxxxx/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project c23f2417dc5f6dc371afb07af5627ec2a9d373a0)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250119/202501192122.ngosycnT-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501192122.ngosycnT-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> sound/usb/fcp.c:889:15: error: incompatible function pointer types assigning to 'long (*)(struct snd_hwdep *, char *, long, loff_t *)' (aka 'long (*)(struct snd_hwdep *, char *, long, long long *)') from 'ssize_t (struct snd_hwdep *, char *, ssize_t, loff_t *)' (aka 'int (struct snd_hwdep *, char *, int, long long *)') [-Wincompatible-function-pointer-types]
     889 |         hw->ops.read = fcp_hwdep_read;
         |                      ^ ~~~~~~~~~~~~~~
   1 error generated.


vim +889 sound/usb/fcp.c

   874	
   875	static int fcp_hwdep_init(struct usb_mixer_interface *mixer)
   876	{
   877		struct snd_hwdep *hw;
   878		int err;
   879	
   880		err = snd_hwdep_new(mixer->chip->card, "Focusrite Control", 0, &hw);
   881		if (err < 0)
   882			return err;
   883	
   884		hw->private_data = mixer;
   885		hw->exclusive = 1;
   886		hw->ops.open = fcp_hwdep_open;
   887		hw->ops.ioctl = fcp_hwdep_ioctl;
   888		hw->ops.ioctl_compat = fcp_hwdep_ioctl;
 > 889		hw->ops.read = fcp_hwdep_read;
   890		hw->ops.poll = fcp_hwdep_poll;
   891		hw->ops.release = fcp_hwdep_release;
   892	
   893		return 0;
   894	}
   895	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux