Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae8509c4 authored by Paul Gortmaker's avatar Paul Gortmaker Committed by David S. Miller
Browse files

tipc: cosmetic realignment of function arguments



No runtime code changes here.  Just a realign of the function
arguments to start where the 1st one was, and fit as many args
as can be put in an 80 char line.

Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c0fee8ac
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -578,8 +578,7 @@ u32 tipc_bclink_acks_missing(struct tipc_node *n_ptr)
 * Returns 0 (packet sent successfully) under all circumstances,
 * Returns 0 (packet sent successfully) under all circumstances,
 * since the broadcast link's pseudo-bearer never blocks
 * since the broadcast link's pseudo-bearer never blocks
 */
 */
static int tipc_bcbearer_send(struct sk_buff *buf,
static int tipc_bcbearer_send(struct sk_buff *buf, struct tipc_bearer *unused1,
			      struct tipc_bearer *unused1,
			      struct tipc_media_addr *unused2)
			      struct tipc_media_addr *unused2)
{
{
	int bp_index;
	int bp_index;
+2 −1
Original line number Original line Diff line number Diff line
@@ -75,7 +75,8 @@ void tipc_nmap_remove(struct tipc_node_map *nm_ptr, u32 node);
/**
/**
 * tipc_nmap_equal - test for equality of node maps
 * tipc_nmap_equal - test for equality of node maps
 */
 */
static inline int tipc_nmap_equal(struct tipc_node_map *nm_a, struct tipc_node_map *nm_b)
static inline int tipc_nmap_equal(struct tipc_node_map *nm_a,
				  struct tipc_node_map *nm_b)
{
{
	return !memcmp(nm_a, nm_b, sizeof(*nm_a));
	return !memcmp(nm_a, nm_b, sizeof(*nm_a));
}
}
+3 −4
Original line number Original line Diff line number Diff line
@@ -70,8 +70,7 @@ struct tipc_link_req {
 * @dest_domain: network domain of node(s) which should respond to message
 * @dest_domain: network domain of node(s) which should respond to message
 * @b_ptr: ptr to bearer issuing message
 * @b_ptr: ptr to bearer issuing message
 */
 */
static struct sk_buff *tipc_disc_init_msg(u32 type,
static struct sk_buff *tipc_disc_init_msg(u32 type, u32 dest_domain,
					  u32 dest_domain,
					  struct tipc_bearer *b_ptr)
					  struct tipc_bearer *b_ptr)
{
{
	struct sk_buff *buf = tipc_buf_acquire(INT_H_SIZE);
	struct sk_buff *buf = tipc_buf_acquire(INT_H_SIZE);
@@ -346,8 +345,8 @@ static void disc_timeout(struct tipc_link_req *req)
 *
 *
 * Returns 0 if successful, otherwise -errno.
 * Returns 0 if successful, otherwise -errno.
 */
 */
int tipc_disc_create(struct tipc_bearer *b_ptr,
int tipc_disc_create(struct tipc_bearer *b_ptr, struct tipc_media_addr *dest,
		     struct tipc_media_addr *dest, u32 dest_domain)
		     u32 dest_domain)
{
{
	struct tipc_link_req *req;
	struct tipc_link_req *req;


+7 −11
Original line number Original line Diff line number Diff line
@@ -771,8 +771,7 @@ static void link_state_event(struct tipc_link *l_ptr, unsigned int event)
 * link_bundle_buf(): Append contents of a buffer to
 * link_bundle_buf(): Append contents of a buffer to
 * the tail of an existing one.
 * the tail of an existing one.
 */
 */
static int link_bundle_buf(struct tipc_link *l_ptr,
static int link_bundle_buf(struct tipc_link *l_ptr, struct sk_buff *bundler,
			   struct sk_buff *bundler,
			   struct sk_buff *buf)
			   struct sk_buff *buf)
{
{
	struct tipc_msg *bundler_msg = buf_msg(bundler);
	struct tipc_msg *bundler_msg = buf_msg(bundler);
@@ -1064,8 +1063,7 @@ static int link_send_buf_fast(struct tipc_link *l_ptr, struct sk_buff *buf,
 */
 */
int tipc_link_send_sections_fast(struct tipc_port *sender,
int tipc_link_send_sections_fast(struct tipc_port *sender,
				 struct iovec const *msg_sect,
				 struct iovec const *msg_sect,
				 const u32 num_sect,
				 const u32 num_sect, unsigned int total_len,
				 unsigned int total_len,
				 u32 destaddr)
				 u32 destaddr)
{
{
	struct tipc_msg *hdr = &sender->phdr;
	struct tipc_msg *hdr = &sender->phdr;
@@ -1155,8 +1153,7 @@ int tipc_link_send_sections_fast(struct tipc_port *sender,
 */
 */
static int link_send_sections_long(struct tipc_port *sender,
static int link_send_sections_long(struct tipc_port *sender,
				   struct iovec const *msg_sect,
				   struct iovec const *msg_sect,
				   u32 num_sect,
				   u32 num_sect, unsigned int total_len,
				   unsigned int total_len,
				   u32 destaddr)
				   u32 destaddr)
{
{
	struct tipc_link *l_ptr;
	struct tipc_link *l_ptr;
@@ -2107,8 +2104,7 @@ static void link_recv_proto_msg(struct tipc_link *l_ptr, struct sk_buff *buf)
 * another bearer. Owner node is locked.
 * another bearer. Owner node is locked.
 */
 */
static void tipc_link_tunnel(struct tipc_link *l_ptr,
static void tipc_link_tunnel(struct tipc_link *l_ptr,
			     struct tipc_msg *tunnel_hdr,
			     struct tipc_msg *tunnel_hdr, struct tipc_msg *msg,
			     struct tipc_msg  *msg,
			     u32 selector)
			     u32 selector)
{
{
	struct tipc_link *tunnel;
	struct tipc_link *tunnel;
+2 −2
Original line number Original line Diff line number Diff line
@@ -51,8 +51,8 @@ u32 tipc_msg_tot_importance(struct tipc_msg *m)
}
}




void tipc_msg_init(struct tipc_msg *m, u32 user, u32 type,
void tipc_msg_init(struct tipc_msg *m, u32 user, u32 type, u32 hsize,
			    u32 hsize, u32 destnode)
		   u32 destnode)
{
{
	memset(m, 0, hsize);
	memset(m, 0, hsize);
	msg_set_version(m);
	msg_set_version(m);
Loading