Skip to content

Commit 6fc77a5

Browse files
ecsvordex
authored andcommitted
batman-adv: Fix function names on new line starting with '*'
Some really long function names in batman-adv require a newline between return type and the function name. This has lead to some lines starting with *batadv_... This * belongs to the return type and thus should be on the same line as the return type. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <a@unstable.cc>
1 parent f298cb9 commit 6fc77a5

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎net/batman-adv/bridge_loop_avoidance.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ static void batadv_claim_put(struct batadv_bla_claim *claim)
200200
*
201201
* Return: claim if found or NULL otherwise.
202202
*/
203-
static struct batadv_bla_claim
204-
*batadv_claim_hash_find(struct batadv_priv *bat_priv,
205-
struct batadv_bla_claim *data)
203+
static struct batadv_bla_claim *
204+
batadv_claim_hash_find(struct batadv_priv *bat_priv,
205+
struct batadv_bla_claim *data)
206206
{
207207
struct batadv_hashtable *hash = bat_priv->bla.claim_hash;
208208
struct hlist_head *head;

‎net/batman-adv/main.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ static void batadv_tvlv_handler_put(struct batadv_tvlv_handler *tvlv_handler)
663663
*
664664
* Return: tvlv handler if found or NULL otherwise.
665665
*/
666-
static struct batadv_tvlv_handler
667-
*batadv_tvlv_handler_get(struct batadv_priv *bat_priv, u8 type, u8 version)
666+
static struct batadv_tvlv_handler *
667+
batadv_tvlv_handler_get(struct batadv_priv *bat_priv, u8 type, u8 version)
668668
{
669669
struct batadv_tvlv_handler *tvlv_handler_tmp, *tvlv_handler = NULL;
670670

@@ -722,8 +722,8 @@ static void batadv_tvlv_container_put(struct batadv_tvlv_container *tvlv)
722722
*
723723
* Return: tvlv container if found or NULL otherwise.
724724
*/
725-
static struct batadv_tvlv_container
726-
*batadv_tvlv_container_get(struct batadv_priv *bat_priv, u8 type, u8 version)
725+
static struct batadv_tvlv_container *
726+
batadv_tvlv_container_get(struct batadv_priv *bat_priv, u8 type, u8 version)
727727
{
728728
struct batadv_tvlv_container *tvlv_tmp, *tvlv = NULL;
729729

‎net/batman-adv/network-coding.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -793,10 +793,10 @@ static bool batadv_can_nc_with_orig(struct batadv_priv *bat_priv,
793793
*
794794
* Return: the nc_node if found, NULL otherwise.
795795
*/
796-
static struct batadv_nc_node
797-
*batadv_nc_find_nc_node(struct batadv_orig_node *orig_node,
798-
struct batadv_orig_node *orig_neigh_node,
799-
bool in_coding)
796+
static struct batadv_nc_node *
797+
batadv_nc_find_nc_node(struct batadv_orig_node *orig_node,
798+
struct batadv_orig_node *orig_neigh_node,
799+
bool in_coding)
800800
{
801801
struct batadv_nc_node *nc_node, *nc_node_out = NULL;
802802
struct list_head *list;
@@ -835,11 +835,11 @@ static struct batadv_nc_node
835835
*
836836
* Return: the nc_node if found or created, NULL in case of an error.
837837
*/
838-
static struct batadv_nc_node
839-
*batadv_nc_get_nc_node(struct batadv_priv *bat_priv,
840-
struct batadv_orig_node *orig_node,
841-
struct batadv_orig_node *orig_neigh_node,
842-
bool in_coding)
838+
static struct batadv_nc_node *
839+
batadv_nc_get_nc_node(struct batadv_priv *bat_priv,
840+
struct batadv_orig_node *orig_node,
841+
struct batadv_orig_node *orig_neigh_node,
842+
bool in_coding)
843843
{
844844
struct batadv_nc_node *nc_node;
845845
spinlock_t *lock; /* Used to lock list selected by "int in_coding" */

0 commit comments

Comments
 (0)