Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753029AbXLaSHb (ORCPT ); Mon, 31 Dec 2007 13:07:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751802AbXLaSHX (ORCPT ); Mon, 31 Dec 2007 13:07:23 -0500 Received: from rgminet01.oracle.com ([148.87.113.118]:36842 "EHLO rgminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751312AbXLaSHW (ORCPT ); Mon, 31 Dec 2007 13:07:22 -0500 Date: Mon, 31 Dec 2007 10:05:39 -0800 From: Randy Dunlap To: Andrew Morton Cc: linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net Subject: [PATCH -mm] crypto: scatterwalk.h needs sched.h Message-Id: <20071231100539.0a782c40.randy.dunlap@oracle.com> In-Reply-To: <20071222233056.d652743e.akpm@linux-foundation.org> References: <20071222233056.d652743e.akpm@linux-foundation.org> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.4.7 (GTK+ 2.8.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 969 Lines: 28 From: Randy Dunlap When CONFIG_PREEMPT_NONE=y, scatterwalk.h still uses cond_resched() so it needs to include sched.h: linux-2.6.24-rc6-mm1/include/crypto/scatterwalk.h:52: error: implicit declaration of function 'cond_resched' make[2]: *** [crypto/digest.o] Error 1 Signed-off-by: Randy Dunlap --- include/crypto/scatterwalk.h | 1 + 1 file changed, 1 insertion(+) --- linux-2.6.24-rc6-mm1.orig/include/crypto/scatterwalk.h +++ linux-2.6.24-rc6-mm1/include/crypto/scatterwalk.h @@ -23,6 +23,7 @@ #include #include #include +#include static inline enum km_type crypto_kmap_type(int out) { -- 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/