* [PATCH v2 0/4] staging: rtl8192u: Fix warnings in ieee80211_crypt.c
@ 2015-02-22 16:33 Navya Sri Nizamkari
2015-02-22 16:36 ` [PATCH v2 1/4] staging: rtl8192u: Convert from printk into netdev_dbg or pr_dbg Navya Sri Nizamkari
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Navya Sri Nizamkari @ 2015-02-22 16:33 UTC (permalink / raw)
To: outreachy-kernel
In v2 version of this patchset I correct the commit message of
[PATCH 1/4] to be clearer and remove a comment from [PATCH 2/4]
whose style was changed in version v1.
[original cover letter]
This patchset removes an unnecessary comment and clears checkpatch.pl
warnings in ieee80211_crypt.c such as:
convert printk to a preferable function like netdev_dbg or pr_dbg,
replace asm header files with
linux ones, fix the quoted string split across a line.
Navya Sri Nizamkari (4):
staging: rtl8192u: Convert from printk into netdev_dbg or pr_dbg
staging: rtl8192u: Remove unnecessary comment
staging: rtl8192u : Replace asm header files with linux ones.
staging: rtl8192u: Fix quoted string split across lines
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 1/4] staging: rtl8192u: Convert from printk into netdev_dbg or pr_dbg
2015-02-22 16:33 [PATCH v2 0/4] staging: rtl8192u: Fix warnings in ieee80211_crypt.c Navya Sri Nizamkari
@ 2015-02-22 16:36 ` Navya Sri Nizamkari
2015-02-26 21:43 ` [Outreachy kernel] " Greg KH
2015-02-22 16:41 ` [PATCH v2 2/4] staging: rtl8192u: Remove unnecessary comment Navya Sri Nizamkari
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Navya Sri Nizamkari @ 2015-02-22 16:36 UTC (permalink / raw)
To: outreachy-kernel
As this is a network driver file, convert printk(KERN_DEBUG.. ) to
netdev_dbg if the calling function has arguments to support it else
to pr_dbg , to fix the checkpatch.pl warning:
WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then
pr_debug(... to printk(KERN_DEBUG ...
Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
---
Changes in v2:
- Correct the commit message to be clearer.
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
index 5533221..e517e81 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
@@ -66,8 +66,8 @@ void ieee80211_crypt_deinit_handler(unsigned long data)
spin_lock_irqsave(&ieee->lock, flags);
ieee80211_crypt_deinit_entries(ieee, 0);
if (!list_empty(&ieee->crypt_deinit_list)) {
- printk(KERN_DEBUG "%s: entries remaining in delayed crypt "
- "deletion list\n", ieee->dev->name);
+ netdev_dbg(ieee->dev, "entries remaining in delayed crypt "
+ "deletion list\n");
ieee->crypt_deinit_timer.expires = jiffies + HZ;
add_timer(&ieee->crypt_deinit_timer);
}
@@ -118,7 +118,7 @@ int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops)
list_add(&alg->list, &hcrypt->algs);
spin_unlock_irqrestore(&hcrypt->lock, flags);
- printk(KERN_DEBUG "ieee80211_crypt: registered algorithm '%s'\n",
+ pr_dbg("ieee80211_crypt: registered algorithm '%s'\n",
ops->name);
return 0;
@@ -146,7 +146,7 @@ int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops)
spin_unlock_irqrestore(&hcrypt->lock, flags);
if (del_alg) {
- printk(KERN_DEBUG "ieee80211_crypt: unregistered algorithm "
+ pr_dbg("ieee80211_crypt: unregistered algorithm "
"'%s'\n", ops->name);
kfree(del_alg);
}
@@ -232,7 +232,7 @@ void __exit ieee80211_crypto_deinit(void)
struct ieee80211_crypto_alg *alg =
(struct ieee80211_crypto_alg *) ptr;
list_del(ptr);
- printk(KERN_DEBUG "ieee80211_crypt: unregistered algorithm "
+ pr_dbg("ieee80211_crypt: unregistered algorithm "
"'%s' (deinit)\n", alg->ops->name);
kfree(alg);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 2/4] staging: rtl8192u: Remove unnecessary comment
2015-02-22 16:33 [PATCH v2 0/4] staging: rtl8192u: Fix warnings in ieee80211_crypt.c Navya Sri Nizamkari
2015-02-22 16:36 ` [PATCH v2 1/4] staging: rtl8192u: Convert from printk into netdev_dbg or pr_dbg Navya Sri Nizamkari
@ 2015-02-22 16:41 ` Navya Sri Nizamkari
2015-02-22 16:42 ` [PATCH v2 3/4] staging: rtl8192u: Replace asm header files with linux ones Navya Sri Nizamkari
2015-02-22 16:43 ` [PATCH v2 4/4] staging: rtl8192u: Fix quoted string split across lines Navya Sri Nizamkari
3 siblings, 0 replies; 10+ messages in thread
From: Navya Sri Nizamkari @ 2015-02-22 16:41 UTC (permalink / raw)
To: outreachy-kernel
The <linux/config.h> header file is not used anymore,
so it is commented out in this file.This patch deletes
that unnecessary comment.
Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
---
Changes in v2:
- The style of a comment was changed to C99 in the last
version, this version removes that comment.
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
index e517e81..cd31598 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
@@ -11,7 +11,6 @@
*
*/
-//#include <linux/config.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 3/4] staging: rtl8192u: Replace asm header files with linux ones.
2015-02-22 16:33 [PATCH v2 0/4] staging: rtl8192u: Fix warnings in ieee80211_crypt.c Navya Sri Nizamkari
2015-02-22 16:36 ` [PATCH v2 1/4] staging: rtl8192u: Convert from printk into netdev_dbg or pr_dbg Navya Sri Nizamkari
2015-02-22 16:41 ` [PATCH v2 2/4] staging: rtl8192u: Remove unnecessary comment Navya Sri Nizamkari
@ 2015-02-22 16:42 ` Navya Sri Nizamkari
2015-02-26 21:44 ` [Outreachy kernel] " Greg KH
2015-02-22 16:43 ` [PATCH v2 4/4] staging: rtl8192u: Fix quoted string split across lines Navya Sri Nizamkari
3 siblings, 1 reply; 10+ messages in thread
From: Navya Sri Nizamkari @ 2015-02-22 16:42 UTC (permalink / raw)
To: outreachy-kernel
As asm header files are included in linux header files, this patch
uses <linux/string.h> instead of <asm/string.h> and <linux/errno.h>
instead of <asm/errno.h> to fix checkpatch.pl errors:
ERROR: Use #include <linux/string.h> instead of <asm/string.h>
ERROR: Use #include <linux/errno.h> instead of <asm/errno.h>
Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
---
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
index cd31598..bd1555d 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
@@ -14,8 +14,8 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
-#include <asm/string.h>
-#include <asm/errno.h>
+#include <linux/string.h>
+#include <linux/errno.h>
#include "ieee80211.h"
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 4/4] staging: rtl8192u: Fix quoted string split across lines.
2015-02-22 16:33 [PATCH v2 0/4] staging: rtl8192u: Fix warnings in ieee80211_crypt.c Navya Sri Nizamkari
` (2 preceding siblings ...)
2015-02-22 16:42 ` [PATCH v2 3/4] staging: rtl8192u: Replace asm header files with linux ones Navya Sri Nizamkari
@ 2015-02-22 16:43 ` Navya Sri Nizamkari
2015-02-26 21:44 ` [Outreachy kernel] " Greg KH
3 siblings, 1 reply; 10+ messages in thread
From: Navya Sri Nizamkari @ 2015-02-22 16:43 UTC (permalink / raw)
To: outreachy-kernel
This patch fixes the checkpatch.pl warning:
WARNING: quoted string split across lines
Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
---
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
index bd1555d..d5b16a6 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
@@ -65,8 +65,8 @@ void ieee80211_crypt_deinit_handler(unsigned long data)
spin_lock_irqsave(&ieee->lock, flags);
ieee80211_crypt_deinit_entries(ieee, 0);
if (!list_empty(&ieee->crypt_deinit_list)) {
- netdev_dbg(ieee->dev, "entries remaining in delayed crypt "
- "deletion list\n");
+ netdev_dbg(ieee->dev,
+ "entries remaining in delayed crypt deletion list\n");
ieee->crypt_deinit_timer.expires = jiffies + HZ;
add_timer(&ieee->crypt_deinit_timer);
}
@@ -145,8 +145,8 @@ int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops)
spin_unlock_irqrestore(&hcrypt->lock, flags);
if (del_alg) {
- pr_dbg("ieee80211_crypt: unregistered algorithm "
- "'%s'\n", ops->name);
+ pr_dbg("ieee80211_crypt: unregistered algorithm '%s'\n",
+ ops->name);
kfree(del_alg);
}
@@ -231,8 +231,8 @@ void __exit ieee80211_crypto_deinit(void)
struct ieee80211_crypto_alg *alg =
(struct ieee80211_crypto_alg *) ptr;
list_del(ptr);
- pr_dbg("ieee80211_crypt: unregistered algorithm "
- "'%s' (deinit)\n", alg->ops->name);
+ pr_dbg("ieee80211_crypt: unregistered algorithm '%s' (deinit)\n",
+ alg->ops->name);
kfree(alg);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [Outreachy kernel] [PATCH v2 1/4] staging: rtl8192u: Convert from printk into netdev_dbg or pr_dbg
2015-02-22 16:36 ` [PATCH v2 1/4] staging: rtl8192u: Convert from printk into netdev_dbg or pr_dbg Navya Sri Nizamkari
@ 2015-02-26 21:43 ` Greg KH
0 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2015-02-26 21:43 UTC (permalink / raw)
To: Navya Sri Nizamkari; +Cc: outreachy-kernel
On Sun, Feb 22, 2015 at 10:06:04PM +0530, Navya Sri Nizamkari wrote:
> As this is a network driver file, convert printk(KERN_DEBUG.. ) to
> netdev_dbg if the calling function has arguments to support it else
> to pr_dbg , to fix the checkpatch.pl warning:
>
> WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then
> pr_debug(... to printk(KERN_DEBUG ...
>
> Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
> ---
> Changes in v2:
> - Correct the commit message to be clearer.
Doesn't apply as I think someone else made this change before you did :(
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Outreachy kernel] [PATCH v2 3/4] staging: rtl8192u: Replace asm header files with linux ones.
2015-02-22 16:42 ` [PATCH v2 3/4] staging: rtl8192u: Replace asm header files with linux ones Navya Sri Nizamkari
@ 2015-02-26 21:44 ` Greg KH
0 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2015-02-26 21:44 UTC (permalink / raw)
To: Navya Sri Nizamkari; +Cc: outreachy-kernel
On Sun, Feb 22, 2015 at 10:12:25PM +0530, Navya Sri Nizamkari wrote:
> As asm header files are included in linux header files, this patch
> uses <linux/string.h> instead of <asm/string.h> and <linux/errno.h>
> instead of <asm/errno.h> to fix checkpatch.pl errors:
>
> ERROR: Use #include <linux/string.h> instead of <asm/string.h>
> ERROR: Use #include <linux/errno.h> instead of <asm/errno.h>
>
> Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
> ---
> drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
> index cd31598..bd1555d 100644
> --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
> +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
> @@ -14,8 +14,8 @@
> #include <linux/module.h>
> #include <linux/init.h>
> #include <linux/slab.h>
> -#include <asm/string.h>
> -#include <asm/errno.h>
> +#include <linux/string.h>
> +#include <linux/errno.h>
>
> #include "ieee80211.h"
Doesn't apply :(
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Outreachy kernel] [PATCH v2 4/4] staging: rtl8192u: Fix quoted string split across lines.
2015-02-22 16:43 ` [PATCH v2 4/4] staging: rtl8192u: Fix quoted string split across lines Navya Sri Nizamkari
@ 2015-02-26 21:44 ` Greg KH
2015-02-27 15:16 ` Navya Sri Nizamkari
0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2015-02-26 21:44 UTC (permalink / raw)
To: Navya Sri Nizamkari; +Cc: outreachy-kernel
On Sun, Feb 22, 2015 at 10:13:08PM +0530, Navya Sri Nizamkari wrote:
> This patch fixes the checkpatch.pl warning:
>
> WARNING: quoted string split across lines
>
> Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
> ---
> drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
Also doesn't apply :(
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Outreachy kernel] [PATCH v2 4/4] staging: rtl8192u: Fix quoted string split across lines.
2015-02-26 21:44 ` [Outreachy kernel] " Greg KH
@ 2015-02-27 15:16 ` Navya Sri Nizamkari
2015-02-27 15:25 ` Greg KH
0 siblings, 1 reply; 10+ messages in thread
From: Navya Sri Nizamkari @ 2015-02-27 15:16 UTC (permalink / raw)
To: outreachy-kernel; +Cc: navyasri.tech
[-- Attachment #1.1: Type: text/plain, Size: 685 bytes --]
On Friday, February 27, 2015 at 3:14:52 AM UTC+5:30, gregkh wrote:
>
> On Sun, Feb 22, 2015 at 10:13:08PM +0530, Navya Sri Nizamkari wrote:
> > This patch fixes the checkpatch.pl warning:
> >
> > WARNING: quoted string split across lines
> >
> > Signed-off-by: Navya Sri Nizamkari <navyas...@gmail.com <javascript:>>
> > ---
> > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 12 ++++++------
> > 1 file changed, 6 insertions(+), 6 deletions(-)
>
> Also doesn't apply :(
>
Does it not apply because some has already sent in this patch or due to the
indentation being wrong? For the indentation I sent a newer version of the
patch if that's the problem.
Navya
[-- Attachment #1.2: Type: text/html, Size: 1063 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Outreachy kernel] [PATCH v2 4/4] staging: rtl8192u: Fix quoted string split across lines.
2015-02-27 15:16 ` Navya Sri Nizamkari
@ 2015-02-27 15:25 ` Greg KH
0 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2015-02-27 15:25 UTC (permalink / raw)
To: Navya Sri Nizamkari; +Cc: outreachy-kernel
On Fri, Feb 27, 2015 at 07:16:07AM -0800, Navya Sri Nizamkari wrote:
>
>
> On Friday, February 27, 2015 at 3:14:52 AM UTC+5:30, gregkh wrote:
>
> On Sun, Feb 22, 2015 at 10:13:08PM +0530, Navya Sri Nizamkari wrote:
> > This patch fixes the checkpatch.pl warning:
> >
> > WARNING: quoted string split across lines
> >
> > Signed-off-by: Navya Sri Nizamkari <navyas...@gmail.com>
> > ---
> > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 12 ++++++------
> > 1 file changed, 6 insertions(+), 6 deletions(-)
>
> Also doesn't apply :(
>
>
> Does it not apply because some has already sent in this patch or due to the
> indentation being wrong? For the indentation I sent a newer version of the
> patch if that's the problem.
I really don't remember why it didn't apply. I went through 700 patches
yesterday, they are all a blur...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-02-27 15:25 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-22 16:33 [PATCH v2 0/4] staging: rtl8192u: Fix warnings in ieee80211_crypt.c Navya Sri Nizamkari
2015-02-22 16:36 ` [PATCH v2 1/4] staging: rtl8192u: Convert from printk into netdev_dbg or pr_dbg Navya Sri Nizamkari
2015-02-26 21:43 ` [Outreachy kernel] " Greg KH
2015-02-22 16:41 ` [PATCH v2 2/4] staging: rtl8192u: Remove unnecessary comment Navya Sri Nizamkari
2015-02-22 16:42 ` [PATCH v2 3/4] staging: rtl8192u: Replace asm header files with linux ones Navya Sri Nizamkari
2015-02-26 21:44 ` [Outreachy kernel] " Greg KH
2015-02-22 16:43 ` [PATCH v2 4/4] staging: rtl8192u: Fix quoted string split across lines Navya Sri Nizamkari
2015-02-26 21:44 ` [Outreachy kernel] " Greg KH
2015-02-27 15:16 ` Navya Sri Nizamkari
2015-02-27 15:25 ` Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.