pmcraid has duplicated structure members and fails build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A current Linus kernel built with a gcc 4.6 snapshot for allyesconfig
on x86-64 fails with

In file included from /home/lsrc/git/linux-2.6/drivers/scsi/pmcraid.c:57:0:
/home/lsrc/git/linux-2.6/drivers/scsi/pmcraid.h:601:8: error: duplicate member 'sense_buffer'

The error is correct: 

/* pmcraid_cmd - LLD representation of SCSI command */
struct pmcraid_cmd {

        /* Ptr and bus address of DMA.able control block for this command */
        struct pmcraid_control_block *ioa_cb;
        dma_addr_t ioa_cb_bus_addr;
        dma_addr_t dma_handle;
        u8 *sense_buffer;             <---------- no 1

	...

	 /* scratch used */
        union {
                /* during reset sequence */
                unsigned long time_left;
                struct pmcraid_resource_entry *res;
                int hrrq_index;

                /* used during IO command error handling. Sense buffer
                 * for REQUEST SENSE command if firmware is not sending
                 * auto sense data
                 */
                struct  {
                        u8 *sense_buffer;    <-------- no 2
                        dma_addr_t sense_buffer_dma;
                };
        };

};

I think older gccs didn't diagnose that correctly, but it's really broken.

Can someone please figure out which one is the correct sense_buffer
and delete the other one?

Thanks,

-Andi




-- 
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux