From 009d808ca18e10685321e28d3293bd54f115b9bf Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Mon, 11 Jan 2010 12:11:43 -0800 Subject: [PATCH] Fix compilation for 2.6.23 due to missing declaration of sg_init_table() Signed-off-by: Luis R. Rodriguez --- include/linux/compat-2.6.24.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/compat-2.6.24.h b/include/linux/compat-2.6.24.h index 091b7eabf89e..287b14c3c046 100644 --- a/include/linux/compat-2.6.24.h +++ b/include/linux/compat-2.6.24.h @@ -181,6 +181,7 @@ static inline void sg_mark_end(struct scatterlist *sg) * used only on the last table part. * **/ +static inline void sg_init_table(struct scatterlist *sgl, unsigned int nents) { memset(sgl, 0, sizeof(*sgl) * nents); } -- 2.30.2