All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip:tmp.tmp2 308/364] arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
@ 2021-06-13 21:23 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-13 21:23 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: kbuild-all, linux-kernel, x86

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 120c6121adeaa43021433af501c9a1111c70d8f8 [308/364] sched/headers, compat: Simplify <linux/compat.h>
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=120c6121adeaa43021433af501c9a1111c70d8f8
        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 120c6121adeaa43021433af501c9a1111c70d8f8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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/compat.h:10,
                    from arch/mips/kernel/asm-offsets.c:12:
>> arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
      42 |  old_time32_t st_atime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:44:2: error: unknown type name 'old_time32_t'
      44 |  old_time32_t st_mtime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:46:2: error: unknown type name 'old_time32_t'
      46 |  old_time32_t st_ctime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h: In function 'is_compat_task':
   arch/mips/include/asm/compat.h:188:9: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
     188 |  return test_thread_flag(TIF_32BIT_ADDR);
         |         ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:14:
   include/linux/sched.h: At top level:
   include/linux/sched.h:475:20: error: array type has incomplete element type 'struct held_lock'
     475 |  struct held_lock  held_locks[MAX_LOCK_DEPTH];
         |                    ^~~~~~~~~~
   In file included from ./arch/mips/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:53,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:8,
                    from include/linux/mm.h:12,
                    from arch/mips/kernel/asm-offsets.c:15:
   include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
   include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
      69 |  return !--*preempt_count_ptr() && tif_need_resched();
         |                                    ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:24:
   include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
   include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
     271 |  return single_task_running() && !need_resched() && ktime_before(cur, stop);
         |                                   ^~~~~~~~~~~~
         |                                   should_resched
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
      26 | void output_ptreg_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
      78 | void output_task_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_task_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:82:2: note: in expansion of macro 'OFFSET'
      82 |  OFFSET(TASK_THREAD_INFO, task_struct, stack);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'flags'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:83:2: note: in expansion of macro 'OFFSET'
      83 |  OFFSET(TASK_FLAGS, task_struct, flags);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:87:2: note: in expansion of macro 'OFFSET'
      87 |  OFFSET(TASK_STACK_CANARY, task_struct, stack_canary);
         |  ^~~~~~
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
      93 | void output_thread_info_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
     109 | void output_thread_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_thread_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/compat.h:10,
                    from arch/mips/kernel/asm-offsets.c:12:
>> arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
      42 |  old_time32_t st_atime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:44:2: error: unknown type name 'old_time32_t'
      44 |  old_time32_t st_mtime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:46:2: error: unknown type name 'old_time32_t'
      46 |  old_time32_t st_ctime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h: In function 'is_compat_task':
   arch/mips/include/asm/compat.h:188:9: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
     188 |  return test_thread_flag(TIF_32BIT_ADDR);
         |         ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:14:
   include/linux/sched.h: At top level:
   include/linux/sched.h:475:20: error: array type has incomplete element type 'struct held_lock'
     475 |  struct held_lock  held_locks[MAX_LOCK_DEPTH];
         |                    ^~~~~~~~~~
   In file included from ./arch/mips/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:53,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:8,
                    from include/linux/mm.h:12,
                    from arch/mips/kernel/asm-offsets.c:15:
   include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
   include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
      69 |  return !--*preempt_count_ptr() && tif_need_resched();
         |                                    ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:24:
   include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
   include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
     271 |  return single_task_running() && !need_resched() && ktime_before(cur, stop);
         |                                   ^~~~~~~~~~~~
         |                                   should_resched
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
      26 | void output_ptreg_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
      78 | void output_task_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_task_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:82:2: note: in expansion of macro 'OFFSET'
      82 |  OFFSET(TASK_THREAD_INFO, task_struct, stack);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'flags'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:83:2: note: in expansion of macro 'OFFSET'
      83 |  OFFSET(TASK_FLAGS, task_struct, flags);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:87:2: note: in expansion of macro 'OFFSET'
      87 |  OFFSET(TASK_STACK_CANARY, task_struct, stack_canary);
         |  ^~~~~~
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
      93 | void output_thread_info_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
     109 | void output_thread_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_thread_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/compat.h:10,
                    from arch/mips/kernel/asm-offsets.c:12:
>> arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
      42 |  old_time32_t st_atime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:44:2: error: unknown type name 'old_time32_t'
      44 |  old_time32_t st_mtime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:46:2: error: unknown type name 'old_time32_t'
      46 |  old_time32_t st_ctime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h: In function 'is_compat_task':
   arch/mips/include/asm/compat.h:188:9: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
     188 |  return test_thread_flag(TIF_32BIT_ADDR);
         |         ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:14:
   include/linux/sched.h: At top level:
   include/linux/sched.h:475:20: error: array type has incomplete element type 'struct held_lock'
     475 |  struct held_lock  held_locks[MAX_LOCK_DEPTH];
         |                    ^~~~~~~~~~
   In file included from ./arch/mips/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:53,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:8,
                    from include/linux/mm.h:12,
                    from arch/mips/kernel/asm-offsets.c:15:
   include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
   include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
      69 |  return !--*preempt_count_ptr() && tif_need_resched();
         |                                    ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:24:
   include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
   include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
     271 |  return single_task_running() && !need_resched() && ktime_before(cur, stop);
         |                                   ^~~~~~~~~~~~
         |                                   should_resched
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
      26 | void output_ptreg_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
      78 | void output_task_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_task_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:82:2: note: in expansion of macro 'OFFSET'
      82 |  OFFSET(TASK_THREAD_INFO, task_struct, stack);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'flags'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:83:2: note: in expansion of macro 'OFFSET'
      83 |  OFFSET(TASK_FLAGS, task_struct, flags);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:87:2: note: in expansion of macro 'OFFSET'
      87 |  OFFSET(TASK_STACK_CANARY, task_struct, stack_canary);
         |  ^~~~~~
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
      93 | void output_thread_info_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
     109 | void output_thread_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_thread_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~


vim +/old_time32_t +42 arch/mips/include/asm/compat.h

^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  29  
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  30  struct compat_stat {
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  31  	compat_dev_t	st_dev;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  32  	s32		st_pad1[3];
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  33  	compat_ino_t	st_ino;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  34  	compat_mode_t	st_mode;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  35  	compat_nlink_t	st_nlink;
4ee1303a787434 include/asm-mips/compat.h      Ralf Baechle   2005-10-29  36  	__compat_uid_t	st_uid;
4ee1303a787434 include/asm-mips/compat.h      Ralf Baechle   2005-10-29  37  	__compat_gid_t	st_gid;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  38  	compat_dev_t	st_rdev;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  39  	s32		st_pad2[2];
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  40  	compat_off_t	st_size;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  41  	s32		st_pad3;
9afc5eee65ca7d arch/mips/include/asm/compat.h Arnd Bergmann  2018-07-13 @42  	old_time32_t	st_atime;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  43  	s32		st_atime_nsec;
9afc5eee65ca7d arch/mips/include/asm/compat.h Arnd Bergmann  2018-07-13  44  	old_time32_t	st_mtime;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  45  	s32		st_mtime_nsec;
9afc5eee65ca7d arch/mips/include/asm/compat.h Arnd Bergmann  2018-07-13  46  	old_time32_t	st_ctime;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  47  	s32		st_ctime_nsec;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  48  	s32		st_blksize;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  49  	s32		st_blocks;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  50  	s32		st_pad4[14];
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  51  };
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  52  

:::::: The code at line 42 was first introduced by commit
:::::: 9afc5eee65ca7d717a99d6fe8f4adfe32a40940a y2038: globally rename compat_time to old_time32

:::::: TO: Arnd Bergmann <arnd@arndb.de>
:::::: CC: Arnd Bergmann <arnd@arndb.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: 71028 bytes --]

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

* [tip:tmp.tmp2 308/364] arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
@ 2021-06-13 21:23 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-13 21:23 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 120c6121adeaa43021433af501c9a1111c70d8f8 [308/364] sched/headers, compat: Simplify <linux/compat.h>
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=120c6121adeaa43021433af501c9a1111c70d8f8
        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 120c6121adeaa43021433af501c9a1111c70d8f8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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/compat.h:10,
                    from arch/mips/kernel/asm-offsets.c:12:
>> arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
      42 |  old_time32_t st_atime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:44:2: error: unknown type name 'old_time32_t'
      44 |  old_time32_t st_mtime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:46:2: error: unknown type name 'old_time32_t'
      46 |  old_time32_t st_ctime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h: In function 'is_compat_task':
   arch/mips/include/asm/compat.h:188:9: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
     188 |  return test_thread_flag(TIF_32BIT_ADDR);
         |         ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:14:
   include/linux/sched.h: At top level:
   include/linux/sched.h:475:20: error: array type has incomplete element type 'struct held_lock'
     475 |  struct held_lock  held_locks[MAX_LOCK_DEPTH];
         |                    ^~~~~~~~~~
   In file included from ./arch/mips/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:53,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:8,
                    from include/linux/mm.h:12,
                    from arch/mips/kernel/asm-offsets.c:15:
   include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
   include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
      69 |  return !--*preempt_count_ptr() && tif_need_resched();
         |                                    ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:24:
   include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
   include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
     271 |  return single_task_running() && !need_resched() && ktime_before(cur, stop);
         |                                   ^~~~~~~~~~~~
         |                                   should_resched
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
      26 | void output_ptreg_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
      78 | void output_task_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_task_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:82:2: note: in expansion of macro 'OFFSET'
      82 |  OFFSET(TASK_THREAD_INFO, task_struct, stack);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'flags'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:83:2: note: in expansion of macro 'OFFSET'
      83 |  OFFSET(TASK_FLAGS, task_struct, flags);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:87:2: note: in expansion of macro 'OFFSET'
      87 |  OFFSET(TASK_STACK_CANARY, task_struct, stack_canary);
         |  ^~~~~~
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
      93 | void output_thread_info_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
     109 | void output_thread_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_thread_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/compat.h:10,
                    from arch/mips/kernel/asm-offsets.c:12:
>> arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
      42 |  old_time32_t st_atime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:44:2: error: unknown type name 'old_time32_t'
      44 |  old_time32_t st_mtime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:46:2: error: unknown type name 'old_time32_t'
      46 |  old_time32_t st_ctime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h: In function 'is_compat_task':
   arch/mips/include/asm/compat.h:188:9: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
     188 |  return test_thread_flag(TIF_32BIT_ADDR);
         |         ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:14:
   include/linux/sched.h: At top level:
   include/linux/sched.h:475:20: error: array type has incomplete element type 'struct held_lock'
     475 |  struct held_lock  held_locks[MAX_LOCK_DEPTH];
         |                    ^~~~~~~~~~
   In file included from ./arch/mips/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:53,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:8,
                    from include/linux/mm.h:12,
                    from arch/mips/kernel/asm-offsets.c:15:
   include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
   include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
      69 |  return !--*preempt_count_ptr() && tif_need_resched();
         |                                    ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:24:
   include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
   include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
     271 |  return single_task_running() && !need_resched() && ktime_before(cur, stop);
         |                                   ^~~~~~~~~~~~
         |                                   should_resched
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
      26 | void output_ptreg_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
      78 | void output_task_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_task_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:82:2: note: in expansion of macro 'OFFSET'
      82 |  OFFSET(TASK_THREAD_INFO, task_struct, stack);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'flags'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:83:2: note: in expansion of macro 'OFFSET'
      83 |  OFFSET(TASK_FLAGS, task_struct, flags);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:87:2: note: in expansion of macro 'OFFSET'
      87 |  OFFSET(TASK_STACK_CANARY, task_struct, stack_canary);
         |  ^~~~~~
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
      93 | void output_thread_info_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
     109 | void output_thread_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_thread_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/compat.h:10,
                    from arch/mips/kernel/asm-offsets.c:12:
>> arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
      42 |  old_time32_t st_atime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:44:2: error: unknown type name 'old_time32_t'
      44 |  old_time32_t st_mtime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h:46:2: error: unknown type name 'old_time32_t'
      46 |  old_time32_t st_ctime;
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/compat.h: In function 'is_compat_task':
   arch/mips/include/asm/compat.h:188:9: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
     188 |  return test_thread_flag(TIF_32BIT_ADDR);
         |         ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:14:
   include/linux/sched.h: At top level:
   include/linux/sched.h:475:20: error: array type has incomplete element type 'struct held_lock'
     475 |  struct held_lock  held_locks[MAX_LOCK_DEPTH];
         |                    ^~~~~~~~~~
   In file included from ./arch/mips/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:53,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:8,
                    from include/linux/mm.h:12,
                    from arch/mips/kernel/asm-offsets.c:15:
   include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
   include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
      69 |  return !--*preempt_count_ptr() && tif_need_resched();
         |                                    ^~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:24:
   include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
   include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
     271 |  return single_task_running() && !need_resched() && ktime_before(cur, stop);
         |                                   ^~~~~~~~~~~~
         |                                   should_resched
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
      26 | void output_ptreg_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
      78 | void output_task_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_task_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:82:2: note: in expansion of macro 'OFFSET'
      82 |  OFFSET(TASK_THREAD_INFO, task_struct, stack);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'flags'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:83:2: note: in expansion of macro 'OFFSET'
      83 |  OFFSET(TASK_FLAGS, task_struct, flags);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/mips/kernel/asm-offsets.c:87:2: note: in expansion of macro 'OFFSET'
      87 |  OFFSET(TASK_STACK_CANARY, task_struct, stack_canary);
         |  ^~~~~~
   arch/mips/kernel/asm-offsets.c: At top level:
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
      93 | void output_thread_info_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
     109 | void output_thread_defines(void)
         |      ^~~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/kernel/asm-offsets.c: In function 'output_thread_defines':
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~


vim +/old_time32_t +42 arch/mips/include/asm/compat.h

^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  29  
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  30  struct compat_stat {
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  31  	compat_dev_t	st_dev;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  32  	s32		st_pad1[3];
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  33  	compat_ino_t	st_ino;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  34  	compat_mode_t	st_mode;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  35  	compat_nlink_t	st_nlink;
4ee1303a787434 include/asm-mips/compat.h      Ralf Baechle   2005-10-29  36  	__compat_uid_t	st_uid;
4ee1303a787434 include/asm-mips/compat.h      Ralf Baechle   2005-10-29  37  	__compat_gid_t	st_gid;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  38  	compat_dev_t	st_rdev;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  39  	s32		st_pad2[2];
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  40  	compat_off_t	st_size;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  41  	s32		st_pad3;
9afc5eee65ca7d arch/mips/include/asm/compat.h Arnd Bergmann  2018-07-13 @42  	old_time32_t	st_atime;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  43  	s32		st_atime_nsec;
9afc5eee65ca7d arch/mips/include/asm/compat.h Arnd Bergmann  2018-07-13  44  	old_time32_t	st_mtime;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  45  	s32		st_mtime_nsec;
9afc5eee65ca7d arch/mips/include/asm/compat.h Arnd Bergmann  2018-07-13  46  	old_time32_t	st_ctime;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  47  	s32		st_ctime_nsec;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  48  	s32		st_blksize;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  49  	s32		st_blocks;
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  50  	s32		st_pad4[14];
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  51  };
^1da177e4c3f41 include/asm-mips/compat.h      Linus Torvalds 2005-04-16  52  

:::::: The code at line 42 was first introduced by commit
:::::: 9afc5eee65ca7d717a99d6fe8f4adfe32a40940a y2038: globally rename compat_time to old_time32

:::::: TO: Arnd Bergmann <arnd@arndb.de>
:::::: CC: Arnd Bergmann <arnd@arndb.de>

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

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

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

end of thread, other threads:[~2021-06-13 21:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 21:23 [tip:tmp.tmp2 308/364] arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t' kernel test robot
2021-06-13 21:23 ` 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.