Skip to content

Commit

Permalink
s390/pci: remove dead code
Browse files Browse the repository at this point in the history
Get rid of these:

arch/s390/pci/pci_dma.c:16:29: warning: ‘zpci_ioat_dt’ defined but not used [-Wunused-variable]
arch/s390/pci/pci.c:164:12: warning: ‘zpci_store_fib’ defined but not used [-Wunused-function]

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jan 8, 2013
1 parent eba6197 commit b2034e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
29 changes: 0 additions & 29 deletions arch/s390/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,35 +160,6 @@ int pci_proc_domain(struct pci_bus *bus)
}
EXPORT_SYMBOL_GPL(pci_proc_domain);

/* Store PCI function information block */
static int zpci_store_fib(struct zpci_dev *zdev, u8 *fc)
{
struct zpci_fib *fib;
u8 status, cc;

fib = (void *) get_zeroed_page(GFP_KERNEL);
if (!fib)
return -ENOMEM;

do {
cc = __stpcifc(zdev->fh, 0, fib, &status);
if (cc == 2) {
msleep(ZPCI_INSN_BUSY_DELAY);
memset(fib, 0, PAGE_SIZE);
}
} while (cc == 2);

if (cc)
pr_err_once("%s: cc: %u status: %u\n",
__func__, cc, status);

/* Return PCI function controls */
*fc = fib->fc;

free_page((unsigned long) fib);
return (cc) ? -EIO : 0;
}

/* Modify PCI: Register adapter interruptions */
static int zpci_register_airq(struct zpci_dev *zdev, unsigned int aisb,
u64 aibv)
Expand Down
2 changes: 0 additions & 2 deletions arch/s390/pci/pci_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include <linux/pci.h>
#include <asm/pci_dma.h>

static enum zpci_ioat_dtype zpci_ioat_dt = ZPCI_IOTA_RTTO;

static struct kmem_cache *dma_region_table_cache;
static struct kmem_cache *dma_page_table_cache;

Expand Down

0 comments on commit b2034e1

Please sign in to comment.