From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D4F7C433EF for ; Wed, 22 Jun 2022 23:03:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376739AbiFVXDV (ORCPT ); Wed, 22 Jun 2022 19:03:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346993AbiFVXDV (ORCPT ); Wed, 22 Jun 2022 19:03:21 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E08883A5E0 for ; Wed, 22 Jun 2022 16:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655938999; x=1687474999; h=date:from:to:cc:subject:message-id:mime-version; bh=xzVnkbW/OrDUemO7khZOILr31OI+lrO5gTwYKIC3570=; b=IU1IeMdrAgR97OTjkoa2LVdsmqw2EzG1ulzayD+BXQ+AzDuRwtk0cpHI Mhym+w7IxCwq/mhGLYLaGD7yHgqgMVIBXBWXlsMeRT585Fa1rt3qdpjfY 1HR8hxsGHung8AqwtVoRmABWGlbhj4SJJlbJucdk9FE4F8gF4xHxrBPr1 DhJaDA5QSvNrAKB1pEjJF3ak59bhdoOX0kMS7aDr4qjqWjp2sU/AP8iWF sp6evXpUvHIJKAMK2bY7jTeOU7uqa2OIqQ9w/oQVFv7BPdwCx/fe+MzNj swUe/aBd4J4itHdkXji4P9ufQ+zY2ArILuzQOnCe+aBZGaoD6GVBLehz/ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="269290915" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="269290915" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 16:03:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="690741048" Received: from lkp-server02.sh.intel.com (HELO a67cc04a5eeb) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 22 Jun 2022 16:03:17 -0700 Received: from kbuild by a67cc04a5eeb with local (Exim 4.95) (envelope-from ) id 1o49NU-0001nz-Vs; Wed, 22 Jun 2022 23:03:16 +0000 Date: Thu, 23 Jun 2022 07:02:57 +0800 From: kernel test robot To: Andi Kleen Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [jirislaby:lto 12/45] kernel/time/posix-stubs.c:38:44: error: conflicting types for 'compat_sys_timer_create'; have 'long int(void)' Message-ID: <202206230609.ubEcfE97-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git lto head: 8047611082d70c5263114fabce8c80a4c3d251fa commit: d6f8c88795ffd42d25c4d6c8634d9859d2b5ee57 [12/45] lto: Use C version for SYSCALL_ALIAS / cond_syscall config: sparc64-randconfig-r035-20220622 (https://download.01.org/0day-ci/archive/20220623/202206230609.ubEcfE97-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 11.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/jirislaby/linux.git/commit/?id=d6f8c88795ffd42d25c4d6c8634d9859d2b5ee57 git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git git fetch --no-tags jirislaby lto git checkout d6f8c88795ffd42d25c4d6c8634d9859d2b5ee57 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): kernel/time/posix-stubs.c:25:17: warning: no previous prototype for 'sys_ni_posix_timers' [-Wmissing-prototypes] 25 | asmlinkage long sys_ni_posix_timers(void) | ^~~~~~~~~~~~~~~~~~~ kernel/time/posix-stubs.c:73:5: warning: no previous prototype for 'do_clock_gettime' [-Wmissing-prototypes] 73 | int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) | ^~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: >> kernel/time/posix-stubs.c:38:44: error: conflicting types for 'compat_sys_timer_create'; have 'long int(void)' 38 | #define COMPAT_SYS_NI(name) SYSCALL_ALIAS(compat_sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~ include/linux/linkage.h:32:14: note: in definition of macro 'SYSCALL_ALIAS' 32 | long a(void) __attribute__((alias(__stringify(name)))) | ^ kernel/time/posix-stubs.c:160:1: note: in expansion of macro 'COMPAT_SYS_NI' 160 | COMPAT_SYS_NI(timer_create); | ^~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:18: include/linux/compat.h:727:17: note: previous declaration of 'compat_sys_timer_create' with type 'long int(clockid_t, struct compat_sigevent *, timer_t *)' {aka 'long int(int, struct compat_sigevent *, int *)'} 727 | asmlinkage long compat_sys_timer_create(clockid_t which_clock, | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: >> kernel/time/posix-stubs.c:38:44: error: conflicting types for 'compat_sys_getitimer'; have 'long int(void)' 38 | #define COMPAT_SYS_NI(name) SYSCALL_ALIAS(compat_sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~ include/linux/linkage.h:32:14: note: in definition of macro 'SYSCALL_ALIAS' 32 | long a(void) __attribute__((alias(__stringify(name)))) | ^ kernel/time/posix-stubs.c:164:1: note: in expansion of macro 'COMPAT_SYS_NI' 164 | COMPAT_SYS_NI(getitimer); | ^~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:18: include/linux/compat.h:714:17: note: previous declaration of 'compat_sys_getitimer' with type 'long int(int, struct old_itimerval32 *)' 714 | asmlinkage long compat_sys_getitimer(int which, | ^~~~~~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: >> kernel/time/posix-stubs.c:38:44: error: conflicting types for 'compat_sys_setitimer'; have 'long int(void)' 38 | #define COMPAT_SYS_NI(name) SYSCALL_ALIAS(compat_sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~ include/linux/linkage.h:32:14: note: in definition of macro 'SYSCALL_ALIAS' 32 | long a(void) __attribute__((alias(__stringify(name)))) | ^ kernel/time/posix-stubs.c:165:1: note: in expansion of macro 'COMPAT_SYS_NI' 165 | COMPAT_SYS_NI(setitimer); | ^~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:18: include/linux/compat.h:716:17: note: previous declaration of 'compat_sys_setitimer' with type 'long int(int, struct old_itimerval32 *, struct old_itimerval32 *)' 716 | asmlinkage long compat_sys_setitimer(int which, | ^~~~~~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: kernel/time/posix-stubs.c:34:43: warning: 'sys_timer_create' alias between functions of incompatible types 'long int(clockid_t, struct sigevent *, timer_t *)' {aka 'long int(int, struct sigevent *, int *)'} and 'long int(void)' [-Wattribute-alias=] 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~ kernel/time/posix-stubs.c:34:23: note: in expansion of macro 'SYSCALL_ALIAS_PROTO' 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~~~~~~~~~ kernel/time/posix-stubs.c:41:1: note: in expansion of macro 'SYS_NI' 41 | SYS_NI(timer_create); | ^~~~~~ kernel/time/posix-stubs.c:25:17: note: aliased declaration here 25 | asmlinkage long sys_ni_posix_timers(void) | ^~~~~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: kernel/time/posix-stubs.c:34:43: warning: 'sys_timer_gettime32' alias between functions of incompatible types 'long int(timer_t, struct old_itimerspec32 *)' {aka 'long int(int, struct old_itimerspec32 *)'} and 'long int(void)' [-Wattribute-alias=] 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~ kernel/time/posix-stubs.c:34:23: note: in expansion of macro 'SYSCALL_ALIAS_PROTO' 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~~~~~~~~~ kernel/time/posix-stubs.c:170:1: note: in expansion of macro 'SYS_NI' 170 | SYS_NI(timer_gettime32); | ^~~~~~ kernel/time/posix-stubs.c:25:17: note: aliased declaration here 25 | asmlinkage long sys_ni_posix_timers(void) | ^~~~~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: kernel/time/posix-stubs.c:34:43: warning: 'sys_timer_settime32' alias between functions of incompatible types 'long int(timer_t, int, struct old_itimerspec32 *, struct old_itimerspec32 *)' {aka 'long int(int, int, struct old_itimerspec32 *, struct old_itimerspec32 *)'} and 'long int(void)' [-Wattribute-alias=] 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~ kernel/time/posix-stubs.c:34:23: note: in expansion of macro 'SYSCALL_ALIAS_PROTO' 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~~~~~~~~~ kernel/time/posix-stubs.c:169:1: note: in expansion of macro 'SYS_NI' 169 | SYS_NI(timer_settime32); | ^~~~~~ kernel/time/posix-stubs.c:25:17: note: aliased declaration here 25 | asmlinkage long sys_ni_posix_timers(void) | ^~~~~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: kernel/time/posix-stubs.c:34:43: warning: 'sys_alarm' alias between functions of incompatible types 'long int(unsigned int)' and 'long int(void)' [-Wattribute-alias=] 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~ kernel/time/posix-stubs.c:34:23: note: in expansion of macro 'SYSCALL_ALIAS_PROTO' 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~~~~~~~~~ kernel/time/posix-stubs.c:51:1: note: in expansion of macro 'SYS_NI' 51 | SYS_NI(alarm); | ^~~~~~ kernel/time/posix-stubs.c:25:17: note: aliased declaration here 25 | asmlinkage long sys_ni_posix_timers(void) | ^~~~~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: kernel/time/posix-stubs.c:34:43: warning: 'sys_clock_adjtime32' alias between functions of incompatible types 'long int(clockid_t, struct old_timex32 *)' {aka 'long int(int, struct old_timex32 *)'} and 'long int(void)' [-Wattribute-alias=] 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~ kernel/time/posix-stubs.c:34:23: note: in expansion of macro 'SYSCALL_ALIAS_PROTO' 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~~~~~~~~~ kernel/time/posix-stubs.c:49:1: note: in expansion of macro 'SYS_NI' 49 | SYS_NI(clock_adjtime32); | ^~~~~~ kernel/time/posix-stubs.c:25:17: note: aliased declaration here 25 | asmlinkage long sys_ni_posix_timers(void) | ^~~~~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: kernel/time/posix-stubs.c:34:43: warning: 'sys_setitimer' alias between functions of incompatible types 'long int(int, struct __kernel_old_itimerval *, struct __kernel_old_itimerval *)' and 'long int(void)' [-Wattribute-alias=] 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~ kernel/time/posix-stubs.c:34:23: note: in expansion of macro 'SYSCALL_ALIAS_PROTO' 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~~~~~~~~~ kernel/time/posix-stubs.c:48:1: note: in expansion of macro 'SYS_NI' 48 | SYS_NI(setitimer); | ^~~~~~ kernel/time/posix-stubs.c:25:17: note: aliased declaration here 25 | asmlinkage long sys_ni_posix_timers(void) | ^~~~~~~~~~~~~~~~~~~ In file included from kernel/time/posix-stubs.c:9: kernel/time/posix-stubs.c:34:43: warning: 'sys_getitimer' alias between functions of incompatible types 'long int(int, struct __kernel_old_itimerval *)' and 'long int(void)' [-Wattribute-alias=] 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~ kernel/time/posix-stubs.c:34:23: note: in expansion of macro 'SYSCALL_ALIAS_PROTO' 34 | #define SYS_NI(name) SYSCALL_ALIAS_PROTO(sys_##name, sys_ni_posix_timers) | ^~~~~~~~~~~~~~~~~~~ kernel/time/posix-stubs.c:47:1: note: in expansion of macro 'SYS_NI' 47 | SYS_NI(getitimer); | ^~~~~~ vim +38 kernel/time/posix-stubs.c 7303e30ec1d8fb5 Dominik Brodowski 2018-04-05 36 7303e30ec1d8fb5 Dominik Brodowski 2018-04-05 37 #ifndef COMPAT_SYS_NI 3a4d44b61625550 Al Viro 2017-06-07 @38 #define COMPAT_SYS_NI(name) SYSCALL_ALIAS(compat_sys_##name, sys_ni_posix_timers) 7303e30ec1d8fb5 Dominik Brodowski 2018-04-05 39 #endif baa73d9e478ff32 Nicolas Pitre 2016-11-11 40 :::::: The code at line 38 was first introduced by commit :::::: 3a4d44b6162555070194e486ff6b3799a8d323a2 ntp: Move adjtimex related compat syscalls to native counterparts :::::: TO: Al Viro :::::: CC: Thomas Gleixner -- 0-DAY CI Kernel Test Service https://01.org/lkp