From: Luis R. Rodriguez Date: Mon, 11 Jan 2010 20:11:43 +0000 (-0800) Subject: Fix compilation for 2.6.23 due to missing declaration of sg_init_table() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=009d808ca18e10685321e28d3293bd54f115b9bf;p=openwrt%2Fstaging%2Fblogic.git Fix compilation for 2.6.23 due to missing declaration of sg_init_table() Signed-off-by: Luis R. Rodriguez --- 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); }