mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 02:31:27 +00:00
Only include <linux/version.h> if necessary (merge r3517 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3992 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
#ifndef __SCSI_FCST_H__
|
||||
#define __SCSI_FCST_H__
|
||||
|
||||
#include <linux/version.h>
|
||||
#ifdef INSIDE_KERNEL_TREE
|
||||
#include <scst/scst.h>
|
||||
#else
|
||||
#include <linux/version.h>
|
||||
#include "scst.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -24,7 +24,9 @@
|
||||
#define __SCST_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#ifndef INSIDE_KERNEL_TREE
|
||||
#include <linux/version.h>
|
||||
#endif
|
||||
#include <linux/blkdev.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/wait.h>
|
||||
|
||||
@@ -40,7 +40,9 @@
|
||||
#include <linux/fcntl.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/namei.h>
|
||||
#ifndef INSIDE_KERNEL_TREE
|
||||
#include <linux/version.h>
|
||||
#endif
|
||||
#include <linux/vmalloc.h>
|
||||
#include <asm/unaligned.h>
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#ifndef IB_SRPT_H
|
||||
#define IB_SRPT_H
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/list.h>
|
||||
|
||||
@@ -48,6 +47,7 @@
|
||||
#if defined(INSIDE_KERNEL_TREE)
|
||||
#include <scst/scst.h>
|
||||
#else
|
||||
#include <linux/version.h>
|
||||
#include <scst.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user