All of lore.kernel.org
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/posix-clock-compat_ioctl 2/2] drivers/ptp/ptp_chardev.c:520:38: error: implicit declaration of function 'compat_ptr'
@ 2025-01-03 22:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-03 22:22 UTC (permalink / raw)
  To: Thomas Weißschuh; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/posix-clock-compat_ioctl
head:   f1e225f429afb87c0ce2f4494be681216020bd72
commit: f1e225f429afb87c0ce2f4494be681216020bd72 [2/2] posix-clock: Fix compat ioctls
config: powerpc64-randconfig-001-20250104 (https://download.01.org/0day-ci/archive/20250104/202501040604.dLkWdZnt-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250104/202501040604.dLkWdZnt-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501040604.dLkWdZnt-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/ptp/ptp_chardev.c: In function 'ptp_compat_ioctl':
>> drivers/ptp/ptp_chardev.c:520:38: error: implicit declaration of function 'compat_ptr' [-Wimplicit-function-declaration]
     520 |                 arg = (unsigned long)compat_ptr(arg);
         |                                      ^~~~~~~~~~


vim +/compat_ptr +520 drivers/ptp/ptp_chardev.c

   509	
   510	#ifdef CONFIG_COMPAT
   511	long ptp_compat_ioctl(struct posix_clock_context *pccontext, unsigned int cmd,
   512			      unsigned long arg)
   513	{
   514		switch (cmd) {
   515		case PTP_ENABLE_PPS:
   516		case PTP_ENABLE_PPS2:
   517			/* These take in scalar arg, do not convert */
   518			break;
   519		default:
 > 520			arg = (unsigned long)compat_ptr(arg);
   521		}
   522	
   523		return ptp_ioctl(pccontext, cmd, arg);
   524	}
   525	#endif
   526	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-03 22:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-03 22:22 [thomas-weissschuh:b4/posix-clock-compat_ioctl 2/2] drivers/ptp/ptp_chardev.c:520:38: error: implicit declaration of function 'compat_ptr' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.