From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 461252C9D for ; Sat, 8 Jan 2022 16:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641659474; x=1673195474; h=date:from:to:cc:subject:message-id:mime-version; bh=j3fWbRXUi/kYwRK/t3Dnce1UbCwALle6DniDJcdVWBY=; b=mYOmCPao40xwYei2t1NKtTLHVdEGYIjSQZVu992KyfgR4z4QTWp9nktO agvgbdCZswlwIQ8UyqDgppPyHlLSHXk7zJg35rBTp+WllGcibjsNYX/dQ BmNYRJr8Xko0GYC8hKx6TesjlKDwgKs+5YXsKN1uy410d4LzsJHAQwCg6 fPLNyHkzxGFCj9ZmMBLX6Tj01fI/zIY89pxGATP1RyxMQjMsq1pw7BAvM RBEffJsk+TGUgr0hNCr9tAsZ4lCZes4W/Bw8Pjr8ICLINCkw5n+tPnFLn 3Fu/p3+oYwwuIi3OAylrWAYW0q64w+i5dhHMJhScEf19qexRuYQn3AKaR w==; X-IronPort-AV: E=McAfee;i="6200,9189,10220"; a="223011654" X-IronPort-AV: E=Sophos;i="5.88,272,1635231600"; d="scan'208";a="223011654" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2022 08:31:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,272,1635231600"; d="scan'208";a="471625325" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 08 Jan 2022 08:31:00 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1n6EcO-0000oH-5F; Sat, 08 Jan 2022 16:31:00 +0000 Date: Sun, 9 Jan 2022 00:30:54 +0800 From: kernel test robot To: Ingo Molnar Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mingo-tip:sched/headers 1860/2375] arch/x86/entry/vsyscall/vsyscall_64.c:323:24: warning: no previous prototype for function 'get_gate_vma' Message-ID: <202201090022.G97ulrJ2-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: 351ceeab2ef96ab2fc306934ddb201b44636181b commit: f09977356680cc3b264d9598e1eebf2c74258586 [1860/2375] headers/deps: mm: Optimize , remove the header config: x86_64-randconfig-r032-20220108 (https://download.01.org/0day-ci/archive/20220109/202201090022.G97ulrJ2-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3a344d2125fa37e59bae1b0874442c650a19607) 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/mingo/tip.git/commit/?id=f09977356680cc3b264d9598e1eebf2c74258586 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout f09977356680cc3b264d9598e1eebf2c74258586 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/entry/vsyscall/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/entry/vsyscall/vsyscall_64.c:323:24: warning: no previous prototype for function 'get_gate_vma' [-Wmissing-prototypes] struct vm_area_struct *get_gate_vma(struct mm_struct *mm) ^ arch/x86/entry/vsyscall/vsyscall_64.c:323:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct vm_area_struct *get_gate_vma(struct mm_struct *mm) ^ static >> arch/x86/entry/vsyscall/vsyscall_64.c:334:5: warning: no previous prototype for function 'in_gate_area' [-Wmissing-prototypes] int in_gate_area(struct mm_struct *mm, unsigned long addr) ^ arch/x86/entry/vsyscall/vsyscall_64.c:334:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int in_gate_area(struct mm_struct *mm, unsigned long addr) ^ static >> arch/x86/entry/vsyscall/vsyscall_64.c:349:5: warning: no previous prototype for function 'in_gate_area_no_mm' [-Wmissing-prototypes] int in_gate_area_no_mm(unsigned long addr) ^ arch/x86/entry/vsyscall/vsyscall_64.c:349:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int in_gate_area_no_mm(unsigned long addr) ^ static 3 warnings generated. vim +/get_gate_vma +323 arch/x86/entry/vsyscall/vsyscall_64.c b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 322 b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 @323 struct vm_area_struct *get_gate_vma(struct mm_struct *mm) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 324 { c338867d0e4224 arch/x86/entry/vsyscall/vsyscall_64.c Brian Gerst 2015-06-22 325 #ifdef CONFIG_COMPAT ff170cd0595398 arch/x86/entry/vsyscall/vsyscall_64.c Gabriel Krisman Bertazi 2020-10-03 326 if (!mm || !(mm->context.flags & MM_CONTEXT_HAS_VSYSCALL)) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 327 return NULL; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 328 #endif 87983c66bc02c9 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-10-29 329 if (vsyscall_mode == NONE) 87983c66bc02c9 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-10-29 330 return NULL; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 331 return &gate_vma; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 332 } b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 333 b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 @334 int in_gate_area(struct mm_struct *mm, unsigned long addr) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 335 { b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 336 struct vm_area_struct *vma = get_gate_vma(mm); b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 337 b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 338 if (!vma) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 339 return 0; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 340 b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 341 return (addr >= vma->vm_start) && (addr < vma->vm_end); b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 342 } b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 343 b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 344 /* b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 345 * Use this when you have no reliable mm, typically from interrupt b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 346 * context. It is less reliable than using a task's mm and may give b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 347 * false positives. b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 348 */ b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 @349 int in_gate_area_no_mm(unsigned long addr) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 350 { 87983c66bc02c9 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-10-29 351 return vsyscall_mode != NONE && (addr & PAGE_MASK) == VSYSCALL_ADDR; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 352 } b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 353 :::::: The code at line 323 was first introduced by commit :::::: b93590901a01a6d036b3b7c856bcc5724fdb9911 x86_64/vsyscall: Move all of the gate_area code to vsyscall_64.c :::::: TO: Andy Lutomirski :::::: CC: Ingo Molnar --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3971521644520272448==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [mingo-tip:sched/headers 1860/2375] arch/x86/entry/vsyscall/vsyscall_64.c:323:24: warning: no previous prototype for function 'get_gate_vma' Date: Sun, 09 Jan 2022 00:30:54 +0800 Message-ID: <202201090022.G97ulrJ2-lkp@intel.com> List-Id: --===============3971521644520272448== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/h= eaders head: 351ceeab2ef96ab2fc306934ddb201b44636181b commit: f09977356680cc3b264d9598e1eebf2c74258586 [1860/2375] headers/deps: = mm: Optimize , remove the header config: x86_64-randconfig-r032-20220108 (https://download.01.org/0day-ci/ar= chive/20220109/202201090022.G97ulrJ2-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3a344= d2125fa37e59bae1b0874442c650a19607) reproduce (this is a W=3D1 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/mingo/tip.git/com= mit/?id=3Df09977356680cc3b264d9598e1eebf2c74258586 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/= git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout f09977356680cc3b264d9598e1eebf2c74258586 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash arch/x86/entry/vsyscall/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/entry/vsyscall/vsyscall_64.c:323:24: warning: no previous proto= type for function 'get_gate_vma' [-Wmissing-prototypes] struct vm_area_struct *get_gate_vma(struct mm_struct *mm) ^ arch/x86/entry/vsyscall/vsyscall_64.c:323:1: note: declare 'static' if t= he function is not intended to be used outside of this translation unit struct vm_area_struct *get_gate_vma(struct mm_struct *mm) ^ static = >> arch/x86/entry/vsyscall/vsyscall_64.c:334:5: warning: no previous protot= ype for function 'in_gate_area' [-Wmissing-prototypes] int in_gate_area(struct mm_struct *mm, unsigned long addr) ^ arch/x86/entry/vsyscall/vsyscall_64.c:334:1: note: declare 'static' if t= he function is not intended to be used outside of this translation unit int in_gate_area(struct mm_struct *mm, unsigned long addr) ^ static = >> arch/x86/entry/vsyscall/vsyscall_64.c:349:5: warning: no previous protot= ype for function 'in_gate_area_no_mm' [-Wmissing-prototypes] int in_gate_area_no_mm(unsigned long addr) ^ arch/x86/entry/vsyscall/vsyscall_64.c:349:1: note: declare 'static' if t= he function is not intended to be used outside of this translation unit int in_gate_area_no_mm(unsigned long addr) ^ static = 3 warnings generated. vim +/get_gate_vma +323 arch/x86/entry/vsyscall/vsyscall_64.c b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 322 = b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 @323 struct vm_area_struct *get_gate_vma(struct mm_struct *mm) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 324 { c338867d0e4224 arch/x86/entry/vsyscall/vsyscall_64.c Brian Gerst = 2015-06-22 325 #ifdef CONFIG_COMPAT ff170cd0595398 arch/x86/entry/vsyscall/vsyscall_64.c Gabriel Krisman Bertaz= i 2020-10-03 326 if (!mm || !(mm->context.flags & MM_CONTEXT_HAS_VSYSCAL= L)) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 327 return NULL; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 328 #endif 87983c66bc02c9 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-10-29 329 if (vsyscall_mode =3D=3D NONE) 87983c66bc02c9 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-10-29 330 return NULL; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 331 return &gate_vma; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 332 } b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 333 = b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 @334 int in_gate_area(struct mm_struct *mm, unsigned long add= r) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 335 { b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 336 struct vm_area_struct *vma =3D get_gate_vma(mm); b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 337 = b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 338 if (!vma) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 339 return 0; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 340 = b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 341 return (addr >=3D vma->vm_start) && (addr < vma->vm_end= ); b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 342 } b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 343 = b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 344 /* b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 345 * Use this when you have no reliable mm, typically from= interrupt b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 346 * context. It is less reliable than using a task's mm a= nd may give b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 347 * false positives. b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 348 */ b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 @349 int in_gate_area_no_mm(unsigned long addr) b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 350 { 87983c66bc02c9 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-10-29 351 return vsyscall_mode !=3D NONE && (addr & PAGE_MASK) = =3D=3D VSYSCALL_ADDR; b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 352 } b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski = 2014-09-23 353 = :::::: The code at line 323 was first introduced by commit :::::: b93590901a01a6d036b3b7c856bcc5724fdb9911 x86_64/vsyscall: Move all o= f the gate_area code to vsyscall_64.c :::::: TO: Andy Lutomirski :::::: CC: Ingo Molnar --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3971521644520272448==--