NetBSD Problem Report #16543

Received: (qmail 2421 invoked from network); 29 Apr 2002 11:01:29 -0000
Message-Id: <200204291101.g3TB1V301570@zephyr.home.loc>
Date: Mon, 29 Apr 2002 13:01:32 +0200 (CEST)
From: bsieker@freenet.de
Reply-To: bsieker@freenet.de
To: gnats-bugs@gnats.netbsd.org
Subject: xi interface does not compile on NetBSD-1.5ZC/hpcmips
X-Send-Pr-Version: 3.95

>Number:         16543
>Category:       port-hpcmips
>Synopsis:       xi interface does not compile on NetBSD-1.5ZC/hpcmips
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-hpcmips-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 29 11:02:00 +0000 2002
>Closed-Date:    Sun May 05 04:31:18 +0000 2002
>Last-Modified:  Sun May 05 04:31:18 +0000 2002
>Originator:     Bernd Sieker
>Release:        NetBSD 1.5ZC, cvs updated 20002-04-27, 03:15 CEST
>Organization:
>Environment:
System: NetBSD zephyr.home.loc 1.5ZC NetBSD 1.5ZC (ZEPHYR) #0: Sat Apr 27 17:55:58 CEST 2002 bernd@zephyr.home.loc:/usr/src/sys/arch/hpcmips/compile/ZEPHYR hpcmips
Architecture: mipsel
Machine: hpcmips

IBM WorkPad z50, 48 MB RAM., 256 MB CompactFlash Card,
3Com 3c589 10Mbps Ethernet Card (PCMCIA).

Building on nfs partition on NetBSD-1.5.3/i386 server, swap on nfs.

>Description:

When trying to build a kernel with the xi network interface included in the
kernel configuration file, building fails with the following problem:

cc  -mips2 -EL -G 8 -mno-abicalls -mno-half-pic -ffreestanding  -Os -mmemcpy -Werror -Wall -Wno-main -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized  -Dhpcmips -I.  -I../../../../arch -I../../../.. -nostdinc -DSOFTFLOAT -DMIPS3 -DMIPS3_4100 -DMSGBUFSIZE="0x2000" -DEXEC_PECOFF -DITE8181_LCD_CONTROL_ENABLE -DMAXUSERS=8 -D_KERNEL -D_KERNEL_OPT   -c /usr/src/sys/arch/hpcmips/compile/ZEPHYR/../../../../dev/pcmcia/if_xi.c
cc1: warnings being treated as errors
/usr/src/sys/arch/hpcmips/compile/ZEPHYR/../../../../dev/pcmcia/if_xi.c: In function `xi_get':
/usr/src/sys/arch/hpcmips/compile/ZEPHYR/../../../../dev/pcmcia/if_xi.c:997: warning: passing arg 4 of pointer to function from incompatible pointer type
/usr/src/sys/arch/hpcmips/compile/ZEPHYR/../../../../dev/pcmcia/if_xi.c: In function `xi_start':
/usr/src/sys/arch/hpcmips/compile/ZEPHYR/../../../../dev/pcmcia/if_xi.c:1342: warning: passing arg 4 of pointer to function from incompatible pointer type
*** Error code 1

Stop.

>How-To-Repeat:

Try to build a kernel for NetBSD/hpcmips which includes the xi driver
for PCMCIA-CreditCard Ethernet Adapter by Xircom (xi* at pcmcia? function ?)

>Fix:
RCS file: /cvsroot/syssrc/sys/dev/pcmcia/if_xi.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -c -r1.20 -r1.21
*** if_xi.c     2002/01/12 16:25:15     1.20
--- if_xi.c     2002/05/05 03:19:26     1.21
***************
*** 994,1000 ****
                if (len > 1) {
                        len &= ~1;
                        bus_space_read_multi_2(sc->sc_bst, sc->sc_bsh,
!                           sc->sc_offset + EDP, data, len>>1);
                } else
                        *data = bus_space_read_1(sc->sc_bst, sc->sc_bsh,
                            sc->sc_offset + EDP);
--- 994,1000 ----
                if (len > 1) {
                        len &= ~1;
                        bus_space_read_multi_2(sc->sc_bst, sc->sc_bsh,
!                           sc->sc_offset + EDP, (u_int16_t *)data, len>>1);
                } else
                        *data = bus_space_read_1(sc->sc_bst, sc->sc_bsh,
                            sc->sc_offset + EDP);
***************
*** 1339,1345 ****
        for (m = m0; m; ) {
                if (m->m_len > 1)
                        bus_space_write_multi_2(bst, bsh, offset + EDP,
!                           mtod(m, u_int8_t *), m->m_len>>1);
                if (m->m_len & 1)
                        bus_space_write_1(bst, bsh, offset + EDP,
                            *(mtod(m, u_int8_t *) + m->m_len - 1));
--- 1339,1345 ----
        for (m = m0; m; ) {
                if (m->m_len > 1)
                        bus_space_write_multi_2(bst, bsh, offset + EDP,
!                           mtod(m, u_int16_t *), m->m_len>>1);
                if (m->m_len & 1)
                        bus_space_write_1(bst, bsh, offset + EDP,
                            *(mtod(m, u_int8_t *) + m->m_len - 1));
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: takemura 
State-Changed-When: Sat May 4 21:29:42 PDT 2002 
State-Changed-Why:  
Fixed with rev 1.21 of sys/dev/pcmcia/if_xi.c 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.