Re: [patch] encapsulate uevent()/add_uevent_var() buffer handling

From: Cornelia Huck
Date: Fri Aug 17 2007 - 09:04:34 EST


On Tue, 14 Aug 2007 15:15:12 +0200,
Kay Sievers <kay.sievers@xxxxxxxx> wrote:

> From: Kay Sievers <kay.sievers@xxxxxxxx>
> Subject: Driver core: change add_uevent_var to use a struct

This still needs some (trivial) s390 fixes:

Signed-off-by: Cornelia Huck <cornelia.huck@xxxxxxxxxx>

---
drivers/s390/cio/device.c | 2 --
drivers/s390/crypto/ap_bus.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)

--- linux-2.6.orig/drivers/s390/crypto/ap_bus.c
+++ linux-2.6/drivers/s390/crypto/ap_bus.c
@@ -458,7 +458,7 @@ static int ap_bus_match(struct device *d
* uevent function for AP devices. It sets up a single environment
* variable DEV_TYPE which contains the hardware device type.
*/
-static int ap_uevent (struct device *dev, struct kobj_uevent_env)
+static int ap_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct ap_device *ap_dev = to_ap_dev(dev);
int retval = 0;
--- linux-2.6.orig/drivers/s390/cio/device.c
+++ linux-2.6/drivers/s390/cio/device.c
@@ -82,8 +82,6 @@ static int ccw_uevent(struct device *dev
{
struct ccw_device *cdev = to_ccwdev(dev);
struct ccw_device_id *id = &(cdev->id);
- int i = 0;
- int len = 0;
int ret;
char modalias_buf[30];

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/