Commit 44bd49d5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI Hotplug: fix build warnings on 64 bit processors

parent d96e1fac
......@@ -38,7 +38,7 @@
/* A few routines that create sysfs entries for the hot plug controller */
static int show_ctrl (struct device *dev, char *buf)
static ssize_t show_ctrl (struct device *dev, char *buf)
{
struct pci_dev *pci_dev;
struct controller *ctrl;
......@@ -82,7 +82,7 @@ static int show_ctrl (struct device *dev, char *buf)
}
static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL);
static int show_dev (struct device *dev, char *buf)
static ssize_t show_dev (struct device *dev, char *buf)
{
struct pci_dev *pci_dev;
struct controller *ctrl;
......
......@@ -38,7 +38,7 @@
/* A few routines that create sysfs entries for the hot plug controller */
static int show_ctrl (struct device *dev, char *buf)
static ssize_t show_ctrl (struct device *dev, char *buf)
{
struct pci_dev *pci_dev;
struct controller *ctrl;
......@@ -82,7 +82,7 @@ static int show_ctrl (struct device *dev, char *buf)
}
static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL);
static int show_dev (struct device *dev, char *buf)
static ssize_t show_dev (struct device *dev, char *buf)
{
struct pci_dev *pci_dev;
struct controller *ctrl;
......
......@@ -38,7 +38,7 @@
/* A few routines that create sysfs entries for the hot plug controller */
static int show_ctrl (struct device *dev, char *buf)
static ssize_t show_ctrl (struct device *dev, char *buf)
{
struct pci_dev *pci_dev;
struct controller *ctrl;
......@@ -82,7 +82,7 @@ static int show_ctrl (struct device *dev, char *buf)
}
static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL);
static int show_dev (struct device *dev, char *buf)
static ssize_t show_dev (struct device *dev, char *buf)
{
struct pci_dev *pci_dev;
struct controller *ctrl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment