Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755275AbbHJGYs (ORCPT ); Mon, 10 Aug 2015 02:24:48 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:35008 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755232AbbHJGYo (ORCPT ); Mon, 10 Aug 2015 02:24:44 -0400 From: Mike Rapoport To: Greg Kroah-Hartman Cc: Brian Swetland , linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH 2/6] staging: android: sync_debug.c: add include for linux/module.h Date: Mon, 10 Aug 2015 09:24:17 +0300 Message-Id: <1439187861-3864-3-git-send-email-mike.rapoport@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1439187861-3864-1-git-send-email-mike.rapoport@gmail.com> References: <1439187861-3864-1-git-send-email-mike.rapoport@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1491 Lines: 33 Otherwise an apptempt to build sync_debug.o as modules results in compiler errors: CC [M] drivers/staging/android/sync_debug.o drivers/staging/android/sync_debug.c:226:1: warning: data definition has no type or storage class [enabled by default] late_initcall(sync_debugfs_init); drivers/staging/android/sync_debug.c:226:1: error: type defaults to ‘int’ in declaration of ‘late_initcall’ [-Werror=implicit-int] drivers/staging/android/sync_debug.c:226:1: warning: parameter names (without types) in function declaration [enabled by default] drivers/staging/android/sync_debug.c:221:19: warning: ‘sync_debugfs_init’ defined but not used [-Wunused-function] static __init int sync_debugfs_init(void) Signed-off-by: Mike Rapoport --- drivers/staging/android/sync_debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/sync_debug.c b/drivers/staging/android/sync_debug.c index 91ed2c4..a452975 100644 --- a/drivers/staging/android/sync_debug.c +++ b/drivers/staging/android/sync_debug.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "sync.h" #ifdef CONFIG_DEBUG_FS -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/