linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tty: xuartps: Fix build when SYSRQ is disabled
@ 2013-12-17 23:27 Mark Brown
  2013-12-17 23:47 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2013-12-17 23:27 UTC (permalink / raw)
  To: Soren Brinkmann, Greg Kroah-Hartman, Jiri Slaby
  Cc: linux-serial, linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

The sysrq field in struct uart_port is only defined when
SERIAL_CORE_CONSOLE or SUPPORT_SYSRQ are selected but the driver uses
the field unconditionally, causing build failures if they aren't (as
happens when doing an arm64 allmodconfig).  Make the usage conditional
as well.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 drivers/tty/serial/xilinx_uartps.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c
index e46e9f3f19b9..17de38064b2a 100644
--- a/drivers/tty/serial/xilinx_uartps.c
+++ b/drivers/tty/serial/xilinx_uartps.c
@@ -240,6 +240,7 @@ static irqreturn_t xuartps_isr(int irq, void *dev_id)
 					continue;
 			}
 
+#if defined(CONFIG_SERIAL_CORE_CONSOLE) || defined(SUPPORT_SYSRQ)
 			/*
 			 * uart_handle_sysrq_char() doesn't work if
 			 * spinlocked, for some reason
@@ -253,6 +254,7 @@ static irqreturn_t xuartps_isr(int irq, void *dev_id)
 				}
 				spin_lock(&port->lock);
 			}
+#endif
 
 			port->icount.rx++;
 
-- 
1.8.5.1


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

* Re: [PATCH] tty: xuartps: Fix build when SYSRQ is disabled
  2013-12-17 23:27 [PATCH] tty: xuartps: Fix build when SYSRQ is disabled Mark Brown
@ 2013-12-17 23:47 ` Greg Kroah-Hartman
  2013-12-17 23:53   ` Sören Brinkmann
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2013-12-17 23:47 UTC (permalink / raw)
  To: Mark Brown
  Cc: Soren Brinkmann, Jiri Slaby, linux-serial, linaro-kernel,
	Mark Brown

On Tue, Dec 17, 2013 at 11:27:38PM +0000, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
> 
> The sysrq field in struct uart_port is only defined when
> SERIAL_CORE_CONSOLE or SUPPORT_SYSRQ are selected but the driver uses
> the field unconditionally, causing build failures if they aren't (as
> happens when doing an arm64 allmodconfig).  Make the usage conditional
> as well.
> 
> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
>  drivers/tty/serial/xilinx_uartps.c | 2 ++
>  1 file changed, 2 insertions(+)

Is this a 3.13-final fix, or can it wait for 3.14?

thanks,

greg k-h

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

* Re: [PATCH] tty: xuartps: Fix build when SYSRQ is disabled
  2013-12-17 23:47 ` Greg Kroah-Hartman
@ 2013-12-17 23:53   ` Sören Brinkmann
  2013-12-18  0:01     ` Greg Kroah-Hartman
  2013-12-18  0:02     ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Sören Brinkmann @ 2013-12-17 23:53 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Mark Brown, Jiri Slaby, linux-serial, linaro-kernel, Mark Brown

Hi Greg, Mark,

On Tue, Dec 17, 2013 at 03:47:44PM -0800, Greg Kroah-Hartman wrote:
> On Tue, Dec 17, 2013 at 11:27:38PM +0000, Mark Brown wrote:
> > From: Mark Brown <broonie@linaro.org>
> > 
> > The sysrq field in struct uart_port is only defined when
> > SERIAL_CORE_CONSOLE or SUPPORT_SYSRQ are selected but the driver uses
> > the field unconditionally, causing build failures if they aren't (as
> > happens when doing an arm64 allmodconfig).  Make the usage conditional
> > as well.
> > 
> > Signed-off-by: Mark Brown <broonie@linaro.org>
> > ---
> >  drivers/tty/serial/xilinx_uartps.c | 2 ++
> >  1 file changed, 2 insertions(+)
> 
> Is this a 3.13-final fix, or can it wait for 3.14?

I sent out pretty much the same fix a week ago:
https://lkml.org/lkml/2013/12/2/694

It seems to fix a broken build for certain configurations. Hence, I'd
say it's a fix for 3.13.

	Sören


--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] tty: xuartps: Fix build when SYSRQ is disabled
  2013-12-17 23:53   ` Sören Brinkmann
@ 2013-12-18  0:01     ` Greg Kroah-Hartman
  2013-12-18  0:02     ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2013-12-18  0:01 UTC (permalink / raw)
  To: S??ren Brinkmann
  Cc: Mark Brown, Jiri Slaby, linux-serial, linaro-kernel, Mark Brown

On Tue, Dec 17, 2013 at 03:53:14PM -0800, S??ren Brinkmann wrote:
> Hi Greg, Mark,
> 
> On Tue, Dec 17, 2013 at 03:47:44PM -0800, Greg Kroah-Hartman wrote:
> > On Tue, Dec 17, 2013 at 11:27:38PM +0000, Mark Brown wrote:
> > > From: Mark Brown <broonie@linaro.org>
> > > 
> > > The sysrq field in struct uart_port is only defined when
> > > SERIAL_CORE_CONSOLE or SUPPORT_SYSRQ are selected but the driver uses
> > > the field unconditionally, causing build failures if they aren't (as
> > > happens when doing an arm64 allmodconfig).  Make the usage conditional
> > > as well.
> > > 
> > > Signed-off-by: Mark Brown <broonie@linaro.org>
> > > ---
> > >  drivers/tty/serial/xilinx_uartps.c | 2 ++
> > >  1 file changed, 2 insertions(+)
> > 
> > Is this a 3.13-final fix, or can it wait for 3.14?
> 
> I sent out pretty much the same fix a week ago:
> https://lkml.org/lkml/2013/12/2/694

ah, sorry, missed that one somehow.  I'll go queue this up...

greg k-h

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

* Re: [PATCH] tty: xuartps: Fix build when SYSRQ is disabled
  2013-12-17 23:53   ` Sören Brinkmann
  2013-12-18  0:01     ` Greg Kroah-Hartman
@ 2013-12-18  0:02     ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2013-12-18  0:02 UTC (permalink / raw)
  To: Sören Brinkmann
  Cc: Greg Kroah-Hartman, Jiri Slaby, linux-serial, linaro-kernel

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

On Tue, Dec 17, 2013 at 03:53:14PM -0800, Sören Brinkmann wrote:
> On Tue, Dec 17, 2013 at 03:47:44PM -0800, Greg Kroah-Hartman wrote:
> > On Tue, Dec 17, 2013 at 11:27:38PM +0000, Mark Brown wrote:

> > > The sysrq field in struct uart_port is only defined when
> > > SERIAL_CORE_CONSOLE or SUPPORT_SYSRQ are selected but the driver uses
> > > the field unconditionally, causing build failures if they aren't (as
> > > happens when doing an arm64 allmodconfig).  Make the usage conditional
> > > as well.

> > Is this a 3.13-final fix, or can it wait for 3.14?

> I sent out pretty much the same fix a week ago:
> https://lkml.org/lkml/2013/12/2/694

> It seems to fix a broken build for certain configurations. Hence, I'd
> say it's a fix for 3.13.

Yeah, it's a definite build fail with an obvious fix.  You do have to go
looking for the issue and there's a simple workaround so it's not super
critical but it's definitely -final material until very late in the
cycle.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2013-12-18  0:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 23:27 [PATCH] tty: xuartps: Fix build when SYSRQ is disabled Mark Brown
2013-12-17 23:47 ` Greg Kroah-Hartman
2013-12-17 23:53   ` Sören Brinkmann
2013-12-18  0:01     ` Greg Kroah-Hartman
2013-12-18  0:02     ` Mark Brown

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