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-Tag: next-20100113~23 X-Git-Url: https://git.openfabrics.org/?p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git;a=commitdiff_plain;h=009d808ca18e10685321e28d3293bd54f115b9bf 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 091b7ea..287b14c 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); }