提交 7f95e188 编写于 作者: E Eldad Zack 提交者: David S. Miller

include/net/dst.h: neaten asterisk placement

Fix code style - place the asterisk where it belongs.
Signed-off-by: NEldad Zack <eldad@fogrefinery.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 aee289ba
无相关合并请求
...@@ -48,8 +48,8 @@ struct dst_entry { ...@@ -48,8 +48,8 @@ struct dst_entry {
#else #else
void *__pad1; void *__pad1;
#endif #endif
int (*input)(struct sk_buff*); int (*input)(struct sk_buff *);
int (*output)(struct sk_buff*); int (*output)(struct sk_buff *);
int flags; int flags;
#define DST_HOST 0x0001 #define DST_HOST 0x0001
...@@ -241,7 +241,7 @@ dst_metric_locked(const struct dst_entry *dst, int metric) ...@@ -241,7 +241,7 @@ dst_metric_locked(const struct dst_entry *dst, int metric)
return dst_metric(dst, RTAX_LOCK) & (1<<metric); return dst_metric(dst, RTAX_LOCK) & (1<<metric);
} }
static inline void dst_hold(struct dst_entry * dst) static inline void dst_hold(struct dst_entry *dst)
{ {
/* /*
* If your kernel compilation stops here, please check * If your kernel compilation stops here, please check
...@@ -264,8 +264,7 @@ static inline void dst_use_noref(struct dst_entry *dst, unsigned long time) ...@@ -264,8 +264,7 @@ static inline void dst_use_noref(struct dst_entry *dst, unsigned long time)
dst->lastuse = time; dst->lastuse = time;
} }
static inline static inline struct dst_entry *dst_clone(struct dst_entry *dst)
struct dst_entry * dst_clone(struct dst_entry * dst)
{ {
if (dst) if (dst)
atomic_inc(&dst->__refcnt); atomic_inc(&dst->__refcnt);
...@@ -371,12 +370,12 @@ static inline struct dst_entry *skb_dst_pop(struct sk_buff *skb) ...@@ -371,12 +370,12 @@ static inline struct dst_entry *skb_dst_pop(struct sk_buff *skb)
} }
extern int dst_discard(struct sk_buff *skb); extern int dst_discard(struct sk_buff *skb);
extern void *dst_alloc(struct dst_ops * ops, struct net_device *dev, extern void *dst_alloc(struct dst_ops *ops, struct net_device *dev,
int initial_ref, int initial_obsolete, int flags); int initial_ref, int initial_obsolete, int flags);
extern void __dst_free(struct dst_entry * dst); extern void __dst_free(struct dst_entry *dst);
extern struct dst_entry *dst_destroy(struct dst_entry * dst); extern struct dst_entry *dst_destroy(struct dst_entry *dst);
static inline void dst_free(struct dst_entry * dst) static inline void dst_free(struct dst_entry *dst)
{ {
if (dst->obsolete > 1) if (dst->obsolete > 1)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部