Skip to contentSkip to conversation

serial: samsung: Bring back removed variable to fix compilation

PATCH-stable Krzysztof Kozlowski 3 participants 4 messages May 18, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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)

---

Fix for stable-rc commit:
bc3ac2299c4873cdc7f9bf3c867c23e9714a036f

---
 drivers/tty/serial/samsung.c | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/samsung.c +1 -0
index ca0bcd7fd61f..43c84c9bb904 100644
@@ -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 */
Signature · 1 line
2.7.4
#1 lore raw

On Thu, May 18, 2017 at 2:31 PM, Krzysztof Kozlowski <[email protected]> wrote:

I need to fixup the from field. It should be [email protected].

Krzysztof

Quoted 16 lines

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)

---

Fix for stable-rc commit:
bc3ac2299c4873cdc7f9bf3c867c23e9714a036f

---
 drivers/tty/serial/samsung.c | 1 +
 1 file changed, 1 insertion(+)
#2 lore raw
Quoted 4 lines · Krzysztof Kozlowski

On Thu, May 18, 2017 at 2:31 PM, Krzysztof Kozlowski <[email protected]> wrote:

I need to fixup the from field. It should be [email protected].

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

thanks,

greg k-h

#3 lore raw
Quoted 7 lines · Greg Kroah-Hartman
Quoted 4 lines · Krzysztof Kozlowski

On Thu, May 18, 2017 at 2:31 PM, Krzysztof Kozlowski <[email protected]> wrote:

I need to fixup the from field. It should be [email protected].

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

Great, thanks!

Krzysztof