Skip to content

Commit

Permalink
drbd: split off drbd_config into separate file
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Joel Colledge <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
chrboe authored and axboe committed Jan 29, 2023
1 parent 4e2da93 commit 20f2a34
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/block/drbd/drbd_buildtag.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only
#include <linux/drbd.h>
#include <linux/drbd_config.h>
#include <linux/module.h>

const char *drbd_buildtag(void)
Expand Down
1 change: 1 addition & 0 deletions drivers/block/drbd/drbd_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <linux/prefetch.h>
#include <linux/drbd_genl_api.h>
#include <linux/drbd.h>
#include <linux/drbd_config.h>
#include "drbd_strings.h"
#include "drbd_state.h"
#include "drbd_protocol.h"
Expand Down
6 changes: 0 additions & 6 deletions include/linux/drbd.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@

#endif

extern const char *drbd_buildtag(void);
#define REL_VERSION "8.4.11"
#define PRO_VERSION_MIN 86
#define PRO_VERSION_MAX 101


enum drbd_io_error_p {
EP_PASS_ON, /* FIXME should the better be named "Ignore"? */
EP_CALL_HELPER,
Expand Down
16 changes: 16 additions & 0 deletions include/linux/drbd_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* drbd_config.h
* DRBD's compile time configuration.
*/

#ifndef DRBD_CONFIG_H
#define DRBD_CONFIG_H

extern const char *drbd_buildtag(void);

#define REL_VERSION "8.4.11"
#define PRO_VERSION_MIN 86
#define PRO_VERSION_MAX 101

#endif

0 comments on commit 20f2a34

Please sign in to comment.