From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 C2909E57E; Sat, 8 Jun 2024 04:24:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717820652; cv=none; b=R73Pf/eB4/2kWKA1mlYQT97hI5hGdHgT/ABppeEM7liJwQHDYfoZh9EXv/xVxt9YpgTeXMbUyF4ctgwwq6Kxk50qogNdgXwmupfRPS6JBgsURqQp1N0ckdFEEGQhMYNjTxB2iefnz3aFLfZSu/Afbesw6P2keMDJhFrGnExV2wE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717820652; c=relaxed/simple; bh=djyCoxwdB02mJxnU8dMa7DQUh1mSR9t7kFne7+MeAtI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ABSV+iFK9d2NBYPutFGck4olIAQAvDT64ZRHwJKkzZwb7wHaHI/K7YBNZlRRSmhabelhetdQ1acz+UjvrtNo4M8YxckulMWYmlaeOW32teDpQHkCaULOHF3z1Hc1btasxtD2o4vcKqDEkm4+ts4M75SPaJAoInxmSKvKKebnuUs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dxUFkdXO; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dxUFkdXO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717820650; x=1749356650; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=djyCoxwdB02mJxnU8dMa7DQUh1mSR9t7kFne7+MeAtI=; b=dxUFkdXOXcu/tkLNvFJPWO5wvnGXpPfnbMEvaBgdcbZMmWi9YjAstB7h /dmWV4o8D3uR5Sc95O2e+BamX+63/K1UI4lFkyCM8/lMQHVRn6DzoOtBb rLpHZoFLrka0y6n/2GZJR9Pg2CCbiXTpY+50tH1X8USnC5G8UfJpc7lC0 VBxibZoeIiYIy5GFRqp08tVgpf4iqQ6swds0rJpRMiNXO0Oq/zrNkvqUk ek8vNTyaxG0JKSRJTTgb5OeZsx1lDSXwYjCfgWVugginwI88p0TRFwQ61 03Z2t4yfWvUoeq4XzuBuzGCf6cmihV/lXnlWbIRcRpcLlEmgvUNlQnaEL Q==; X-CSE-ConnectionGUID: iEkF1yoYR0KJj6tov6oYKg== X-CSE-MsgGUID: jueoZnaRSzmWp85JJ9Lo+g== X-IronPort-AV: E=McAfee;i="6600,9927,11096"; a="25970569" X-IronPort-AV: E=Sophos;i="6.08,222,1712646000"; d="scan'208";a="25970569" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2024 21:24:10 -0700 X-CSE-ConnectionGUID: NhCpHC2VTRGsG4BYleMG/Q== X-CSE-MsgGUID: fnTx+2CBTLaD5CD5MbJziA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,222,1712646000"; d="scan'208";a="43456635" Received: from lkp-server01.sh.intel.com (HELO 472b94a103a1) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 07 Jun 2024 21:24:06 -0700 Received: from kbuild by 472b94a103a1 with local (Exim 4.96) (envelope-from ) id 1sFncZ-0000yp-0Y; Sat, 08 Jun 2024 04:24:03 +0000 Date: Sat, 8 Jun 2024 12:23:35 +0800 From: kernel test robot To: Coiby Xu , kexec@lists.infradead.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Ondrej Kozina , Milan Broz , Thomas Staudt , Daniel P =?iso-8859-1?Q?=2E_Berrang=E9?= , Kairui Song , Jan Pazdziora , Pingfan Liu , Baoquan He , Dave Young , linux-kernel@vger.kernel.org, x86@kernel.org, Dave Hansen , Vitaly Kuznetsov , Greg KH , Eric Biederman Subject: Re: [PATCH v5 1/7] kexec_file: allow to place kexec_buf randomly Message-ID: <202406081214.kNbwlJWP-lkp@intel.com> References: <20240607122622.167228-2-coxu@redhat.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 In-Reply-To: <20240607122622.167228-2-coxu@redhat.com> Hi Coiby, kernel test robot noticed the following build errors: [auto build test ERROR on 8a92980606e3585d72d510a03b59906e96755b8a] url: https://github.com/intel-lab-lkp/linux/commits/Coiby-Xu/kexec_file-allow-to-place-kexec_buf-randomly/20240607-203154 base: 8a92980606e3585d72d510a03b59906e96755b8a patch link: https://lore.kernel.org/r/20240607122622.167228-2-coxu%40redhat.com patch subject: [PATCH v5 1/7] kexec_file: allow to place kexec_buf randomly config: x86_64-kexec (https://download.01.org/0day-ci/archive/20240608/202406081214.kNbwlJWP-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240608/202406081214.kNbwlJWP-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202406081214.kNbwlJWP-lkp@intel.com/ All errors (new ones prefixed by >>): >> kernel/kexec_file.c:504:12: error: no member named 'random' in 'struct kexec_buf' 504 | if (kbuf->random) | ~~~~ ^ >> kernel/kexec_file.c:505:16: error: call to undeclared function 'kexec_random_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 505 | temp_start = kexec_random_start(temp_start, end); | ^ 2 errors generated. vim +504 kernel/kexec_file.c 496 497 static int locate_mem_hole_bottom_up(unsigned long start, unsigned long end, 498 struct kexec_buf *kbuf) 499 { 500 struct kimage *image = kbuf->image; 501 unsigned long temp_start, temp_end; 502 503 temp_start = max(start, kbuf->buf_min); > 504 if (kbuf->random) > 505 temp_start = kexec_random_start(temp_start, end); 506 507 do { 508 temp_start = ALIGN(temp_start, kbuf->buf_align); 509 temp_end = temp_start + kbuf->memsz - 1; 510 511 if (temp_end > end || temp_end > kbuf->buf_max) 512 return 0; 513 /* 514 * Make sure this does not conflict with any of existing 515 * segments 516 */ 517 if (kimage_is_destination_range(image, temp_start, temp_end)) { 518 temp_start = temp_start + PAGE_SIZE; 519 continue; 520 } 521 522 /* We found a suitable memory range */ 523 break; 524 } while (1); 525 526 /* If we are here, we found a suitable memory range */ 527 kbuf->mem = temp_start; 528 529 /* Success, stop navigating through remaining System RAM ranges */ 530 return 1; 531 } 532 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki