mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
ipv6: White-space cleansing : Structure layouts
This patch makes no changes to the logic of the code but simply addresses coding style issues as detected by checkpatch. Both objdump and diff -w show no differences. This patch addresses structure definitions, specifically it cleanses the brace placement and replaces spaces with tabs in a few places. Signed-off-by: Ian Morris <ipm@chirality.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
67ba4152e8
commit
cc24becae3
5 changed files with 13 additions and 21 deletions
|
@ -755,8 +755,7 @@ static int ah6_rcv_cb(struct sk_buff *skb, int err)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct xfrm_type ah6_type =
|
static const struct xfrm_type ah6_type = {
|
||||||
{
|
|
||||||
.description = "AH6",
|
.description = "AH6",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.proto = IPPROTO_AH,
|
.proto = IPPROTO_AH,
|
||||||
|
|
|
@ -621,8 +621,7 @@ static int esp6_rcv_cb(struct sk_buff *skb, int err)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct xfrm_type esp6_type =
|
static const struct xfrm_type esp6_type = {
|
||||||
{
|
|
||||||
.description = "ESP6",
|
.description = "ESP6",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.proto = IPPROTO_ESP,
|
.proto = IPPROTO_ESP,
|
||||||
|
|
|
@ -181,8 +181,7 @@ static int ipcomp6_rcv_cb(struct sk_buff *skb, int err)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct xfrm_type ipcomp6_type =
|
static const struct xfrm_type ipcomp6_type = {
|
||||||
{
|
|
||||||
.description = "IPCOMP6",
|
.description = "IPCOMP6",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.proto = IPPROTO_COMP,
|
.proto = IPPROTO_COMP,
|
||||||
|
@ -193,8 +192,7 @@ static const struct xfrm_type ipcomp6_type =
|
||||||
.hdr_offset = xfrm6_find_1stfragopt,
|
.hdr_offset = xfrm6_find_1stfragopt,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct xfrm6_protocol ipcomp6_protocol =
|
static struct xfrm6_protocol ipcomp6_protocol = {
|
||||||
{
|
|
||||||
.handler = xfrm6_rcv,
|
.handler = xfrm6_rcv,
|
||||||
.cb_handler = ipcomp6_rcv_cb,
|
.cb_handler = ipcomp6_rcv_cb,
|
||||||
.err_handler = ipcomp6_err,
|
.err_handler = ipcomp6_err,
|
||||||
|
|
|
@ -336,8 +336,7 @@ static void mip6_destopt_destroy(struct xfrm_state *x)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct xfrm_type mip6_destopt_type =
|
static const struct xfrm_type mip6_destopt_type = {
|
||||||
{
|
|
||||||
.description = "MIP6DESTOPT",
|
.description = "MIP6DESTOPT",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.proto = IPPROTO_DSTOPTS,
|
.proto = IPPROTO_DSTOPTS,
|
||||||
|
@ -469,8 +468,7 @@ static void mip6_rthdr_destroy(struct xfrm_state *x)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct xfrm_type mip6_rthdr_type =
|
static const struct xfrm_type mip6_rthdr_type = {
|
||||||
{
|
|
||||||
.description = "MIP6RT",
|
.description = "MIP6RT",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.proto = IPPROTO_ROUTING,
|
.proto = IPPROTO_ROUTING,
|
||||||
|
|
|
@ -62,8 +62,7 @@
|
||||||
|
|
||||||
static const char ip6_frag_cache_name[] = "ip6-frags";
|
static const char ip6_frag_cache_name[] = "ip6-frags";
|
||||||
|
|
||||||
struct ip6frag_skb_cb
|
struct ip6frag_skb_cb {
|
||||||
{
|
|
||||||
struct inet6_skb_parm h;
|
struct inet6_skb_parm h;
|
||||||
int offset;
|
int offset;
|
||||||
};
|
};
|
||||||
|
@ -575,8 +574,7 @@ fail_hdr:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct inet6_protocol frag_protocol =
|
static const struct inet6_protocol frag_protocol = {
|
||||||
{
|
|
||||||
.handler = ipv6_frag_rcv,
|
.handler = ipv6_frag_rcv,
|
||||||
.flags = INET6_PROTO_NOPOLICY,
|
.flags = INET6_PROTO_NOPOLICY,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue