From owner-freebsd-arm@FreeBSD.ORG Thu Jun 5 06:31:43 2014 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8FD55B0 for ; Thu, 5 Jun 2014 06:31:43 +0000 (UTC) Received: from up-smx-s3.dmz.det.nsw.edu.au (up-smx-s3.det.nsw.edu.au [153.107.41.149]) (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 25BDA2421 for ; Thu, 5 Jun 2014 06:31:42 +0000 (UTC) Received: from slppmxmm02.central.det.win (extmail.det.nsw.edu.au [153.107.9.204]) by up-smx-s3.dmz.det.nsw.edu.au (8.14.4/8.14.4) with ESMTP id s555wp0j003836; Thu, 5 Jun 2014 15:58:51 +1000 Received: from UGPEXHT01.central.det.win (Not Verified[153.107.78.56]) by slppmxmm02.central.det.win with MailMarshal (v6, 9, 9, 4075) id ; Thu, 05 Jun 2014 15:58:50 +1000 Received: from UGPEXHUB01.central.det.win (153.107.78.92) by UGPEXHT01.central.det.win (153.107.78.56) with Microsoft SMTP Server (TLS) id 8.3.342.0; Thu, 5 Jun 2014 15:58:50 +1000 Received: from WPEXCHMBSL1021.central.det.win ([169.254.1.14]) by ugpexhub01.central.det.win ([153.107.78.92]) with mapi id 14.03.0174.001; Thu, 5 Jun 2014 15:58:50 +1000 From: "Scott, Brian" To: "'Hans Petter Selasky'" , "'arm@freebsd.org'" Subject: RE: Changes to dwc_otg USB controller code (stable/10) Thread-Topic: Changes to dwc_otg USB controller code (stable/10) Thread-Index: AQHPf92fyxvDvUntT4SsSJgnL9lJH5tgGJ+AgAHs56aAAAEbsA== Date: Thu, 5 Jun 2014 05:58:49 +0000 Message-ID: <7DB382CFB050654DBFF7A39B1F8056EB3321D20F@WPEXCHMBSL1021.central.det.win> References: <7DB382CFB050654DBFF7A39B1F8056EB3321BE3F@WPEXCHMBSL1021.central.det.win> <538EF145.5020608@selasky.org> <538EF541.9050502@selasky.org> <7DB382CFB050654DBFF7A39B1F8056EB3321C1AB@WPEXCHMBSL1021.central.det.win> <53900636.30700@selasky.org> In-Reply-To: <53900636.30700@selasky.org> Accept-Language: en-AU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [153.107.9.240] x-route: TAFECORP Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2014 06:31:43 -0000 OK, I'll try that. Thanks. -----Original Message----- From: owner-freebsd-arm@freebsd.org [mailto:owner-freebsd-arm@freebsd.org= ] On Behalf Of Hans Petter Selasky Sent: Thursday, 5 June 2014 3:55 PM To: Scott, Brian; 'arm@freebsd.org' Subject: Re: Changes to dwc_otg USB controller code (stable/10) On 06/05/14 06:41, Scott, Brian wrote: > Hi, > > A few little problems with the compiler... > > /usr/src/sys/modules/usb/dwc_otg/../../../dev/usb/controller/dwc_otg.c:= 3692:21: error: assigning to 'struct usb_bus_methods *' from 'const struc= t usb_bus_methods *' discards qualifiers [-Werror,-Wincompatible-pointer-= types-discards-qualifiers] > sc->sc_bus.methods =3D &dwc_otg_bus_methods; > ^ ~~~~~~~~~~~~~~~~~~~~ > /usr/src/sys/modules/usb/dwc_otg/../../../dev/usb/controller/dwc_otg.c:= 4727:16: error: assigning to 'struct usb_pipe_methods *' from 'const stru= ct usb_pipe_methods *' discards qualifiers [-Werror,-Wincompatible-pointe= r-types-discards-qualifiers] > ep->methods =3D &dwc_otg_device_isoc_methods; > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/src/sys/modules/usb/dwc_otg/../../../dev/usb/controller/dwc_otg.c:= 4729:16: error: assigning to 'struct usb_pipe_methods *' from 'const stru= ct usb_pipe_methods *' discards qualifiers [-Werror,-Wincompatible-pointe= r-types-discards-qualifiers] > ep->methods =3D &dwc_otg_device_non_isoc_metho= ds; > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= > 3 errors generated. > > [I guessing I did this right: the changeset just listed the one file ch= anged so I copied the file over to my stable/10 source tree and compiled.= =20If there are other related things I need to track down then let me kno= w] > > Brian Hi, That won't work. You need to patch the 10-stable sources: fetch -o dwc_otg.diff=20 "http://svnweb.freebsd.org/base/head/sys/dev/usb/controller/dwc_otg.c?r1=3D= 266833&r2=3D267044&view=3Dpatch" cd /usr/src/sys cat dwc_otg.diff | patch -p2 --HPS _______________________________________________ freebsd-arm@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" ********************************************************************** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. **********************************************************************