#ifndef CT_SERVMGMT_H #define CT_SERVMGMT_H #include #include "curve.h" extern void parse_userfile_and_generate_serv_store_or_die(char *homedir); extern void dump_serv_store(void); extern void get_serv_store_entry_by_alias(char *alias, size_t len, char **host, char **port, int *udp); extern struct curve25519_proto *get_serv_store_entry_proto_inf(void); extern unsigned char *get_serv_store_entry_auth_token(void); extern void destroy_serv_store(void); #endif /* CT_SERVMGMT_H */ t.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-04-15 17:45:10 +0300
committerMichael S. Tsirkin <mst@redhat.com>2016-05-01 15:50:08 +0300
commite00f7bd221292b318d4d09c3f0c2c8af9b1e5edf (patch)
tree86ca592852d959e65ee9038d10ddd8532eb92c02
parentd4f6e272f2600bc1295d195a52a9e8bb81656bc7 (diff)
virtio: Silence uninitialized variable warning
Smatch complains that we might not initialize "queue". The issue is callers like setup_vq() from virtio_pci_modern.c where "num" could be something like 2 and "vring_align" is 64. In that case, vring_size() is less than PAGE_SIZE. It won't happen in real life, but we're getting the value of "num" from a register so it's not really possible to tell what value it holds with static analysis. Let's just silence the warning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>