Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.9 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795951817; b=x9yV88ItSlArhp+xFFCLLJ3KKgPhsWEs3rh+DLNLXGxHZalfiLPn36Qh4/KDlDrRvQ2K hSjuIzsp7srmlSDhGGm9AkxdDjE1dZBU5SNXeDQT2okXFEu3wIy1fPf32sZGv09S7EQY0 m1dVAIrWP4wjGUV1vJwbVWHQIyV0uhBU3XXgXUh36CCwUeKz3VOW1kCCFIOqSsT3DFRX0 YdQNym4YmFeABtB5MBl7868YMRZtXltvRJ3fxBsZfQAs2aD/t7vUzHqn7SHiK6tOfIZzw yVHGxGDYMxK+ypBkshS6V8mhC6x6dyPi0fykILEm252Cm7cxy0xy3H60C5SL4Zg6JoA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795951817; 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:User-Agent; bh=NOA622U4Ea2eBawHTwgXZoMsHJ4E0WbKUxvZyn7V8eU=; b=VbR4Er4uycjHkfBas+aoCn52RPA0BnrcU7Umb0/4wt9vVwxObUauMRCfJ5SsyRkWzKuW Va9uwhGtO80yVtLRnUr4GPLgLboiflphJxl5T5TMJNewzLe0akR9Ayapi0WPNYWn2O8zp HGvzbuZFKpXAOgFCPxcdrrXP556GfrzCEsyuTHW/XrStpmEa7W+AIm4UA5dLLeC9D4EV8 qggYMzhXcsLoC44T/h3Ln2sdGbkBCfanbK946gHIDrgYFj4sgPDv42WyLz2PpQcF5NX+i MSQf+9gFSZTtL9K2Nay4HkiqhwJrvTBxdJkqih9Z4iakFJfx6uz5M/x3lMs52fqXp2w== 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="gh2diD/m"; arc=none smtp.remote-ip=198.175.65.9 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 2E7FD606A31C for ; Sun, 29 Nov 2026 11:30:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2E7FD606A31C 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=gh2diD/m DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795951817; x=1827487817; h=date:from:to:cc:subject:message-id; bh=erpD+7hMxqbOTOIL5vW/LxGeBHCLLJ3M0SXacSZLiZ8=; b=gh2diD/mhiKWcIh+AKK45Ep/UoBRkpZMCosf8IklvYWyNwVKkGsg5919 Y2ossKQjjzpebNjdTTF4exWfbpvw4sYTv55ikqKiLneLiYkiyckHUMBkG 9izI9Iuc9JrVkEffHzC7N+rCRWJM72I/xFDd6UyW3kusReLGjyD+K5ICC 3/V5O3fczV5DLZjQhUZpJTeWffy9NLCCxBWq+iYiGmp6HJyLyURJHW+GQ rO9FZq+OpHYYvUnSNOLB21/1imJQIfmfNbYdWDRANoz/NvdzJUkFPq7IW I4UrgbEiiti1H1mr5PUCR0ie8+dbDcYAXKgw934jyYijdi571i+4Am2ek Q==; X-CSE-ConnectionGUID: tF/+bghIT4iSVXQmT9L2qg== X-CSE-MsgGUID: sTQ3BRPMRX6kWMDTkUBbiw== X-IronPort-AV: E=McAfee;i="6800,10657,11980"; a="4701869" X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4701869" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 03:30:17 -0800 X-CSE-ConnectionGUID: vRtjF8ZpSsCcGtbTXUU/wA== X-CSE-MsgGUID: +ZVLut2RRsmy1QGgL74J3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="12757782" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa006.jf.intel.com with ESMTP; 29 Nov 2026 03:30:15 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXd6j-00000000130-2Muz; Sun, 29 Nov 2026 11:30:13 +0000 Date: Sun, 29 Nov 2026 12:30:11 +0100 From: kernel test robot To: Kumar Kartikeya Dwivedi Cc: oe-kbuild-all@lists.linux.dev Subject: [kkdwivedi:reclaim-ext 166/249] mm/bpf_memcontrol.c:355:43: warning: variable 'item' set but not used Message-ID: <20261129122253.Jx7BGecG-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://github.com/kkdwivedi/linux reclaim-ext head: 6b721024b59ae84266e5c2b29fd390ba4fa9c362 commit: 3e016ddbafeaf29b30351e39c4918de15f176da6 [166/249] memcg_ext: allow BPF to defer memory.high enforcement config: openrisc-randconfig-2200-20261129 (https://download.01.org/0day-ci/archive/20261129/20261129122253.Jx7BGecG-lkp@intel.com/config) compiler: or1k-linux-gcc (GCC) 16.2.0 smatch: v0.5.0-9187-g5189e3fb reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261129/20261129122253.Jx7BGecG-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/20261129122253.Jx7BGecG-lkp@intel.com/ All warnings (new ones prefixed by >>): mm/bpf_memcontrol.c: In function 'bpf_memcg_high_policy': >> mm/bpf_memcontrol.c:355:43: warning: variable 'item' set but not used [-Wunused-but-set-variable=] 355 | const struct bpf_prog_array_item *item; | ^~~~ vim +/item +355 mm/bpf_memcontrol.c 351 352 u32 bpf_memcg_high_policy(struct mem_cgroup *memcg, 353 struct mem_cgroup *over_limit, gfp_t gfp_mask) 354 { > 355 const struct bpf_prog_array_item *item; 356 const struct bpf_memcg_ops *ops; 357 struct bpf_memcg_ctx ctx; 358 u32 acc = BPF_MEMCG_HIGH_NO_OPINION; 359 struct cgroup *cgrp; 360 361 if (!cgroup_bpf_enabled(CGROUP_MEMCG_OPS)) 362 return acc; 363 364 /* 365 * Only the default hierarchy has a cgroup_bpf, and the static key is 366 * global, so one policy anywhere turns this on for v1 memcgs too. A 367 * v1 memcg still cannot get here, because memory.high and swap.high 368 * are both v2-only and so it never builds the debt that leads to this 369 * call. A hook on a path v1 can reach needs its own cgroup_on_dfl() 370 * test: a v1 cgroup has no effective array and an uninitialised 371 * cgrp->bpf.refcnt. 372 */ 373 cgrp = memcg->css.cgroup; 374 375 /* 376 * A program can allocate and re-enter the charge path. Skip the 377 * nested call. This guards the callbacks only. 378 */ 379 if (current->in_bpf_memcg) 380 return acc; 381 current->in_bpf_memcg = 1; 382 383 rcu_read_lock_dont_migrate(); 384 385 /* 386 * A memcg outlives its cgroup while it has charges, and 387 * cgroup_bpf_release() frees the arrays when the cgroup goes. 388 */ 389 if (!cgroup_bpf_tryget_live(cgrp)) 390 goto out; 391 392 bpf_memcg_ctx_init(&ctx, memcg, over_limit, gfp_mask); 393 394 bpf_cgroup_struct_ops_foreach(ops, item, cgrp, CGROUP_MEMCG_OPS) { 395 if (ops->high_policy) 396 acc |= ops->high_policy(&ctx) & 397 BPF_MEMCG_HIGH_VALID_MASK; 398 } 399 400 cgroup_bpf_put(cgrp); 401 out: 402 rcu_read_unlock_migrate(); 403 404 current->in_bpf_memcg = 0; 405 406 return acc; 407 } 408 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki