public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH-stable] serial: samsung: Bring back removed variable to fix compilation
@ 2017-05-18 12:31 Krzysztof Kozlowski
  2017-05-18 12:59 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2017-05-18 12:31 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, linux-serial, linux-kernel,
	stable
  Cc: Krzysztof Kozlowski

By mistake commit 500fcc08a32b ("serial: samsung: Add missing checks for
dma_map_single failure") removes a local variable which is still used by
code.  After backporting the commit to stable, compilation fails:

	drivers/tty/serial/samsung.c: In function ‘s3c24xx_serial_request_dma’:
	drivers/tty/serial/samsung.c:909:45: error: ‘flags’ undeclared (first use in this function)

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

---

Fix for stable-rc commit:
bc3ac2299c4873cdc7f9bf3c867c23e9714a036f
---
 drivers/tty/serial/samsung.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
index ca0bcd7fd61f..43c84c9bb904 100644
--- a/drivers/tty/serial/samsung.c
+++ b/drivers/tty/serial/samsung.c
@@ -859,6 +859,7 @@ static void s3c24xx_serial_break_ctl(struct uart_port *port, int break_state)
 static int s3c24xx_serial_request_dma(struct s3c24xx_uart_port *p)
 {
 	struct s3c24xx_uart_dma	*dma = p->dma;
+	unsigned long flags;
 	int ret;
 
 	/* Default slave configuration parameters */
-- 
2.7.4

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

* Re: [PATCH-stable] serial: samsung: Bring back removed variable to fix compilation
  2017-05-18 12:31 [PATCH-stable] serial: samsung: Bring back removed variable to fix compilation Krzysztof Kozlowski
@ 2017-05-18 12:59 ` Krzysztof Kozlowski
  2017-05-18 13:14   ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2017-05-18 12:59 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Greg Kroah-Hartman, Jiri Slaby, linux-serial, linux-kernel,
	stable

On Thu, May 18, 2017 at 2:31 PM, Krzysztof Kozlowski
<kozik.server@gmail.com> wrote:

I need to fixup the from field. It should be krzk@kernel.org.

Krzysztof


> By mistake commit 500fcc08a32b ("serial: samsung: Add missing checks for
> dma_map_single failure") removes a local variable which is still used by
> code.  After backporting the commit to stable, compilation fails:
>
>         drivers/tty/serial/samsung.c: In function ‘s3c24xx_serial_request_dma’:
>         drivers/tty/serial/samsung.c:909:45: error: ‘flags’ undeclared (first use in this function)
>
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
>
> ---
>
> Fix for stable-rc commit:
> bc3ac2299c4873cdc7f9bf3c867c23e9714a036f
> ---
>  drivers/tty/serial/samsung.c | 1 +
>  1 file changed, 1 insertion(+)

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

* Re: [PATCH-stable] serial: samsung: Bring back removed variable to fix compilation
  2017-05-18 12:59 ` Krzysztof Kozlowski
@ 2017-05-18 13:14   ` Greg Kroah-Hartman
  2017-05-18 13:16     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2017-05-18 13:14 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Krzysztof Kozlowski, Jiri Slaby, linux-serial, linux-kernel,
	stable

On Thu, May 18, 2017 at 02:59:32PM +0200, Krzysztof Kozlowski wrote:
> On Thu, May 18, 2017 at 2:31 PM, Krzysztof Kozlowski
> <kozik.server@gmail.com> wrote:
> 
> I need to fixup the from field. It should be krzk@kernel.org.

I've merged this with the original patch so nothing breaks...

thanks,

greg k-h

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

* Re: [PATCH-stable] serial: samsung: Bring back removed variable to fix compilation
  2017-05-18 13:14   ` Greg Kroah-Hartman
@ 2017-05-18 13:16     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2017-05-18 13:16 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Krzysztof Kozlowski, Jiri Slaby, linux-serial, linux-kernel,
	stable

On Thu, May 18, 2017 at 3:14 PM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Thu, May 18, 2017 at 02:59:32PM +0200, Krzysztof Kozlowski wrote:
>> On Thu, May 18, 2017 at 2:31 PM, Krzysztof Kozlowski
>> <kozik.server@gmail.com> wrote:
>>
>> I need to fixup the from field. It should be krzk@kernel.org.
>
> I've merged this with the original patch so nothing breaks...

Great, thanks!

Krzysztof

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

end of thread, other threads:[~2017-05-18 13:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-18 12:31 [PATCH-stable] serial: samsung: Bring back removed variable to fix compilation Krzysztof Kozlowski
2017-05-18 12:59 ` Krzysztof Kozlowski
2017-05-18 13:14   ` Greg Kroah-Hartman
2017-05-18 13:16     ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox