All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Thumshirn <johannes.thumshirn@wdc.com>
To: David Sterba <dsterba@suse.com>
Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com>,
	Naohiro Aota <Naohiro.Aota@wdc.com>,
	Josef Bacik <josef@toxicpanda.com>,
	Julia Lawall <julia.lawall@inria.fr>,
	linux-btrfs@vger.kernel.org, kernel test robot <lkp@intel.com>
Subject: [PATCH for-next 1/2] btrfs: fix compilation error for !CONFIG_BLK_DEV_ZONED
Date: Sat, 30 Jan 2021 20:26:43 +0900	[thread overview]
Message-ID: <7a77ab0c2204a5819f5734a9645a92b54792752d.1612005682.git.johannes.thumshirn@wdc.com> (raw)
In-Reply-To: <cover.1612005682.git.johannes.thumshirn@wdc.com>

The !CONFIG_BLK_DEV_ZONED case didn't compile correctly because the
function btrfs_use_zoned_append() was declared as static inline in zoned.h
resulting in multiple definitions of the function.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 086cd11a1848 ("btrfs: cache if block-group is on a sequential zone")
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
---
 fs/btrfs/zoned.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/btrfs/zoned.h b/fs/btrfs/zoned.h
index 52789da61fa3..cbd208192ce5 100644
--- a/fs/btrfs/zoned.h
+++ b/fs/btrfs/zoned.h
@@ -148,7 +148,8 @@ static inline void btrfs_redirty_list_add(struct btrfs_transaction *trans,
 					  struct extent_buffer *eb) { }
 static inline void btrfs_free_redirty_list(struct btrfs_transaction *trans) { }
 
-bool btrfs_use_zone_append(struct btrfs_inode *inode, struct extent_map *em)
+static inline bool btrfs_use_zone_append(struct btrfs_inode *inode,
+					 struct extent_map *em)
 {
 	return false;
 }
-- 
2.26.2


  reply	other threads:[~2021-01-30 11:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-30 11:26 [PATCH for-next 0/2] Fix compilation and checker errors in zoned series Johannes Thumshirn
2021-01-30 11:26 ` Johannes Thumshirn [this message]
2021-01-30 11:26 ` [PATCH for-next 2/2] btrfs: fix double free in btrfs_get_dev_zone_info Johannes Thumshirn
2021-02-01 17:42 ` [PATCH for-next 0/2] Fix compilation and checker errors in zoned series David Sterba

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=7a77ab0c2204a5819f5734a9645a92b54792752d.1612005682.git.johannes.thumshirn@wdc.com \
    --to=johannes.thumshirn@wdc.com \
    --cc=Naohiro.Aota@wdc.com \
    --cc=dsterba@suse.com \
    --cc=josef@toxicpanda.com \
    --cc=julia.lawall@inria.fr \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lkp@intel.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.