[arch-commits] Commit in vhba-module/trunk (2 files)
Jan Steffens
heftig at nymeria.archlinux.org
Sun Jun 29 21:23:52 UTC 2014
Date: Sunday, June 29, 2014 @ 23:23:52
Author: heftig
Revision: 113764
20140629
Modified:
vhba-module/trunk/PKGBUILD
Deleted:
vhba-module/trunk/0001-VHBA-module-define-scmd_dbg-and-scmd_warn-macros-onl.patch
-----------------------------------------------------------------+
0001-VHBA-module-define-scmd_dbg-and-scmd_warn-macros-onl.patch | 54 ----------
PKGBUILD | 16 --
2 files changed, 5 insertions(+), 65 deletions(-)
Deleted: 0001-VHBA-module-define-scmd_dbg-and-scmd_warn-macros-onl.patch
===================================================================
--- 0001-VHBA-module-define-scmd_dbg-and-scmd_warn-macros-onl.patch 2014-06-29 21:23:00 UTC (rev 113763)
+++ 0001-VHBA-module-define-scmd_dbg-and-scmd_warn-macros-onl.patch 2014-06-29 21:23:52 UTC (rev 113764)
@@ -1,54 +0,0 @@
-From 6545ad1e266f4eb2428e93ba0fdb43d8b87d5fcd Mon Sep 17 00:00:00 2001
-From: Rok Mandeljc <rok.mandeljc at gmail.com>
-Date: Sat, 19 Apr 2014 12:06:23 +0200
-Subject: [PATCH] VHBA module: define scmd_dbg() and scmd_warn() macros only if
- they are not defined already; fix for compilation on kernel 3.15 and newer
- (bug #76)
-
----
- vhba-module/vhba.c | 10 +++++++---
- 1 file changed, 7 insertions(+), 3 deletions(-)
-
-diff --git a/vhba-module/vhba.c b/vhba-module/vhba.c
-index ae9b554..eb1c5e6 100644
---- a/vhba-module/vhba.c
-+++ b/vhba-module/vhba.c
-@@ -54,12 +54,16 @@ MODULE_LICENSE("GPL");
- #define DPRINTK(fmt, args...)
- #endif
-
-+/* scmd_dbg was introduced in 3.15 */
-+#ifndef scmd_dbg
- #define scmd_dbg(scmd, fmt, a...) \
- dev_dbg(&(scmd)->device->sdev_gendev, fmt, ##a)
-+#endif
-
-+#ifndef scmd_warn
- #define scmd_warn(scmd, fmt, a...) \
- dev_warn(&(scmd)->device->sdev_gendev, fmt, ##a)
--
-+#endif
-
- #define VHBA_MAX_SECTORS_PER_IO 256
- #define VHBA_MAX_ID 32
-@@ -276,7 +280,7 @@ static void vhba_scan_devices (struct work_struct *work)
- }
- change = vhost->chgtype[id];
- exists = vhost->devices[id] != NULL;
--
-+
- vhost->chgtype[id] = 0;
- clear_bit(id, vhost->chgmap);
-
-@@ -289,7 +293,7 @@ static void vhba_scan_devices (struct work_struct *work)
- dev_dbg(&vhost->shost->shost_gendev, "trying to add target 0:%d:0\n", id);
- vhba_scan_devices_add(vhost, id);
- } else {
-- /* quick sequence of add/remove or remove/add; we determine
-+ /* quick sequence of add/remove or remove/add; we determine
- which one it was by checking if device structure exists */
- if (exists) {
- /* remove followed by add: remove and (re)add */
---
-2.0.0
-
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-06-29 21:23:00 UTC (rev 113763)
+++ PKGBUILD 2014-06-29 21:23:52 UTC (rev 113764)
@@ -4,9 +4,9 @@
# Contributor: Charles Lindsay <charles at chaoslizard.org>
pkgname=vhba-module
-pkgver=20130607
+pkgver=20140629
_extramodules=extramodules-3.15-ARCH
-pkgrel=29
+pkgrel=1
pkgdesc="Kernel module that emulates SCSI devices"
arch=('i686' 'x86_64')
url="http://cdemu.sourceforge.net/"
@@ -16,18 +16,12 @@
options=(!makeflags)
install=$pkgname.install
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
- '60-vhba.rules'
- '0001-VHBA-module-define-scmd_dbg-and-scmd_warn-macros-onl.patch')
-md5sums=('660df41d08b1fd86baad1f16a0264438'
- '4dc37dc348b5a2c83585829bde790dcc'
- '8c929ef662de89f348d277983cbb3952')
+ '60-vhba.rules')
+md5sums=('6b307a80df9c163768cc7ecb3ccebb71'
+ '4dc37dc348b5a2c83585829bde790dcc')
prepare() {
cd $pkgname-$pkgver
-
- # Fix build with Linux 3.15
- # http://sourceforge.net/p/cdemu/bugs/76/
- patch -Np2 -i ../0001-VHBA-module-define-scmd_dbg-and-scmd_warn-macros-onl.patch
}
build() {
More information about the arch-commits
mailing list