Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
* [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement.
@ 2014-12-04 10:51 Stefan Schmidt
  2014-12-04 10:51 ` [PATCH bluetooth-next 2/5] net/ieee802154: Make sure alignment matches parenthesis Stefan Schmidt
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Stefan Schmidt @ 2014-12-04 10:51 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring, Stefan Schmidt, Jukka Rissanen

This might change and we already deliver a copy of the license with
the kernel. This was already removed form the ieee802154 code but
missed here.

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
CC: Jukka Rissanen <jukka.rissanen@linux.intel.com>
---
 net/6lowpan/iphc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/net/6lowpan/iphc.c b/net/6lowpan/iphc.c
index aced97d..32ffec6 100644
--- a/net/6lowpan/iphc.c
+++ b/net/6lowpan/iphc.c
@@ -15,9 +15,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 /* Jon's code is based on 6lowpan implementation for Contiki which is:
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH bluetooth-next 2/5] net/ieee802154: Make sure alignment matches parenthesis..
  2014-12-04 10:51 [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement Stefan Schmidt
@ 2014-12-04 10:51 ` Stefan Schmidt
  2014-12-04 10:51 ` [PATCH bluetooth-next 3/5] net/ieee802154: Remove and add extra blank lines as needed Stefan Schmidt
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Stefan Schmidt @ 2014-12-04 10:51 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring, Stefan Schmidt

Follow coding style of the kernel.

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
---
 net/ieee802154/netlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ieee802154/netlink.c b/net/ieee802154/netlink.c
index 6ad0da3..3cdfa78 100644
--- a/net/ieee802154/netlink.c
+++ b/net/ieee802154/netlink.c
@@ -73,7 +73,7 @@ out:
 }
 
 struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info,
-		int flags, u8 req)
+					int flags, u8 req)
 {
 	void *hdr;
 	struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC);
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH bluetooth-next 3/5] net/ieee802154: Remove and add extra blank lines as needed.
  2014-12-04 10:51 [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement Stefan Schmidt
  2014-12-04 10:51 ` [PATCH bluetooth-next 2/5] net/ieee802154: Make sure alignment matches parenthesis Stefan Schmidt
@ 2014-12-04 10:51 ` Stefan Schmidt
  2014-12-04 10:52 ` [PATCH bluetooth-next 4/5] net/mac802154: Remove extra blank lines Stefan Schmidt
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Stefan Schmidt @ 2014-12-04 10:51 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring, Stefan Schmidt

Some have been missing and some have been needed. Just cosmetics.

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
---
 net/ieee802154/6lowpan_rtnl.c  |  1 -
 net/ieee802154/af_ieee802154.c |  4 ++--
 net/ieee802154/dgram.c         |  1 -
 net/ieee802154/netlink.c       |  1 -
 net/ieee802154/nl-mac.c        | 14 --------------
 net/ieee802154/nl-phy.c        |  1 -
 net/ieee802154/raw.c           |  1 -
 7 files changed, 2 insertions(+), 21 deletions(-)

diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowpan_rtnl.c
index 16f5e91..27eaa65 100644
--- a/net/ieee802154/6lowpan_rtnl.c
+++ b/net/ieee802154/6lowpan_rtnl.c
@@ -439,7 +439,6 @@ static void lowpan_set_lockdep_class_one(struct net_device *dev,
 			  &lowpan_netdev_xmit_lock_key);
 }
 
-
 static int lowpan_dev_init(struct net_device *dev)
 {
 	netdev_for_each_tx_queue(dev, lowpan_set_lockdep_class_one, NULL);
diff --git a/net/ieee802154/af_ieee802154.c b/net/ieee802154/af_ieee802154.c
index 26da1e1..d0a1282 100644
--- a/net/ieee802154/af_ieee802154.c
+++ b/net/ieee802154/af_ieee802154.c
@@ -99,6 +99,7 @@ static int ieee802154_sock_release(struct socket *sock)
 	}
 	return 0;
 }
+
 static int ieee802154_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
 				   struct msghdr *msg, size_t len)
 {
@@ -231,7 +232,6 @@ static const struct proto_ops ieee802154_dgram_ops = {
 #endif
 };
 
-
 /* Create a socket. Initialise the socket, blank the addresses
  * set the state.
  */
@@ -320,7 +320,6 @@ drop:
 	return NET_RX_DROP;
 }
 
-
 static struct packet_type ieee802154_packet_type = {
 	.type = htons(ETH_P_IEEE802154),
 	.func = ieee802154_rcv,
@@ -354,6 +353,7 @@ err_dgram:
 out:
 	return rc;
 }
+
 static void __exit af_ieee802154_remove(void)
 {
 	dev_remove_pack(&ieee802154_packet_type);
diff --git a/net/ieee802154/dgram.c b/net/ieee802154/dgram.c
index 3d58bef..8db240b 100644
--- a/net/ieee802154/dgram.c
+++ b/net/ieee802154/dgram.c
@@ -154,7 +154,6 @@ static int dgram_ioctl(struct sock *sk, int cmd, unsigned long arg)
 		spin_unlock_bh(&sk->sk_receive_queue.lock);
 		return put_user(amount, (int __user *)arg);
 	}
-
 	}
 
 	return -ENOIOCTLCMD;
diff --git a/net/ieee802154/netlink.c b/net/ieee802154/netlink.c
index 3cdfa78..fa14647 100644
--- a/net/ieee802154/netlink.c
+++ b/net/ieee802154/netlink.c
@@ -147,7 +147,6 @@ static const struct genl_multicast_group ieee802154_mcgrps[] = {
 	[IEEE802154_BEACON_MCGRP] = { .name = IEEE802154_MCAST_BEACON_NAME, },
 };
 
-
 int __init ieee802154_nl_init(void)
 {
 	return genl_register_family_with_ops_groups(&nl802154_family,
diff --git a/net/ieee802154/nl-mac.c b/net/ieee802154/nl-mac.c
index 1f085ed..cd91949 100644
--- a/net/ieee802154/nl-mac.c
+++ b/net/ieee802154/nl-mac.c
@@ -346,7 +346,6 @@ int ieee802154_start_req(struct sk_buff *skb, struct genl_info *info)
 	else
 		page = 0;
 
-
 	if (addr.short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST)) {
 		ieee802154_nl_start_confirm(dev, IEEE802154_NO_SHORT_ADDRESS);
 		dev_put(dev);
@@ -397,7 +396,6 @@ int ieee802154_scan_req(struct sk_buff *skb, struct genl_info *info)
 	else
 		page = 0;
 
-
 	ret = ieee802154_mlme_ops(dev)->scan_req(dev, type, channels,
 						 page, duration);
 
@@ -548,8 +546,6 @@ out:
 	return rc;
 }
 
-
-
 static int
 ieee802154_llsec_parse_key_id(struct genl_info *info,
 			      struct ieee802154_llsec_key_id *desc)
@@ -765,8 +761,6 @@ out:
 	return rc;
 }
 
-
-
 struct llsec_dump_data {
 	struct sk_buff *skb;
 	int s_idx, s_idx2;
@@ -843,8 +837,6 @@ ieee802154_nl_llsec_change(struct sk_buff *skb, struct genl_info *info,
 	return rc;
 }
 
-
-
 static int
 ieee802154_llsec_parse_key(struct genl_info *info,
 			   struct ieee802154_llsec_key *key)
@@ -989,8 +981,6 @@ int ieee802154_llsec_dump_keys(struct sk_buff *skb, struct netlink_callback *cb)
 	return ieee802154_llsec_dump_table(skb, cb, llsec_iter_keys);
 }
 
-
-
 static int
 llsec_parse_dev(struct genl_info *info,
 		struct ieee802154_llsec_device *dev)
@@ -1121,8 +1111,6 @@ int ieee802154_llsec_dump_devs(struct sk_buff *skb, struct netlink_callback *cb)
 	return ieee802154_llsec_dump_table(skb, cb, llsec_iter_devs);
 }
 
-
-
 static int llsec_add_devkey(struct net_device *dev, struct genl_info *info)
 {
 	struct ieee802154_mlme_ops *ops = ieee802154_mlme_ops(dev);
@@ -1237,8 +1225,6 @@ int ieee802154_llsec_dump_devkeys(struct sk_buff *skb,
 	return ieee802154_llsec_dump_table(skb, cb, llsec_iter_devkeys);
 }
 
-
-
 static int
 llsec_parse_seclevel(struct genl_info *info,
 		     struct ieee802154_llsec_seclevel *sl)
diff --git a/net/ieee802154/nl-phy.c b/net/ieee802154/nl-phy.c
index 6246354..7baf98b 100644
--- a/net/ieee802154/nl-phy.c
+++ b/net/ieee802154/nl-phy.c
@@ -94,7 +94,6 @@ int ieee802154_list_phy(struct sk_buff *skb, struct genl_info *info)
 	if (name[nla_len(info->attrs[IEEE802154_ATTR_PHY_NAME]) - 1] != '\0')
 		return -EINVAL; /* phy name should be null-terminated */
 
-
 	phy = wpan_phy_find(name);
 	if (!phy)
 		return -ENODEV;
diff --git a/net/ieee802154/raw.c b/net/ieee802154/raw.c
index 3ffcf4a..f0c61e5 100644
--- a/net/ieee802154/raw.c
+++ b/net/ieee802154/raw.c
@@ -221,7 +221,6 @@ static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb)
 	return NET_RX_SUCCESS;
 }
 
-
 void ieee802154_raw_deliver(struct net_device *dev, struct sk_buff *skb)
 {
 	struct sock *sk;
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH bluetooth-next 4/5] net/mac802154: Remove extra blank lines.
  2014-12-04 10:51 [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement Stefan Schmidt
  2014-12-04 10:51 ` [PATCH bluetooth-next 2/5] net/ieee802154: Make sure alignment matches parenthesis Stefan Schmidt
  2014-12-04 10:51 ` [PATCH bluetooth-next 3/5] net/ieee802154: Remove and add extra blank lines as needed Stefan Schmidt
@ 2014-12-04 10:52 ` Stefan Schmidt
  2014-12-04 10:52 ` [PATCH bluetooth-next 5/5] net/mac802154: No need for an extra space when casting Stefan Schmidt
  2014-12-05 11:15 ` [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement Jukka Rissanen
  4 siblings, 0 replies; 8+ messages in thread
From: Stefan Schmidt @ 2014-12-04 10:52 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring, Stefan Schmidt

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
---
 net/mac802154/llsec.c | 15 ---------------
 net/mac802154/mib.c   |  6 ------
 2 files changed, 21 deletions(-)

diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c
index fa0d523..4a661f7 100644
--- a/net/mac802154/llsec.c
+++ b/net/mac802154/llsec.c
@@ -75,8 +75,6 @@ void mac802154_llsec_destroy(struct mac802154_llsec *sec)
 	}
 }
 
-
-
 int mac802154_llsec_get_params(struct mac802154_llsec *sec,
 			       struct ieee802154_llsec_params *params)
 {
@@ -117,8 +115,6 @@ int mac802154_llsec_set_params(struct mac802154_llsec *sec,
 	return 0;
 }
 
-
-
 static struct mac802154_llsec_key*
 llsec_key_alloc(const struct ieee802154_llsec_key *template)
 {
@@ -294,8 +290,6 @@ int mac802154_llsec_key_del(struct mac802154_llsec *sec,
 	return -ENOENT;
 }
 
-
-
 static bool llsec_dev_use_shortaddr(__le16 short_addr)
 {
 	return short_addr != cpu_to_le16(IEEE802154_ADDR_UNDEF) &&
@@ -411,8 +405,6 @@ int mac802154_llsec_dev_del(struct mac802154_llsec *sec, __le64 device_addr)
 	return 0;
 }
 
-
-
 static struct mac802154_llsec_device_key*
 llsec_devkey_find(struct mac802154_llsec_device *dev,
 		  const struct ieee802154_llsec_key_id *key)
@@ -475,8 +467,6 @@ int mac802154_llsec_devkey_del(struct mac802154_llsec *sec,
 	return 0;
 }
 
-
-
 static struct mac802154_llsec_seclevel*
 llsec_find_seclevel(const struct mac802154_llsec *sec,
 		    const struct ieee802154_llsec_seclevel *sl)
@@ -532,8 +522,6 @@ int mac802154_llsec_seclevel_del(struct mac802154_llsec *sec,
 	return 0;
 }
 
-
-
 static int llsec_recover_addr(struct mac802154_llsec *sec,
 			      struct ieee802154_addr *addr)
 {
@@ -609,7 +597,6 @@ found:
 	return llsec_key_get(key);
 }
 
-
 static void llsec_geniv(u8 iv[16], __le64 addr,
 			const struct ieee802154_sechdr *sec)
 {
@@ -786,8 +773,6 @@ fail:
 	return rc;
 }
 
-
-
 static struct mac802154_llsec_device*
 llsec_lookup_dev(struct mac802154_llsec *sec,
 		 const struct ieee802154_addr *addr)
diff --git a/net/mac802154/mib.c b/net/mac802154/mib.c
index 3596b29..5cf019a 100644
--- a/net/mac802154/mib.c
+++ b/net/mac802154/mib.c
@@ -104,7 +104,6 @@ void mac802154_dev_set_page_channel(struct net_device *dev, u8 page, u8 chan)
 	}
 }
 
-
 int mac802154_get_params(struct net_device *dev,
 			 struct ieee802154_llsec_params *params)
 {
@@ -136,7 +135,6 @@ int mac802154_set_params(struct net_device *dev,
 	return res;
 }
 
-
 int mac802154_add_key(struct net_device *dev,
 		      const struct ieee802154_llsec_key_id *id,
 		      const struct ieee802154_llsec_key *key)
@@ -168,7 +166,6 @@ int mac802154_del_key(struct net_device *dev,
 	return res;
 }
 
-
 int mac802154_add_dev(struct net_device *dev,
 		      const struct ieee802154_llsec_device *llsec_dev)
 {
@@ -198,7 +195,6 @@ int mac802154_del_dev(struct net_device *dev, __le64 dev_addr)
 	return res;
 }
 
-
 int mac802154_add_devkey(struct net_device *dev,
 			 __le64 device_addr,
 			 const struct ieee802154_llsec_device_key *key)
@@ -231,7 +227,6 @@ int mac802154_del_devkey(struct net_device *dev,
 	return res;
 }
 
-
 int mac802154_add_seclevel(struct net_device *dev,
 			   const struct ieee802154_llsec_seclevel *sl)
 {
@@ -262,7 +257,6 @@ int mac802154_del_seclevel(struct net_device *dev,
 	return res;
 }
 
-
 void mac802154_lock_table(struct net_device *dev)
 {
 	struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev);
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH bluetooth-next 5/5] net/mac802154: No need for an extra space when casting
  2014-12-04 10:51 [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement Stefan Schmidt
                   ` (2 preceding siblings ...)
  2014-12-04 10:52 ` [PATCH bluetooth-next 4/5] net/mac802154: Remove extra blank lines Stefan Schmidt
@ 2014-12-04 10:52 ` Stefan Schmidt
  2014-12-04 20:03   ` Alexander Aring
  2014-12-05 11:44   ` Marcel Holtmann
  2014-12-05 11:15 ` [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement Jukka Rissanen
  4 siblings, 2 replies; 8+ messages in thread
From: Stefan Schmidt @ 2014-12-04 10:52 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring, Stefan Schmidt

Coding style cleanup.

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
---
 net/mac802154/llsec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c
index 4a661f7..dcf7395 100644
--- a/net/mac802154/llsec.c
+++ b/net/mac802154/llsec.c
@@ -298,12 +298,12 @@ static bool llsec_dev_use_shortaddr(__le16 short_addr)
 
 static u32 llsec_dev_hash_short(__le16 short_addr, __le16 pan_id)
 {
-	return ((__force u16) short_addr) << 16 | (__force u16) pan_id;
+	return ((__force u16)short_addr) << 16 | (__force u16)pan_id;
 }
 
 static u64 llsec_dev_hash_long(__le64 hwaddr)
 {
-	return (__force u64) hwaddr;
+	return (__force u64)hwaddr;
 }
 
 static struct mac802154_llsec_device*
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH bluetooth-next 5/5] net/mac802154: No need for an extra space when casting
  2014-12-04 10:52 ` [PATCH bluetooth-next 5/5] net/mac802154: No need for an extra space when casting Stefan Schmidt
@ 2014-12-04 20:03   ` Alexander Aring
  2014-12-05 11:44   ` Marcel Holtmann
  1 sibling, 0 replies; 8+ messages in thread
From: Alexander Aring @ 2014-12-04 20:03 UTC (permalink / raw)
  To: Stefan Schmidt; +Cc: linux-wpan

Hi Stefan,

On Thu, Dec 04, 2014 at 11:52:01AM +0100, Stefan Schmidt wrote:
> Coding style cleanup.
> 

Acked-by: Alexander Aring <alex.aring@gmail.com>

on the complete serie. Thanks.

- Alex

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement.
  2014-12-04 10:51 [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement Stefan Schmidt
                   ` (3 preceding siblings ...)
  2014-12-04 10:52 ` [PATCH bluetooth-next 5/5] net/mac802154: No need for an extra space when casting Stefan Schmidt
@ 2014-12-05 11:15 ` Jukka Rissanen
  4 siblings, 0 replies; 8+ messages in thread
From: Jukka Rissanen @ 2014-12-05 11:15 UTC (permalink / raw)
  To: Stefan Schmidt; +Cc: linux-wpan, Alexander Aring

On to, 2014-12-04 at 11:51 +0100, Stefan Schmidt wrote:
> This might change and we already deliver a copy of the license with
> the kernel. This was already removed form the ieee802154 code but
> missed here.
> 
> Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
> CC: Jukka Rissanen <jukka.rissanen@linux.intel.com>
> ---
>  net/6lowpan/iphc.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/net/6lowpan/iphc.c b/net/6lowpan/iphc.c
> index aced97d..32ffec6 100644
> --- a/net/6lowpan/iphc.c
> +++ b/net/6lowpan/iphc.c
> @@ -15,9 +15,6 @@
>   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>   * GNU General Public License for more details.
>   *
> - * You should have received a copy of the GNU General Public License along
> - * with this program; if not, write to the Free Software Foundation, Inc.,
> - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
>   */
>  
>  /* Jon's code is based on 6lowpan implementation for Contiki which is:


Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>


Cheers,
Jukka




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH bluetooth-next 5/5] net/mac802154: No need for an extra space when casting
  2014-12-04 10:52 ` [PATCH bluetooth-next 5/5] net/mac802154: No need for an extra space when casting Stefan Schmidt
  2014-12-04 20:03   ` Alexander Aring
@ 2014-12-05 11:44   ` Marcel Holtmann
  1 sibling, 0 replies; 8+ messages in thread
From: Marcel Holtmann @ 2014-12-05 11:44 UTC (permalink / raw)
  To: Stefan Schmidt; +Cc: linux-wpan, Alexander Aring

Hi Stefan,

> Coding style cleanup.
> 
> Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
> ---
> net/mac802154/llsec.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

all 5 patches have been applied to bluetooth-next tree.

Regards

Marcel


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-12-05 11:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04 10:51 [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement Stefan Schmidt
2014-12-04 10:51 ` [PATCH bluetooth-next 2/5] net/ieee802154: Make sure alignment matches parenthesis Stefan Schmidt
2014-12-04 10:51 ` [PATCH bluetooth-next 3/5] net/ieee802154: Remove and add extra blank lines as needed Stefan Schmidt
2014-12-04 10:52 ` [PATCH bluetooth-next 4/5] net/mac802154: Remove extra blank lines Stefan Schmidt
2014-12-04 10:52 ` [PATCH bluetooth-next 5/5] net/mac802154: No need for an extra space when casting Stefan Schmidt
2014-12-04 20:03   ` Alexander Aring
2014-12-05 11:44   ` Marcel Holtmann
2014-12-05 11:15 ` [PATCH bluetooth-next 1/5] net/6lowpan: Remove FSF address from GPL statement Jukka Rissanen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox