Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drbd: silence -Wmissing-prototypes warnings

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>

authored by

Lars Ellenberg and committed by
Philipp Reisner
8ce953aa 3e0c78d3

+8 -8
+1 -1
drivers/block/drbd/drbd_main.c
··· 2877 2877 kref_sub(&device->kref, refs, drbd_destroy_device); 2878 2878 } 2879 2879 2880 - int __init drbd_init(void) 2880 + static int __init drbd_init(void) 2881 2881 { 2882 2882 int err; 2883 2883
+1 -1
drivers/block/drbd/drbd_nl.c
··· 2913 2913 return list_first_entry(&resource->connections, struct drbd_connection, connections); 2914 2914 } 2915 2915 2916 - int nla_put_status_info(struct sk_buff *skb, struct drbd_device *device, 2916 + static int nla_put_status_info(struct sk_buff *skb, struct drbd_device *device, 2917 2917 const struct sib_info *sib) 2918 2918 { 2919 2919 struct drbd_resource *resource = device->resource;
+1 -2
drivers/block/drbd/drbd_receiver.c
··· 3371 3371 * return: NULL (alg name was "") 3372 3372 * ERR_PTR(error) if something goes wrong 3373 3373 * or the crypto hash ptr, if it worked out ok. */ 3374 - static 3375 - struct crypto_hash *drbd_crypto_alloc_digest_safe(const struct drbd_device *device, 3374 + static struct crypto_hash *drbd_crypto_alloc_digest_safe(const struct drbd_device *device, 3376 3375 const char *alg, const char *name) 3377 3376 { 3378 3377 struct crypto_hash *tfm;
+1
drivers/block/drbd/drbd_req.h
··· 288 288 extern void request_timer_fn(unsigned long data); 289 289 extern void tl_restart(struct drbd_connection *connection, enum drbd_req_event what); 290 290 extern void _tl_restart(struct drbd_connection *connection, enum drbd_req_event what); 291 + extern void tl_abort_disk_io(struct drbd_device *device); 291 292 292 293 /* this is in drbd_main.c */ 293 294 extern void drbd_restart_request(struct drbd_request *req);
+3 -3
drivers/block/drbd/drbd_state.c
··· 410 410 return rv; 411 411 } 412 412 413 - static void print_st(struct drbd_device *device, char *name, union drbd_state ns) 413 + static void print_st(struct drbd_device *device, const char *name, union drbd_state ns) 414 414 { 415 415 drbd_err(device, " %s = { cs:%s ro:%s/%s ds:%s/%s %c%c%c%c%c%c }\n", 416 416 name, ··· 1606 1606 return 0; 1607 1607 } 1608 1608 1609 - void conn_old_common_state(struct drbd_connection *connection, union drbd_state *pcs, enum chg_state_flags *pf) 1609 + static void conn_old_common_state(struct drbd_connection *connection, union drbd_state *pcs, enum chg_state_flags *pf) 1610 1610 { 1611 1611 enum chg_state_flags flags = ~0; 1612 1612 struct drbd_peer_device *peer_device; ··· 1695 1695 return rv; 1696 1696 } 1697 1697 1698 - void 1698 + static void 1699 1699 conn_set_state(struct drbd_connection *connection, union drbd_state mask, union drbd_state val, 1700 1700 union drbd_state *pns_min, union drbd_state *pns_max, enum chg_state_flags flags) 1701 1701 {
+1 -1
lib/lru_cache.c
··· 169 169 return NULL; 170 170 } 171 171 172 - void lc_free_by_index(struct lru_cache *lc, unsigned i) 172 + static void lc_free_by_index(struct lru_cache *lc, unsigned i) 173 173 { 174 174 void *p = lc->lc_element[i]; 175 175 WARN_ON(!p);