Commit b6a06601 authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner

cosmetic: add some static to match the respective declaration

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 1e03325c
...@@ -3809,7 +3809,7 @@ static int drbd_send_handshake(struct drbd_conf *mdev) ...@@ -3809,7 +3809,7 @@ static int drbd_send_handshake(struct drbd_conf *mdev)
* -1 peer talks different language, * -1 peer talks different language,
* no point in trying again, please go standalone. * no point in trying again, please go standalone.
*/ */
int drbd_do_handshake(struct drbd_conf *mdev) static int drbd_do_handshake(struct drbd_conf *mdev)
{ {
/* ASSERT current == mdev->receiver ... */ /* ASSERT current == mdev->receiver ... */
struct p_handshake *p = &mdev->data.rbuf.handshake; struct p_handshake *p = &mdev->data.rbuf.handshake;
...@@ -3872,7 +3872,7 @@ int drbd_do_handshake(struct drbd_conf *mdev) ...@@ -3872,7 +3872,7 @@ int drbd_do_handshake(struct drbd_conf *mdev)
} }
#if !defined(CONFIG_CRYPTO_HMAC) && !defined(CONFIG_CRYPTO_HMAC_MODULE) #if !defined(CONFIG_CRYPTO_HMAC) && !defined(CONFIG_CRYPTO_HMAC_MODULE)
int drbd_do_auth(struct drbd_conf *mdev) static int drbd_do_auth(struct drbd_conf *mdev)
{ {
dev_err(DEV, "This kernel was build without CONFIG_CRYPTO_HMAC.\n"); dev_err(DEV, "This kernel was build without CONFIG_CRYPTO_HMAC.\n");
dev_err(DEV, "You need to disable 'cram-hmac-alg' in drbd.conf.\n"); dev_err(DEV, "You need to disable 'cram-hmac-alg' in drbd.conf.\n");
...@@ -3880,7 +3880,7 @@ int drbd_do_auth(struct drbd_conf *mdev) ...@@ -3880,7 +3880,7 @@ int drbd_do_auth(struct drbd_conf *mdev)
} }
#else #else
#define CHALLENGE_LEN 64 #define CHALLENGE_LEN 64
int drbd_do_auth(struct drbd_conf *mdev) static int drbd_do_auth(struct drbd_conf *mdev)
{ {
char my_challenge[CHALLENGE_LEN]; /* 64 Bytes... */ char my_challenge[CHALLENGE_LEN]; /* 64 Bytes... */
struct scatterlist sg; struct scatterlist sg;
......
...@@ -600,7 +600,7 @@ next_sector: ...@@ -600,7 +600,7 @@ next_sector:
return 1; return 1;
} }
int w_make_ov_request(struct drbd_conf *mdev, struct drbd_work *w, int cancel) static int w_make_ov_request(struct drbd_conf *mdev, struct drbd_work *w, int cancel)
{ {
int number, i, size; int number, i, size;
sector_t sector; sector_t sector;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment