[patch] workqueue: fix drivers/connector/connector.c

2006-12-19 Thread Ingo Molnar
Subject: [patch] workqueue: fix drivers/connector/connector.c From: Ingo Molnar <[EMAIL PROTECTED]> commit c4028958b6ecad064b1a6303a6a5906d4fe48d73 did an incorrect conversion of the work-pending check in the connector device (which device is enabled in the -rt kernel rpm) - fix this by

Re: 2.6.20-rc1-git compilation error drivers/connector/connector.c:138: error: ?struct work_struct? has no member named ?management?

2006-12-19 Thread Alessandro Suardi
On 12/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: to: linux-kernel@vger.kernel.org cc: [EMAIL PROTECTED] 2.6.20-rc1-git compilation error drivers/connector/connector.c:138: error: ?struct work_struct? has no member named ?management? $ date Tue Dec 19 10:12:17 CST 2006 $ gi

2.6.20-rc1-git compilation error drivers/connector/connector.c:138: error: ?struct work_struct? has no member named ?management?

2006-12-19 Thread art
to: linux-kernel@vger.kernel.org cc: [EMAIL PROTECTED] 2.6.20-rc1-git compilation error drivers/connector/connector.c:138: error: ?struct work_struct? has no member named ?management? $ date Tue Dec 19 10:12:17 CST 2006 $ git pull Already up-to-date. $ make -j 8 CHK include/linux

Re: 2.6.20-rc1-git4: drivers/connector/connector.c doesn't build due to work_struct changes

2006-12-18 Thread Peter Zijlstra
drivers/connector/connector.c: In function 'cn_call_callback': > drivers/connector/connector.c:138: error: 'struct work_struct' has no > member named 'management' > drivers/connector/connector.c:138: error: 'struct work_struct' has no > member named 

2.6.20-rc1-git4: drivers/connector/connector.c doesn't build due to work_struct changes

2006-12-16 Thread Alessandro Suardi
CC [M] drivers/char/hangcheck-timer.o CC drivers/clocksource/acpi_pm.o LD drivers/clocksource/built-in.o CC [M] drivers/connector/cn_queue.o CC [M] drivers/connector/connector.o drivers/connector/connector.c: In function 'cn_call_callback': drivers/connector/conne

Re: connector.c

2005-04-01 Thread Paul Jackson
> I don't think it's entirely accidental that Python Hmmm ... cutting off a brace-war at the pass by escalating to a Python war -- good work ;). Please suppress any urge to reply ... -- I won't rest till it's the best ... Programmer, Linux Scalability

Re: connector.c

2005-04-01 Thread Matthias Urlichs
Hi, Tommy Reynolds schrub am Thu, 31 Mar 2005 20:41:35 -0600: > Uttered Andrew Morton <[EMAIL PROTECTED]>, spake thus: > >> >if (uskb) { >> >netlink_unicast(dev->nls, uskb, 0, 0); >> >} >> >> Unneeded {} > > However, for maintainability (and best practices) they are essent

Re: connector.c

2005-04-01 Thread Evgeniy Polyakov
On Fri, 2005-04-01 at 00:02 -0800, Andrew Morton wrote: > Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > > > On Thu, 2005-03-31 at 23:42 -0800, Andrew Morton wrote: > > > Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > > > > > > > > What happens if we expect a reply to our message but userspace

Re: connector.c

2005-04-01 Thread Andrew Morton
Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > On Thu, 2005-03-31 at 23:42 -0800, Andrew Morton wrote: > > Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > > > > > > What happens if we expect a reply to our message but userspace never > sends > > > > one? Does the kernel leak memory? Do othe

Re: connector.c

2005-03-31 Thread Evgeniy Polyakov
On Thu, 2005-03-31 at 23:42 -0800, Andrew Morton wrote: > Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > > > > What happens if we expect a reply to our message but userspace never sends > > > one? Does the kernel leak memory? Do other processes hang? > > > > It is only advice, one may easily sk

Re: connector.c

2005-03-31 Thread Andrew Morton
Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > > What happens if we expect a reply to our message but userspace never sends > > one? Does the kernel leak memory? Do other processes hang? > > It is only advice, one may easily skip seq/ack initialization. > I could remove it totally from the head

Re: connector.c

2005-03-31 Thread Evgeniy Polyakov
On Thu, 2005-03-31 at 17:30 -0800, Andrew Morton wrote: > Some belated comments... > > > > > > module_param(unit, int, 0); > > module_param(cn_idx, uint, 0); > > module_param(cn_val, uint, 0); > > MODULE_PARM_DESC needed, please. Yep. > > static DEFINE_SPINLOCK(notify_lock); > > static LIST_H

Re: connector.c

2005-03-31 Thread Tommy Reynolds
Uttered Andrew Morton <[EMAIL PROTECTED]>, spake thus: > > if (uskb) { > > netlink_unicast(dev->nls, uskb, 0, 0); > > } > > Unneeded {} Speaking strictly as a language lawyer, they are not needed. However, for maintainability (and best practices) they are essential. They mak

connector.c

2005-03-31 Thread Andrew Morton
Some belated comments... > > module_param(unit, int, 0); > module_param(cn_idx, uint, 0); > module_param(cn_val, uint, 0); MODULE_PARM_DESC needed, please. > static DEFINE_SPINLOCK(notify_lock); > static LIST_HEAD(notify_list); > > static struct cn_dev cdev; > > int cn_already_initialized =

Re: [PATCH 2.6.11-rc3-mm2] drivers/connector/connector.c: remove dead code

2005-02-14 Thread Guillaume Thouvenin
On Mon, 2005-02-14 at 13:01 +0100, Guillaume Thouvenin wrote: > This patch removes unreachable code in cn_netlink_send() function. The code can be reach via nlh = NLMSG_PUT(skb, 0, msg->seq, NLMSG_DONE, size - sizeof(*nlh)); So the patch is wrong Sorry for that Guillaume - To unsubscribe from

[PATCH 2.6.11-rc3-mm2] drivers/connector/connector.c: remove dead code

2005-02-14 Thread Guillaume Thouvenin
This patch removes unreachable code in cn_netlink_send() function. Signed-off-by: Guillaume Thouvenin <[EMAIL PROTECTED]> --- drivers/connector/connector.c.orig 2005-02-14 12:52:32.0 +0100 +++ drivers/connector/connector.c 2005-02-14 12:52:44.0 +0100 @@ -119,11

Re: [-mm patch] connector.c: make notify_lock static

2005-01-31 Thread Evgeniy Polyakov
t can be made static. > > > > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> > > > > --- linux-2.6.11-rc2-mm2-full/drivers/connector/connector.c.old 2005-01-31 > > 13:09:14.00000 +0100 > > +++ linux-2.6.11-rc2-mm2-full/drivers/connector/connector.c

Re: [-mm patch] connector.c: make notify_lock static

2005-01-31 Thread Dmitry Torokhov
t; --- linux-2.6.11-rc2-mm2-full/drivers/connector/connector.c.old 2005-01-31 > 13:09:14.0 +0100 > +++ linux-2.6.11-rc2-mm2-full/drivers/connector/connector.c 2005-01-31 > 13:09:28.0 +0100 > @@ -41,7 +41,7 @@ > module_param(cn_idx, uint, 0); > module_param(cn_val, u

Re: [-mm patch] connector.c: make notify_lock static

2005-01-31 Thread Evgeniy Polyakov
k <[EMAIL PROTECTED]> > --- linux-2.6.11-rc2-mm2-full/drivers/connector/connector.c.old > 2005-01-31 13:09:14.0 +0100 > +++ linux-2.6.11-rc2-mm2-full/drivers/connector/connector.c 2005-01-31 > 13:09:28.0 +0100 > @@ -41,7 +41,7 @@ > module_param(cn_idx

[-mm patch] connector.c: make notify_lock static

2005-01-31 Thread Adrian Bunk
.11-rc2-mm2-full/drivers/connector/connector.c 2005-01-31 13:09:28.0 +0100 @@ -41,7 +41,7 @@ module_param(cn_idx, uint, 0); module_param(cn_val, uint, 0); -spinlock_t notify_lock = SPIN_LOCK_UNLOCKED; +static spinlock_t notify_lock = SPIN_LOCK_UNLOCKED; static LIST_HEAD(notify_