USB Driver Errors 2.6.32.46

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

USB Driver Errors 2.6.32.46

Postby NetSecL » Fri Oct 14, 2011 12:39 pm

Hello,

I get some errors. I'm trying to compile 2.6.32.46 with the patch for it:

drivers/staging/otus/usbdrv.c: In function ‘usbdrv_open’:
drivers/staging/otus/usbdrv.c:359:5: warning: passing argument 1 of ‘__constant_c_and_count_memset’ discards ‘const’ qualifier from pointer target type [enabled by default]
/usr/src/packages/BUILD/kernel-2.6.32.46grsec4default/arch/x86/include/asm/string_32.h:252:7: note: expected ‘void *’ but argument is of type ‘const struct zsCbFuncTbl *’
drivers/staging/otus/usbdrv.c:359:5: warning: passing argument 1 of ‘__constant_c_memset’ discards ‘const’ qualifier from pointer target type [enabled by default]
/usr/src/packages/BUILD/kernel-2.6.32.46grsec4default/arch/x86/include/asm/string_32.h:222:7: note: expected ‘void *’ but argument is of type ‘const struct zsCbFuncTbl *’
drivers/staging/otus/usbdrv.c:359:5: warning: passing argument 1 of ‘__memset_generic’ discards ‘const’ qualifier from pointer target type [enabled by default]
/usr/src/packages/BUILD/kernel-2.6.32.46grsec4default/arch/x86/include/asm/string_32.h:202:21: note: expected ‘void *’ but argument is of type ‘const struct zsCbFuncTbl *’
drivers/staging/otus/usbdrv.c:359:5: warning: passing argument 1 of ‘__memset_generic’ discards ‘const’ qualifier from pointer target type [enabled by default]
/usr/src/packages/BUILD/kernel-2.6.32.46grsec4default/arch/x86/include/asm/string_32.h:202:21: note: expected ‘void *’ but argument is of type ‘const struct zsCbFuncTbl *’
drivers/staging/otus/usbdrv.c:360:5: error: assignment of member ‘zfcbAuthNotify’ in read-only object
drivers/staging/otus/usbdrv.c:361:5: error: assignment of member ‘zfcbAuthNotify’ in read-only object
drivers/staging/otus/usbdrv.c:362:5: error: assignment of member ‘zfcbAsocNotify’ in read-only object
drivers/staging/otus/usbdrv.c:363:5: error: assignment of member ‘zfcbDisAsocNotify’ in read-only object
drivers/staging/otus/usbdrv.c:364:5: error: assignment of member ‘zfcbApConnectNotify’ in read-only object
drivers/staging/otus/usbdrv.c:365:5: error: assignment of member ‘zfcbConnectNotify’ in read-only object
drivers/staging/otus/usbdrv.c:366:5: error: assignment of member ‘zfcbScanNotify’ in read-only object
drivers/staging/otus/usbdrv.c:367:5: error: assignment of member ‘zfcbMicFailureNotify’ in read-only object
drivers/staging/otus/usbdrv.c:368:5: error: assignment of member ‘zfcbApMicFailureNotify’ in read-only object
drivers/staging/otus/usbdrv.c:369:5: error: assignment of member ‘zfcbIbssPartnerNotify’ in read-only object
drivers/staging/otus/usbdrv.c:370:5: error: assignment of member ‘zfcbMacAddressNotify’ in read-only object
drivers/staging/otus/usbdrv.c:371:5: error: assignment of member ‘zfcbSendCompleteIndication’ in read-only object
drivers/staging/otus/usbdrv.c:372:5: error: assignment of member ‘zfcbRecvEth’ in read-only object
drivers/staging/otus/usbdrv.c:373:5: error: assignment of member ‘zfcbRecv80211’ in read-only object
drivers/staging/otus/usbdrv.c:374:5: error: assignment of member ‘zfcbRestoreBufData’ in read-only object
drivers/staging/otus/usbdrv.c:378:5: error: assignment of member ‘zfcbHwWatchDogNotify’ in read-only object
drivers/staging/otus/usbdrv.c: In function ‘usbdrv_remove1’:
drivers/staging/otus/usbdrv.c:698:28: warning: variable ‘macp’ set but not used [-Wunused-but-set-variable]
make[5]: *** [drivers/staging/otus/usbdrv.o] Error 1
make[4]: *** [drivers/staging/otus] Error 2
make[3]: *** [drivers/staging] Error 2
make[2]: *** [drivers] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.chH2rL (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.chH2rL (%build)
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2

Thank you,
Yuriy
NetSecL
 
Posts: 3
Joined: Fri May 30, 2008 3:28 am

Re: USB Driver Errors 2.6.32.46

Postby NetSecL » Wed Oct 19, 2011 3:26 pm

Resolved. Latest Test patch for latest kernel works fine.

Yuriy
NetSecL
 
Posts: 3
Joined: Fri May 30, 2008 3:28 am


Return to grsecurity support

cron