linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] tty/serial: atmel: Include module.h to fix build failure
@ 2016-01-09 18:15 Guenter Roeck
  2016-01-09 18:29 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 18+ messages in thread
From: Guenter Roeck @ 2016-01-09 18:15 UTC (permalink / raw)
  To: Nicolas Ferre
  Cc: Greg Kroah-Hartman, linux-serial, linux-kernel, Guenter Roeck,
	Paul Gortmaker

If serial/atmel_serial.c is compiled with devicetree enabled, the
following build error is observed.

drivers/tty/serial/atmel_serial.c:192:1: warning:
	data definition has no type or storage class
drivers/tty/serial/atmel_serial.c:192:1: error:
	type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE'
drivers/tty/serial/atmel_serial.c:192:1: warning:
	parameter names (without types) in function declaration

MODULE_DEVICE_TABLE is used to specify devicetree compatibilities.

Fixes: c39dfebc7798 ("drivers/tty/serial: make serial/atmel_serial.c explicitly non-modular")
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 drivers/tty/serial/atmel_serial.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 50e785a0ea73..71c385b09db8 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -22,6 +22,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
+#include <linux/module.h>
 #include <linux/tty.h>
 #include <linux/ioport.h>
 #include <linux/slab.h>
-- 
2.1.4

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

end of thread, other threads:[~2016-01-20  6:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-09 18:15 [PATCH -next] tty/serial: atmel: Include module.h to fix build failure Guenter Roeck
2016-01-09 18:29 ` Greg Kroah-Hartman
2016-01-11  8:35   ` Sudip Mukherjee
2016-01-11 11:11     ` Guenter Roeck
2016-01-11 11:34       ` Sudip Mukherjee
2016-01-11 15:08       ` Paul Gortmaker
2016-01-13  5:35         ` Guenter Roeck
2016-01-13  5:44           ` Joe Perches
2016-01-13 10:32             ` Sudip Mukherjee
2016-01-13 13:06               ` Guenter Roeck
2016-01-13 15:06               ` Joe Perches
2016-01-18 16:36               ` Guenter Roeck
2016-01-18 17:04                 ` Sudip Mukherjee
2016-01-18 17:17                   ` Guenter Roeck
2016-01-20  5:51                     ` Sudip Mukherjee
2016-01-20  6:27                       ` Guenter Roeck
2016-01-20  6:32                         ` Sudip Mukherjee
2016-01-13 10:29           ` Sudip Mukherjee

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