Skip to content

Instantly share code, notes, and snippets.

@tuupola
Created November 20, 2019 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuupola/a655e576835df0f9435f175bc78d911f to your computer and use it in GitHub Desktop.
Save tuupola/a655e576835df0f9435f175bc78d911f to your computer and use it in GitHub Desktop.
LD [M] drivers/usb/serial/usbserial.o
CC [M] drivers/usb/storage/sddr55.o
CC [M] drivers/usb/storage/shuttle_usbat.o
In file included from drivers/usb/storage/karma.c:13:
./include/scsi/scsi_cmnd.h:36:18: error: variably modified ‘table’ at file scope
struct sg_table table;
^~~~~
./include/scsi/scsi_cmnd.h: In function ‘scsi_sg_count’:
./include/scsi/scsi_cmnd.h:186:23: error: request for member ‘nents’ in something not a structure or union
return cmd->sdb.table.nents;
^
./include/scsi/scsi_cmnd.h: In function ‘scsi_sglist’:
./include/scsi/scsi_cmnd.h:191:23: error: request for member ‘sgl’ in something not a structure or union
return cmd->sdb.table.sgl;
^
./include/scsi/scsi_cmnd.h: In function ‘scsi_prot_sg_count’:
./include/scsi/scsi_cmnd.h:317:45: error: request for member ‘nents’ in something not a structure or union
return cmd->prot_sdb ? cmd->prot_sdb->table.nents : 0;
^
./include/scsi/scsi_cmnd.h: In function ‘scsi_prot_sglist’:
./include/scsi/scsi_cmnd.h:322:45: error: request for member ‘sgl’ in something not a structure or union
return cmd->prot_sdb ? cmd->prot_sdb->table.sgl : NULL;
^
scripts/Makefile.build:303: recipe for target 'drivers/usb/storage/karma.o' failed
make[5]: *** [drivers/usb/storage/karma.o] Error 1
make[5]: *** Waiting for unfinished jobs....
scripts/Makefile.build:544: recipe for target 'drivers/usb/storage' failed
make[4]: *** [drivers/usb/storage] Error 2
scripts/Makefile.build:544: recipe for target 'drivers/usb' failed
make[3]: *** [drivers/usb] Error 2
Makefile:1046: recipe for target 'drivers' failed
make[2]: *** [drivers] Error 2
package/pkg-generic.mk:238: recipe for target '/home/tuupola/Code/buildroot/buildroot-aduskett/output/build/linux-custom/.stamp_built' failed
make[1]: *** [/home/tuupola/Code/buildroot/buildroot-aduskett/output/build/linux-custom/.stamp_built] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2
make 14444,74s user 1610,48s system 488% cpu 54:44,12 total
$ git branch
* (HEAD detached at 2019.11-rc1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment