Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5911984ioo; Wed, 1 Jun 2022 15:49:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyzRSKKerh7ElIm+ROs2BhusekIeJgN4F06YZVhnRb9IG4oS7ddtrTpt0Fltmilm4W/L3S X-Received: by 2002:a17:903:244f:b0:163:fd29:4cc0 with SMTP id l15-20020a170903244f00b00163fd294cc0mr1655947pls.67.1654123747263; Wed, 01 Jun 2022 15:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654123747; cv=none; d=google.com; s=arc-20160816; b=LpvPxevfk1uuHWA2GM4hWD8Q2VMVOBGc8JU+PTZp9jeUBBON+oGT7bP6+fOiHBOHpT 8IWE5d2rhw/r+pISYfrwDCJ4jHHojSJ+7nOhVRaLdRfKRa4drQ8ZtXQKV/zh9BD/8TqG TkGkyqdiJbMLUdERTmYIFwl8LPJKjMILdopGu3Zspjk/5VAFncnPVBL03fxM1O4c9q20 PM1GfX7MJfBqqjupB838BzJFXrSBoMKuI9KABiJrZYj5lUzAmCDVMIhLHabOzWH1YgJs cyuzFMvgeoxRfAOuLSPMS6P0AQgWiqRvmrRLirEarALdCJUWRhFs8mrGt3AHBzDVe/qa YLaQ== 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=iaNudpwkJIHtG7LDQX6CpF36VN47U21YUfaokYjbIXE=; b=mTyAeYbVDtO//KYys42DBvJIMeIaebSA7SokXBfPgsaX9gPA2lS68iQVMd6gKANeTm BmIN+qiWAlIU90n7CyhPKPW/Nc9tUwL5G6yPKKlQN/zDWZWKivqKPTJ14x+1oBzUNSsM YNnd3vjgVaMbjpS3dfwmaKuMSOp7ae67syhT9VZGX5A1XdqXj/9dPRPZq/TrGcTCew87 DQBQDxRs+LqIgdWMF6vE0LAoBIzJ1JHZiySEFAtH+qmowteSliDZN+zRcx59Ei7nKPeu SJSDWGHkXoq9xQiIRRYufzkuUljDk3Jmt2oIjr9f3M58QtSghPESAUqOGCADaDC9pkll FDsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oC3R54YH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i14-20020a170902cf0e00b00153b2d16660si2711314plg.616.2022.06.01.15.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 15:49:07 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oC3R54YH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED8932838FF; Wed, 1 Jun 2022 15:45:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232420AbiFAWpf (ORCPT + 99 others); Wed, 1 Jun 2022 18:45:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232409AbiFAWpb (ORCPT ); Wed, 1 Jun 2022 18:45:31 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64554281860; Wed, 1 Jun 2022 15:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654123530; x=1685659530; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=smkMhl7SsLCvV8F21B6h6yHB6om4C/Bmm9M+s7xMgFs=; b=oC3R54YH7KpP6anGlcRpgoBObGC0UAHryK9cvqHrtBBg1Eq6VPQdWHUQ Lo+az2D2znNGVdR54a+yrKQpJ0JjbVNlqqTH8lmfiLEMohAzGOyIzXrIa K/27vk8uvFXRLkfqxaTfeVZ3BExw/oE+p2raA1oymfhdtnsFLE4/QHyeI cuR7RUn1IuDREX5CXCc6RPra9TA3zT+fS3Y1jOLWyIpiR7Oco8nYP/BOL Fk87tLBWnu8GatIjUDLGarL7l/wTLCNB48HRtjqHBNrHF62S7Lad4oKYh /ZoczDsQ13x8OFCDCvee5we2LNkzKTy6+pVX5uz3xDDKNi+ONefq1EF+U Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10365"; a="362129073" X-IronPort-AV: E=Sophos;i="5.91,269,1647327600"; d="scan'208";a="362129073" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2022 15:45:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,269,1647327600"; d="scan'208";a="581805052" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 01 Jun 2022 15:45:27 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nwX5j-0004UY-14; Wed, 01 Jun 2022 22:45:27 +0000 Date: Thu, 2 Jun 2022 06:44:41 +0800 From: kernel test robot To: Song Liu , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kernel-team@fb.com, rostedt@goodmis.org, jolsa@kernel.org, Song Liu Subject: Re: [PATCH bpf-next 5/5] bpf: trampoline: support FTRACE_OPS_FL_SHARE_IPMODIFY Message-ID: <202206020622.HnFjEObo-lkp@intel.com> References: <20220601175749.3071572-6-song@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220601175749.3071572-6-song@kernel.org> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Song, I love your patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Song-Liu/ftrace-host-klp-and-bpf-trampoline-together/20220602-020112 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/20220602/202206020622.HnFjEObo-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c825abd6b0198fb088d9752f556a70705bc99dfd) 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/7edcf1c49617641579f2bc36b86c7d59bea20aef git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Song-Liu/ftrace-host-klp-and-bpf-trampoline-together/20220602-020112 git checkout 7edcf1c49617641579f2bc36b86c7d59bea20aef # 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 where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/bpf/trampoline.c:30:66: warning: declaration of 'enum ftrace_ops_cmd' will not be visible outside of this function [-Wvisibility] static int bpf_tramp_ftrace_ops_func(struct ftrace_ops *op, enum ftrace_ops_cmd cmd); ^ kernel/bpf/trampoline.c:92:21: error: invalid application of 'sizeof' to an incomplete type 'struct ftrace_ops' tr->fops = kzalloc(sizeof(struct ftrace_ops), GFP_KERNEL); ^ ~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:47:8: note: forward declaration of 'struct ftrace_ops' struct ftrace_ops; ^ kernel/bpf/trampoline.c:100:10: error: incomplete definition of type 'struct ftrace_ops' tr->fops->private = tr; ~~~~~~~~^ include/linux/bpf.h:47:8: note: forward declaration of 'struct ftrace_ops' struct ftrace_ops; ^ kernel/bpf/trampoline.c:101:10: error: incomplete definition of type 'struct ftrace_ops' tr->fops->ops_func = bpf_tramp_ftrace_ops_func; ~~~~~~~~^ include/linux/bpf.h:47:8: note: forward declaration of 'struct ftrace_ops' struct ftrace_ops; ^ kernel/bpf/trampoline.c:397:11: error: incomplete definition of type 'struct ftrace_ops' tr->fops->flags |= FTRACE_OPS_FL_SHARE_IPMODIFY; ~~~~~~~~^ include/linux/bpf.h:47:8: note: forward declaration of 'struct ftrace_ops' struct ftrace_ops; ^ kernel/bpf/trampoline.c:397:22: error: use of undeclared identifier 'FTRACE_OPS_FL_SHARE_IPMODIFY' tr->fops->flags |= FTRACE_OPS_FL_SHARE_IPMODIFY; ^ kernel/bpf/trampoline.c:415:11: error: incomplete definition of type 'struct ftrace_ops' tr->fops->func = NULL; ~~~~~~~~^ include/linux/bpf.h:47:8: note: forward declaration of 'struct ftrace_ops' struct ftrace_ops; ^ kernel/bpf/trampoline.c:416:11: error: incomplete definition of type 'struct ftrace_ops' tr->fops->trampoline = 0; ~~~~~~~~^ include/linux/bpf.h:47:8: note: forward declaration of 'struct ftrace_ops' struct ftrace_ops; ^ kernel/bpf/trampoline.c:431:67: warning: declaration of 'enum ftrace_ops_cmd' will not be visible outside of this function [-Wvisibility] static int bpf_tramp_ftrace_ops_func(struct ftrace_ops *ops, enum ftrace_ops_cmd cmd) ^ kernel/bpf/trampoline.c:431:12: error: conflicting types for 'bpf_tramp_ftrace_ops_func' static int bpf_tramp_ftrace_ops_func(struct ftrace_ops *ops, enum ftrace_ops_cmd cmd) ^ kernel/bpf/trampoline.c:30:12: note: previous declaration is here static int bpf_tramp_ftrace_ops_func(struct ftrace_ops *op, enum ftrace_ops_cmd cmd); ^ kernel/bpf/trampoline.c:431:82: error: variable has incomplete type 'enum ftrace_ops_cmd' static int bpf_tramp_ftrace_ops_func(struct ftrace_ops *ops, enum ftrace_ops_cmd cmd) ^ kernel/bpf/trampoline.c:431:67: note: forward declaration of 'enum ftrace_ops_cmd' static int bpf_tramp_ftrace_ops_func(struct ftrace_ops *ops, enum ftrace_ops_cmd cmd) ^ kernel/bpf/trampoline.c:433:33: error: incomplete definition of type 'struct ftrace_ops' struct bpf_trampoline *tr = ops->private; ~~~^ include/linux/bpf.h:47:8: note: forward declaration of 'struct ftrace_ops' struct ftrace_ops; ^ kernel/bpf/trampoline.c:448:7: error: use of undeclared identifier 'FTRACE_OPS_CMD_ENABLE_SHARE_IPMODIFY' case FTRACE_OPS_CMD_ENABLE_SHARE_IPMODIFY: ^ kernel/bpf/trampoline.c:452:7: error: use of undeclared identifier 'FTRACE_OPS_CMD_DISABLE_SHARE_IPMODIFY' case FTRACE_OPS_CMD_DISABLE_SHARE_IPMODIFY: ^ kernel/bpf/trampoline.c:454:11: error: incomplete definition of type 'struct ftrace_ops' tr->fops->flags &= ~FTRACE_OPS_FL_SHARE_IPMODIFY; ~~~~~~~~^ include/linux/bpf.h:47:8: note: forward declaration of 'struct ftrace_ops' struct ftrace_ops; ^ kernel/bpf/trampoline.c:454:23: error: use of undeclared identifier 'FTRACE_OPS_FL_SHARE_IPMODIFY' tr->fops->flags &= ~FTRACE_OPS_FL_SHARE_IPMODIFY; ^ 2 warnings and 14 errors generated. vim +30 kernel/bpf/trampoline.c 29 > 30 static int bpf_tramp_ftrace_ops_func(struct ftrace_ops *op, enum ftrace_ops_cmd cmd); 31 -- 0-DAY CI Kernel Test Service https://01.org/lkp