All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, x86@kernel.org
Subject: [tip:tmp.tmp2 308/364] arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
Date: Mon, 14 Jun 2021 05:23:03 +0800	[thread overview]
Message-ID: <202106140558.Q1APgr5a-lkp@intel.com> (raw)

[-- 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 --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [tip:tmp.tmp2 308/364] arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
Date: Mon, 14 Jun 2021 05:23:03 +0800	[thread overview]
Message-ID: <202106140558.Q1APgr5a-lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-06-13 21:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-13 21:23 kernel test robot [this message]
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

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=202106140558.Q1APgr5a-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=x86@kernel.org \
    /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.