All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Haifeng Xu <haifeng.xu@shopee.com>,
	viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz
Cc: oe-kbuild-all@lists.linux.dev, tytso@mit.edu,
	yi.zhang@huaweicloud.com, yukuai1@huaweicloud.com, tj@kernel.org,
	linux-ext4@vger.kernel.org, linux-block@vger.kernel.org,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
	Haifeng Xu <haifeng.xu@shopee.com>
Subject: Re: [PATCH] buffer: Associate the meta bio with blkg from buffer page
Date: Fri, 30 Aug 2024 00:20:59 +0800	[thread overview]
Message-ID: <202408300007.m9sHEOXo-lkp@intel.com> (raw)
In-Reply-To: <20240828033224.146584-1-haifeng.xu@shopee.com>

Hi Haifeng,

kernel test robot noticed the following build errors:

[auto build test ERROR on brauner-vfs/vfs.all]
[also build test ERROR on linus/master v6.11-rc5 next-20240829]
[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/Haifeng-Xu/buffer-Associate-the-meta-bio-with-blkg-from-buffer-page/20240828-113409
base:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.all
patch link:    https://lore.kernel.org/r/20240828033224.146584-1-haifeng.xu%40shopee.com
patch subject: [PATCH] buffer: Associate the meta bio with blkg from buffer page
config: alpha-defconfig (https://download.01.org/0day-ci/archive/20240830/202408300007.m9sHEOXo-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240830/202408300007.m9sHEOXo-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408300007.m9sHEOXo-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/buffer.c: In function 'submit_bh_wbc':
   fs/buffer.c:2826:29: error: implicit declaration of function 'mem_cgroup_css_from_folio'; did you mean 'mem_cgroup_from_obj'? [-Werror=implicit-function-declaration]
    2826 |                 memcg_css = mem_cgroup_css_from_folio(folio);
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
         |                             mem_cgroup_from_obj
   fs/buffer.c:2826:27: warning: assignment to 'struct cgroup_subsys_state *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2826 |                 memcg_css = mem_cgroup_css_from_folio(folio);
         |                           ^
>> fs/buffer.c:2827:21: error: implicit declaration of function 'cgroup_subsys_on_dfl' [-Werror=implicit-function-declaration]
    2827 |                 if (cgroup_subsys_on_dfl(memory_cgrp_subsys) &&
         |                     ^~~~~~~~~~~~~~~~~~~~
>> fs/buffer.c:2827:42: error: 'memory_cgrp_subsys' undeclared (first use in this function)
    2827 |                 if (cgroup_subsys_on_dfl(memory_cgrp_subsys) &&
         |                                          ^~~~~~~~~~~~~~~~~~
   fs/buffer.c:2827:42: note: each undeclared identifier is reported only once for each function it appears in
   fs/buffer.c:2828:42: error: 'io_cgrp_subsys' undeclared (first use in this function)
    2828 |                     cgroup_subsys_on_dfl(io_cgrp_subsys)) {
         |                                          ^~~~~~~~~~~~~~
>> fs/buffer.c:2829:37: error: implicit declaration of function 'cgroup_e_css'; did you mean 'cgroup_exit'? [-Werror=implicit-function-declaration]
    2829 |                         blkcg_css = cgroup_e_css(memcg_css->cgroup, &io_cgrp_subsys);
         |                                     ^~~~~~~~~~~~
         |                                     cgroup_exit
>> fs/buffer.c:2829:59: error: invalid use of undefined type 'struct cgroup_subsys_state'
    2829 |                         blkcg_css = cgroup_e_css(memcg_css->cgroup, &io_cgrp_subsys);
         |                                                           ^~
   cc1: some warnings being treated as errors


vim +/cgroup_subsys_on_dfl +2827 fs/buffer.c

  2778	
  2779	static void submit_bh_wbc(blk_opf_t opf, struct buffer_head *bh,
  2780				  enum rw_hint write_hint,
  2781				  struct writeback_control *wbc)
  2782	{
  2783		const enum req_op op = opf & REQ_OP_MASK;
  2784		struct bio *bio;
  2785	
  2786		BUG_ON(!buffer_locked(bh));
  2787		BUG_ON(!buffer_mapped(bh));
  2788		BUG_ON(!bh->b_end_io);
  2789		BUG_ON(buffer_delay(bh));
  2790		BUG_ON(buffer_unwritten(bh));
  2791	
  2792		/*
  2793		 * Only clear out a write error when rewriting
  2794		 */
  2795		if (test_set_buffer_req(bh) && (op == REQ_OP_WRITE))
  2796			clear_buffer_write_io_error(bh);
  2797	
  2798		if (buffer_meta(bh))
  2799			opf |= REQ_META;
  2800		if (buffer_prio(bh))
  2801			opf |= REQ_PRIO;
  2802	
  2803		bio = bio_alloc(bh->b_bdev, 1, opf, GFP_NOIO);
  2804	
  2805		fscrypt_set_bio_crypt_ctx_bh(bio, bh, GFP_NOIO);
  2806	
  2807		bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9);
  2808		bio->bi_write_hint = write_hint;
  2809	
  2810		__bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh));
  2811	
  2812		bio->bi_end_io = end_bio_bh_io_sync;
  2813		bio->bi_private = bh;
  2814	
  2815		/* Take care of bh's that straddle the end of the device */
  2816		guard_bio_eod(bio);
  2817	
  2818		if (wbc) {
  2819			wbc_init_bio(wbc, bio);
  2820			wbc_account_cgroup_owner(wbc, bh->b_page, bh->b_size);
  2821		} else if (buffer_meta(bh)) {
  2822			struct folio *folio;
  2823			struct cgroup_subsys_state *memcg_css, *blkcg_css;
  2824	
  2825			folio = page_folio(bh->b_page);
  2826			memcg_css = mem_cgroup_css_from_folio(folio);
> 2827			if (cgroup_subsys_on_dfl(memory_cgrp_subsys) &&
  2828			    cgroup_subsys_on_dfl(io_cgrp_subsys)) {
> 2829				blkcg_css = cgroup_e_css(memcg_css->cgroup, &io_cgrp_subsys);
  2830				bio_associate_blkg_from_css(bio, blkcg_css);
  2831			}
  2832		}
  2833	
  2834		submit_bio(bio);
  2835	}
  2836	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2024-08-29 16:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-28  3:32 [PATCH] buffer: Associate the meta bio with blkg from buffer page Haifeng Xu
2024-08-28  5:19 ` Christoph Hellwig
2024-08-29 16:20 ` kernel test robot [this message]
2024-08-29 17:43 ` kernel test robot
2024-08-30 19:37 ` Tejun Heo
2024-08-31  6:11   ` Yu Kuai
2024-08-31  8:03     ` Tejun Heo
2024-08-31  9:48       ` Yu Kuai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202408300007.m9sHEOXo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=brauner@kernel.org \
    --cc=haifeng.xu@shopee.com \
    --cc=jack@suse.cz \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tj@kernel.org \
    --cc=tytso@mit.edu \
    --cc=viro@zeniv.linux.org.uk \
    --cc=yi.zhang@huaweicloud.com \
    --cc=yukuai1@huaweicloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.