Skip to contentSkip to conversation

serial: sc16is7xx: depend on I2C

PATCH In review [email protected] 4 participants 7 messages Apr 25, 2014 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 serial: sc16is7xx: depend on I2C

From: Jon Ringle <[email protected]>

---
 drivers/tty/serial/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/Kconfig +1 -0
index c3e2b32..64c5659 100644
@@ -1180,6 +1180,7 @@ config SERIAL_SCCNXP_CONSOLE
 
 config SERIAL_SC16IS7XX
 	tristate "SC16IS7xx serial support"
+	depends on I2C
 	select SERIAL_CORE
 	select REGMAP_I2C if I2C
 	help
Signature · 1 line
1.8.5.4
#1 lore raw

PATCH 2/2 serial: sc16is7xx: fix implicit decl of func copy_{to,from}_user

From: Jon Ringle <[email protected]>

Fix by including linux/uaccess.h:

drivers/tty/serial/sc16is7xx.c: In function 'sc16is7xx_ioctl':

Quoted 2 lines
Quoted 2 lines

drivers/tty/serial/sc16is7xx.c:861:3: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration] drivers/tty/serial/sc16is7xx.c:867:3: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]

---
 drivers/tty/serial/sc16is7xx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/sc16is7xx.c +1 -0
index ed139f5..7206a64 100644
@@ -25,6 +25,7 @@
 #include <linux/serial.h>
 #include <linux/tty.h>
 #include <linux/tty_flip.h>
+#include <linux/uaccess.h>
 
 #define SC16IS7XX_NAME			"sc16is7xx"
 
Signature · 1 line
1.8.5.4
maintainer
#2 lore raw
In reply to [email protected]
Quoted 21 lines · On Fri, Apr 25, 2014 at 03:53:09PM -0400, [email protected] wrote:

From: Jon Ringle <[email protected]>

---
 drivers/tty/serial/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/Kconfig +1 -0
index c3e2b32..64c5659 100644
@@ -1180,6 +1180,7 @@ config SERIAL_SCCNXP_CONSOLE
 
 config SERIAL_SC16IS7XX
 	tristate "SC16IS7xx serial support"
+	depends on I2C
 	select SERIAL_CORE
 	select REGMAP_I2C if I2C
 	help
Signature · 1 line
1.8.5.4

Better, but I still have the build warnings :(

#3 lore raw

Fri, 25 Apr 2014 13:23:15 -0700 от Greg KH <[email protected]>:

Quoted 14 lines · On Fri, Apr 25, 2014 at 03:53:09PM -0400, [email protected] wrote:
Quoted 13 lines

From: Jon Ringle <[email protected]>

---
 drivers/tty/serial/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/Kconfig +0 -0
index c3e2b32..64c5659 100644
@@ -1180,6 +1180,7 @@ config SERIAL_SCCNXP_CONSOLE
 
Quoted 10 lines
Quoted 8 lines
drivers/tty/serial/Kconfig +1 -0
 config SERIAL_SC16IS7XX
 	tristate "SC16IS7xx serial support"
+	depends on I2C
 	select SERIAL_CORE
 	select REGMAP_I2C if I2C
 	help
Signature · 1 line
1.8.5.4

Better, but I still have the build warnings :(

I hope not same as before?

---

maintainer
#4 lore raw
Quoted 26 lines · Alexander Shiyan

Fri, 25 Apr 2014 13:23:15 -0700 от Greg KH <[email protected]>:

Quoted 14 lines · On Fri, Apr 25, 2014 at 03:53:09PM -0400, [email protected] wrote:
Quoted 13 lines

From: Jon Ringle <[email protected]>

---
 drivers/tty/serial/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/Kconfig +0 -0
index c3e2b32..64c5659 100644
@@ -1180,6 +1180,7 @@ config SERIAL_SCCNXP_CONSOLE
 
Quoted 10 lines
Quoted 8 lines
drivers/tty/serial/Kconfig +1 -0
 config SERIAL_SC16IS7XX
 	tristate "SC16IS7xx serial support"
+	depends on I2C
 	select SERIAL_CORE
 	select REGMAP_I2C if I2C
 	help
Signature · 1 line
1.8.5.4

Better, but I still have the build warnings :(

Quoted 1 line

I hope not same as before?

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

#5 lore raw

Fri, 25 Apr 2014 13:35:28 -0700 от Greg KH <[email protected]>:

Quoted 27 lines · Alexander Shiyan
Quoted 26 lines

Fri, 25 Apr 2014 13:23:15 -0700 от Greg KH <[email protected]>:

Quoted 24 lines · On Fri, Apr 25, 2014 at 03:53:09PM -0400, [email protected] wrote:
Quoted 21 lines

From: Jon Ringle <[email protected]>

---
 drivers/tty/serial/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/Kconfig +1 -0
index c3e2b32..64c5659 100644
@@ -1180,6 +1180,7 @@ config SERIAL_SCCNXP_CONSOLE
 
 config SERIAL_SC16IS7XX
 	tristate "SC16IS7xx serial support"
+	depends on I2C
 	select SERIAL_CORE
 	select REGMAP_I2C if I2C
 	help
Signature · 1 line
1.8.5.4

Better, but I still have the build warnings :(

Quoted 3 lines
Quoted 1 line

I hope not same as before?

Exactly the same.

Hmm...

In the source:
#ifdef CONFIG_REGMAP_I2C
Should be of course #ifdef CONFIG_I2C
But this should not provide such warnings...

---

#6 lore raw
Quoted 30 lines · Alexander Shiyan

Fri, 25 Apr 2014 13:35:28 -0700 от Greg KH <[email protected]>:

Quoted 29 lines · Alexander Shiyan
Quoted 27 lines

Fri, 25 Apr 2014 13:23:15 -0700 от Greg KH <[email protected]>:

Quoted 14 lines · On Fri, Apr 25, 2014 at 03:53:09PM -0400, [email protected] wrote:
Quoted 13 lines

From: Jon Ringle <[email protected]>

---
 drivers/tty/serial/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/Kconfig +0 -0
index c3e2b32..64c5659 100644
@@ -1180,6 +1180,7 @@ config SERIAL_SCCNXP_CONSOLE
 
Quoted 10 lines
Quoted 8 lines
drivers/tty/serial/Kconfig +1 -0
 config SERIAL_SC16IS7XX
 	tristate "SC16IS7xx serial support"
+	depends on I2C
 	select SERIAL_CORE
 	select REGMAP_I2C if I2C
 	help
Signature · 1 line
1.8.5.4

Better, but I still have the build warnings :(

I hope not same as before?

Quoted 8 lines
Quoted 1 line

Exactly the same.

Hmm...

In the source:
#ifdef CONFIG_REGMAP_I2C
Should be of course #ifdef CONFIG_I2C
But this should not provide such warnings...

Can I see the warnings and .config file that causes them?

Signature · 1 line
~Randy