summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_main.c
diff options
context:
space:
mode:
authorChristoph Böhmwalder <christoph.boehmwalder@linbit.com>2023-01-13 13:35:04 +0100
committerJens Axboe <axboe@kernel.dk>2023-01-29 15:18:33 -0700
commit887b98c74fdf9ab44e93ad9166977cbbb766d2c2 (patch)
tree31033ae35458f4fc53c62fae6700c9d9cd7003e5 /drivers/block/drbd/drbd_main.c
parenta3df2e456c0f9db4cc7f2013eb0beb853945b937 (diff)
downloadlinux-887b98c74fdf9ab44e93ad9166977cbbb766d2c2.tar.gz
linux-887b98c74fdf9ab44e93ad9166977cbbb766d2c2.tar.bz2
linux-887b98c74fdf9ab44e93ad9166977cbbb766d2c2.zip
drbd: split off drbd_buildtag into separate file
To be more similar to what we do in the out-of-tree module and ease the upstreaming process. Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com> Reviewed-by: Joel Colledge <joel.colledge@linbit.com> Link: https://lore.kernel.org/r/20230113123506.144082-2-christoph.boehmwalder@linbit.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r--drivers/block/drbd/drbd_main.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index e43dfb9eb6ad..af9309175637 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -3776,24 +3776,6 @@ _drbd_insert_fault(struct drbd_device *device, unsigned int type)
}
#endif
-const char *drbd_buildtag(void)
-{
- /* DRBD built from external sources has here a reference to the
- git hash of the source code. */
-
- static char buildtag[38] = "\0uilt-in";
-
- if (buildtag[0] == 0) {
-#ifdef MODULE
- sprintf(buildtag, "srcversion: %-24s", THIS_MODULE->srcversion);
-#else
- buildtag[0] = 'b';
-#endif
- }
-
- return buildtag;
-}
-
module_init(drbd_init)
module_exit(drbd_cleanup)