All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] staging: rtl8723bs: Change coding style to (foo *bar)
@ 2017-09-09 17:13 Harsha Sharma
  2017-09-11 16:38 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Harsha Sharma @ 2017-09-09 17:13 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel, outreachy-kernel, Harsha Sharma

This coding style (foo *bar) is more common for the kernel code.
Change foo* bar to foo *bar.
Change foo * bar to foo *bar.
Change (foo*) to (foo *).

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
---
Change in v2:
 -Updated log message and subject
 
 drivers/staging/rtl8723bs/os_dep/os_intfs.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
index 0215899..a82804b 100644
--- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
@@ -142,11 +142,11 @@
 #endif
 module_param(rtw_qos_opt_enable, int, 0644);
 
-static char* ifname = "wlan%d";
+static char *ifname = "wlan%d";
 module_param(ifname, charp, 0644);
 MODULE_PARM_DESC(ifname, "The default name to allocate for first interface");
 
-char* rtw_initmac = NULL;  /*  temp mac address if users want to use instead of the mac address in Efuse */
+char *rtw_initmac = NULL;  /*  temp mac address if users want to use instead of the mac address in Efuse */
 
 module_param(rtw_initmac, charp, 0644);
 module_param(rtw_channel_plan, int, 0644);
@@ -460,7 +460,7 @@ u16 rtw_recv_select_queue(struct sk_buff *skb)
 
 }
 
-static int rtw_ndev_notifier_call(struct notifier_block * nb, unsigned long state, void *ptr)
+static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state, void *ptr)
 {
 	struct net_device *dev = netdev_notifier_info_to_dev(ptr);
 
@@ -623,7 +623,7 @@ void rtw_stop_drv_threads (struct adapter *padapter)
 static u8 rtw_init_default_value(struct adapter *padapter)
 {
 	u8 ret  = _SUCCESS;
-	struct registry_priv* pregistrypriv = &padapter->registrypriv;
+	struct registry_priv *pregistrypriv = &padapter->registrypriv;
 	struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
 	struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
 	struct security_priv *psecuritypriv = &padapter->securitypriv;
@@ -691,7 +691,7 @@ struct dvobj_priv *devobj_init(void)
 {
 	struct dvobj_priv *pdvobj = NULL;
 
-	if ((pdvobj = (struct dvobj_priv*)rtw_zmalloc(sizeof(*pdvobj))) == NULL)
+	if ((pdvobj = (struct dvobj_priv *)rtw_zmalloc(sizeof(*pdvobj))) == NULL)
 		return NULL;
 
 	mutex_init(&pdvobj->hw_init_mutex);
-- 
1.9.1



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

* Re: [PATCH v2] staging: rtl8723bs: Change coding style to (foo *bar)
  2017-09-09 17:13 [PATCH v2] staging: rtl8723bs: Change coding style to (foo *bar) Harsha Sharma
@ 2017-09-11 16:38 ` Greg KH
  2017-09-11 16:44   ` Harsha Sharma
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2017-09-11 16:38 UTC (permalink / raw)
  To: Harsha Sharma; +Cc: devel, linux-kernel, outreachy-kernel

On Sat, Sep 09, 2017 at 10:43:36PM +0530, Harsha Sharma wrote:
> This coding style (foo *bar) is more common for the kernel code.
> Change foo* bar to foo *bar.
> Change foo * bar to foo *bar.
> Change (foo*) to (foo *).
> 
> Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
> ---
> Change in v2:
>  -Updated log message and subject

Does not apply to my tree :(


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

* Re: [PATCH v2] staging: rtl8723bs: Change coding style to (foo *bar)
  2017-09-11 16:38 ` Greg KH
@ 2017-09-11 16:44   ` Harsha Sharma
  2017-09-11 16:49     ` [Outreachy kernel] " Greg KH
  2017-09-11 17:03     ` Julia Lawall
  0 siblings, 2 replies; 5+ messages in thread
From: Harsha Sharma @ 2017-09-11 16:44 UTC (permalink / raw)
  To: outreachy-kernel


[-- Attachment #1.1: Type: text/plain, Size: 590 bytes --]



On Monday, September 11, 2017 at 10:08:13 PM UTC+5:30, gregkh wrote:
>
> On Sat, Sep 09, 2017 at 10:43:36PM +0530, Harsha Sharma wrote: 
> > This coding style (foo *bar) is more common for the kernel code. 
> > Change foo* bar to foo *bar. 
> > Change foo * bar to foo *bar. 
> > Change (foo*) to (foo *). 
> > 
> > Signed-off-by: Harsha Sharma <harshash...@gmail.com <javascript:>> 
> > --- 
> > Change in v2: 
> >  -Updated log message and subject 
>
> Does not apply to my tree :( 
>
 
Do I need to make any changes in this patch ?
Thanks a lot for your time.

Regards,
Harsha Sharma 

[-- Attachment #1.2: Type: text/html, Size: 1062 bytes --]

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

* Re: [Outreachy kernel] Re: [PATCH v2] staging: rtl8723bs: Change coding style to (foo *bar)
  2017-09-11 16:44   ` Harsha Sharma
@ 2017-09-11 16:49     ` Greg KH
  2017-09-11 17:03     ` Julia Lawall
  1 sibling, 0 replies; 5+ messages in thread
From: Greg KH @ 2017-09-11 16:49 UTC (permalink / raw)
  To: Harsha Sharma; +Cc: outreachy-kernel

On Mon, Sep 11, 2017 at 09:44:41AM -0700, Harsha Sharma wrote:
> 
> 
> On Monday, September 11, 2017 at 10:08:13 PM UTC+5:30, gregkh wrote:
> 
>     On Sat, Sep 09, 2017 at 10:43:36PM +0530, Harsha Sharma wrote:
>     > This coding style (foo *bar) is more common for the kernel code.
>     > Change foo* bar to foo *bar.
>     > Change foo * bar to foo *bar.
>     > Change (foo*) to (foo *).
>     >
>     > Signed-off-by: Harsha Sharma <harshash...@gmail.com>
>     > ---
>     > Change in v2:
>     > �-Updated log message and subject
> 
>     Does not apply to my tree :(
> 
> �
> Do I need to make any changes in this patch ?

If you want it applied, yes, you do :)

Please rebase it against my staging-testing branch and resend it.

thanks,

greg k-h


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

* Re: [Outreachy kernel] Re: [PATCH v2] staging: rtl8723bs: Change coding style to (foo *bar)
  2017-09-11 16:44   ` Harsha Sharma
  2017-09-11 16:49     ` [Outreachy kernel] " Greg KH
@ 2017-09-11 17:03     ` Julia Lawall
  1 sibling, 0 replies; 5+ messages in thread
From: Julia Lawall @ 2017-09-11 17:03 UTC (permalink / raw)
  To: Harsha Sharma; +Cc: outreachy-kernel

[-- Attachment #1: Type: text/plain, Size: 909 bytes --]



On Mon, 11 Sep 2017, Harsha Sharma wrote:

>
>
> On Monday, September 11, 2017 at 10:08:13 PM UTC+5:30, gregkh wrote:
>       On Sat, Sep 09, 2017 at 10:43:36PM +0530, Harsha Sharma wrote:
>       > This coding style (foo *bar) is more common for the kernel
>       code.
>       > Change foo* bar to foo *bar.
>       > Change foo * bar to foo *bar.
>       > Change (foo*) to (foo *).
>       >
>       > Signed-off-by: Harsha Sharma <harshash...@gmail.com>
>       > ---
>       > Change in v2:
>       > ᅵ-Updated log message and subject
>
>       Does not apply to my tree :(
>
> ᅵ
> Do I need to make any changes in this patch ?
> Thanks a lot for your time.

You need to update your staging tree to the latest one, and then try to
reapply your patch to it.  Maybe the change has already been made by
someone else.  Or maybe some line that you have changed has been changed
by someone else.

julia

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

end of thread, other threads:[~2017-09-11 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-09 17:13 [PATCH v2] staging: rtl8723bs: Change coding style to (foo *bar) Harsha Sharma
2017-09-11 16:38 ` Greg KH
2017-09-11 16:44   ` Harsha Sharma
2017-09-11 16:49     ` [Outreachy kernel] " Greg KH
2017-09-11 17:03     ` Julia Lawall

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.