]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rds: Remove unused rds_conn_error
authorJoe Perches <joe@perches.com>
Sat, 15 Oct 2016 18:53:21 +0000 (11:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2016 15:07:22 +0000 (11:07 -0400)
This macro's last use was removed in commit d769ef81d5b59
("RDS: Update rds_conn_shutdown to work with rds_conn_path")
so make the macro and the __rds_conn_error function definition
and declaration disappear.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/connection.c
net/rds/rds.h

index f5058559bb08c5d7426cc7d5c664478e901ff5d6..13f459dad4ef3c7d34bd1ea38a699e49c25f4534 100644 (file)
@@ -689,21 +689,6 @@ void rds_conn_connect_if_down(struct rds_connection *conn)
 }
 EXPORT_SYMBOL_GPL(rds_conn_connect_if_down);
 
-/*
- * An error occurred on the connection
- */
-void
-__rds_conn_error(struct rds_connection *conn, const char *fmt, ...)
-{
-       va_list ap;
-
-       va_start(ap, fmt);
-       vprintk(fmt, ap);
-       va_end(ap);
-
-       rds_conn_drop(conn);
-}
-
 void
 __rds_conn_path_error(struct rds_conn_path *cp, const char *fmt, ...)
 {
index fd0bccb2f9f9d895ccc997fc0d21b6d9549e6c2b..25532a46602f063065083509c55fb991243ba377 100644 (file)
@@ -683,10 +683,6 @@ void rds_for_each_conn_info(struct socket *sock, unsigned int len,
                          struct rds_info_lengths *lens,
                          int (*visitor)(struct rds_connection *, void *),
                          size_t item_len);
-__printf(2, 3)
-void __rds_conn_error(struct rds_connection *conn, const char *, ...);
-#define rds_conn_error(conn, fmt...) \
-       __rds_conn_error(conn, KERN_WARNING "RDS: " fmt)
 
 __printf(2, 3)
 void __rds_conn_path_error(struct rds_conn_path *cp, const char *, ...);