[email protected]
[Top] [All Lists]

Re: kern/43293: iavc driver does not compile under 5.0.2 anymore

Subject: Re: kern/43293: iavc driver does not compile under 5.0.2 anymore
From:
Date: Wed, 12 May 2010 09:05:03 +0000 UTC
The following reply was made to PR kern/43293; it has been noted by GNATS.

From: [email protected]
To: [email protected], [email protected]
Cc: [email protected]
Subject: Re: kern/43293: iavc driver does not compile under 5.0.2 anymore
Date: Wed, 12 May 2010 11:01:15 +0200

 Hi again,
 
 I've missed one required change in my patch - sorry ...
 (the first delta with recvbuf ...)
 
 W. Stukenbrock
 
 --- iavc.c      2010/05/12 08:28:01     1.1
 +++ iavc.c      2010/05/12 08:58:45
 @@ -892,7 +892,7 @@
       u_int8_t *dmabuf =3D 0, cmd;
 
       if (sc->sc_dma) {
 -       dmabuf =3D amcc_get_byte(&sc->sc_recvbuf[0], &cmd);
 +       dmabuf =3D amcc_get_byte(sc->sc_recvbuf, &cmd);
       } else {
          cmd =3D iavc_get_byte(sc);
       }
 @@ -1004,9 +1004,9 @@
          /* Copy message to DMA buffer. */
 
          if (m->m_next)
 -           dmabuf =3D amcc_put_byte(&sc->sc_sendbuf[0], SEND_DATA_B3_REQ);
 +           dmabuf =3D amcc_put_byte(sc->sc_sendbuf, SEND_DATA_B3_REQ);
          else
 -           dmabuf =3D amcc_put_byte(&sc->sc_sendbuf[0], SEND_MESSAGE);
 +           dmabuf =3D amcc_put_byte(sc->sc_sendbuf, SEND_MESSAGE);
 
          dmabuf =3D amcc_put_word(dmabuf, m->m_len);
          memcpy(dmabuf, m->m_data, m->m_len);
 @@ -1061,7 +1061,7 @@
       uint8_t *dmabuf;
 
       if (sc->sc_dma) {
 -       memcpy(&sc->sc_sendbuf[0], m->m_data + 2, m->m_len - 2);
 +       memcpy(sc->sc_sendbuf, m->m_data + 2, m->m_len - 2);
          txlen =3D m->m_len - 2;
       } else {
 
 
 Zitat von [email protected]:
 
 > Thank you very much for your problem report.
 > It has the internal identification `kern/43293'.
 > The individual assigned to look at your
 > report is: kern-bug-people.
 >
 >> Category:       kern
 >> Responsible:    kern-bug-people
 >> Synopsis:       iavc driver does not compile under 5.0.2 anymore
 >> Arrival-Date:   Wed May 12 08:40:00 +0000 2010
 >
 >
 
 

<Prev in Thread] Current Thread [Next in Thread>