Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.12 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796276458; b=2/WcTk+T7aR203hFd/q5yWeUgo8XfM6VdnxjoFN1lh+ukGNtHq6n+BleUDZvfbv3m5Fu nTAVCPoEun33ecYi9wIGuWkiZSQUJPtceeEougdknTNZDu3HseQJPBSq6nmemAhT9ABv8 3bFuh05+DaoMc56blx7hQiosv9XXGH7GU/LuphxLGSPcri/9Dml34U1ozmi+HsdKLU1KP 0dSykmF+jAsW3/mLLOo/w0d2NLCxFDOQXX9ewHEJvukWYXa+kSuCiU7s2jK4zDtevDo3i f6FSgEmqBmd57WHqH9h2BPc+g9nIbdvtgbsDhC8RBPTBz+X61kJ4Fh8oZjCfg1nIOrQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796276458; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=Aj5G5138CdwjK58F2gVL8b6k96nSXIUPBRUOw+JBedI=; b=nt6gxDBqmUZBgzBHM9zVqnxhBo+xx0dL+qy1mom+DnKr2N1lOrvaKvJmA97I7Tr7MKSi dvXHJvh5aXumTtkUOgwVPnhio9HLqn53zkCTJfdWcCVhG2tYzMhfKJfKVwhc9aoeP50V/ kzfktwUkRy5/YkYr3i3iH6HksDUaeSmt8knrivimY4Uqwv7Hw1s5XnRKEjGJP1Z6RGD8V p3QbFDI+uEoGENZmx82+fol9iRiwvkh1P1qI0ocnR9LHgBJbvLZ9Rf2SaAJm30ZFQYhqQ JrjHq69MBGkOQigGkh3vprpisB0wZE9y8BIrD72lzAaMGUNf1shDZ8u0ltQpRZOvtcw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=VEwFcKEt; arc=none smtp.remote-ip=192.198.163.12 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15250606A322; Thu, 3 Dec 2026 05:40:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 15250606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=VEwFcKEt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796276457; x=1827812457; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Aj5G5138CdwjK58F2gVL8b6k96nSXIUPBRUOw+JBedI=; b=VEwFcKEt6dsgLM6NgBFMkBrnWWmcoA5rwuwYPGWbpe1NAPJnB2kNDHzy Cj1dhkzQW9PYQ3uolbRavVBsdro/1aeSntr5uOfv9ckY+fePfSMsmaJ56 78raFrILfofrl3IGo0bX0ZJCkJ/2KnRhSYjV/COqvScZbzOXH3e+06s5x z8mWIpQe8tW6jaX/SA2bER/0yuhq/K3ye61kLzcCXTvdV8TJyp8x59EpQ SITZM44i+ROG6ViVn0fIDHeftPuvmHdYZ68BE0bnFn2uCIXfoE/gXNDPT tBiZlJYZ9Y+WgkSxnd/pkddr3h2t/Cyt4uoLj0w9/L9RAYeG8a1tU2x4i Q==; X-CSE-ConnectionGUID: e6SDdTzwSSaxpB9YUhVAKg== X-CSE-MsgGUID: utyz7AsTRdKNegOqPVnOlQ== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5125373" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5125373" Received: from fmviesa011.fm.intel.com ([10.60.135.151]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 21:40:56 -0800 X-CSE-ConnectionGUID: 0aeAeJyNRKunZmI8Uk1G/w== X-CSE-MsgGUID: Yx7TLNlZRv2w3/t4PbEgXQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="15469558" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by fmviesa011.fm.intel.com with ESMTP; 02 Dec 2026 21:40:49 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xYzYk-00000001gzd-1QAx; Thu, 03 Dec 2026 05:40:46 +0000 Date: Thu, 3 Dec 2026 13:40:28 +0800 From: kernel test robot To: Ben Gardon , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Andrew Morton , Johannes Weiner , Michal Hocko , Shakeel Butt , Roman Gushchin , Tejun Heo Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , JP Kobryn , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Ihor Solodrai , David Rientjes , Suren Baghdasaryan , Josh Don , Sweet Tea Dorminy , Chuyi Zhou , Yafang Shao , benbwgardon@gmail.com, bpf@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Gardon Subject: Re: [PATCH bpf-next v4 02/17] mm, bpf: introduce BPF OOM struct ops Message-ID: <20261203132803.GZKi3lWU-lkp@intel.com> References: <20261202210415.517651-3-bgardon@google.com> X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202210415.517651-3-bgardon@google.com> Hi Ben, kernel test robot noticed the following build warnings: [auto build test WARNING on bpf-next/master] [also build test WARNING on bpf/master linus/master v7.4-rc5 next-20261202] [cannot apply to akpm-mm/mm-everything bpf-next/net] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ben-Gardon/bpf-mark-struct-oom_control-s-memcg-field-as-TRUSTED_OR_NULL/20261202-130351 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20261202210415.517651-3-bgardon%40google.com patch subject: [PATCH bpf-next v4 02/17] mm, bpf: introduce BPF OOM struct ops config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20261203/20261203132803.GZKi3lWU-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 11.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203132803.GZKi3lWU-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/20261203132803.GZKi3lWU-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/bpf-cgroup.h:5, from mm/bpf_oom.c:8: mm/bpf_oom.c: In function 'bpf_oom_struct_ops_init': >> include/linux/bpf.h:2505:50: warning: statement with no effect [-Wunused-value] 2505 | #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) | ^~~~~~~~~~~~~~~~ mm/bpf_oom.c:185:16: note: in expansion of macro 'register_bpf_struct_ops' 185 | return register_bpf_struct_ops(&bpf_oom_bpf_ops, bpf_oom_ops); | ^~~~~~~~~~~~~~~~~~~~~~~ vim +2505 include/linux/bpf.h c196906d50e360d Hou Tao 2021-10-25 2495 c196906d50e360d Hou Tao 2021-10-25 2496 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, c196906d50e360d Hou Tao 2021-10-25 2497 union bpf_attr __user *uattr); c196906d50e360d Hou Tao 2021-10-25 2498 #endif f6be98d19985411 Kui-Feng Lee 2024-01-19 2499 int bpf_struct_ops_desc_init(struct bpf_struct_ops_desc *st_ops_desc, f6be98d19985411 Kui-Feng Lee 2024-01-19 2500 struct btf *btf, f6be98d19985411 Kui-Feng Lee 2024-01-19 2501 struct bpf_verifier_log *log); 1338b93346587a2 Kui-Feng Lee 2024-01-19 2502 void bpf_map_struct_ops_info_fill(struct bpf_map_info *info, struct bpf_map *map); 1611603537a4b88 Kui-Feng Lee 2024-02-08 2503 void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc); 27ae7997a66174c Martin KaFai Lau 2020-01-08 2504 #else f6be98d19985411 Kui-Feng Lee 2024-01-19 @2505 #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) 85d33df357b6346 Martin KaFai Lau 2020-01-08 2506 static inline bool bpf_try_module_get(const void *data, struct module *owner) 85d33df357b6346 Martin KaFai Lau 2020-01-08 2507 { 85d33df357b6346 Martin KaFai Lau 2020-01-08 2508 return try_module_get(owner); 85d33df357b6346 Martin KaFai Lau 2020-01-08 2509 } 85d33df357b6346 Martin KaFai Lau 2020-01-08 2510 static inline void bpf_module_put(const void *data, struct module *owner) 85d33df357b6346 Martin KaFai Lau 2020-01-08 2511 { 85d33df357b6346 Martin KaFai Lau 2020-01-08 2512 module_put(owner); 85d33df357b6346 Martin KaFai Lau 2020-01-08 2513 } e42ac14180554fa Martin KaFai Lau 2024-07-22 2514 static inline int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff) e42ac14180554fa Martin KaFai Lau 2024-07-22 2515 { e42ac14180554fa Martin KaFai Lau 2024-07-22 2516 return -ENOTSUPP; e42ac14180554fa Martin KaFai Lau 2024-07-22 2517 } 85d33df357b6346 Martin KaFai Lau 2020-01-08 2518 static inline int bpf_struct_ops_map_sys_lookup_elem(struct bpf_map *map, 85d33df357b6346 Martin KaFai Lau 2020-01-08 2519 void *key, 85d33df357b6346 Martin KaFai Lau 2020-01-08 2520 void *value) 85d33df357b6346 Martin KaFai Lau 2020-01-08 2521 { 85d33df357b6346 Martin KaFai Lau 2020-01-08 2522 return -EINVAL; 85d33df357b6346 Martin KaFai Lau 2020-01-08 2523 } 466ae6570ce8140 Siddharth Nayyar 2026-12-01 2524 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki