Date: Sat, 21 Mar 2015 18:58:31 +0000 (UTC) From: Max Khon <fjoe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381815 - head/misc/dahdi-kmod/files Message-ID: <201503211858.t2LIwV4l063772@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: fjoe Date: Sat Mar 21 18:58:30 2015 New Revision: 381815 URL: https://svnweb.freebsd.org/changeset/ports/381815 QAT: https://qat.redports.org/buildarchive/r381815/ Log: Fix build with clang 3.6. Added: head/misc/dahdi-kmod/files/patch-freebsd-drivers-dahdi-dahdi_dynamic_ethmf.c (contents, props changed) Modified: head/misc/dahdi-kmod/files/patch-freebsd-drivers-dahdi-dahdi-base.c head/misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h Modified: head/misc/dahdi-kmod/files/patch-freebsd-drivers-dahdi-dahdi-base.c ============================================================================== --- head/misc/dahdi-kmod/files/patch-freebsd-drivers-dahdi-dahdi-base.c Sat Mar 21 18:58:04 2015 (r381814) +++ head/misc/dahdi-kmod/files/patch-freebsd-drivers-dahdi-dahdi-base.c Sat Mar 21 18:58:30 2015 (r381815) @@ -1,6 +1,30 @@ ---- freebsd/drivers/dahdi/dahdi-base.c.orig 2013-10-31 17:36:56.000000000 +0700 -+++ freebsd/drivers/dahdi/dahdi-base.c 2013-10-31 17:47:28.000000000 +0700 -@@ -9206,7 +9263,9 @@ +--- freebsd/drivers/dahdi/dahdi-base.c.orig 2015-03-22 00:41:01.893409000 +0600 ++++ freebsd/drivers/dahdi/dahdi-base.c 2015-03-22 00:47:34.870157000 +0600 +@@ -4344,8 +4344,7 @@ + if (spans[i]->manufacturer) + dahdi_copy_string(stack.spaninfo.manufacturer, spans[i]->manufacturer, + sizeof(stack.spaninfo.manufacturer)); +- if (spans[i]->devicetype) +- dahdi_copy_string(stack.spaninfo.devicetype, spans[i]->devicetype, sizeof(stack.spaninfo.devicetype)); ++ dahdi_copy_string(stack.spaninfo.devicetype, spans[i]->devicetype, sizeof(stack.spaninfo.devicetype)); + dahdi_copy_string(stack.spaninfo.location, spans[i]->location, sizeof(stack.spaninfo.location)); + if (spans[i]->spantype) + dahdi_copy_string(stack.spaninfo.spantype, spans[i]->spantype, sizeof(stack.spaninfo.spantype)); +@@ -4406,10 +4405,9 @@ + dahdi_copy_string(stack.spaninfo_v1.manufacturer, + spans[i]->manufacturer, + sizeof(stack.spaninfo_v1.manufacturer)); +- if (spans[i]->devicetype) +- dahdi_copy_string(stack.spaninfo_v1.devicetype, +- spans[i]->devicetype, +- sizeof(stack.spaninfo_v1.devicetype)); ++ dahdi_copy_string(stack.spaninfo_v1.devicetype, ++ spans[i]->devicetype, ++ sizeof(stack.spaninfo_v1.devicetype)); + dahdi_copy_string(stack.spaninfo_v1.location, + spans[i]->location, + sizeof(stack.spaninfo_v1.location)); +@@ -9263,7 +9261,9 @@ .d_poll = dahdi_device_poll, .d_mmap = dahdi_device_mmap, .d_name = "dahdi", Added: head/misc/dahdi-kmod/files/patch-freebsd-drivers-dahdi-dahdi_dynamic_ethmf.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/dahdi-kmod/files/patch-freebsd-drivers-dahdi-dahdi_dynamic_ethmf.c Sat Mar 21 18:58:30 2015 (r381815) @@ -0,0 +1,11 @@ +--- freebsd/drivers/dahdi/dahdi_dynamic_ethmf.c.orig 2010-09-02 01:11:41.000000000 +0700 ++++ freebsd/drivers/dahdi/dahdi_dynamic_ethmf.c 2015-03-22 00:52:55.655191000 +0600 +@@ -689,7 +690,7 @@ + kfree(z); + module_put(THIS_MODULE); + } else { +- if (z && z->span && z->span->name) { ++ if (z && z->span) { + printk(KERN_ERR "Cannot find interface for %s\n", + z->span->name); + } Modified: head/misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h ============================================================================== --- head/misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h Sat Mar 21 18:58:04 2015 (r381814) +++ head/misc/dahdi-kmod/files/patch-freebsd-include-dahdi-compat-bsd.h Sat Mar 21 18:58:30 2015 (r381815) @@ -1,5 +1,5 @@ ---- freebsd/include/dahdi/compat/bsd.h.orig 2010-10-05 23:41:23.000000000 +0700 -+++ freebsd/include/dahdi/compat/bsd.h 2010-10-05 23:42:01.000000000 +0700 +--- freebsd/include/dahdi/compat/bsd.h.orig 2015-03-22 00:41:01.923397000 +0600 ++++ freebsd/include/dahdi/compat/bsd.h 2015-03-22 00:51:34.101470000 +0600 @@ -66,9 +66,11 @@ #define __be32 u_int32_t @@ -12,3 +12,12 @@ #define __BIG_ENDIAN_BITFIELD #define __constant_htons(x) (x) #endif +@@ -454,7 +456,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, \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503211858.t2LIwV4l063772>