* [PATCH] fix compiler warning in dd.c
[not found] <6defe8840705091829h44b78dc2w44f07c0993469128@mail.gmail.com>
@ 2007-05-21 2:36 ` Denver Gingerich
2007-05-21 10:41 ` Cornelia Huck
0 siblings, 1 reply; 2+ messages in thread
From: Denver Gingerich @ 2007-05-21 2:36 UTC (permalink / raw)
To: linux-kernel
This patch had been suggested by Indan Zupancic on May 13 but is not
in 2.6.22-rc2 so I'm re-sending it. Prior to Indan's e-mail, I had
sent the same patch to the kernel janitors list. I don't care whether
you credit the patch to me or Indan.
Denver
---------- Forwarded message ----------
From: Denver Gingerich <denver@ossguy.com>
Date: May 9, 2007 9:29 PM
Subject: [PATCH] fix compiler warning in dd.c
To: kernel-janitors@lists.linux-foundation.org
Correct the following compiler warning:
warning: 'device_probe_drivers' defined but not used
Verified that there are no device_probe_drivers() calls in the kernel tree.
Signed-off-by: Denver Gingerich <denver@ossguy.com>
---
--- linux-2.6.21/drivers/base/dd.c.000 2007-05-09 18:56:24.000000000 -0400
+++ linux-2.6.21/drivers/base/dd.c 2007-05-09 20:38:12.000000000 -0400
@@ -207,19 +207,6 @@ static int __device_attach(struct device
return driver_probe_device(drv, dev);
}
-static int device_probe_drivers(void *data)
-{
- struct device *dev = data;
- int ret = 0;
-
- if (dev->bus) {
- down(&dev->sem);
- ret = bus_for_each_drv(dev->bus, NULL, dev, __device_attach);
- up(&dev->sem);
- }
- return ret;
-}
-
/**
* device_attach - try to attach device to a driver.
* @dev: device.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fix compiler warning in dd.c
2007-05-21 2:36 ` [PATCH] fix compiler warning in dd.c Denver Gingerich
@ 2007-05-21 10:41 ` Cornelia Huck
0 siblings, 0 replies; 2+ messages in thread
From: Cornelia Huck @ 2007-05-21 10:41 UTC (permalink / raw)
To: Denver Gingerich; +Cc: linux-kernel, Greg K-H
On Sun, 20 May 2007 22:36:48 -0400,
"Denver Gingerich" <denver@ossguy.com> wrote:
> This patch had been suggested by Indan Zupancic on May 13 but is not
> in 2.6.22-rc2 so I'm re-sending it. Prior to Indan's e-mail, I had
> sent the same patch to the kernel janitors list. I don't care whether
> you credit the patch to me or Indan.
It seems you're about the fourth person to send that patch ;)
(Greg has driver-core-kill-unused-code.patch sitting in his tree, so I
guess he'll send this with his next round of patches.)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-21 10:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <6defe8840705091829h44b78dc2w44f07c0993469128@mail.gmail.com>
2007-05-21 2:36 ` [PATCH] fix compiler warning in dd.c Denver Gingerich
2007-05-21 10:41 ` Cornelia Huck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®