All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh" <linux@weissschuh.net>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [thomas-weissschuh:b4/posix-clock-compat_ioctl 2/2] drivers/ptp/ptp_chardev.c:520:38: error: implicit declaration of function 'compat_ptr'
Date: Sat, 4 Jan 2025 06:22:15 +0800	[thread overview]
Message-ID: <202501040604.dLkWdZnt-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-01-03 22:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202501040604.dLkWdZnt-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux@weissschuh.net \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.