Skip to content

Instantly share code, notes, and snippets.

@sp3c73r2038
Created August 31, 2012 13:22
Show Gist options
  • Save sp3c73r2038/3552607 to your computer and use it in GitHub Desktop.
Save sp3c73r2038/3552607 to your computer and use it in GitHub Desktop.
patching drivers/scsi/lpfc/lpfc_scsi.c for kernel 3.4.9 gentoo workaround with -Werror while compile WITH CONFIG_LPFC_SCSI
--- /usr/src/linux/drivers/scsi/lpfc/lpfc_scsi.c 2012-05-21 06:29:13.000000000 +0800
+++ lpfc_scsi.c 2012-08-31 21:12:33.619966584 +0800
@@ -1897,7 +1897,6 @@
dma_addr_t physaddr;
int i = 0, num_bde = 0, status;
int datadir = sc->sc_data_direction;
- uint32_t rc;
uint32_t checking = 1;
uint32_t reftag;
unsigned blksize;
@@ -2034,7 +2033,6 @@
int datadir = sc->sc_data_direction;
unsigned char pgdone = 0, alldone = 0;
unsigned blksize;
- uint32_t rc;
uint32_t checking = 1;
uint32_t reftag;
uint8_t txop, rxop;
@@ -2253,7 +2251,6 @@
uint32_t reftag;
unsigned blksize;
uint8_t txop, rxop;
- uint32_t rc;
uint32_t checking = 1;
uint32_t dma_len;
uint32_t dma_offset = 0;
@@ -2383,7 +2380,6 @@
uint32_t reftag;
uint8_t txop, rxop;
uint32_t dma_len;
- uint32_t rc;
uint32_t checking = 1;
uint32_t dma_offset = 0;
int num_sge = 0;
@sp3c73r2038
Copy link
Author

here is how to use it.

patch /usr/src/linux/drivers/scsi/lpfc/lpfc_scsi.c lpfc_scsi.c.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment