Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp314363qtb; Wed, 19 Oct 2022 02:39:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5M2lh+ejnK4KhGw9CU2b58ddhhxh7WBpsfIw9xH9pP8XmfmT+qZq/b6w8xAyivDacnPgjK X-Received: by 2002:a05:6402:3508:b0:45d:c4b4:4968 with SMTP id b8-20020a056402350800b0045dc4b44968mr6349247edd.272.1666172344066; Wed, 19 Oct 2022 02:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172344; cv=none; d=google.com; s=arc-20160816; b=a+w4PYV2GcIZ45Bbp1mA9l9LzrpyK6uJi/tz1WJZJ81kLcMBkGKa3/16oPMb2rvWj/ TFLP2JSg4+w4wFX+5v3EMpFGZfa6zjO11bjThvegVvzOxyKpXZnbu8y+81kHWsdgUOEs 17UuPFzR1ETUq3AwtvfQsnNSpb355wXxOQBfWDwZYBkvJShKk/RyAn9RM70tUR1DmFnC Ah8zPKRI2hY6hJ7AQH2Odb1rAlpS0AjJW5T0vkwhaczpbtBBmo4Wcjgl1nSb6Q9sCbGK m54ZRDmOJtZyKTVk/PcOnXgDZH7rsbajkl3XQ8kWAkPeUDu7izE6SYe+nrROnLRd+3kQ YSyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=I0/k+7nSeQfIEV5j0gyAy45No3NOA/cRJaGFqfIUyEo=; b=zmKhlevmbsxSdZ/2LjjjmPlt9kVg0a+0Z7zM67vstNZdsP4GPjb2OM1NHMSyGWL46+ k4y/jWCYlz3HIPYZfRS0bqFegBgxWJqIiDRb49ZD4EFJES3RK+VZ8czF9wyuAKf2X/pk WObhoLmSeR6EVMV9rcX4QY81FTSWNOzlsJzv763JhtT5eUby3866nQmWSvQgZeYXTbG6 /yegEmzZLJKMXADW/tPGi70CR4Vn4nDSeUbZ/OIucJ/LKBL6SCJCTmw12gF+/r/fq0uM 25yiRdpcHNXnIN/ojWnYOjTxdN/RqtOh+Kfx3H3RLflDC1G77SR3QNRxgV0X0LEEW2E5 p2Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oI+w5r4b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x20-20020a170906441400b0078a00ad1e31si13057562ejo.687.2022.10.19.02.38.36; Wed, 19 Oct 2022 02:39:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oI+w5r4b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233413AbiJSJZR (ORCPT + 99 others); Wed, 19 Oct 2022 05:25:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233570AbiJSJYD (ORCPT ); Wed, 19 Oct 2022 05:24:03 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15E18BC468 for ; Wed, 19 Oct 2022 02:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170651; x=1697706651; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=96p+5dCXwU2m7O55lU9X3Il4Dil7vRTS9IgtZq7J2pY=; b=oI+w5r4bMpwnA+uV5uleQHzptopmE47PBVVmRJ5Fot4xMXSbbDm+f3sz j9KN7Ys0mO45n5DMJnwGeslsYbOmeaK4t7+Bmp20WXn0gFQpmoezZr5ZM yqOD5uSVXeRGZ0T+a3tRRu6jvuFwFQpurQouXFgPGWd4JhBKDa9FPXjz0 LOTt9/AcXJHOEvLRvBkqzPOgqYh3LyxWo4+ZP9THhUUYDjh4ZGzCwCcVo oFXXL1xa1t4DaE/wEiU5/F6gEc9JoVyMYCnPKSQ4xqQXzFbHybTkqIDYn 2QC410v+vt//1Fn7r1KopbvXFoTUUQqg9AEadG3MzbFtFyEWcWfF7jvNE Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="306343342" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="306343342" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:09:49 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734117114" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734117114" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.249.170.146]) ([10.249.170.146]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:09:48 -0700 Subject: Re: [kbuild-all] Re: drivers/firmware/efi/libstub/zboot.c:163:1: sparse: sparse: symbol 'efi_zboot_entry' was not declared. Should it be static? To: Ard Biesheuvel , kernel test robot Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org References: <202210190351.b33PaxC4-lkp@intel.com> From: "Chen, Rong A" Message-ID: Date: Wed, 19 Oct 2022 17:09:46 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19/2022 3:50 AM, Ard Biesheuvel wrote: > This is another spurious report of an asmlinkage symbol. Hi Ard, Thanks for your reply, we'll add this warning to the ignore list. Best Regards, Rong Chen > > On Tue, 18 Oct 2022 at 21:49, kernel test robot wrote: >> >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >> head: bb1a1146467ad812bb65440696df0782e2bc63c8 >> commit: a050910972bb25152b42ad2e544652117c5ad915 efi/libstub: implement generic EFI zboot >> date: 4 weeks ago >> config: riscv-randconfig-s043-20221018 >> compiler: riscv64-linux-gcc (GCC) 12.1.0 >> reproduce: >> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> # apt-get install sparse >> # sparse version: v0.6.4-39-gce1a6720-dirty >> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a050910972bb25152b42ad2e544652117c5ad915 >> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> git fetch --no-tags linus master >> git checkout a050910972bb25152b42ad2e544652117c5ad915 >> # save the config file >> mkdir build_dir && cp config build_dir/.config >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash drivers/firmware/efi/libstub/ lib/xz/ >> >> If you fix the issue, kindly add following tag where applicable >> | Reported-by: kernel test robot >> >> sparse warnings: (new ones prefixed by >>) >> WARNING: invalid argument to '-march': '_zihintpause' >> drivers/firmware/efi/libstub/zboot.c: note: in included file (through drivers/firmware/efi/libstub/../../../../lib/decompress_unxz.c): >>>> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 const [usertype] *p @@ got unsigned int const [usertype] * @@ >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: expected restricted __le32 const [usertype] *p >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: got unsigned int const [usertype] * >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:427:48: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 const [usertype] *p @@ got unsigned int const [usertype] * @@ >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:427:48: sparse: expected restricted __le32 const [usertype] *p >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:427:48: sparse: got unsigned int const [usertype] * >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:435:37: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 const [usertype] *p @@ got unsigned int const [usertype] * @@ >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:435:37: sparse: expected restricted __le32 const [usertype] *p >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:435:37: sparse: got unsigned int const [usertype] * >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:459:28: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 const [usertype] *p @@ got unsigned int const [usertype] * @@ >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:459:28: sparse: expected restricted __le32 const [usertype] *p >> drivers/firmware/efi/libstub/../../../../lib/xz/xz_dec_stream.c:459:28: sparse: got unsigned int const [usertype] * >>>> drivers/firmware/efi/libstub/zboot.c:163:1: sparse: sparse: symbol 'efi_zboot_entry' was not declared. Should it be static? >> >> vim +/efi_zboot_entry +163 drivers/firmware/efi/libstub/zboot.c >> >> 161 >> 162 asmlinkage efi_status_t __efiapi >> > 163 efi_zboot_entry(efi_handle_t handle, efi_system_table_t *systab) >> >> -- >> 0-DAY CI Kernel Test Service >> https://01.org/lkp > _______________________________________________ > kbuild-all mailing list -- kbuild-all@lists.01.org > To unsubscribe send an email to kbuild-all-leave@lists.01.org >