Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp95728rwi; Wed, 19 Oct 2022 18:01:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7oWzyRi3qHUYeXIDHc03r8KSPablVZgsyD/stpZq6772RF1BH9Fs7zeWSGk/uHCcNVGUb8 X-Received: by 2002:a17:90b:1c90:b0:203:b7b4:b1cf with SMTP id oo16-20020a17090b1c9000b00203b7b4b1cfmr50074684pjb.160.1666227684280; Wed, 19 Oct 2022 18:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666227684; cv=none; d=google.com; s=arc-20160816; b=ERNuw/ZOw2YLGgOgm3vbRcSXxqYCzxRUrtC9WIrPPRFDHZ9f1ldQgRxQmHiGXrUk1y O4XtZ8vYNEKVTM/qcs21LiPubRyEqbJ9wYY50i0TGdGKfJIgVnBn2u+00g/d456DaKrO +VYShKwo1RQ5K0OJMYHLn6Yx09u/OOqM5ympwScP9esKf8Y4V3o0eFsK7Hl3Sq6tgmmu EgsXyEja2FFdpSGU9gfEuPd+Zqk3I9jOSi0DCS+fFAu1lGnEEz5DfmB0XeNI4EV2aQLn olgexkeU2XYB0k+7BBO2ej0fW6F2Tb++12nqTAziuJH6zfq8T54HvF1HSx03TnYLZNes hl6A== 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=AVhgZiVkoOroy1Yz81TajBOtqmMN+AdoJA4T4TPWOG4=; b=zEdI17Pw4z7hCses2fyotXgxmMA+7fDvdQT1h9VwGgxiW1yL9CFaLhxd4XrzbtMgS2 fXehUYLCGiVv1Ml98mNAw6HFUVuvtlLbyhGuH+VwdSyHxFzY3sKO/6tDhLRYHG/OIxR6 e4btGrAg4kGChv8B7ATloa7AKt5lEWZFiJN9r7wJyxyxEu0QkDdHgpNag5CzSubHhOob lwQBRNf9hG/p+EYTMla3QZbK3Jf39JG54nwROSpaqlh5eae37ep57HgEeKWM1smKmY1a 8ZOwlNgxm7NwkxbSg1wz/Sk9sIv8cvhQY3SR7RhPBAtDBQG0flrpOEml+Zlvb/eXCk29 n/zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jY1mdYOO; 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 g7-20020a056a000b8700b00563ad44ddf9si20139169pfj.380.2022.10.19.18.00.34; Wed, 19 Oct 2022 18:01:24 -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=jY1mdYOO; 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 S230227AbiJTAeD (ORCPT + 99 others); Wed, 19 Oct 2022 20:34:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbiJTAeC (ORCPT ); Wed, 19 Oct 2022 20:34:02 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28D1B1B2B9F for ; Wed, 19 Oct 2022 17:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666226041; x=1697762041; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=87qpzl5VuBgixsuakBVkMxYZabfA2HU7mgCTHOJupqk=; b=jY1mdYOO/CBu/h2vYY57Cd6hId40w8/AZJssBaAPl8IlmhhKjaeXZlwf vOXZDpkVwm7Y3CPqcUD067NvVxu0ffzaO5lGcfSaDRreiaCzFGbVXzfU9 SWI+h9jBXFU5iNyNDKdfPr1HTMX/6DoWlqr24r46acS9Udw3dfaE0WwhV ECpkMteLF2wTpYNrTrPEPj1ZEwN6DSK3vYq9r8mlWyBZhC0R6RV5mf9wx Rh6yPBxDeTWHntlUUQwkyAvAnNEBDGoqDDNatcUR/SKkP+X9iP4AE+azu 0bDEI0TWnkiwN+1CD9j73yiei6SsbmimYkVi/vZ1rjZxH74BqSEt6+PpR w==; X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="286962885" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208";a="286962885" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 17:34:00 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="772044405" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208";a="772044405" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.249.173.192]) ([10.249.173.192]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 17:33:59 -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 Cc: kernel test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org References: <202210190351.b33PaxC4-lkp@intel.com> From: "Chen, Rong A" Message-ID: Date: Thu, 20 Oct 2022 08:33:57 +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=-4.7 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_MED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 5:11 PM, Ard Biesheuvel wrote: > On Wed, 19 Oct 2022 at 11:10, Chen, Rong A wrote: >> >> >> >> 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. >> > > Thank you Rong. > > Wouldn't it be easier to detect the asmlinkage and never warn on it? Hi Ard, We'll try to search asmlinkage from code if the sparse warning occurred. Best Regards, Rong Chen > Maybe this should be sparse's job instead ... > > >> >>> >>> 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 >>> > _______________________________________________ > kbuild-all mailing list -- kbuild-all@lists.01.org > To unsubscribe send an email to kbuild-all-leave@lists.01.org >