Fix compilation for 2.6.23 due to missing declaration of sg_init_table()
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 11 Jan 2010 20:11:43 +0000 (12:11 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 11 Jan 2010 20:11:43 +0000 (12:11 -0800)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
include/linux/compat-2.6.24.h

index 091b7eabf89e0b77e9b1360bd731fcf78bcdc42a..287b14c3c046dbc05eaf2b4262df02c82fb23ac8 100644 (file)
@@ -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);
 }