# make
make -C /lib/modules/4.2.0-27-generic/build M=/home/tmp/x86_64
make[1]: Entering directory `/usr/src/linux-headers-4.2.0-27-generic'
./scripts/Makefile.build:49: *** CFLAGS was changed in "/home/tmp/x86_64/Makefile". Fix it to use ccflags-y. Stop.
make[1]: *** [_module_/home/tmp/x86_64] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-4.2.0-27-generic'
make: *** [all] Error 2
# make
make -C /lib/modules/4.2.0-27-generic/build M=/home/tmp/x86_64
make[1]: Entering directory `/usr/src/linux-headers-4.2.0-27-generic'
LD /home/tmp/x86_64/built-in.o
CC [M] /home/tmp/x86_64/acs_ame.o
/home/tmp/x86_64/acs_ame.c: In function ‘acs_ame_pci_unmap_dma’:
/home/tmp/x86_64/acs_ame.c:136:8: error: ‘struct scsi_cmnd’ has no member named ‘use_sg’
if(cmd->use_sg) {
^
/home/tmp/x86_64/acs_ame.c:139:33: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
sl = (struct scatterlist *)cmd->request_buffer;
^
/home/tmp/x86_64/acs_ame.c:140:38: error: ‘struct scsi_cmnd’ has no member named ‘use_sg’
pci_unmap_sg(acs_adt->pdev, sl, cmd->use_sg, cmd->sc_data_direction);
^
/home/tmp/x86_64/acs_ame.c:142:13: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
else if(cmd->request_bufflen != 0) {
^
/home/tmp/x86_64/acs_ame.c:143:59: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
pci_unmap_single(acs_adt->pdev, cmd->SCp.dma_handle, cmd->request_bufflen, cmd->sc_data_direction);
^
/home/tmp/x86_64/acs_ame.c: In function ‘acs_ame_interrupt’:
/home/tmp/x86_64/acs_ame.c:422:29: error: ‘struct scsi_cmnd’ has no member named ‘resid’
RequestN->Cmd.scsi_cmd->resid= SenseBuffer->FcpResid;
^
/home/tmp/x86_64/acs_ame.c: In function ‘acs_ame_turn_event_switch’:
/home/tmp/x86_64/acs_ame.c:547:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
ESrequest->MsgIdentifier=((u32)request_node)>>1;
^
/home/tmp/x86_64/acs_ame.c: In function ‘acs_ame_inband_non_data_xfer’:
/home/tmp/x86_64/acs_ame.c:579:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
InBandrequest->MsgIdentifier= ((u32)request_node)>>1;
^
/home/tmp/x86_64/acs_ame.c:635:26: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen = sizeof(u16);
^
/home/tmp/x86_64/acs_ame.c:637:26: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
acs_adt->fack_scsi_cmd.request_buffer = &(((inband_package *)userarg)->buffer);
^
/home/tmp/x86_64/acs_ame.c:640:45: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
if ( copy_to_user( acs_adt->fack_scsi_cmd.request_buffer,
^
/home/tmp/x86_64/acs_ame.c:642:27: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen) !=0) {
^
/home/tmp/x86_64/acs_ame.c:644:67: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
PRINTK("**** request_bufflen = 0x%x\n", acs_adt->fack_scsi_cmd.request_bufflen);
^
/home/tmp/x86_64/acs_ame.c:118:75: note: in definition of macro ‘PRINTK’
#define PRINTK(fmt, args...) printk(KERN_ALERT DRIVER_NAME " " fmt, ## args)
^
/home/tmp/x86_64/acs_ame.c:651:27: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen,
^
/home/tmp/x86_64/acs_ame.c: In function ‘acs_ame_inband_read’:
/home/tmp/x86_64/acs_ame.c:704:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
InBandrequest->MsgIdentifier= ((u32)request_node)>>1;
^
/home/tmp/x86_64/acs_ame.c:732:25: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen = DataLength;
^
/home/tmp/x86_64/acs_ame.c:734:25: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
acs_adt->fack_scsi_cmd.request_buffer = &(((inband_package *)userarg)->buffer);
^
/home/tmp/x86_64/acs_ame.c:775:45: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
if ( copy_to_user( acs_adt->fack_scsi_cmd.request_buffer,
^
/home/tmp/x86_64/acs_ame.c:777:27: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen) !=0) {
^
/home/tmp/x86_64/acs_ame.c:790:28: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen,
^
/home/tmp/x86_64/acs_ame.c:804:26: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen = sizeof(u16);
^
/home/tmp/x86_64/acs_ame.c:806:26: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
acs_adt->fack_scsi_cmd.request_buffer = &(((inband_package *)userarg)->buffer);
^
/home/tmp/x86_64/acs_ame.c:809:45: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
if ( copy_to_user( acs_adt->fack_scsi_cmd.request_buffer,
^
/home/tmp/x86_64/acs_ame.c:811:27: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen) !=0) {
^
/home/tmp/x86_64/acs_ame.c:813:67: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
PRINTK("**** request_bufflen = 0x%x\n", acs_adt->fack_scsi_cmd.request_bufflen);
^
/home/tmp/x86_64/acs_ame.c:118:75: note: in definition of macro ‘PRINTK’
#define PRINTK(fmt, args...) printk(KERN_ALERT DRIVER_NAME " " fmt, ## args)
^
/home/tmp/x86_64/acs_ame.c:820:27: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen,
^
/home/tmp/x86_64/acs_ame.c:833:26: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen,
^
/home/tmp/x86_64/acs_ame.c: In function ‘acs_ame_inband_write’:
/home/tmp/x86_64/acs_ame.c:864:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
InBandrequest->MsgIdentifier= ((u32)request_node)>>1;
^
/home/tmp/x86_64/acs_ame.c:893:25: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen = InBandrequest->DataLength;
^
/home/tmp/x86_64/acs_ame.c:895:25: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
acs_adt->fack_scsi_cmd.request_buffer = &(((inband_package *)userarg)->buffer);
^
/home/tmp/x86_64/acs_ame.c:924:26: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen,
^
/home/tmp/x86_64/acs_ame.c:945:26: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen = sizeof(u16);
^
/home/tmp/x86_64/acs_ame.c:947:26: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
acs_adt->fack_scsi_cmd.request_buffer = &(((inband_package *)userarg)->buffer);
^
/home/tmp/x86_64/acs_ame.c:950:45: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
if ( copy_to_user( acs_adt->fack_scsi_cmd.request_buffer,
^
/home/tmp/x86_64/acs_ame.c:952:27: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen) !=0) {
^
/home/tmp/x86_64/acs_ame.c:954:67: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
PRINTK("**** request_bufflen = 0x%x\n", acs_adt->fack_scsi_cmd.request_bufflen);
^
/home/tmp/x86_64/acs_ame.c:118:75: note: in definition of macro ‘PRINTK’
#define PRINTK(fmt, args...) printk(KERN_ALERT DRIVER_NAME " " fmt, ## args)
^
/home/tmp/x86_64/acs_ame.c:961:27: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
acs_adt->fack_scsi_cmd.request_bufflen,
^
/home/tmp/x86_64/acs_ame.c: In function ‘acs_ame_queue_command’:
/home/tmp/x86_64/acs_ame.c:1171:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SCSIrequest->MsgIdentifier = ((u32)request_node)>>1;
^
/home/tmp/x86_64/acs_ame.c:1225:39: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
SCSIrequest->DataLength = cmd->request_bufflen;
^
/home/tmp/x86_64/acs_ame.c:1232:8: error: ‘struct scsi_cmnd’ has no member named ‘use_sg’
if(cmd->use_sg) {
^
/home/tmp/x86_64/acs_ame.c:1239:31: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
sl=(struct scatterlist *)cmd->request_buffer;
^
/home/tmp/x86_64/acs_ame.c:1241:48: error: ‘struct scsi_cmnd’ has no member named ‘use_sg’
sg_counter=pci_map_sg(acs_adt->pdev, sl, cmd->use_sg, cmd->sc_data_direction);
^
/home/tmp/x86_64/acs_ame.c:1366:14: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
else if (cmd->request_bufflen) {
^
/home/tmp/x86_64/acs_ame.c:1369:45: error: ‘struct scsi_cmnd’ has no member named ‘request_buffer’
dma_addr=pci_map_single(acs_adt->pdev, cmd->request_buffer, cmd->request_bufflen, cmd->sc_data_direction);
^
/home/tmp/x86_64/acs_ame.c:1369:66: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
dma_addr=pci_map_single(acs_adt->pdev, cmd->request_buffer, cmd->request_bufflen, cmd->sc_data_direction);
^
/home/tmp/x86_64/acs_ame.c:1378:47: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
SCSIrequest->BDL.u.Basic.FlagsLength = (cmd->request_bufflen) | (BDLFlag << 24);
^
/home/tmp/x86_64/acs_ame.c:1389:48: error: ‘struct scsi_cmnd’ has no member named ‘request_bufflen’
SCSIrequest->BDL.u.Basic.FlagsLength = (cmd->request_bufflen) |
^
/home/tmp/x86_64/acs_ame.c: At top level:
/home/tmp/x86_64/acs_ame.c:1437:2: error: unknown field ‘ioctl’ specified in initializer
.ioctl = acs_ame_fops_ioctl,
^
/home/tmp/x86_64/acs_ame.c:1437:2: warning: initialization from incompatible pointer type [enabled by default]
/home/tmp/x86_64/acs_ame.c:1437:2: warning: (near initialization for ‘acs_ame_fos.llseek’) [enabled by default]
/home/tmp/x86_64/acs_ame.c:1449:3: warning: initialization from incompatible pointer type [enabled by default]
.queuecommand = acs_ame_queue_command,
^
/home/tmp/x86_64/acs_ame.c:1449:3: warning: (near initialization for ‘acs_ame_scsi_host_template.queuecommand’) [enabled by default]
/home/tmp/x86_64/acs_ame.c: In function ‘acs_ame_probe’:
/home/tmp/x86_64/acs_ame.c:1978:49: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
virtual_dma_coherent=(virtual_dma_coherent-((u32)virtual_dma_coherent & 0x0F))+ 0x10;
^
/home/tmp/x86_64/acs_ame.c:1986:27: warning: comparison between pointer and integer [enabled by default]
if(virtual_dma_coherent != physical_dma_coherent_handle)
^
/home/tmp/x86_64/acs_ame.c:2023:6: error: ‘SA_INTERRUPT’ undeclared (first use in this function)
SA_INTERRUPT | SA_SHIRQ,DRIVER_NAME ,acs_adt)) ) {
^
/home/tmp/x86_64/acs_ame.c:2023:6: note: each undeclared identifier is reported only once for each function it appears in
/home/tmp/x86_64/acs_ame.c:2023:21: error: ‘SA_SHIRQ’ undeclared (first use in this function)
SA_INTERRUPT | SA_SHIRQ,DRIVER_NAME ,acs_adt)) ) {
^
/home/tmp/x86_64/acs_ame.c:2023:6: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type [enabled by default]
SA_INTERRUPT | SA_SHIRQ,DRIVER_NAME ,acs_adt)) ) {
^
In file included from /home/tmp/x86_64/acs_ame.c:50:0:
include/linux/interrupt.h:132:1: note: expected ‘irq_handler_t’ but argument is of type ‘enum irqreturn_t (*)(int, void *, struct pt_regs *)’
request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,
^
/home/tmp/x86_64/acs_ame.c: In function ‘acs_ame_remove’:
/home/tmp/x86_64/acs_ame.c:2137:4: error: void value not ignored as it ought to be
if( (unregister_chrdev(acs_adt->cdev_major, CHAR_DRIVER_NAME) < 0) ) {
^
make[2]: *** [/home/tmp/x86_64/acs_ame.o] Error 1
make[1]: *** [_module_/home/tmp/x86_64] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-4.2.0-27-generic'
make: *** [all] Error 2