Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp742783pxm; Fri, 25 Feb 2022 18:56:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrTI6o7nar1egLl2bjR8E5H7TPiE3fDP8BHc8j0GAQZpFMfKRrf8lx/YTY2GIod2jPlqrI X-Received: by 2002:a17:903:187:b0:14f:d741:a390 with SMTP id z7-20020a170903018700b0014fd741a390mr10359518plg.45.1645844213192; Fri, 25 Feb 2022 18:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645844213; cv=none; d=google.com; s=arc-20160816; b=wyXbEOEsANjM+VH9OkAEXH1mXoxF5/IDtCVDFVHc+S0TSH14dmkLEQPYZ7EemvdSgk xW2RbbsPhdCOp8i1bN9dFQaItiGrR8Pz+gH/6fIcTZ3RP4d6WRurbIKe/S1lEpoDmsbP JPy7nZ1rRFjjiwIBOhmqcvYXdYFh9x1ONn7pmzDz+XvkcOh26VTj5AS6ofIj73t4YIE/ hJNpbxk3La2Nb57reKhBh3MqOXzvTn1SXzp99hyf4ljfRaFxiT0FpdXS1O74wvMBbkOx C5DjV1JuQNm/Vs0XPNUOs3jofHM5KAqUGTH1x3wqmkeTBQbJOVAoXwsWMVdaI+8zJg6T zWuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3dSQJ0Zt08CX5SVkYja50Fed8rRpZ4I1b3atBo652Y0=; b=nDxZmpr5fjl3u5Or994TJo6OplDo/s1NHKzHH8OdmcDHaVbgiB7Kq6OkMLscFN0WFb opHM5X3h8FT9XOfs/fPhACz2aDFPNjDVpcT8ObrWHRgKURdl//8lEiaswlmZRrc/Lu13 3m9gmoIcV+QrAyuKgcjK/qkjSjhG8nzIB7gJ/TjRexnjugiQU8exnOlCRUvO5ZJjePIw Se/I2pxpVr0IZwU3gqFpnjnaMB4Ef1vGr5AmohjaZE3uX2gWl81PifCwVLOjOKvxzmFK RSH/Cnn/ZEihIoQNZd+35D6GoWYGiEuJ5TEL2lCSCqFHx1eEOvvvJsvM+Sf06O/iIB2F KhbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ld5wbloc; 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 bj25-20020a056a02019900b0037450b454b1si3336032pgb.878.2022.02.25.18.56.35; Fri, 25 Feb 2022 18:56:53 -0800 (PST) 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=Ld5wbloc; 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 S229532AbiBZCyP (ORCPT + 99 others); Fri, 25 Feb 2022 21:54:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiBZCyN (ORCPT ); Fri, 25 Feb 2022 21:54:13 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14156E2A; Fri, 25 Feb 2022 18:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645844019; x=1677380019; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fyXkQYuaZpvUkMN1JTZ1FZur3c45JAM3b8/ijmKoljI=; b=Ld5wblocW0geLincYEjqpMZ0cVSdqWPx8nWvJ9zD3PuluLyOanQ+4tap z+IJ9YWI/zqT8f9w3KTClwU/D8ecrPIKXzzrV91b+S9pxCPGlel69UrXF 18hrwtBvonFYpWcbvZFdXIhB5uZOSqtzvjlPQ3EEaB3VSsCz9GexK67qF vmMXwrCTxxxfyAW8N2C8xc5MgKde4NUg1SmUveIf3ZxRmdpOqyxjXvAuq wdmkRKaNyYVlrEM+uDGmUWWANnjRlMLhBHtZHM429wAe4ke8n3t/lEuOw ElTr9QGXSsVv53HHisJgjMpr8SkSbr+9AOGfKPlk4taSfxl7on+XHKlyP Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10269"; a="252352950" X-IronPort-AV: E=Sophos;i="5.90,138,1643702400"; d="scan'208";a="252352950" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2022 18:53:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,138,1643702400"; d="scan'208";a="640314184" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 25 Feb 2022 18:53:34 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nNnDB-00050W-Os; Sat, 26 Feb 2022 02:53:33 +0000 Date: Sat, 26 Feb 2022 10:53:17 +0800 From: kernel test robot To: Hao Luo , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann Cc: kbuild-all@lists.01.org, Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Shakeel Butt , Joe Burton , Tejun Heo , joshdon@google.com, sdf@google.com, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Hao Luo Subject: Re: [PATCH bpf-next v1 8/9] bpf: Introduce cgroup iter Message-ID: <202202261033.JZXn2oS0-lkp@intel.com> References: <20220225234339.2386398-9-haoluo@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220225234339.2386398-9-haoluo@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Hao, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Hao-Luo/Extend-cgroup-interface-with-bpf/20220226-074615 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: arm-randconfig-c002-20220226 (https://download.01.org/0day-ci/archive/20220226/202202261033.JZXn2oS0-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/0day-ci/linux/commit/ee74423719e2efb4efa7a4491920c78b60024ec7 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Hao-Luo/Extend-cgroup-interface-with-bpf/20220226-074615 git checkout ee74423719e2efb4efa7a4491920c78b60024ec7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm 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/cgroup_iter.c:101:6: warning: no previous prototype for 'bpf_iter_cgroup_show_fdinfo' [-Wmissing-prototypes] 101 | void bpf_iter_cgroup_show_fdinfo(const struct bpf_iter_aux_info *aux, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/bpf/cgroup_iter.c: In function 'bpf_iter_cgroup_show_fdinfo': >> kernel/bpf/cgroup_iter.c:107:40: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 107 | seq_printf(seq, "cgroup_id:\t%lu\n", aux->cgroup_id); | ~~^ ~~~~~~~~~~~~~~ | | | | | u64 {aka long long unsigned int} | long unsigned int | %llu kernel/bpf/cgroup_iter.c: At top level: >> kernel/bpf/cgroup_iter.c:111:5: warning: no previous prototype for 'bpf_iter_cgroup_fill_link_info' [-Wmissing-prototypes] 111 | int bpf_iter_cgroup_fill_link_info(const struct bpf_iter_aux_info *aux, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/bpf_iter_cgroup_show_fdinfo +101 kernel/bpf/cgroup_iter.c 100 > 101 void bpf_iter_cgroup_show_fdinfo(const struct bpf_iter_aux_info *aux, 102 struct seq_file *seq) 103 { 104 char buf[64] = {0}; 105 106 cgroup_path_from_kernfs_id(aux->cgroup_id, buf, sizeof(buf)); > 107 seq_printf(seq, "cgroup_id:\t%lu\n", aux->cgroup_id); 108 seq_printf(seq, "cgroup_path:\t%s\n", buf); 109 } 110 > 111 int bpf_iter_cgroup_fill_link_info(const struct bpf_iter_aux_info *aux, 112 struct bpf_link_info *info) 113 { 114 info->iter.cgroup.cgroup_id = aux->cgroup_id; 115 return 0; 116 } 117 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org