svn commit: r381817 - head/misc/dahdi-kmod26/files

Max Khon fjoe at FreeBSD.org
Sat Mar 21 19:06:57 UTC 2015


Author: fjoe
Date: Sat Mar 21 19:06:55 2015
New Revision: 381817
URL: https://svnweb.freebsd.org/changeset/ports/381817
QAT: https://qat.redports.org/buildarchive/r381817/

Log:
  Unbreak build with clang 3.6.

Added:
  head/misc/dahdi-kmod26/files/patch-drivers-dahdi-dahdi_dynamic_ethmf.c   (contents, props changed)
  head/misc/dahdi-kmod26/files/patch-include-linux-module.h   (contents, props changed)

Added: head/misc/dahdi-kmod26/files/patch-drivers-dahdi-dahdi_dynamic_ethmf.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/dahdi-kmod26/files/patch-drivers-dahdi-dahdi_dynamic_ethmf.c	Sat Mar 21 19:06:55 2015	(r381817)
@@ -0,0 +1,11 @@
+--- drivers/dahdi/dahdi_dynamic_ethmf.c.orig	2015-03-22 01:02:19.881617000 +0600
++++ drivers/dahdi/dahdi_dynamic_ethmf.c	2015-03-22 01:02:39.709444000 +0600
+@@ -660,7 +660,7 @@
+ 		kfree(z->msgbuf);
+ 		kfree(z);
+ 	} else {
+-		if (z && z->span && z->span->name) {
++		if (z && z->span) {
+ 			printk(KERN_ERR "Cannot find interface for %s\n",
+ 				z->span->name);
+ 		}

Added: head/misc/dahdi-kmod26/files/patch-include-linux-module.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/dahdi-kmod26/files/patch-include-linux-module.h	Sat Mar 21 19:06:55 2015	(r381817)
@@ -0,0 +1,11 @@
+--- include/linux/module.h.orig	2015-03-22 00:59:45.757428000 +0600
++++ include/linux/module.h	2015-03-22 01:00:08.597762000 +0600
+@@ -47,7 +47,7 @@
+ #define _module_ptr_args	__CONCAT(_module_ptr_args_, __LINE__)
+ #define _module_ptr_init(field, val)					\
+ 	static struct module_ptr_args _module_ptr_args = {		\
+-		(const void **) &(THIS_MODULE->field), val		\
++		(const void **) (uintptr_t) &(THIS_MODULE->field), val	\
+ 	};								\
+ 	SYSINIT(__CONCAT(_module_ptr_args, _init),			\
+ 		SI_SUB_KLD, SI_ORDER_FIRST,				\


More information about the svn-ports-head mailing list