linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Aleksei Besogonov <cyberax@amazon.com>
Cc: kbuild-all@01.org, linux-xfs@vger.kernel.org,
	linux-fsdevel@vger.kernel.org, darrick.wong@oracle.com,
	Aleksei Besogonov <cyberax@amazon.com>
Subject: Re: [PATCH 1/2] fs: Add iomap_swap_activate
Date: Wed, 2 May 2018 09:02:28 +0800	[thread overview]
Message-ID: <201805020756.7cJWUUP5%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180501184807.123111-2-cyberax@amazon.com>

[-- Attachment #1: Type: text/plain, Size: 2973 bytes --]

Hi Aleksei,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.17-rc3 next-20180501]
[cannot apply to dgc-xfs/for-next]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Aleksei-Besogonov/fs-Add-iomap_swap_activate/20180502-034017
config: i386-randconfig-a1-201817 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   fs/iomap.c: In function 'iomap_swap_map':
>> fs/iomap.c:1142:2: error: implicit declaration of function 'add_swap_extent' [-Werror=implicit-function-declaration]
     ret = add_swap_extent(ctx->sis, ctx->page_no, num_pages, disk_pos);
     ^
   cc1: some warnings being treated as errors

vim +/add_swap_extent +1142 fs/iomap.c

  1101	
  1102	static loff_t iomap_swap_map(struct inode *inode, loff_t pos, loff_t length,
  1103				     void *data, struct iomap *iomap)
  1104	{
  1105		struct iomap_swap_walker_context *ctx = data;
  1106		unsigned int blocks_per_page = PAGE_SIZE >> inode->i_blkbits;
  1107		u64 num_pages;
  1108		u64 aligned_address;
  1109		sector_t disk_pos;
  1110		loff_t eff_length;
  1111		loff_t ret;
  1112	
  1113		/* Validate the extent */
  1114	
  1115		/* Only one bdev per swap file. */
  1116		if (iomap->bdev != ctx->sis->bdev)
  1117			goto err;
  1118		/* Only real or unwritten extents. */
  1119		if (iomap->type != IOMAP_MAPPED && iomap->type != IOMAP_UNWRITTEN)
  1120			goto err;
  1121		/* No uncommitted metadata or shared blocks or inline data. */
  1122		if (iomap->flags & (IOMAP_F_DIRTY | IOMAP_F_SHARED | IOMAP_F_DATA_INLINE))
  1123			goto err;
  1124	
  1125		/*
  1126		 * Swap extents need to be PAGE_SIZE aligned on the disk
  1127		 */
  1128		aligned_address = ALIGN(iomap->addr, PAGE_SIZE);
  1129		eff_length = length - (aligned_address - iomap->addr);
  1130		BUG_ON(eff_length > length);
  1131		disk_pos = aligned_address >> inode->i_blkbits;
  1132	
  1133		if (eff_length < 0)
  1134			return length; /* Continue probing */
  1135	
  1136		num_pages = eff_length / PAGE_SIZE;
  1137	
  1138		/* Can't add blocks less than 1 page */
  1139		if (num_pages == 0)
  1140			return length; /* Continue probing */
  1141	
> 1142		ret = add_swap_extent(ctx->sis, ctx->page_no, num_pages, disk_pos);
  1143		if (ret < 0)
  1144			return ret;
  1145	
  1146		ctx->nr_extents += ret;
  1147		ctx->page_no += num_pages;
  1148		(*ctx->span) += num_pages * blocks_per_page;
  1149	
  1150		return length; /* continue probing */
  1151	err:
  1152		pr_err("swapon: swapfile has holes\n");
  1153		return -EINVAL;
  1154	}
  1155	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32248 bytes --]

  parent reply	other threads:[~2018-05-02  1:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-01 18:48 [PATCH 0/2] RFC: iomap-based swapfile activation Aleksei Besogonov
2018-05-01 18:48 ` [PATCH 1/2] fs: Add iomap_swap_activate Aleksei Besogonov
2018-05-01 20:44   ` kbuild test robot
2018-05-02  1:02   ` kbuild test robot [this message]
2018-05-01 18:48 ` [PATCH 2/2] xfs: add support for iomap-based swapfile activation Aleksei Besogonov
2018-05-01 19:16 ` [PATCH 0/2] RFC: " Eric Sandeen
  -- strict thread matches above, loose matches on Subject: below --
2018-04-20 22:08 [PATCH 0/2] RFC: iomap-based swap file activation Aleksei Besogonov
2018-04-20 22:08 ` [PATCH 1/2] fs: Add iomap_swap_activate Aleksei Besogonov
2018-04-25 21:34   ` kbuild test robot
2018-04-25 21:38   ` kbuild test robot

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=201805020756.7cJWUUP5%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=cyberax@amazon.com \
    --cc=darrick.wong@oracle.com \
    --cc=kbuild-all@01.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).