Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [akpm-mm:mm-new 344/369] mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr'
@ 2026-07-09  9:59 kernel test robot
  2026-07-09 14:44 ` Suren Baghdasaryan
  0 siblings, 1 reply; 6+ messages in thread
From: kernel test robot @ 2026-07-09  9:59 UTC (permalink / raw)
  To: Suren Baghdasaryan
  Cc: oe-kbuild-all, David Hildenbrand, Andrew Morton,
	Linux Memory Management List, mm-commits, Abhishek Bapat

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head:   59e34180e138a293260301c139cf7ee800978533
commit: 27ace96bf8195484c9e9e1a08eb5af5a4e81f9f0 [344/369] alloc_tag: add ioctl to /proc/allocinfo
config: sparc64-randconfig-001-20260709 (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-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/202607091820.qbjlGhKK-lkp@intel.com/

All errors (new ones prefixed by >>):

   mm/alloc_tag.c: In function 'allocinfo_compat_ioctl':
>> mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr' [-Wimplicit-function-declaration]
     356 |         return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
         |                                                          ^~~~~~~~~~


vim +/compat_ptr +356 mm/alloc_tag.c

   351	
   352	#ifdef CONFIG_COMPAT
   353	static long allocinfo_compat_ioctl(struct file *file, unsigned int cmd,
   354					   unsigned long arg)
   355	{
 > 356		return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
   357	}
   358	#endif
   359	

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [akpm-mm:mm-new 344/369] mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr'
  2026-07-09  9:59 [akpm-mm:mm-new 344/369] mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr' kernel test robot
@ 2026-07-09 14:44 ` Suren Baghdasaryan
  2026-07-13 16:43   ` Abhishek Bapat
  0 siblings, 1 reply; 6+ messages in thread
From: Suren Baghdasaryan @ 2026-07-09 14:44 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-kbuild-all, David Hildenbrand, Andrew Morton,
	Linux Memory Management List, mm-commits, Abhishek Bapat

On Thu, Jul 9, 2026 at 3:00 AM kernel test robot <lkp@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> head:   59e34180e138a293260301c139cf7ee800978533
> commit: 27ace96bf8195484c9e9e1a08eb5af5a4e81f9f0 [344/369] alloc_tag: add ioctl to /proc/allocinfo
> config: sparc64-randconfig-001-20260709 (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-lkp@intel.com/config)
> compiler: sparc64-linux-gcc (GCC) 15.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-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/202607091820.qbjlGhKK-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
>    mm/alloc_tag.c: In function 'allocinfo_compat_ioctl':
> >> mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr' [-Wimplicit-function-declaration]
>      356 |         return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
>          |                                                          ^~~~~~~~~~
>
>
> vim +/compat_ptr +356 mm/alloc_tag.c

Missing #include <linux/compat.h>
After adding it the error goes away.

>
>    351
>    352  #ifdef CONFIG_COMPAT
>    353  static long allocinfo_compat_ioctl(struct file *file, unsigned int cmd,
>    354                                     unsigned long arg)
>    355  {
>  > 356          return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
>    357  }
>    358  #endif
>    359
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [akpm-mm:mm-new 344/369] mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr'
  2026-07-09 14:44 ` Suren Baghdasaryan
@ 2026-07-13 16:43   ` Abhishek Bapat
  2026-07-13 17:13     ` Suren Baghdasaryan
  0 siblings, 1 reply; 6+ messages in thread
From: Abhishek Bapat @ 2026-07-13 16:43 UTC (permalink / raw)
  To: Suren Baghdasaryan
  Cc: kernel test robot, oe-kbuild-all, David Hildenbrand,
	Andrew Morton, Linux Memory Management List, mm-commits

Hi everyone,

I can send a fixup patch for this error if needed. Could someone guide
me on whether I should amend the original patch-set and send a v9
patchset or if there's another way to handle this without sending a v9
patchset?

Thanks,
Abhishek.

On Thu, Jul 9, 2026 at 7:45 AM Suren Baghdasaryan <surenb@google.com> wrote:
>
> On Thu, Jul 9, 2026 at 3:00 AM kernel test robot <lkp@intel.com> wrote:
> >
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> > head:   59e34180e138a293260301c139cf7ee800978533
> > commit: 27ace96bf8195484c9e9e1a08eb5af5a4e81f9f0 [344/369] alloc_tag: add ioctl to /proc/allocinfo
> > config: sparc64-randconfig-001-20260709 (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-lkp@intel.com/config)
> > compiler: sparc64-linux-gcc (GCC) 15.2.0
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-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/202607091820.qbjlGhKK-lkp@intel.com/
> >
> > All errors (new ones prefixed by >>):
> >
> >    mm/alloc_tag.c: In function 'allocinfo_compat_ioctl':
> > >> mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr' [-Wimplicit-function-declaration]
> >      356 |         return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
> >          |                                                          ^~~~~~~~~~
> >
> >
> > vim +/compat_ptr +356 mm/alloc_tag.c
>
> Missing #include <linux/compat.h>
> After adding it the error goes away.
>
> >
> >    351
> >    352  #ifdef CONFIG_COMPAT
> >    353  static long allocinfo_compat_ioctl(struct file *file, unsigned int cmd,
> >    354                                     unsigned long arg)
> >    355  {
> >  > 356          return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
> >    357  }
> >    358  #endif
> >    359
> >
> > --
> > 0-DAY CI Kernel Test Service
> > https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [akpm-mm:mm-new 344/369] mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr'
  2026-07-13 16:43   ` Abhishek Bapat
@ 2026-07-13 17:13     ` Suren Baghdasaryan
  2026-07-13 17:15       ` Suren Baghdasaryan
  0 siblings, 1 reply; 6+ messages in thread
From: Suren Baghdasaryan @ 2026-07-13 17:13 UTC (permalink / raw)
  To: Abhishek Bapat
  Cc: kernel test robot, oe-kbuild-all, David Hildenbrand,
	Andrew Morton, Linux Memory Management List, mm-commits

On Mon, Jul 13, 2026 at 9:43 AM Abhishek Bapat <abhishekbapat@google.com> wrote:
>
> Hi everyone,
>
> I can send a fixup patch for this error if needed. Could someone guide
> me on whether I should amend the original patch-set and send a v9
> patchset or if there's another way to handle this without sending a v9
> patchset?

I think Andrew already fixed it up (I saw an email flying by but I'll
double-check).

>
> Thanks,
> Abhishek.
>
> On Thu, Jul 9, 2026 at 7:45 AM Suren Baghdasaryan <surenb@google.com> wrote:
> >
> > On Thu, Jul 9, 2026 at 3:00 AM kernel test robot <lkp@intel.com> wrote:
> > >
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> > > head:   59e34180e138a293260301c139cf7ee800978533
> > > commit: 27ace96bf8195484c9e9e1a08eb5af5a4e81f9f0 [344/369] alloc_tag: add ioctl to /proc/allocinfo
> > > config: sparc64-randconfig-001-20260709 (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-lkp@intel.com/config)
> > > compiler: sparc64-linux-gcc (GCC) 15.2.0
> > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-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/202607091820.qbjlGhKK-lkp@intel.com/
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > >    mm/alloc_tag.c: In function 'allocinfo_compat_ioctl':
> > > >> mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr' [-Wimplicit-function-declaration]
> > >      356 |         return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
> > >          |                                                          ^~~~~~~~~~
> > >
> > >
> > > vim +/compat_ptr +356 mm/alloc_tag.c
> >
> > Missing #include <linux/compat.h>
> > After adding it the error goes away.
> >
> > >
> > >    351
> > >    352  #ifdef CONFIG_COMPAT
> > >    353  static long allocinfo_compat_ioctl(struct file *file, unsigned int cmd,
> > >    354                                     unsigned long arg)
> > >    355  {
> > >  > 356          return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
> > >    357  }
> > >    358  #endif
> > >    359
> > >
> > > --
> > > 0-DAY CI Kernel Test Service
> > > https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [akpm-mm:mm-new 344/369] mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr'
  2026-07-13 17:13     ` Suren Baghdasaryan
@ 2026-07-13 17:15       ` Suren Baghdasaryan
  2026-07-13 17:20         ` Abhishek Bapat
  0 siblings, 1 reply; 6+ messages in thread
From: Suren Baghdasaryan @ 2026-07-13 17:15 UTC (permalink / raw)
  To: Abhishek Bapat
  Cc: kernel test robot, oe-kbuild-all, David Hildenbrand,
	Andrew Morton, Linux Memory Management List, mm-commits

On Mon, Jul 13, 2026 at 10:13 AM Suren Baghdasaryan <surenb@google.com> wrote:
>
> On Mon, Jul 13, 2026 at 9:43 AM Abhishek Bapat <abhishekbapat@google.com> wrote:
> >
> > Hi everyone,
> >
> > I can send a fixup patch for this error if needed. Could someone guide
> > me on whether I should amend the original patch-set and send a v9
> > patchset or if there's another way to handle this without sending a v9
> > patchset?
>
> I think Andrew already fixed it up (I saw an email flying by but I'll
> double-check).

Here: https://lore.kernel.org/all/20260709171454.58E851F000E9@smtp.kernel.org/

>
> >
> > Thanks,
> > Abhishek.
> >
> > On Thu, Jul 9, 2026 at 7:45 AM Suren Baghdasaryan <surenb@google.com> wrote:
> > >
> > > On Thu, Jul 9, 2026 at 3:00 AM kernel test robot <lkp@intel.com> wrote:
> > > >
> > > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> > > > head:   59e34180e138a293260301c139cf7ee800978533
> > > > commit: 27ace96bf8195484c9e9e1a08eb5af5a4e81f9f0 [344/369] alloc_tag: add ioctl to /proc/allocinfo
> > > > config: sparc64-randconfig-001-20260709 (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-lkp@intel.com/config)
> > > > compiler: sparc64-linux-gcc (GCC) 15.2.0
> > > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-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/202607091820.qbjlGhKK-lkp@intel.com/
> > > >
> > > > All errors (new ones prefixed by >>):
> > > >
> > > >    mm/alloc_tag.c: In function 'allocinfo_compat_ioctl':
> > > > >> mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr' [-Wimplicit-function-declaration]
> > > >      356 |         return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
> > > >          |                                                          ^~~~~~~~~~
> > > >
> > > >
> > > > vim +/compat_ptr +356 mm/alloc_tag.c
> > >
> > > Missing #include <linux/compat.h>
> > > After adding it the error goes away.
> > >
> > > >
> > > >    351
> > > >    352  #ifdef CONFIG_COMPAT
> > > >    353  static long allocinfo_compat_ioctl(struct file *file, unsigned int cmd,
> > > >    354                                     unsigned long arg)
> > > >    355  {
> > > >  > 356          return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
> > > >    357  }
> > > >    358  #endif
> > > >    359
> > > >
> > > > --
> > > > 0-DAY CI Kernel Test Service
> > > > https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [akpm-mm:mm-new 344/369] mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr'
  2026-07-13 17:15       ` Suren Baghdasaryan
@ 2026-07-13 17:20         ` Abhishek Bapat
  0 siblings, 0 replies; 6+ messages in thread
From: Abhishek Bapat @ 2026-07-13 17:20 UTC (permalink / raw)
  To: Suren Baghdasaryan
  Cc: kernel test robot, oe-kbuild-all, David Hildenbrand,
	Andrew Morton, Linux Memory Management List, mm-commits

On Mon, Jul 13, 2026 at 10:15 AM Suren Baghdasaryan <surenb@google.com> wrote:
>
> On Mon, Jul 13, 2026 at 10:13 AM Suren Baghdasaryan <surenb@google.com> wrote:
> >
> > On Mon, Jul 13, 2026 at 9:43 AM Abhishek Bapat <abhishekbapat@google.com> wrote:
> > >
> > > Hi everyone,
> > >
> > > I can send a fixup patch for this error if needed. Could someone guide
> > > me on whether I should amend the original patch-set and send a v9
> > > patchset or if there's another way to handle this without sending a v9
> > > patchset?
> >
> > I think Andrew already fixed it up (I saw an email flying by but I'll
> > double-check).
>
> Here: https://lore.kernel.org/all/20260709171454.58E851F000E9@smtp.kernel.org/
>
Ahh I see. Sounds good, thanks Andrew!
> >
> > >
> > > Thanks,
> > > Abhishek.
> > >
> > > On Thu, Jul 9, 2026 at 7:45 AM Suren Baghdasaryan <surenb@google.com> wrote:
> > > >
> > > > On Thu, Jul 9, 2026 at 3:00 AM kernel test robot <lkp@intel.com> wrote:
> > > > >
> > > > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> > > > > head:   59e34180e138a293260301c139cf7ee800978533
> > > > > commit: 27ace96bf8195484c9e9e1a08eb5af5a4e81f9f0 [344/369] alloc_tag: add ioctl to /proc/allocinfo
> > > > > config: sparc64-randconfig-001-20260709 (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-lkp@intel.com/config)
> > > > > compiler: sparc64-linux-gcc (GCC) 15.2.0
> > > > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091820.qbjlGhKK-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/202607091820.qbjlGhKK-lkp@intel.com/
> > > > >
> > > > > All errors (new ones prefixed by >>):
> > > > >
> > > > >    mm/alloc_tag.c: In function 'allocinfo_compat_ioctl':
> > > > > >> mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr' [-Wimplicit-function-declaration]
> > > > >      356 |         return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
> > > > >          |                                                          ^~~~~~~~~~
> > > > >
> > > > >
> > > > > vim +/compat_ptr +356 mm/alloc_tag.c
> > > >
> > > > Missing #include <linux/compat.h>
> > > > After adding it the error goes away.
> > > >
> > > > >
> > > > >    351
> > > > >    352  #ifdef CONFIG_COMPAT
> > > > >    353  static long allocinfo_compat_ioctl(struct file *file, unsigned int cmd,
> > > > >    354                                     unsigned long arg)
> > > > >    355  {
> > > > >  > 356          return allocinfo_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
> > > > >    357  }
> > > > >    358  #endif
> > > > >    359
> > > > >
> > > > > --
> > > > > 0-DAY CI Kernel Test Service
> > > > > https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-13 17:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09  9:59 [akpm-mm:mm-new 344/369] mm/alloc_tag.c:356:58: error: implicit declaration of function 'compat_ptr' kernel test robot
2026-07-09 14:44 ` Suren Baghdasaryan
2026-07-13 16:43   ` Abhishek Bapat
2026-07-13 17:13     ` Suren Baghdasaryan
2026-07-13 17:15       ` Suren Baghdasaryan
2026-07-13 17:20         ` Abhishek Bapat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox