Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2734585pxb; Mon, 25 Apr 2022 00:52:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ5AhbLY7OS+FBZhqo+RRWCe2+4UvkfrPF12PMifkxjao157wB+/H3Ewxzxd2S5977+PG4 X-Received: by 2002:a05:6402:2949:b0:425:a52a:28c5 with SMTP id ed9-20020a056402294900b00425a52a28c5mr17383532edb.389.1650873140414; Mon, 25 Apr 2022 00:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650873140; cv=none; d=google.com; s=arc-20160816; b=M6tRD60ZXW9PuFZ/usyzJAeP8CzKEOvtoh6L/AmDbhPjJNMaSQBD65I7rmhU4rU+U9 y6HBzcb0QWqcdYffI3hO6kcKZd6I0xv2sClRxjq6PH6+BnbJ7KzV42h6Kwb9sj855vLq vJyi7n2s/DLFLNhLYyZBsCiMyrPS1HYgPpa/DzDqtDAk/BAWcIelEE78GINXYzfBM6Py n2sqgMnVy40DN2vbHevs4PDkNoLsyzNuG+vePERywDx+Zbz4TXAJW4bIO68T0Ud1Nfdj vc2wj8kvxlRHF7V1c9mdBVwgD0WpxQenOfqeokcQb0mAMQ0trWa9OqMiJcqDxQ0dsPuc z1+Q== 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=qpqov5TQ0nyC8HZ1H6hYH5if8iuA6QfQw8ZB/cOrJP8=; b=0YiiQhz3Cq3FJ90/zLa0ZtobjdT/kPqqCoeupVsEgBRv+ZxfeG4T8OzgCljYHRgWrU ogRAbYlc6XGurL0IIMH/u4gQ+kGl7VIv8CKeRSL16Qwhp5WWP2J//eLAoYTo4eUWPhpB xB+3gThTcK/qLD3WEIONOZd4i7jTT2UrLihCnG3HjbZqwIZMcdh/cUuNtX51XOLWLz4B onEuENc9JcVGF5NQJUoWhwaUdETjx+4pk+o0dirrQIZ5npluZq3LrGm8nvIuiHLyjLlP YHpc1xxCdACqojwp9YKZ0p6qgigeJ8j8xj5nTQkToXd4ZjxHR3uJi81B3XGpwFMYK5xe y2Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WpcWKYOs; 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 kl8-20020a170907994800b006e6ccac1988si2784830ejc.573.2022.04.25.00.51.57; Mon, 25 Apr 2022 00:52:20 -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=WpcWKYOs; 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 S231859AbiDXLvq (ORCPT + 99 others); Sun, 24 Apr 2022 07:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233946AbiDXLvn (ORCPT ); Sun, 24 Apr 2022 07:51:43 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C13761816FB; Sun, 24 Apr 2022 04:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650800923; x=1682336923; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bK7lkwOx8GhEMs8AaNpbDNyDjZ4A4n5nPcVUeZeW2PE=; b=WpcWKYOsDnXoxn9FNYZR7bOSi4H0bQQV6YoiAWUKncLC42yjjOOOuk6t Jo3nBv1dGsEci3m/J3/BYOjYPOaElkGnCqq8FCz6CEDWxFvNMZv+Ey+0X /AMvWHkaFnqnegi3pIqcztazErMwqBMsu4hDcFeneTrFbB8q6P84Q6flF k2wGlCmO5yEj6vAceGgnxdeY80VzMHiF7BkaMRb9l72AjbfhOP/v1ROQQ 2LPws9ny50oUwiK68Q/pZoN4ddwho9HDU+vbIWI3P5Oa1nBC9YBFWhEy2 sF31WQXfOfNd5k7lMmHilCY2wuxxNF1lAQ7/XZM7YbtsL+/QiM99xtBuI Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10326"; a="265201443" X-IronPort-AV: E=Sophos;i="5.90,286,1643702400"; d="scan'208";a="265201443" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2022 04:48:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,286,1643702400"; d="scan'208";a="594820063" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 24 Apr 2022 04:48:38 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1niajF-0001PL-7Z; Sun, 24 Apr 2022 11:48:37 +0000 Date: Sun, 24 Apr 2022 19:47:54 +0800 From: kernel test robot To: menglong8.dong@gmail.com, ast@kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, yoshfuji@linux-ipv6.org, dsahern@kernel.org, kuba@kernel.org, pabeni@redhat.com, benbjiang@tencent.com, flyingpeng@tencent.com, imagedong@tencent.com, edumazet@google.com, kafai@fb.com, talalahmad@google.com, keescook@chromium.org, mengensun@tencent.com, dongli.zhang@oracle.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] bpf: init map_btf_id during compiling Message-ID: <202204241926.3xdM8EYM-lkp@intel.com> References: <20220424092613.863290-1-imagedong@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220424092613.863290-1-imagedong@tencent.com> 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,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 Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] [also build test WARNING on bpf/master net-next/master net/master linus/master v5.18-rc3 next-20220422] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/menglong8-dong-gmail-com/bpf-init-map_btf_id-during-compiling/20220424-172902 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220424/202204241926.3xdM8EYM-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 1cddcfdc3c683b393df1a5c9063252eb60e52818) 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/a1d0d3f8a71cc20be0b95fe9506a3b3bd1b572b5 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review menglong8-dong-gmail-com/bpf-init-map_btf_id-during-compiling/20220424-172902 git checkout a1d0d3f8a71cc20be0b95fe9506a3b3bd1b572b5 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/bpf/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/bpf/btf.c:4823:41: warning: unused variable 'btf_vmlinux_map_ops' [-Wunused-const-variable] static const struct bpf_map_ops * const btf_vmlinux_map_ops[] = { ^ 1 warning generated. vim +/btf_vmlinux_map_ops +4823 kernel/bpf/btf.c 8580ac9404f624 Alexei Starovoitov 2019-10-15 4822 41c48f3a982317 Andrey Ignatov 2020-06-19 @4823 static const struct bpf_map_ops * const btf_vmlinux_map_ops[] = { 41c48f3a982317 Andrey Ignatov 2020-06-19 4824 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) 41c48f3a982317 Andrey Ignatov 2020-06-19 4825 #define BPF_LINK_TYPE(_id, _name) 41c48f3a982317 Andrey Ignatov 2020-06-19 4826 #define BPF_MAP_TYPE(_id, _ops) \ 41c48f3a982317 Andrey Ignatov 2020-06-19 4827 [_id] = &_ops, 41c48f3a982317 Andrey Ignatov 2020-06-19 4828 #include 41c48f3a982317 Andrey Ignatov 2020-06-19 4829 #undef BPF_PROG_TYPE 41c48f3a982317 Andrey Ignatov 2020-06-19 4830 #undef BPF_LINK_TYPE 41c48f3a982317 Andrey Ignatov 2020-06-19 4831 #undef BPF_MAP_TYPE 41c48f3a982317 Andrey Ignatov 2020-06-19 4832 }; 41c48f3a982317 Andrey Ignatov 2020-06-19 4833 -- 0-DAY CI Kernel Test Service https://01.org/lkp