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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62D0EC433EF for ; Thu, 31 Mar 2022 13:00:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8B96C6B0072; Thu, 31 Mar 2022 09:00:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 868866B0073; Thu, 31 Mar 2022 09:00:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7592A6B0074; Thu, 31 Mar 2022 09:00:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0088.hostedemail.com [216.40.44.88]) by kanga.kvack.org (Postfix) with ESMTP id 661BB6B0072 for ; Thu, 31 Mar 2022 09:00:26 -0400 (EDT) Received: from smtpin31.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0CB5AA75AE for ; Thu, 31 Mar 2022 13:00:26 +0000 (UTC) X-FDA: 79304690052.31.CF87066 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf23.hostedemail.com (Postfix) with ESMTP id BF1F414005F for ; Thu, 31 Mar 2022 13:00: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=1648731614; x=1680267614; h=date:from:to:cc:subject:message-id:mime-version; bh=NrbE2Fu6qin+cBpDb/9/JkXlaserqB+2eKhtL+f1T/4=; b=T6cjzXx202DUYirDtwm4RoioSIxlVoipErXEZ2Aut8VGwSeWTAQ/g8Oi BomJKmg2IGLllmaYQVrbJ4y05fGHO3fzCoDZsRX2LO7Z9ZX124I9u082R 31SXa3xiu16LCKYV4SzZie8c7URoH2Mnsdcmx/Knk/epdnw8XCWsx30xh q5Kp5u1XumOor1rE3clhTWxMRVsNHi07dTedX2q+VtaJWMuQQcbYIz9v+ M/iSap6zkq6gbk9rBOJGL7cCa2czEZ/1kfeQ7ZItst8wJIhBnquFrI12a sWJML5pF+mnXlsk5HXarJv3njM6kCjSyINSkNUPaQHi9p8u4x4AVnSS+P Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10302"; a="257411336" X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="257411336" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 06:00:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="522335459" Received: from lkp-server02.sh.intel.com (HELO 3231c491b0e2) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 31 Mar 2022 06:00:10 -0700 Received: from kbuild by 3231c491b0e2 with local (Exim 4.95) (envelope-from ) id 1nZuPK-0000Gm-5P; Thu, 31 Mar 2022 13:00:10 +0000 Date: Thu, 31 Mar 2022 20:59:49 +0800 From: kernel test robot To: Andrey Konovalov Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Johannes Weiner , Andrew Morton , Linux Memory Management List Subject: [hnaz-mm:master 29/122] arch/arm64/kernel/stacktrace.c:289:13: error: implicit declaration of function 'task_scs' is invalid in C99 Message-ID: <202203312049.zLjHyetm-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=T6cjzXx2; spf=none (imf23.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.93) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: BF1F414005F X-Stat-Signature: hr4b1cmiietd917fyf3c5hsstu6573x5 X-HE-Tag: 1648731614-871136 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://github.com/hnaz/linux-mm master head: 074b4ea9811e2c47ae1ecada177629c19fa56d59 commit: 8cdc580c5ca2ffecb0db4f84a99167ef763a21cc [29/122] arm64: implement stack_trace_save_shadow config: arm64-randconfig-r012-20220331 (https://download.01.org/0day-ci/archive/20220331/202203312049.zLjHyetm-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 881350a92d821d4f8e4fa648443ed1d17e251188) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/hnaz/linux-mm/commit/8cdc580c5ca2ffecb0db4f84a99167ef763a21cc git remote add hnaz-mm https://github.com/hnaz/linux-mm git fetch --no-tags hnaz-mm master git checkout 8cdc580c5ca2ffecb0db4f84a99167ef763a21cc # 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=arm64 SHELL=/bin/bash arch/arm64/kernel/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): >> arch/arm64/kernel/stacktrace.c:289:13: error: implicit declaration of function 'task_scs' is invalid in C99 [-Werror,-Wimplicit-function-declaration] scs_base = task_scs(current); ^ >> arch/arm64/kernel/stacktrace.c:289:11: warning: incompatible integer to pointer conversion assigning to 'unsigned long *' from 'int' [-Wint-conversion] scs_base = task_scs(current); ^ ~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. vim +/task_scs +289 arch/arm64/kernel/stacktrace.c 260 261 noinline notrace int arch_stack_walk_shadow(unsigned long *store, 262 unsigned int size, 263 unsigned int skipnr) 264 { 265 unsigned long *scs_top, *scs_base, *scs_next; 266 unsigned int len = 0, part; 267 268 preempt_disable(); 269 270 /* Get the SCS pointer. */ 271 asm volatile("mov %0, x18" : "=&r" (scs_top)); 272 273 /* The top SCS slot is empty. */ 274 scs_top -= 1; 275 276 /* Handle SDEI and hardirq frames. */ 277 for (part = 0; part < ARRAY_SIZE(scs_parts); part++) { 278 scs_next = *this_cpu_ptr(scs_parts[part].saved); 279 if (scs_next) { 280 scs_base = *this_cpu_ptr(scs_parts[part].base); 281 if (walk_shadow_stack_part(scs_top, scs_base, store, 282 size, &skipnr, &len)) 283 goto out; 284 scs_top = scs_next; 285 } 286 } 287 288 /* Handle task and softirq frames. */ > 289 scs_base = task_scs(current); -- 0-DAY CI Kernel Test Service https://01.org/lkp