59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
diff --git a/scripts/tgt-setup-lun b/scripts/tgt-setup-lun
|
|
index 1e214ee..2ae9193 100755
|
|
--- a/scripts/tgt-setup-lun
|
|
+++ b/scripts/tgt-setup-lun
|
|
@@ -1,3 +1,5 @@
|
|
+#!/bin/bash
|
|
+
|
|
# LUN assignment script
|
|
#
|
|
# Copyright (C) 2007 Erez Zilber <erezz@voltaire.com>
|
|
@@ -17,8 +19,6 @@
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
# 02110-1301 USA
|
|
|
|
-#!/bin/bash
|
|
-
|
|
usage()
|
|
{
|
|
name=$(basename $0)
|
|
diff --git a/usr/Makefile b/usr/Makefile
|
|
index 4245709..1720d89 100644
|
|
--- a/usr/Makefile
|
|
+++ b/usr/Makefile
|
|
@@ -50,7 +50,7 @@ INCLUDES += -I. -I../include -I$(KERNELSRC)/include
|
|
|
|
CFLAGS += -D_GNU_SOURCE
|
|
CFLAGS += $(INCLUDES)
|
|
-CFLAGS += -g -O2 -Wall -Wstrict-prototypes -fPIC
|
|
+CFLAGS += $(OPTFLAGS)
|
|
|
|
LIBS += -lpthread
|
|
|
|
diff --git a/usr/fc/fc.c b/usr/fc/fc.c
|
|
index febb1e9..59f7573 100644
|
|
--- a/usr/fc/fc.c
|
|
+++ b/usr/fc/fc.c
|
|
@@ -29,6 +29,8 @@
|
|
#include <syscall.h>
|
|
#include <unistd.h>
|
|
#include <linux/fs.h>
|
|
+#include <linux/types.h>
|
|
+typedef __u8 u8;
|
|
#include <scsi/scsi.h>
|
|
#include <sys/mman.h>
|
|
|
|
diff --git a/usr/tgtif.c b/usr/tgtif.c
|
|
index fd5ad5b..9b87b13 100644
|
|
--- a/usr/tgtif.c
|
|
+++ b/usr/tgtif.c
|
|
@@ -36,7 +36,7 @@
|
|
#ifndef aligned_u64
|
|
#define aligned_u64 unsigned long long __attribute__((aligned(8)))
|
|
#endif
|
|
-#include <scsi/scsi_tgt_if.h>
|
|
+#include "scsi_tgt_if.h"
|
|
|
|
#include "list.h"
|
|
#include "util.h"
|