Skip to content

Commit

Permalink
tipc: remove include file port.h
Browse files Browse the repository at this point in the history
We move the inline functions in the file port.h to socket.c, and modify
their names accordingly.

We move struct tipc_port and some macros to socket.h.

Finally, we remove the file port.h.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jon Paul Maloy authored and David S. Miller committed Aug 23, 2014
1 parent 0fc87aa commit 2e84c60
Show file tree
Hide file tree
Showing 9 changed files with 121 additions and 193 deletions.
1 change: 0 additions & 1 deletion net/tipc/bcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

#include "core.h"
#include "link.h"
#include "port.h"
#include "socket.h"
#include "msg.h"
#include "bcast.h"
Expand Down
2 changes: 1 addition & 1 deletion net/tipc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "name_table.h"
#include "subscr.h"
#include "config.h"
#include "port.h"
#include "socket.h"

#include <linux/module.h>

Expand Down
1 change: 0 additions & 1 deletion net/tipc/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

#include "core.h"
#include "link.h"
#include "port.h"
#include "socket.h"
#include "name_distr.h"
#include "discover.h"
Expand Down
1 change: 0 additions & 1 deletion net/tipc/name_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "name_table.h"
#include "name_distr.h"
#include "subscr.h"
#include "port.h"

#define TIPC_NAMETBL_SIZE 1024 /* must be a power of 2 */

Expand Down
1 change: 0 additions & 1 deletion net/tipc/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include "net.h"
#include "name_distr.h"
#include "subscr.h"
#include "port.h"
#include "socket.h"
#include "node.h"
#include "config.h"
Expand Down
145 changes: 0 additions & 145 deletions net/tipc/port.h

This file was deleted.

Loading

0 comments on commit 2e84c60

Please sign in to comment.