netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] obsolete config in kernel source (HSO_AUTOPM)
@ 2010-02-05 13:39 Christoph Egger
  2010-02-05 14:37 ` Paulius Zaleckas
  2010-02-05 14:38 ` Paulius Zaleckas
  0 siblings, 2 replies; 4+ messages in thread
From: Christoph Egger @ 2010-02-05 13:39 UTC (permalink / raw)
  To: Jan Dumon, Greg Kroah-Hartman, David S. Miller, Stephen Hemminger,
	Paulius Zaleckas <paulius.zal
  Cc: vamos

Hi all!

	As part of the VAMOS[0] research project at the University of
Erlangen we're checking referential integrity between kernel KConfig
options and in-code Conditional blocks.

	This is just a one-liner commented out unconditionally (due to
the config not existing) and being like this for virtually ever so I'm
suggesting to remove it from the kernel tree.

	Please keep me informed of this patch getting confirmed /
merged so we can keep track of it.

Regards

	Christoph Egger

[0] http://vamos1.informatik.uni-erlangen.de/

----
>From 4d76c063b34cffd7b0f175e328f0878f262e6af2 Mon Sep 17 00:00:00 2001
From: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de>
Date: Fri, 5 Feb 2010 13:46:21 +0100
Subject: [PATCH] Remove unreferenced HSO_AUTOPM

CONFIG_HSO_AUTOPM is set by KConfig / set in the Kernel source,
makefiles and won't be ever set this way, therefor simply removing the
protected code.

Signed-off-by: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de>
---
 drivers/net/usb/hso.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index 6895f15..be0cc99 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -1155,9 +1155,6 @@ static void _hso_serial_set_termios(struct tty_struct *tty,
 static void hso_resubmit_rx_bulk_urb(struct hso_serial *serial, struct urb *urb)
 {
 	int result;
-#ifdef CONFIG_HSO_AUTOPM
-	usb_mark_last_busy(urb->dev);
-#endif
 	/* We are done with this URB, resubmit it. Prep the USB to wait for
 	 * another frame */
 	usb_fill_bulk_urb(urb, serial->parent->usb,
-- 
1.6.3.3




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

* Re: [PATCH] obsolete config in kernel source (HSO_AUTOPM)
  2010-02-05 13:39 [PATCH] obsolete config in kernel source (HSO_AUTOPM) Christoph Egger
@ 2010-02-05 14:37 ` Paulius Zaleckas
  2010-02-05 14:38 ` Paulius Zaleckas
  1 sibling, 0 replies; 4+ messages in thread
From: Paulius Zaleckas @ 2010-02-05 14:37 UTC (permalink / raw)
  To: netdev
  Cc: Jan Dumon, Greg Kroah-Hartman, David S. Miller, Stephen Hemminger,
	"Paulius Zaleckas"

On 02/05/2010 03:39 PM, Christoph Egger wrote:
> Hi all!
>
> 	As part of the VAMOS[0] research project at the University of
> Erlangen we're checking referential integrity between kernel KConfig
> options and in-code Conditional blocks.
>
> 	This is just a one-liner commented out unconditionally (due to
> the config not existing) and being like this for virtually ever so I'm
> suggesting to remove it from the kernel tree.
>
> 	Please keep me informed of this patch getting confirmed /
> merged so we can keep track of it.
>
> Regards
>
> 	Christoph Egger
>
> [0] http://vamos1.informatik.uni-erlangen.de/
>
> ----
>  From 4d76c063b34cffd7b0f175e328f0878f262e6af2 Mon Sep 17 00:00:00 2001
> From: Christoph Egger<siccegge@stud.informatik.uni-erlangen.de>
> Date: Fri, 5 Feb 2010 13:46:21 +0100
> Subject: [PATCH] Remove unreferenced HSO_AUTOPM
>
> CONFIG_HSO_AUTOPM is set by KConfig / set in the Kernel source,
> makefiles and won't be ever set this way, therefor simply removing the
> protected code.
>
> Signed-off-by: Christoph Egger<siccegge@stud.informatik.uni-erlangen.de>
> ---
>   drivers/net/usb/hso.c |    3 ---
>   1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
> index 6895f15..be0cc99 100644
> --- a/drivers/net/usb/hso.c
> +++ b/drivers/net/usb/hso.c
> @@ -1155,9 +1155,6 @@ static void _hso_serial_set_termios(struct tty_struct *tty,
>   static void hso_resubmit_rx_bulk_urb(struct hso_serial *serial, struct urb *urb)
>   {
>   	int result;
> -#ifdef CONFIG_HSO_AUTOPM
> -	usb_mark_last_busy(urb->dev);
> -#endif

Acctually this is bug. usb_mark_last_busy() should be called here.
Can you resend this patch by just removing #ifdef and #endif and
leaving usb_mark_last_busy()?

>   	/* We are done with this URB, resubmit it. Prep the USB to wait for
>   	 * another frame */
>   	usb_fill_bulk_urb(urb, serial->parent->usb,



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

* Re: [PATCH] obsolete config in kernel source (HSO_AUTOPM)
  2010-02-05 13:39 [PATCH] obsolete config in kernel source (HSO_AUTOPM) Christoph Egger
  2010-02-05 14:37 ` Paulius Zaleckas
@ 2010-02-05 14:38 ` Paulius Zaleckas
  2010-02-05 15:14   ` Christoph Egger
  1 sibling, 1 reply; 4+ messages in thread
From: Paulius Zaleckas @ 2010-02-05 14:38 UTC (permalink / raw)
  To: Christoph Egger
  Cc: Jan Dumon, Greg Kroah-Hartman, David S. Miller, Stephen Hemminger,
	netdev

On 02/05/2010 03:39 PM, Christoph Egger wrote:
> Hi all!
>
> 	As part of the VAMOS[0] research project at the University of
> Erlangen we're checking referential integrity between kernel KConfig
> options and in-code Conditional blocks.
>
> 	This is just a one-liner commented out unconditionally (due to
> the config not existing) and being like this for virtually ever so I'm
> suggesting to remove it from the kernel tree.
>
> 	Please keep me informed of this patch getting confirmed /
> merged so we can keep track of it.
>
> Regards
>
> 	Christoph Egger
>
> [0] http://vamos1.informatik.uni-erlangen.de/
>
> ----
>  From 4d76c063b34cffd7b0f175e328f0878f262e6af2 Mon Sep 17 00:00:00 2001
> From: Christoph Egger<siccegge@stud.informatik.uni-erlangen.de>
> Date: Fri, 5 Feb 2010 13:46:21 +0100
> Subject: [PATCH] Remove unreferenced HSO_AUTOPM
>
> CONFIG_HSO_AUTOPM is set by KConfig / set in the Kernel source,
> makefiles and won't be ever set this way, therefor simply removing the
> protected code.
>
> Signed-off-by: Christoph Egger<siccegge@stud.informatik.uni-erlangen.de>
> ---
>   drivers/net/usb/hso.c |    3 ---
>   1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
> index 6895f15..be0cc99 100644
> --- a/drivers/net/usb/hso.c
> +++ b/drivers/net/usb/hso.c
> @@ -1155,9 +1155,6 @@ static void _hso_serial_set_termios(struct tty_struct *tty,
>   static void hso_resubmit_rx_bulk_urb(struct hso_serial *serial, struct urb *urb)
>   {
>   	int result;
> -#ifdef CONFIG_HSO_AUTOPM
> -	usb_mark_last_busy(urb->dev);
> -#endif

Acctually this is bug. usb_mark_last_busy() should be called here.
Can you resend this patch by just removing #ifdef and #endif and
leaving usb_mark_last_busy()?

>   	/* We are done with this URB, resubmit it. Prep the USB to wait for
>   	 * another frame */
>   	usb_fill_bulk_urb(urb, serial->parent->usb,


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

* Re: [PATCH] obsolete config in kernel source (HSO_AUTOPM)
  2010-02-05 14:38 ` Paulius Zaleckas
@ 2010-02-05 15:14   ` Christoph Egger
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Egger @ 2010-02-05 15:14 UTC (permalink / raw)
  To: Paulius Zaleckas
  Cc: Jan Dumon, Greg Kroah-Hartman, David S. Miller, Stephen Hemminger,
	netdev

On Fri, Feb 05, 2010 at 04:38:48PM +0200, Paulius Zaleckas wrote:
> On 02/05/2010 03:39 PM, Christoph Egger wrote:
> >Hi all!
> >
> >	As part of the VAMOS[0] research project at the University of
> >Erlangen we're checking referential integrity between kernel KConfig
> >options and in-code Conditional blocks.
> >
> >	This is just a one-liner commented out unconditionally (due to
> >the config not existing) and being like this for virtually ever so I'm
> >suggesting to remove it from the kernel tree.
> >
> >	Please keep me informed of this patch getting confirmed /
> >merged so we can keep track of it.
> >
> >diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
> >index 6895f15..be0cc99 100644
> >--- a/drivers/net/usb/hso.c
> >+++ b/drivers/net/usb/hso.c
> >@@ -1155,9 +1155,6 @@ static void _hso_serial_set_termios(struct tty_struct *tty,
> >  static void hso_resubmit_rx_bulk_urb(struct hso_serial *serial, struct urb *urb)
> >  {
> >  	int result;
> >-#ifdef CONFIG_HSO_AUTOPM
> >-	usb_mark_last_busy(urb->dev);
> >-#endif
> 
> Acctually this is bug. usb_mark_last_busy() should be called here.
> Can you resend this patch by just removing #ifdef and #endif and
> leaving usb_mark_last_busy()?

OK here comes the updated patch

-----
>From f9797bb502566cd9e4db8b1bb7bb213f7f1d64ed Mon Sep 17 00:00:00 2001
From: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de>
Date: Fri, 5 Feb 2010 16:10:29 +0100
Subject: [PATCH] Remove unreferenced HSO_AUTOPM

CONFIG_HSO_AUTOPM is not set by KConfig / set in the Kernel source,
makefiles and won't be ever set this way. However the unreachable code
is actually needed as reported by Paulius Zaleckas so just removing
the checks.

Signed-off-by: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de>
---
 drivers/net/usb/hso.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index 6895f15..de466ee 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -1155,9 +1155,7 @@ static void _hso_serial_set_termios(struct tty_struct *tty,
 static void hso_resubmit_rx_bulk_urb(struct hso_serial *serial, struct urb *urb)
 {
 	int result;
-#ifdef CONFIG_HSO_AUTOPM
 	usb_mark_last_busy(urb->dev);
-#endif
 	/* We are done with this URB, resubmit it. Prep the USB to wait for
 	 * another frame */
 	usb_fill_bulk_urb(urb, serial->parent->usb,
-- 
1.6.3.3



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

end of thread, other threads:[~2010-02-06 14:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05 13:39 [PATCH] obsolete config in kernel source (HSO_AUTOPM) Christoph Egger
2010-02-05 14:37 ` Paulius Zaleckas
2010-02-05 14:38 ` Paulius Zaleckas
2010-02-05 15:14   ` Christoph Egger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).