Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1501339 > unrolled thread

[PATCH 1/2] rds: Remove unused rds_conn_error

Started byJoe Perches <joe@perches.com>
First post2016-10-15 21:00 +0200
Last post2016-10-17 17:10 +0200
Articles 4 — 4 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/2] rds: Remove unused rds_conn_error Joe Perches <joe@perches.com> - 2016-10-15 21:00 +0200
    Re: [rds-devel] [PATCH 1/2] rds: Remove unused rds_conn_error Sowmini Varadhan <sowmini.varadhan@oracle.com> - 2016-10-15 21:10 +0200
    Re: [PATCH 1/2] rds: Remove unused rds_conn_error Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-10-15 21:40 +0200
    Re: [PATCH 1/2] rds: Remove unused rds_conn_error David Miller <davem@davemloft.net> - 2016-10-17 17:10 +0200

#1501339 — [PATCH 1/2] rds: Remove unused rds_conn_error

FromJoe Perches <joe@perches.com>
Date2016-10-15 21:00 +0200
Subject[PATCH 1/2] rds: Remove unused rds_conn_error
Message-ID<ssClz-34j-1@gated-at.bofh.it>
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>
---
 net/rds/connection.c | 15 ---------------
 net/rds/rds.h        |  4 ----
 2 files changed, 19 deletions(-)

diff --git a/net/rds/connection.c b/net/rds/connection.c
index f5058559bb08..13f459dad4ef 100644
--- a/net/rds/connection.c
+++ b/net/rds/connection.c
@@ -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, ...)
 {
diff --git a/net/rds/rds.h b/net/rds/rds.h
index fd0bccb2f9f9..25532a46602f 100644
--- a/net/rds/rds.h
+++ b/net/rds/rds.h
@@ -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 *, ...);
-- 
2.10.0.rc2.1.g053435c

[toc] | [next] | [standalone]


#1501344 — Re: [rds-devel] [PATCH 1/2] rds: Remove unused rds_conn_error

FromSowmini Varadhan <sowmini.varadhan@oracle.com>
Date2016-10-15 21:10 +0200
SubjectRe: [rds-devel] [PATCH 1/2] rds: Remove unused rds_conn_error
Message-ID<ssCvf-3or-5@gated-at.bofh.it>
In reply to#1501339
On (10/15/16 11:53), Joe Perches wrote:
> 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>

[toc] | [prev] | [next] | [standalone]


#1501346

FromSantosh Shilimkar <santosh.shilimkar@oracle.com>
Date2016-10-15 21:40 +0200
Message-ID<ssCYh-3DB-5@gated-at.bofh.it>
In reply to#1501339
On 10/15/2016 11:53 AM, Joe Perches wrote:
> 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>
> ---
Had same patch along with few more in the queue but
didn't find time of late to get it on the list.
Thanks for both patches.

Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>

[toc] | [prev] | [next] | [standalone]


#1502079

FromDavid Miller <davem@davemloft.net>
Date2016-10-17 17:10 +0200
Message-ID<sthI5-55T-19@gated-at.bofh.it>
In reply to#1501339
From: Joe Perches <joe@perches.com>
Date: Sat, 15 Oct 2016 11:53:21 -0700

> 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>

Applied.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web