Re: Are the cast necessary in function "kfree"?

From: Christian Bornträger
Date: Wed May 20 2009 - 06:39:21 EST


Am Mittwoch 20 Mai 2009 12:30:21 schrieb André Lopes:

I only looked at the s390 parts:

> arch/s390/include/asm/idals.h:110: kfree((void *)(unsigned long) ccw->cda);
This cast is necessary since cda is an u32 even on 64bit machines.

> drivers/s390/char/vmur.c:188: kfree((void *)(addr_t) ptr->cda);
dito.

Christian


--
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/