]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.36.4/fix-incorrect-value-of-scsi_max_sg_chain_segments-due-to-include-file-ordering.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.36.4 / fix-incorrect-value-of-scsi_max_sg_chain_segments-due-to-include-file-ordering.patch
CommitLineData
e2b52abc
GKH
1From ac61c46f4f7665ab4548e90430c37b2529e16cff Mon Sep 17 00:00:00 2001
2From: David Dillow <dillowda@ornl.gov>
3Date: Sun, 16 Jan 2011 15:12:39 -0500
4Subject: [SCSI] fix incorrect value of SCSI_MAX_SG_CHAIN_SEGMENTS due to include file ordering
5
6From: David Dillow <dillowda@ornl.gov>
7
8commit ac61c46f4f7665ab4548e90430c37b2529e16cff upstream.
9
10If the compiled object doesn't include linux/scatterlist.h before
11scsi/scsi.h, it will get an incorrect definition of
12SCSI_MAX_SG_CHAIN_SEGMENTS.
13
14Signed-off-by: David Dillow <dillowda@ornl.gov>
15Signed-off-by: James Bottomley <James.Bottomley@suse.de>
16Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17
18---
19 include/scsi/scsi.h | 1 +
20 1 file changed, 1 insertion(+)
21
22--- a/include/scsi/scsi.h
23+++ b/include/scsi/scsi.h
24@@ -9,6 +9,7 @@
25 #define _SCSI_SCSI_H
26
27 #include <linux/types.h>
28+#include <linux/scatterlist.h>
29
30 struct scsi_cmnd;
31