lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed,  2 Jun 2021 18:29:03 +0300
From:   Anton Suvorov <warwish@...dex-team.ru>
To:     linux-kernel@...r.kernel.org
Cc:     warwish@...dex-team.ru, linux-fsdevel@...r.kernel.org,
        dmtrmonakhov@...dex-team.ru, linux-block@...r.kernel.org,
        viro@...iv.linux.org.uk
Subject: [PATCH 10/10] block: remove unused symbol bio_devname()

This patch removes not used any more bio_devname() symbol.
It should be only applied after all other patches in the series applied.

Signed-off-by: Anton Suvorov <warwish@...dex-team.ru>
---
 block/bio.c         | 6 ------
 include/linux/bio.h | 2 --
 2 files changed, 8 deletions(-)

diff --git a/block/bio.c b/block/bio.c
index 44205dfb6b60..8674f9a4e527 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -684,12 +684,6 @@ struct bio *bio_clone_fast(struct bio *bio, gfp_t gfp_mask, struct bio_set *bs)
 }
 EXPORT_SYMBOL(bio_clone_fast);
 
-const char *bio_devname(struct bio *bio, char *buf)
-{
-	return bdevname(bio->bi_bdev, buf);
-}
-EXPORT_SYMBOL(bio_devname);
-
 static inline bool page_is_mergeable(const struct bio_vec *bv,
 		struct page *page, unsigned int len, unsigned int off,
 		bool *same_page)
diff --git a/include/linux/bio.h b/include/linux/bio.h
index a0b4cfdf62a4..d20e658ff16b 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -488,8 +488,6 @@ void bio_truncate(struct bio *bio, unsigned new_size);
 void guard_bio_eod(struct bio *bio);
 void zero_fill_bio(struct bio *bio);
 
-extern const char *bio_devname(struct bio *bio, char *buffer);
-
 #define bio_set_dev(bio, bdev) 				\
 do {							\
 	bio_clear_flag(bio, BIO_REMAPPED);		\
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ