Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2782828iog; Mon, 20 Jun 2022 04:51:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uqXUJzRFcPIL7R+z3HZnlkYz1u5hYzceypzzYiWqdMLKMCm5KmXawEm1SoRNb7dV7ht54X X-Received: by 2002:a17:906:f84e:b0:70e:6ec8:cc4a with SMTP id ks14-20020a170906f84e00b0070e6ec8cc4amr20017592ejb.694.1655725866949; Mon, 20 Jun 2022 04:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655725866; cv=none; d=google.com; s=arc-20160816; b=MfvWlwia4bi67qfgljZCQhTq+zqLOSU+1s1Ne6EKoYI8eJ2zqDbvUZk/+uK/j1k2xx dQAI50yW2s93AnBaK9TVr9fzfnihjdg0lARNXJzJKCZ4jjShli64cnjnkrSLkGrN2xud MXkn0YXqoHfoof7RJzkhmHZ0m9KGE8PyzJJfHNOrT4TlM0q2AV5wIhzjHy9eG70kS2Oi uIt5aarjs3+p+9HJKs+bOkv71Fc/k2ZfTGWkD7AZYCwc/uISVe2+tnY+JZWUoHTX58xY NEaWITgrwQcTNcEcgLmsnYzWSNM+EFa862WRp466E3AfrQy86cTNNvsSHeBVZWun5sTL KVIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pzpq8gl+cbNHqPR78G0/VNurjQli4yX8cwa8ztnuc2U=; b=RKf2y9P6pVOT19uKV7YMNrWz+G0IH1stur6rNZRT4giIikdVOEvd5Un4HF3sOrrNIJ rRCLvSlWPm5EPL4OCGMHJBuONw24yc0QQd9C6cQTB0tm4j/SDGXAV3DsUCyBNCzreDjJ MCzlwM1xRaa28Ym5ED/DWxYmCcO/7bCraFdZKim3WxiOdPMhSrxhIwBjUkZCe6jjEU78 V6e5aOQjXGEBiQaaIlsdO6F5m080vw/ie2+nxc355m9llGhTC37AF6DHFUY+77U4o95J 1DWOB1mwf44yJfKJIMr+B/ePAswg4X515cKqR0e0JYVRB9yBSm38z7Pm/MHxUvAaFBEg rAcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fdkwcLyh; 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 q4-20020a056402248400b00435640bfdc8si9321495eda.199.2022.06.20.04.50.41; Mon, 20 Jun 2022 04:51:06 -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=fdkwcLyh; 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 S242194AbiFTLpr (ORCPT + 99 others); Mon, 20 Jun 2022 07:45:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242057AbiFTLpP (ORCPT ); Mon, 20 Jun 2022 07:45:15 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA96365D1; Mon, 20 Jun 2022 04:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655725513; x=1687261513; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MwZ99lFV63pbzMEapd9Oh22WAGTF8yCQ3fVqd5zuOsw=; b=fdkwcLyhkghnLEzDZuZlMRlPZbCFaeeMfgtfagJ0dyxTl5B6k4D4GTF9 zwrC+Kqm7UkJWxG8xnCo6hdO8eyngWR0IDlOaAXD22lOFepZAejv+Owax 25gqvXrdtF+A8KOl4lov8H5t3yyF4b4+QsyvWwSJaOaI8RaGFeVo8zx1H QCEGEVoRpv9XpMatDp1ec61+NkCNxv/x7kcAkh5TngP+52ZOG6fH6Geer kzlO0wt5JA3T4io5w3BzrAJAAj7aFje4gkYd4ti7FIN9eJ13FV2Nu06vB C8KfbuNnzy1CrsfgCcch6IaX2FQFZTqN8EiOmFidZ56fuSxDicV7U+HzP Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="279923981" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="279923981" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2022 04:45:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="561913662" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 20 Jun 2022 04:45:10 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o3Fq9-000T8d-RN; Mon, 20 Jun 2022 11:45:09 +0000 Date: Mon, 20 Jun 2022 19:45:01 +0800 From: kernel test robot To: Tiezhu Yang , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: kbuild-all@lists.01.org, Pavel Machek , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next] libbpf: Include linux/log2.h to use is_pow_of_2() Message-ID: <202206201942.DQpI2tgb-lkp@intel.com> References: <1655711942-6181-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1655711942-6181-1-git-send-email-yangtiezhu@loongson.cn> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Tiezhu, Thank you for the patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Tiezhu-Yang/libbpf-Include-linux-log2-h-to-use-is_pow_of_2/20220620-160053 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: s390-defconfig (https://download.01.org/0day-ci/archive/20220620/202206201942.DQpI2tgb-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/785c0dfdcebd7deec5cfaaf7bce252c40f30a350 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Tiezhu-Yang/libbpf-Include-linux-log2-h-to-use-is_pow_of_2/20220620-160053 git checkout 785c0dfdcebd7deec5cfaaf7bce252c40f30a350 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=s390 prepare If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr] scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr] scripts/genksyms/parse.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples linker.c: In function 'linker_sanity_check_elf': >> linker.c:722:49: error: implicit declaration of function 'is_pow_of_2'; did you mean 'is_power_of_2'? [-Werror=implicit-function-declaration] 722 | if (sec->shdr->sh_addralign && !is_pow_of_2(sec->shdr->sh_addralign)) | ^~~~~~~~~~~ | is_power_of_2 >> linker.c:722:49: error: nested extern declaration of 'is_pow_of_2' [-Werror=nested-externs] libbpf.c: In function 'adjust_ringbuf_sz': >> libbpf.c:5134:36: error: implicit declaration of function 'is_pow_of_2'; did you mean 'is_power_of_2'? [-Werror=implicit-function-declaration] 5134 | if ((sz % page_sz) == 0 && is_pow_of_2(sz / page_sz)) | ^~~~~~~~~~~ | is_power_of_2 >> libbpf.c:5134:36: error: nested extern declaration of 'is_pow_of_2' [-Werror=nested-externs] cc1: all warnings being treated as errors make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/linker.o] Error 1 make[5]: *** Waiting for unfinished jobs.... cc1: all warnings being treated as errors make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf.o] Error 1 make[4]: *** [Makefile:157: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o] Error 2 make[3]: *** [Makefile:55: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2 make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2 make[1]: *** [Makefile:1344: tools/bpf/resolve_btfids] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. -- 0-DAY CI Kernel Test Service https://01.org/lkp