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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 892FCCA0FE2 for ; Tue, 5 Sep 2023 16:59:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242738AbjIEQ6l (ORCPT ); Tue, 5 Sep 2023 12:58:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354424AbjIELcI (ORCPT ); Tue, 5 Sep 2023 07:32:08 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE7141AB for ; Tue, 5 Sep 2023 04:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693913524; x=1725449524; h=date:from:to:cc:subject:message-id:mime-version; bh=XJ2N4hJNoTugXqEkQ/NpaGXbaCTW9rLOmF2B1mceIbA=; b=nq3sj80e2olp8E87ql2AplhSW3RZErSNSOS64dE1HMnB0Kxy6823gWXL gLHoHoCnDt5JIz5xzNE2B9ROdrXj1tr2A9CBTLkTvNUQvaHBImusWa1YO ZdvNrLctotPTMgZaJgWMhvOvbBqq7vETQjTQHmHCmfvSI31RceStEd9hx N9bOb8eWt5czGxOeWp2RUvVFKD7KpS37FgcD/ZQLpV+oj5tmQHNulv9WF a9bkuVNs20d49jk2jGXX3jiJCayXKQpAKo8ZUn/6ouD+vitMk3MGw0Pvv yrij+oOjMyKuv4+B6i/8bTgkseQJbXtXcgi2nOpvDgGDlXOw8xTMMiDoP g==; X-IronPort-AV: E=McAfee;i="6600,9927,10823"; a="366993169" X-IronPort-AV: E=Sophos;i="6.02,229,1688454000"; d="scan'208";a="366993169" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2023 04:31:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10823"; a="806569195" X-IronPort-AV: E=Sophos;i="6.02,229,1688454000"; d="scan'208";a="806569195" Received: from lkp-server02.sh.intel.com (HELO e0b2ea88afd5) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 05 Sep 2023 04:31:41 -0700 Received: from kbuild by e0b2ea88afd5 with local (Exim 4.96) (envelope-from ) id 1qdUHQ-0001b7-0M; Tue, 05 Sep 2023 11:31:36 +0000 Date: Tue, 5 Sep 2023 19:31:20 +0800 From: kernel test robot To: Ard Biesheuvel Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: drivers/firmware/efi/libstub/alignedmem.c:27: warning: Function parameter or member 'memory_type' not described in 'efi_allocate_pages_aligned' Message-ID: <202309051916.yJ8EbH5d-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3f86ed6ec0b390c033eae7f9c487a3fea268e027 commit: 9cf42bca30e98a1c6c9e8abf876940a551eaa3d1 efi: libstub: use EFI_LOADER_CODE region when moving the kernel in memory date: 10 months ago config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20230905/202309051916.yJ8EbH5d-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230905/202309051916.yJ8EbH5d-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/202309051916.yJ8EbH5d-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/firmware/efi/libstub/alignedmem.c:27: warning: Function parameter or member 'memory_type' not described in 'efi_allocate_pages_aligned' vim +27 drivers/firmware/efi/libstub/alignedmem.c 43b1df0e013c25 Ard Biesheuvel 2020-03-27 7 43b1df0e013c25 Ard Biesheuvel 2020-03-27 8 /** 43b1df0e013c25 Ard Biesheuvel 2020-03-27 9 * efi_allocate_pages_aligned() - Allocate memory pages 43b1df0e013c25 Ard Biesheuvel 2020-03-27 10 * @size: minimum number of bytes to allocate 43b1df0e013c25 Ard Biesheuvel 2020-03-27 11 * @addr: On return the address of the first allocated page. The first 43b1df0e013c25 Ard Biesheuvel 2020-03-27 12 * allocated page has alignment EFI_ALLOC_ALIGN which is an 43b1df0e013c25 Ard Biesheuvel 2020-03-27 13 * architecture dependent multiple of the page size. 43b1df0e013c25 Ard Biesheuvel 2020-03-27 14 * @max: the address that the last allocated memory page shall not 43b1df0e013c25 Ard Biesheuvel 2020-03-27 15 * exceed 43b1df0e013c25 Ard Biesheuvel 2020-03-27 16 * @align: minimum alignment of the base of the allocation 43b1df0e013c25 Ard Biesheuvel 2020-03-27 17 * 43b1df0e013c25 Ard Biesheuvel 2020-03-27 18 * Allocate pages as EFI_LOADER_DATA. The allocated pages are aligned according 43b1df0e013c25 Ard Biesheuvel 2020-03-27 19 * to @align, which should be >= EFI_ALLOC_ALIGN. The last allocated page will 43b1df0e013c25 Ard Biesheuvel 2020-03-27 20 * not exceed the address given by @max. 43b1df0e013c25 Ard Biesheuvel 2020-03-27 21 * 43b1df0e013c25 Ard Biesheuvel 2020-03-27 22 * Return: status code 43b1df0e013c25 Ard Biesheuvel 2020-03-27 23 */ 43b1df0e013c25 Ard Biesheuvel 2020-03-27 24 efi_status_t efi_allocate_pages_aligned(unsigned long size, unsigned long *addr, 9cf42bca30e98a Ard Biesheuvel 2022-08-02 25 unsigned long max, unsigned long align, 9cf42bca30e98a Ard Biesheuvel 2022-08-02 26 int memory_type) 43b1df0e013c25 Ard Biesheuvel 2020-03-27 @27 { :::::: The code at line 27 was first introduced by commit :::::: 43b1df0e013c25abb536699f46d0e9f291b586a0 efi/libstub: Add API function to allocate aligned memory :::::: TO: Ard Biesheuvel :::::: CC: Ard Biesheuvel -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki