linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: Remove RUN_CONTEXT
@ 2020-11-13 21:27 Sebastian Andrzej Siewior
  2020-11-13 22:47 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2020-11-13 21:27 UTC (permalink / raw)
  To: linux-usb; +Cc: Greg Kroah-Hartman, Thomas Gleixner, Sebastian Andrzej Siewior

The last user of RUN_CONTEXT was removed in commit
   97c17beb3b668 ("[PATCH] ehci-hcd (1/2):  portability (2.4), tasklet,")

There are no users of RUN_CONTEXT, remove it.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 include/linux/usb/hcd.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index 3dbb42c637c14..96281cd50ff66 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -734,10 +734,6 @@ static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb,
 
 /* random stuff */
 
-#define	RUN_CONTEXT (in_irq() ? "in_irq" \
-		: (in_interrupt() ? "in_interrupt" : "can sleep"))
-
-
 /* This rwsem is for use only by the hub driver and ehci-hcd.
  * Nobody else should touch it.
  */
-- 
2.29.2


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

* Re: [PATCH] usb: Remove RUN_CONTEXT
  2020-11-13 21:27 [PATCH] usb: Remove RUN_CONTEXT Sebastian Andrzej Siewior
@ 2020-11-13 22:47 ` Greg Kroah-Hartman
  2020-11-14 10:08   ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2020-11-13 22:47 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior; +Cc: linux-usb, Thomas Gleixner

On Fri, Nov 13, 2020 at 10:27:04PM +0100, Sebastian Andrzej Siewior wrote:
> The last user of RUN_CONTEXT was removed in commit
>    97c17beb3b668 ("[PATCH] ehci-hcd (1/2):  portability (2.4), tasklet,")

I don't see that git commit id in Linus's tree, nor in my usb.git tree.
Where does it live?

thanks,

greg k-h

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

* Re: [PATCH] usb: Remove RUN_CONTEXT
  2020-11-13 22:47 ` Greg Kroah-Hartman
@ 2020-11-14 10:08   ` Sebastian Andrzej Siewior
  2020-11-14 10:21     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2020-11-14 10:08 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-usb, Thomas Gleixner

On 2020-11-13 23:47:33 [+0100], Greg Kroah-Hartman wrote:
> On Fri, Nov 13, 2020 at 10:27:04PM +0100, Sebastian Andrzej Siewior wrote:
> > The last user of RUN_CONTEXT was removed in commit
> >    97c17beb3b668 ("[PATCH] ehci-hcd (1/2):  portability (2.4), tasklet,")
> 
> I don't see that git commit id in Linus's tree, nor in my usb.git tree.
> Where does it live?

As a archaeologist I have the history trees linked in my tree. This is
from:
   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=97c17beb3b668c79ef5d056b3f687aa0be2d672f

> thanks,
> 
> greg k-h

Sebastian

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

* Re: [PATCH] usb: Remove RUN_CONTEXT
  2020-11-14 10:08   ` Sebastian Andrzej Siewior
@ 2020-11-14 10:21     ` Greg Kroah-Hartman
  0 siblings, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2020-11-14 10:21 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior; +Cc: linux-usb, Thomas Gleixner

On Sat, Nov 14, 2020 at 11:08:56AM +0100, Sebastian Andrzej Siewior wrote:
> On 2020-11-13 23:47:33 [+0100], Greg Kroah-Hartman wrote:
> > On Fri, Nov 13, 2020 at 10:27:04PM +0100, Sebastian Andrzej Siewior wrote:
> > > The last user of RUN_CONTEXT was removed in commit
> > >    97c17beb3b668 ("[PATCH] ehci-hcd (1/2):  portability (2.4), tasklet,")
> > 
> > I don't see that git commit id in Linus's tree, nor in my usb.git tree.
> > Where does it live?
> 
> As a archaeologist I have the history trees linked in my tree. This is
> from:
>    https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=97c17beb3b668c79ef5d056b3f687aa0be2d672f

Oh wow, didn't think to look back past 15 years :)

I'll go queue this up, thanks.

greg k-h

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

end of thread, other threads:[~2020-11-14 10:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-13 21:27 [PATCH] usb: Remove RUN_CONTEXT Sebastian Andrzej Siewior
2020-11-13 22:47 ` Greg Kroah-Hartman
2020-11-14 10:08   ` Sebastian Andrzej Siewior
2020-11-14 10:21     ` Greg Kroah-Hartman

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).