Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751685AbZIWEvr (ORCPT ); Wed, 23 Sep 2009 00:51:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751400AbZIWEvr (ORCPT ); Wed, 23 Sep 2009 00:51:47 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:41010 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751253AbZIWEvq (ORCPT ); Wed, 23 Sep 2009 00:51:46 -0400 From: Mike Frysinger To: linux-kernel@vger.kernel.org Cc: Andrew Morton Subject: [PATCH] asm-generic/gpio.h: pull in linux/kernel.h for might_sleep() Date: Wed, 23 Sep 2009 00:51:49 -0400 Message-Id: <1253681509-24799-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.6.5.rc1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 29 The asm-generic/gpio.h header uses the might_sleep() macro but doesn't include the header for it, so any source code that might include linux/gpio.h before linux/kernel.h can easily lead to a build failure. Signed-off-by: Mike Frysinger --- include/asm-generic/gpio.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index d6c379d..634ec64 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -1,6 +1,7 @@ #ifndef _ASM_GENERIC_GPIO_H #define _ASM_GENERIC_GPIO_H +#include #include #include -- 1.6.5.rc1 -- 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/