From patchwork Thu Oct 13 09:01:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Dietrich X-Patchwork-Id: 119389 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id BC266B6F80 for ; Thu, 13 Oct 2011 20:01:41 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753975Ab1JMJBk (ORCPT ); Thu, 13 Oct 2011 05:01:40 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:58952 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753974Ab1JMJBk (ORCPT ); Thu, 13 Oct 2011 05:01:40 -0400 Received: (qmail invoked by alias); 13 Oct 2011 09:01:38 -0000 Received: from fb07-iapwap2.physik.uni-giessen.de (EHLO fb07-iapwap2.localnet) [134.176.19.122] by mail.gmx.net (mp001) with SMTP; 13 Oct 2011 11:01:38 +0200 X-Authenticated: #9962044 X-Provags-ID: V01U2FsdGVkX1/Fsbks+VLFWRsFHBfFhqHY0oLlTYykpCVdbiwLsf ieyTwqs1JqfHxw From: Marc Dietrich To: Grant Likely Cc: Olof Johansson , Colin Cross , linux-tegra@vger.kernel.org Subject: [PATCH] spi/tegra: fix compilation error in spi-tegra.c Date: Thu, 13 Oct 2011 11:01:33 +0200 Message-ID: <1458857.A6MEb356Lm@fb07-iapwap2> User-Agent: KMail/4.7.2 (Linux/3.1.0-rc9+; KDE/4.7.2; x86_64; ; ) MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Add #include to spi-tegra.c to fix a compilation error after the removal of module.h from device.h (in patch: "include: replace linux/module.h with "struct module" wherever possible"). Signed-off-by: Marc Dietrich Acked-by: Olof Johansson --- Hi Grant, this fixes the error below: CC drivers/spi/spi-tegra.o drivers/spi/spi-tegra.c:597: error: expected declaration specifiers or '...' before string constant drivers/spi/spi-tegra.c:597: warning: data definition has no type or storage class drivers/spi/spi-tegra.c:597: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS' drivers/spi/spi-tegra.c:597: warning: function declaration isn't a prototype drivers/spi/spi-tegra.c:604: warning: data definition has no type or storage class drivers/spi/spi-tegra.c:604: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' drivers/spi/spi-tegra.c:604: warning: parameter names (without types) in function declaration drivers/spi/spi-tegra.c:612: error: 'THIS_MODULE' undeclared here (not in a function) drivers/spi/spi-tegra.c:630: error: expected declaration specifiers or '...' before string constant drivers/spi/spi-tegra.c:630: warning: data definition has no type or storage class drivers/spi/spi-tegra.c:630: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE' drivers/spi/spi-tegra.c:630: warning: function declaration isn't a prototype make[2]: *** [drivers/spi/spi-tegra.o] Error 1 It is against linux-next (for 3.2). Please apply. Thanks Marc -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/spi/spi-tegra.c b/drivers/spi/spi-tegra.c index a5a6302..e8cd58f 100644 --- a/drivers/spi/spi-tegra.c +++ b/drivers/spi/spi-tegra.c @@ -18,6 +18,7 @@ */ #include +#include #include #include #include