From owner-svn-ports-all@FreeBSD.ORG Sat Mar 21 18:58:32 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7E318124; Sat, 21 Mar 2015 18:58:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6905BB3B; Sat, 21 Mar 2015 18:58:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2LIwWh7063775; Sat, 21 Mar 2015 18:58:32 GMT (envelope-from fjoe@FreeBSD.org) Received: (from fjoe@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2LIwV4l063772; Sat, 21 Mar 2015 18:58:31 GMT (envelope-from fjoe@FreeBSD.org) Message-Id: <201503211858.t2LIwV4l063772@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: fjoe set sender to fjoe@FreeBSD.org using -f From: Max Khon Date: Sat, 21 Mar 2015 18:58:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381815 - head/misc/dahdi-kmod/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2015 18:58:32 -0000 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, \