Skip to contentSkip to conversation

Macro error in 2.4.0-test9 (unaligned.h)

DISCUSSION Jeff Harrell 2 participants 2 messages Oct 11, 2000 – Oct 12, 2000 MIPS

lore
Share & tools
lore
#0 lore raw

This caused a problem when loading the ppp module...

~~~~~~~~~~~~8< snippet from /include/asm-mips/unaligned.h --------

#define put_unaligned(x,ptr) \ <<== shouldn't x
actually be val here?

    do {         \
         switch (sizeof(*(ptr))) {     \
             case 1:        \
              *(unsigned char *)ptr = (val);    \
               break;       \
             case 2:        \

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Harrell Work: (801) 619-6104
Broadband Access group/TI
[email protected]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

begin:vcard
n:Harrell;Jeff
tel;cell:(801) 597-6268
tel;fax:(801) 619-6150
tel;work:(801) 619-6104
x-mozilla-html:TRUE
url:http://www.ti.com
org:Broadband Access Group
version:2.1
email;internet:[email protected]
title:Texas Instruments
adr;quoted-printable:;;170 West Election Rd. Suite 100 =0D=0AMS 4106 ;Draper;Utah;84020-6410;USA
x-mozilla-cpt:;0
fn:Jeff Harrell
end:vcard

#1 lore raw
Quoted 10 lines · Jeff Harrell

~~~~~~~~~~~~8< snippet from /include/asm-mips/unaligned.h --------

#define put_unaligned(x,ptr) \ <<== shouldn't x
actually be val here?

    do {         \
         switch (sizeof(*(ptr))) {     \
             case 1:        \
              *(unsigned char *)ptr = (val);    \
               break;       \
             case 2:        \

Fixed six days ago ...

Ralf