linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [tip:tmp.tmp2 237/364] arch/x86/include/asm/thread_info.h:224:7: error: implicit declaration of function 'current_thread_info'; did you mean 'current_real_cred'?
@ 2021-06-14 13:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-14 13:22 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: kbuild-all, linux-kernel, x86

[-- Attachment #1: Type: text/plain, Size: 5041 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: ae74b8bd2e5fd9dbe3177aaf3080799272becb8d [237/364] sched/headers, x86/compat: Simplify <asm/compat.h>
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=ae74b8bd2e5fd9dbe3177aaf3080799272becb8d
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip tmp.tmp2
        git checkout ae74b8bd2e5fd9dbe3177aaf3080799272becb8d
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/radix-tree.h:16,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/cdev.h:5,
                    from drivers/gpio/gpiolib-cdev.c:7:
   include/linux/rcuwait.h: In function 'rcuwait_active':
   include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
     364 |  typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
         |         ^
   include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
     474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
         |                               ^~~~~~~~~~~~~~~~~~~~
   include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
      33 |  return !!rcu_access_pointer(w->task);
         |           ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/thread_info.h:50,
                    from include/linux/uio.h:9,
                    from include/linux/socket.h:8,
                    from include/linux/compat.h:15,
                    from drivers/gpio/gpiolib-cdev.c:8:
   drivers/gpio/gpiolib-cdev.c: In function 'lineevent_read':
>> arch/x86/include/asm/thread_info.h:224:7: error: implicit declaration of function 'current_thread_info'; did you mean 'current_real_cred'? [-Werror=implicit-function-declaration]
     224 |       current_thread_info()->status & TS_COMPAT)
         |       ^~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/compat.h:175:43: note: in expansion of macro 'in_ia32_syscall'
     175 | #define compat_need_64bit_alignment_fixup in_ia32_syscall
         |                                           ^~~~~~~~~~~~~~~
   drivers/gpio/gpiolib-cdev.c:1533:6: note: in expansion of macro 'compat_need_64bit_alignment_fixup'
    1533 |  if (compat_need_64bit_alignment_fixup())
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/thread_info.h:224:28: error: invalid type argument of '->' (have 'int')
     224 |       current_thread_info()->status & TS_COMPAT)
         |                            ^~
   arch/x86/include/asm/compat.h:175:43: note: in expansion of macro 'in_ia32_syscall'
     175 | #define compat_need_64bit_alignment_fixup in_ia32_syscall
         |                                           ^~~~~~~~~~~~~~~
   drivers/gpio/gpiolib-cdev.c:1533:6: note: in expansion of macro 'compat_need_64bit_alignment_fixup'
    1533 |  if (compat_need_64bit_alignment_fixup())
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/uaccess.h:11,
                    from include/linux/compat.h:19,
                    from drivers/gpio/gpiolib-cdev.c:8:
   drivers/gpio/gpiolib-cdev.c: At top level:
   arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
      46 | static inline bool pagefault_disabled(void);
         |                    ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +224 arch/x86/include/asm/thread_info.h

ef334a20d84f52 Srikar Dronamraju 2012-03-13  219  
ef334a20d84f52 Srikar Dronamraju 2012-03-13  220  #ifdef CONFIG_X86_32
b9d989c7218ac9 Andy Lutomirski   2016-09-13  221  #define in_ia32_syscall() true
b9d989c7218ac9 Andy Lutomirski   2016-09-13  222  #else
b9d989c7218ac9 Andy Lutomirski   2016-09-13  223  #define in_ia32_syscall() (IS_ENABLED(CONFIG_IA32_EMULATION) && \
37a8f7c38339b2 Andy Lutomirski   2018-01-28 @224  			   current_thread_info()->status & TS_COMPAT)
ef334a20d84f52 Srikar Dronamraju 2012-03-13  225  #endif
1daeaa315164c6 Brian Gerst       2015-03-21  226  

:::::: The code at line 224 was first introduced by commit
:::::: 37a8f7c38339b22b69876d6f5a0ab851565284e3 x86/asm: Move 'status' from thread_struct to thread_info

:::::: TO: Andy Lutomirski <luto@kernel.org>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41434 bytes --]

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

only message in thread, other threads:[~2021-06-14 13:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14 13:22 [tip:tmp.tmp2 237/364] arch/x86/include/asm/thread_info.h:224:7: error: implicit declaration of function 'current_thread_info'; did you mean 'current_real_cred'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).