Skip to contentSkip to conversation

sctp: rename sctp diag file and add file comments for it

PATCH In review Xin Long 3 participants 5 messages Feb 13, 2018

Subsystems (3)
lore
Share & tools
lore

Xin Long

author maintainer
#0 lore raw

v2 cover sctp: rename sctp diag file and add file comments for it

This patchset is to remove the sctp_ prefix for sctp diag file, and also to add the missing file comments for it.

v1->v2:
split them into two patches as Marcelo suggested.

Xin Long (2):
sctp: rename sctp_diag.c as diag.c
sctp: add file comments in diag.c

 net/sctp/Makefile    |   2 +
 net/sctp/diag.c      | 557 +++++++++++++++++++++++++++++++++++++++++++++++++++
 net/sctp/sctp_diag.c | 526 ------------------------------------------------
 3 files changed, 559 insertions(+), 526 deletions(-)
 create mode 100644 net/sctp/diag.c
 delete mode 100644 net/sctp/sctp_diag.c
Signature · 1 line
2.1.0
author maintainer
#1 lore raw

PATCH v2 1/2 sctp: rename sctp_diag.c as diag.c

Remove 'sctp_' prefix for diag file, to keep consistent with other files' names.

---
 net/sctp/Makefile    |   2 +
 net/sctp/diag.c      | 526 +++++++++++++++++++++++++++++++++++++++++++++++++++
 net/sctp/sctp_diag.c | 526 ---------------------------------------------------
 3 files changed, 528 insertions(+), 526 deletions(-)
 create mode 100644 net/sctp/diag.c
 delete mode 100644 net/sctp/sctp_diag.c
net/sctp/Makefile +2 -0
index 6776582..e845e45 100644
@@ -15,6 +15,8 @@ sctp-y := sm_statetable.o sm_statefuns.o sm_sideeffect.o \
 	  offload.o stream_sched.o stream_sched_prio.o \
 	  stream_sched_rr.o stream_interleave.o
 
+sctp_diag-y := diag.o
+
 sctp-$(CONFIG_SCTP_DBG_OBJCNT) += objcnt.o
 sctp-$(CONFIG_PROC_FS) += proc.o
 sctp-$(CONFIG_SYSCTL) += sysctl.o
net/sctp/diag.c new file +525 -0

525 lines not on this page · raw message

net/sctp/sctp_diag.c deleted +0 -525

525 lines not on this page · raw message

Signature · 1 line
2.1.0
author maintainer
#2 lore raw

PATCH v2 2/2 sctp: add file comments in diag.c

This patch is to add the missing file comments for sctp diag file.

---
 net/sctp/diag.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
net/sctp/diag.c +31 -0
index a72a7d9..078f01a 100644
@@ -1,3 +1,34 @@
+/* SCTP kernel implementation
+ * (C) Copyright Red Hat Inc. 2017
+ *
+ * This file is part of the SCTP kernel implementation
+ *
+ * These functions implement sctp diag support.
+ *
+ * This SCTP implementation is free software;
+ * you can redistribute it and/or modify it under the terms of
+ * the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This SCTP implementation is distributed in the hope that it
+ * will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ *                 ************************
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU CC; see the file COPYING.  If not, see
+ * <http://www.gnu.org/licenses/>.
+ *
+ * Please send any bug reports or fixes you make to the
+ * email addresched(es):
+ *    lksctp developers <[email protected]>
+ *
+ * Written or modified by:
+ *    Xin Long <[email protected]>
+ */
+
 #include <linux/module.h>
 #include <linux/inet_diag.h>
 #include <linux/sock_diag.h>
Signature · 1 line
2.1.0
Acked-by on the v2 series
#3 lore raw
In reply to Xin Long
Quoted 10 lines · Xin Long

This patchset is to remove the sctp_ prefix for sctp diag file, and also to add the missing file comments for it.

v1->v2:
split them into two patches as Marcelo suggested.

Xin Long (2):
sctp: rename sctp_diag.c as diag.c
sctp: add file comments in diag.c

Quoted 11 lines
 net/sctp/Makefile    |   2 +
 net/sctp/diag.c      | 557 +++++++++++++++++++++++++++++++++++++++++++++++++++
 net/sctp/sctp_diag.c | 526 ------------------------------------------------
 3 files changed, 559 insertions(+), 526 deletions(-)
 create mode 100644 net/sctp/diag.c
 delete mode 100644 net/sctp/sctp_diag.c
Signature · 1 line
2.1.0

Series

maintainer
#4 lore raw

From: Neil Horman <[email protected]>
Date: Tue, 13 Feb 2018 08:11:29 -0500

Quoted 18 lines · Xin Long
Quoted 17 lines

This patchset is to remove the sctp_ prefix for sctp diag file, and also to add the missing file comments for it.

v1->v2:
split them into two patches as Marcelo suggested.

Xin Long (2):
sctp: rename sctp_diag.c as diag.c
sctp: add file comments in diag.c

 net/sctp/Makefile    |   2 +
 net/sctp/diag.c      | 557 +++++++++++++++++++++++++++++++++++++++++++++++++++
 net/sctp/sctp_diag.c | 526 ------------------------------------------------
 3 files changed, 559 insertions(+), 526 deletions(-)
 create mode 100644 net/sctp/diag.c
 delete mode 100644 net/sctp/sctp_diag.c
Quoted 6 lines
Quoted 4 lines
Signature · 1 line
2.1.0

Series

Since this isn't a bug fix, per-se, I applied this series to net-next.

Thanks.