public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bdev: make blockdev_mnt static
@ 2024-02-27  8:19 Jiapeng Chong
  2024-02-28 13:28 ` Christoph Hellwig
  2024-02-28 14:21 ` Jens Axboe
  0 siblings, 2 replies; 4+ messages in thread
From: Jiapeng Chong @ 2024-02-27  8:19 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linux-kernel, Jiapeng Chong, Abaci Robot

The blockdev_mnt are not used outside the file bdev.c, so the modification
is defined as static.

block/bdev.c:377:17: warning: symbol 'blockdev_mnt' was not declared. Should it be static?

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8341
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 block/bdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/bdev.c b/block/bdev.c
index e7adaaf1c219..ca1c12c1189e 100644
--- a/block/bdev.c
+++ b/block/bdev.c
@@ -374,7 +374,7 @@ static struct file_system_type bd_type = {
 };
 
 struct super_block *blockdev_superblock __ro_after_init;
-struct vfsmount *blockdev_mnt __ro_after_init;
+static struct vfsmount *blockdev_mnt __ro_after_init;
 EXPORT_SYMBOL_GPL(blockdev_superblock);
 
 void __init bdev_cache_init(void)
-- 
2.20.1.7.g153144c


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] bdev: make blockdev_mnt static
  2024-02-27  8:19 [PATCH] bdev: make blockdev_mnt static Jiapeng Chong
@ 2024-02-28 13:28 ` Christoph Hellwig
  2024-02-28 14:21 ` Jens Axboe
  1 sibling, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2024-02-28 13:28 UTC (permalink / raw)
  To: Jiapeng Chong; +Cc: axboe, linux-block, linux-kernel, Abaci Robot

On Tue, Feb 27, 2024 at 04:19:58PM +0800, Jiapeng Chong wrote:
> The blockdev_mnt are not used outside the file bdev.c, so the modification
> is defined as static.
> 
> block/bdev.c:377:17: warning: symbol 'blockdev_mnt' was not declared. Should it be static?
> 

The patch looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>

> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8341

But I don't think kernel commit should close random bugzillas?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] bdev: make blockdev_mnt static
  2024-02-27  8:19 [PATCH] bdev: make blockdev_mnt static Jiapeng Chong
  2024-02-28 13:28 ` Christoph Hellwig
@ 2024-02-28 14:21 ` Jens Axboe
  2024-05-09 13:29   ` John Garry
  1 sibling, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2024-02-28 14:21 UTC (permalink / raw)
  To: Jiapeng Chong; +Cc: linux-block, linux-kernel, Abaci Robot

On 2/27/24 1:19 AM, Jiapeng Chong wrote:
> The blockdev_mnt are not used outside the file bdev.c, so the modification
> is defined as static.
> 
> block/bdev.c:377:17: warning: symbol 'blockdev_mnt' was not declared. Should it be static?

What is this against?

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] bdev: make blockdev_mnt static
  2024-02-28 14:21 ` Jens Axboe
@ 2024-05-09 13:29   ` John Garry
  0 siblings, 0 replies; 4+ messages in thread
From: John Garry @ 2024-05-09 13:29 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, linux-kernel, Abaci Robot, brauner, Jiapeng Chong

+

On 28/02/2024 14:21, Jens Axboe wrote:
> On 2/27/24 1:19 AM, Jiapeng Chong wrote:
>> The blockdev_mnt are not used outside the file bdev.c, so the modification
>> is defined as static.
>>
>> block/bdev.c:377:17: warning: symbol 'blockdev_mnt' was not declared. Should it be static?
> 
> What is this against?
> 

Please note I see this issue on your 6.9 block branch today @

fd379c13fc0 (HEAD, block/block-6.9) block: set default max segment
size in case of virt_boundary

And I think that it fixes 8f3a608827d1, so

Fixes: 8f3a608827d1 ("bdev: open block device as files")
Tested-by: John Garry <john.g.garry@oracle.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-09 13:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-27  8:19 [PATCH] bdev: make blockdev_mnt static Jiapeng Chong
2024-02-28 13:28 ` Christoph Hellwig
2024-02-28 14:21 ` Jens Axboe
2024-05-09 13:29   ` John Garry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox