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=-1.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gnuweeb.org (Postfix) with ESMTPS id 1B49B7E723 for ; Wed, 30 Mar 2022 02:16:40 +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=SgFFqiNi; 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=1648606600; x=1680142600; h=date:from:to:cc:subject:message-id:mime-version; bh=A6QC8MjjgpND1r7D4JwXhogTe2+CIKA4+PtJmMkZLDo=; b=SgFFqiNiI4gm2Nx28UfFZW3CyefDYo3n557rhkG2ZWmcNgyrXMWLqu2P PiQB1D6uDioZJYuk3yAAmzPxlm3qyx1vE4tSikyMKXQLAGF9SQHG0odON DKS46qGv0qJB2IzA+gdUjU9SADihCvgpuUTjYvEglHeK78Fkg/O09bRqH bclAQh0EOVrRYN6wN/4i8RGKixSa2DKEHl6pM2S7Q0kQpNMANoVhTOSOx IXWKMqvp1KT9GsYCs8Gdl4/9ym+shB7GgNGsoT4WnrMew4Bev9gssD6qT OenHLZ3zkzlidGdV6pO4Wau+Sdc00fpSiArcpAV32J/NGVM04xTvqEnJZ w==; X-IronPort-AV: E=McAfee;i="6200,9189,10301"; a="320124745" X-IronPort-AV: E=Sophos;i="5.90,221,1643702400"; d="scan'208";a="320124745" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2022 19:16:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,221,1643702400"; d="scan'208";a="719789554" Received: from lkp-server01.sh.intel.com (HELO 3965e2759b93) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 29 Mar 2022 19:16:38 -0700 Received: from kbuild by 3965e2759b93 with local (Exim 4.92) (envelope-from ) id 1nZNsz-0000ta-Aq; Wed, 30 Mar 2022 02:16:37 +0000 Date: Wed, 30 Mar 2022 10:16:15 +0800 From: kernel test robot To: Georgi Djakov Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:google/android/kernel/common/android12-trusty-5.10 5839/5872] kernel/sched/psi.c:538:3: error: implicit declaration of function 'trace_android_vh_psi_event' Message-ID: <202203301037.L3FMfBJj-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) List-Id: Hi Georgi, FYI, the error/warning still remains. tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-trusty-5.10 head: 07055bfd3d810d41a38354693dfaa55a6f8c0025 commit: b79d1815c400c3929bb78a209b6e51a38d6ffcb2 [5839/5872] ANDROID: psi: Add vendor hooks for PSI tracing config: i386-randconfig-a006 (https://download.01.org/0day-ci/archive/20220330/202203301037.L3FMfBJj-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d) 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/b79d1815c400c3929bb78a209b6e51a38d6ffcb2 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-trusty-5.10 git checkout b79d1815c400c3929bb78a209b6e51a38d6ffcb2 # 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=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> kernel/sched/psi.c:538:3: error: implicit declaration of function 'trace_android_vh_psi_event' [-Werror,-Wimplicit-function-declaration] trace_android_vh_psi_event(t); ^ >> kernel/sched/psi.c:546:2: error: implicit declaration of function 'trace_android_vh_psi_group' [-Werror,-Wimplicit-function-declaration] trace_android_vh_psi_group(group); ^ 2 errors generated. vim +/trace_android_vh_psi_event +538 kernel/sched/psi.c 503 504 static u64 update_triggers(struct psi_group *group, u64 now) 505 { 506 struct psi_trigger *t; 507 bool new_stall = false; 508 u64 *total = group->total[PSI_POLL]; 509 510 /* 511 * On subsequent updates, calculate growth deltas and let 512 * watchers know when their specified thresholds are exceeded. 513 */ 514 list_for_each_entry(t, &group->triggers, node) { 515 u64 growth; 516 517 /* Check for stall activity */ 518 if (group->polling_total[t->state] == total[t->state]) 519 continue; 520 521 /* 522 * Multiple triggers might be looking at the same state, 523 * remember to update group->polling_total[] once we've 524 * been through all of them. Also remember to extend the 525 * polling time if we see new stall activity. 526 */ 527 new_stall = true; 528 529 /* Calculate growth since last update */ 530 growth = window_update(&t->win, now, total[t->state]); 531 if (growth < t->threshold) 532 continue; 533 534 /* Limit event signaling to once per window */ 535 if (now < t->last_event_time + t->win.size) 536 continue; 537 > 538 trace_android_vh_psi_event(t); 539 540 /* Generate an event */ 541 if (cmpxchg(&t->event, 0, 1) == 0) 542 wake_up_interruptible(&t->event_wait); 543 t->last_event_time = now; 544 } 545 > 546 trace_android_vh_psi_group(group); 547 548 if (new_stall) 549 memcpy(group->polling_total, total, 550 sizeof(group->polling_total)); 551 552 return now + group->poll_min_period; 553 } 554 -- 0-DAY CI Kernel Test Service https://01.org/lkp