From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755933AbcAISPk (ORCPT ); Sat, 9 Jan 2016 13:15:40 -0500 Received: from bh-25.webhostbox.net ([208.91.199.152]:57713 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752998AbcAISPi (ORCPT ); Sat, 9 Jan 2016 13:15:38 -0500 From: Guenter Roeck To: Nicolas Ferre Cc: Greg Kroah-Hartman , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Guenter Roeck , Paul Gortmaker Subject: [PATCH -next] tty/serial: atmel: Include module.h to fix build failure Date: Sat, 9 Jan 2016 10:15:35 -0800 Message-Id: <1452363335-2535-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.1.4 X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Guenter Roeck --- 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 #include #include #include -- 2.1.4