static ssize_t show_dev (struct device *dev, char *buf) 
static ssize_t show_dev (struct device *dev, struct device_attribute *attr, char *buf) 
static ssize_t show_dev (struct device *dev, char *buf){	struct pci_dev *pci_dev;	struct controller *ctrl;	char * out = buf;	int index;	struct pci_resource *res;	struct pci_func *new_slot;	struct slot *slot;	pci_dev = container_of (dev, struct pci_dev, dev);	ctrl = pci_get_drvdata(pci_dev);	slot=ctrl->slot;	while (slot) {		new_slot = cpqhp_slot_find(slot->bus, slot->device, 0);		if (!new_slot)			break;		out += sprintf(out, "assigned resources: memory\n");		index = 11;		res = new_slot->mem_head;		while (res && index--) {			out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);			res = res->next;		}		out += sprintf(out, "assigned resources: prefetchable memory\n");		index = 11;		res = new_slot->p_mem_head;		while (res && index--) {			out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);			res = res->next;		}		out += sprintf(out, "assigned resources: IO\n");		index = 11;		res = new_slot->io_head;		while (res && index--) {			out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);			res = res->next;		}		out += sprintf(out, "assigned resources: bus numbers\n");		index = 11;		res = new_slot->bus_head;		while (res && index--) {			out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);			res = res->next;		}		slot=slot->next;	}	return out - buf;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/e404e274f62665f3333d6a539d0d3701f678a598/cpqphp_sysfs.c/buggy/drivers/pci/hotplug/cpqphp_sysfs.c