From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 E6262246799 for ; Sat, 28 Jun 2025 12:03:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751112239; cv=none; b=CjR+S4MG5tTeTlV7Lo/BFIE2hLp2qjGwQUPJTFxSTS1tePPVdFuyS06It7+Xs9EkyrgpCpggOgxJsYuEHXY5uWfnvEnKyXND4gfG4omOre/avUIexWx9/E/Sm42jJuLxSV/EnId14SZO0q2zKb+Tv8tleor6BzBUN4KMF3POxLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751112239; c=relaxed/simple; bh=GkR2V7eJzPrX0it+N9cazuHM/ZlOhNJ49tFnzlafXis=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=oPmsavPBWgHZmlRcFPh5fSPQeLbpYcxLI/lTB+MPs+SL8dqJAD3dPhWtMGvwM+5L96cm19oAPunjZlxhb+UqdSR7AOpKbpMwUH8mvMwPMsxIF29ZjVh9ob/VQqvsrhuUQ31gMc88Yxh01Pd+G1kl0F/YfHNL4VucEv18eMLy2U8= 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=TT8kB/OV; arc=none smtp.client-ip=192.198.163.17 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="TT8kB/OV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751112238; x=1782648238; h=date:from:to:cc:subject:message-id:mime-version; bh=GkR2V7eJzPrX0it+N9cazuHM/ZlOhNJ49tFnzlafXis=; b=TT8kB/OVTxf5mwrQFYZY675ARmlpxM0sxcx37Gv1PKmXFcXcrHEMes2/ B3f3hCnO4dh+E/SjJ/aKDasGQH/0U9fTc5+aUwNvGdkvnJb7/tygpUAQt lPFG8NeVjeW6PItTEX2SlWE3cOp0An/3nIGpL7494D/y3xle7g71wYbfE J4lLKu2tA76/+aaQLuiTz3vBN4e/AjDVHDh+7FEcoWm9hzklIohdmwIh6 mpWsfo093hfnLSKy4fg/LyAUZTIT71Auav/Sf2s+EAhgEA8EW5ZxdMD3H ZkLMwBzc2bV1L0yHb+NEN+PFnqQj7RN/ew7NcGnar0/N0Tk+1BUIO36vE Q==; X-CSE-ConnectionGUID: Mu1uLdo5S8m4Xuszqx09yQ== X-CSE-MsgGUID: IB0Q59GqQ6G//8OjxYl3NQ== X-IronPort-AV: E=McAfee;i="6800,10657,11477"; a="53346833" X-IronPort-AV: E=Sophos;i="6.16,273,1744095600"; d="scan'208";a="53346833" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2025 05:03:57 -0700 X-CSE-ConnectionGUID: OOd4gKqERW+nA5kRt2a0Hw== X-CSE-MsgGUID: yK0tSzW6Rw+0wFRCvQZLkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,273,1744095600"; d="scan'208";a="157418733" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 28 Jun 2025 05:03:55 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uVUHh-000X22-1L; Sat, 28 Jun 2025 12:03:53 +0000 Date: Sat, 28 Jun 2025 20:03:24 +0800 From: kernel test robot To: Dan Williams Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Ira Weiny , Jonathan Cameron Subject: arch/powerpc/boot/decompress.c:132:8: error: call to undeclared function '__decompress'; ISO C99 and later do not support implicit function declarations Message-ID: <202506281959.PtSsiYM8-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Dan, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: aaf724ed69264719550ec4f194d3ab17b886af9a commit: 3d6ebf16438de5d712030fefbb4182b46373d677 cxl/port: Fix cxl_bus_rescan() vs bus_rescan_devices() date: 8 months ago config: powerpc64-randconfig-r054-20250628 (https://download.01.org/0day-ci/archive/20250628/202506281959.PtSsiYM8-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project e04c938cc08a90ae60440ce22d072ebc69d67ee8) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250628/202506281959.PtSsiYM8-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/202506281959.PtSsiYM8-lkp@intel.com/ All errors (new ones prefixed by >>): >> arch/powerpc/boot/decompress.c:132:8: error: call to undeclared function '__decompress'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | ret = __decompress(inbuf, input_size, NULL, flush, outbuf, | ^ 1 error generated. vim +/__decompress +132 arch/powerpc/boot/decompress.c 1b7898ee276b39 Oliver O'Halloran 2016-09-22 97 1b7898ee276b39 Oliver O'Halloran 2016-09-22 98 /** 1b7898ee276b39 Oliver O'Halloran 2016-09-22 99 * partial_decompress - decompresses part or all of a compressed buffer 1b7898ee276b39 Oliver O'Halloran 2016-09-22 100 * @inbuf: input buffer 1b7898ee276b39 Oliver O'Halloran 2016-09-22 101 * @input_size: length of the input buffer 930a77c3ad79c3 Zhang Jianhua 2021-05-10 102 * @outbuf: output buffer 930a77c3ad79c3 Zhang Jianhua 2021-05-10 103 * @output_size: length of the output buffer 6efc2f1a64ef62 Yang Li 2024-04-08 104 * @_skip: number of output bytes to ignore 1b7898ee276b39 Oliver O'Halloran 2016-09-22 105 * 1b7898ee276b39 Oliver O'Halloran 2016-09-22 106 * This function takes compressed data from inbuf, decompresses and write it to 1b7898ee276b39 Oliver O'Halloran 2016-09-22 107 * outbuf. Once output_size bytes are written to the output buffer, or the 1b7898ee276b39 Oliver O'Halloran 2016-09-22 108 * stream is exhausted the function will return the number of bytes that were 1b7898ee276b39 Oliver O'Halloran 2016-09-22 109 * decompressed. Otherwise it will return whatever error code the decompressor 1b7898ee276b39 Oliver O'Halloran 2016-09-22 110 * reported (NB: This is specific to each decompressor type). 1b7898ee276b39 Oliver O'Halloran 2016-09-22 111 * 1b7898ee276b39 Oliver O'Halloran 2016-09-22 112 * The skip functionality is mainly there so the program and discover 1b7898ee276b39 Oliver O'Halloran 2016-09-22 113 * the size of the compressed image so that it can ask firmware (if present) 1b7898ee276b39 Oliver O'Halloran 2016-09-22 114 * for an appropriately sized buffer. 1b7898ee276b39 Oliver O'Halloran 2016-09-22 115 */ 1b7898ee276b39 Oliver O'Halloran 2016-09-22 116 long partial_decompress(void *inbuf, unsigned long input_size, 1b7898ee276b39 Oliver O'Halloran 2016-09-22 117 void *outbuf, unsigned long output_size, unsigned long _skip) 1b7898ee276b39 Oliver O'Halloran 2016-09-22 118 { 1b7898ee276b39 Oliver O'Halloran 2016-09-22 119 int ret; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 120 1b7898ee276b39 Oliver O'Halloran 2016-09-22 121 /* 1b7898ee276b39 Oliver O'Halloran 2016-09-22 122 * The skipped bytes needs to be included in the size of data we want 1b7898ee276b39 Oliver O'Halloran 2016-09-22 123 * to decompress. 1b7898ee276b39 Oliver O'Halloran 2016-09-22 124 */ 1b7898ee276b39 Oliver O'Halloran 2016-09-22 125 output_size += _skip; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 126 1b7898ee276b39 Oliver O'Halloran 2016-09-22 127 decompressed_bytes = 0; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 128 output_buffer = outbuf; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 129 limit = output_size; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 130 skip = _skip; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 131 1b7898ee276b39 Oliver O'Halloran 2016-09-22 @132 ret = __decompress(inbuf, input_size, NULL, flush, outbuf, :::::: The code at line 132 was first introduced by commit :::::: 1b7898ee276b39e54d870dc4ef3374f663d0b426 powerpc/boot: Use the pre-boot decompression API :::::: TO: Oliver O'Halloran :::::: CC: Michael Ellerman -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki