From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gnuweeb.org (Postfix) with ESMTPS id 8DC0E8061E for ; Sat, 10 Sep 2022 03:49:42 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=FIME54Do; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662781782; x=1694317782; h=date:from:to:cc:subject:message-id:mime-version; bh=Ot8IDxW2fdHVXVqZXnIKJhABRQWz5o2GhIZGebSiIWg=; b=FIME54DoBgs/DumW7JHDgC087pPnYHU4dX4OWD7sv3+rIXKYdfmbZ/9K cCQAt51WtBTpTB/nj1abdS844GqdLLuhSlAESXjgMexYYWyQDhzFVV7Uf 6gHRuse7WhRcfYfEHXtJizdTKiPoGXzGhx20qs5AjpDao/Thdt/lUhXol ktxiv1sqev9iYCmon6OeUtOQIzgIA/+qE4zqpdIt5DRsCc2XRJ8dXU+CR AvMW7RLMqU6xiuAzmuLOsoRgK/sFejYM7X31CCmL8Up9QH9fO39n2p9NJ dEmmq8O7VvckNbKVvU6cnkXzAtBU0NAl1pceeOFC/7sj+am3nVmb7PWi+ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10465"; a="295194212" X-IronPort-AV: E=Sophos;i="5.93,304,1654585200"; d="scan'208";a="295194212" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2022 20:49:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,304,1654585200"; d="scan'208";a="592841714" Received: from lkp-server02.sh.intel.com (HELO b2938d2e5c5a) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 09 Sep 2022 20:49:32 -0700 Received: from kbuild by b2938d2e5c5a with local (Exim 4.96) (envelope-from ) id 1oWrUp-00025B-2V; Sat, 10 Sep 2022 03:49:31 +0000 Date: Sat, 10 Sep 2022 11:49:29 +0800 From: kernel test robot To: Joey Gouly Cc: kbuild-all@lists.01.org, Ammar Faizi , GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Catalin Marinas Subject: [ammarfaizi2-block:arm64/linux/for-next/gettimeofday 2/3] arch/arm64/kernel/alternative.c:198:6: warning: no previous prototype for 'apply_alternatives_vdso' Message-ID: <202209101157.EfOSTasF-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block arm64/linux/for-next/gettimeofday head: 9025cebf12d1763de36d5e09e2b0a1e4f9b13b28 commit: 4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441 [2/3] arm64: alternative: patch alternatives in the vDSO config: arm64-buildonly-randconfig-r001-20220907 (https://download.01.org/0day-ci/archive/20220910/202209101157.EfOSTasF-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.1.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://github.com/ammarfaizi2/linux-block/commit/4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block arm64/linux/for-next/gettimeofday git checkout 4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/arm64/kernel/alternative.c:198:6: warning: no previous prototype for 'apply_alternatives_vdso' [-Wmissing-prototypes] 198 | void apply_alternatives_vdso(void) | ^~~~~~~~~~~~~~~~~~~~~~~ vim +/apply_alternatives_vdso +198 arch/arm64/kernel/alternative.c 197 > 198 void apply_alternatives_vdso(void) 199 { 200 struct alt_region region; 201 const struct elf64_hdr *hdr; 202 const struct elf64_shdr *shdr; 203 const struct elf64_shdr *alt; 204 DECLARE_BITMAP(all_capabilities, ARM64_NPATCHABLE); 205 206 bitmap_fill(all_capabilities, ARM64_NPATCHABLE); 207 208 hdr = (struct elf64_hdr *)vdso_start; 209 shdr = (void *)hdr + hdr->e_shoff; 210 alt = find_section(hdr, shdr, ".altinstructions"); 211 if (!alt) 212 return; 213 214 region = (struct alt_region){ 215 .begin = (void *)hdr + alt->sh_offset, 216 .end = (void *)hdr + alt->sh_offset + alt->sh_size, 217 }; 218 219 __apply_alternatives(®ion, false, &all_capabilities[0]); 220 } 221 -- 0-DAY CI Kernel Test Service https://01.org/lkp