summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-05-31 15:55:35 +0300
committerJens Axboe <axboe@kernel.dk>2023-06-05 20:10:14 +0300
commit2577f53f42947d8ca01666e3444bb7307319ea38 (patch)
treebe5089fffcde54a8a98156a92c9fd3e90448f99f /include/linux/blkdev.h
parent8d03187ee7328af8e18ef1782289e0b034e75485 (diff)
downloadlinux-2577f53f42947d8ca01666e3444bb7307319ea38.tar.xz
block: mark early_lookup_bdev as __init
early_lookup_bdev is now only used during the early boot code as it should, so mark it __init to not waste run time memory on it. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230531125535.676098-25-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 52718176d1b4..f4c339d9dd03 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1500,7 +1500,7 @@ int sync_blockdev_nowait(struct block_device *bdev);
void sync_bdevs(bool wait);
void bdev_statx_dioalign(struct inode *inode, struct kstat *stat);
void printk_all_partitions(void);
-int early_lookup_bdev(const char *pathname, dev_t *dev);
+int __init early_lookup_bdev(const char *pathname, dev_t *dev);
#else
static inline void invalidate_bdev(struct block_device *bdev)
{