All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] staging: most: use DEFINE_MUTEX (and mutex_init() had been too late)
@ 2020-12-23 14:11 ` Zheng Yongjun
  0 siblings, 0 replies; 4+ messages in thread
From: Zheng Yongjun @ 2020-12-23 14:11 UTC (permalink / raw)
  To: devel, linux-kernel; +Cc: Zheng Yongjun

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
 drivers/staging/most/net/net.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c
index b6fecb06a0e6..f125bb6da406 100644
--- a/drivers/staging/most/net/net.c
+++ b/drivers/staging/most/net/net.c
@@ -68,7 +68,7 @@ struct net_dev_context {
 };
 
 static struct list_head net_devices = LIST_HEAD_INIT(net_devices);
-static struct mutex probe_disc_mt; /* ch->linked = true, most_nd_open */
+static DEFINE_MUTEX(probe_disc_mt); /* ch->linked = true, most_nd_open */
 static DEFINE_SPINLOCK(list_lock); /* list_head, ch->linked = false, dev_hold */
 static struct most_component comp;
 
@@ -520,7 +520,6 @@ static int __init most_net_init(void)
 {
 	int err;
 
-	mutex_init(&probe_disc_mt);
 	err = most_register_component(&comp);
 	if (err)
 		return err;
-- 
2.22.0


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

* [PATCH -next] staging: most: use DEFINE_MUTEX (and mutex_init() had been too late)
@ 2020-12-23 14:11 ` Zheng Yongjun
  0 siblings, 0 replies; 4+ messages in thread
From: Zheng Yongjun @ 2020-12-23 14:11 UTC (permalink / raw)
  To: devel, linux-kernel; +Cc: Zheng Yongjun

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
 drivers/staging/most/net/net.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c
index b6fecb06a0e6..f125bb6da406 100644
--- a/drivers/staging/most/net/net.c
+++ b/drivers/staging/most/net/net.c
@@ -68,7 +68,7 @@ struct net_dev_context {
 };
 
 static struct list_head net_devices = LIST_HEAD_INIT(net_devices);
-static struct mutex probe_disc_mt; /* ch->linked = true, most_nd_open */
+static DEFINE_MUTEX(probe_disc_mt); /* ch->linked = true, most_nd_open */
 static DEFINE_SPINLOCK(list_lock); /* list_head, ch->linked = false, dev_hold */
 static struct most_component comp;
 
@@ -520,7 +520,6 @@ static int __init most_net_init(void)
 {
 	int err;
 
-	mutex_init(&probe_disc_mt);
 	err = most_register_component(&comp);
 	if (err)
 		return err;
-- 
2.22.0

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

* Re: [PATCH -next] staging: most: use DEFINE_MUTEX (and mutex_init() had been too late)
  2020-12-23 14:11 ` Zheng Yongjun
@ 2020-12-23 14:18   ` Greg KH
  -1 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2020-12-23 14:18 UTC (permalink / raw)
  To: Zheng Yongjun; +Cc: devel, linux-kernel

On Wed, Dec 23, 2020 at 10:11:38PM +0800, Zheng Yongjun wrote:
> Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
> ---
>  drivers/staging/most/net/net.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Again, no changelog text?

And why are you not cc:ing the developers and maintainers of the code
you are sending patches out for?  Please always use
scripts/get_maintainer.pl.

greg k-h

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

* Re: [PATCH -next] staging: most: use DEFINE_MUTEX (and mutex_init() had been too late)
@ 2020-12-23 14:18   ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2020-12-23 14:18 UTC (permalink / raw)
  To: Zheng Yongjun; +Cc: devel, linux-kernel

On Wed, Dec 23, 2020 at 10:11:38PM +0800, Zheng Yongjun wrote:
> Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
> ---
>  drivers/staging/most/net/net.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Again, no changelog text?

And why are you not cc:ing the developers and maintainers of the code
you are sending patches out for?  Please always use
scripts/get_maintainer.pl.

greg k-h
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

end of thread, other threads:[~2020-12-23 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 14:11 [PATCH -next] staging: most: use DEFINE_MUTEX (and mutex_init() had been too late) Zheng Yongjun
2020-12-23 14:11 ` Zheng Yongjun
2020-12-23 14:18 ` Greg KH
2020-12-23 14:18   ` 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.