aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/rds/ib.h
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>2016-08-05 22:11:12 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-08 16:16:21 -0700
commit6cdaf03f8c23fcbfe7d4fa6876e114193bb6b632 (patch)
tree956f741fa95545c0ef508a1162227e46e523665a /net/rds/ib.h
parentMicrosemi VSC 8531/41 PHY Driver (diff)
downloadwireguard-linux-6cdaf03f8c23fcbfe7d4fa6876e114193bb6b632.tar.xz
wireguard-linux-6cdaf03f8c23fcbfe7d4fa6876e114193bb6b632.zip
RDS: add __printf format attribute to error reporting functions
This is helpful to detect at compile-time errors related to format strings. Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/ib.h')
-rw-r--r--net/rds/ib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rds/ib.h b/net/rds/ib.h
index 046f7508c06b..45ac8e8e58f4 100644
--- a/net/rds/ib.h
+++ b/net/rds/ib.h
@@ -333,6 +333,7 @@ void rds_ib_conn_path_shutdown(struct rds_conn_path *cp);
void rds_ib_state_change(struct sock *sk);
int rds_ib_listen_init(void);
void rds_ib_listen_stop(void);
+__printf(2, 3)
void __rds_ib_conn_error(struct rds_connection *conn, const char *, ...);
int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
struct rdma_cm_event *event);