Prev: regulator: tps6507x - add missing platform_set_drvdata in tps6507x_pmic_probe
Next: [PATCH] regulator: tps6586x - add regulator_unregister() in tps6586x_regulator_remove()
From: David Miller on 9 Aug 2010 03:50 Kulikov, can you at least build test your patches? Casts are not always incorrect, particularly when private cookies are "unsigned long" as is the case here: drivers/char/hw_random/n2-drv.c: In function ¡n2rng_data_read¢: drivers/char/hw_random/n2-drv.c:390: warning: initialization makes pointer from integer without a cast Herbert, please revert this change, thanks. And I suspect there might be more of these hwrng driver duds that went into the tree, it's worth checking out. :-) Thanks. commit 8b9cfdca9c52f7d39c3ccfac1668e31c20c9f42e Author: Kulikov Vasiliy <segooon(a)gmail.com> Date: Mon Jul 5 21:25:06 2010 +0800 hwrng: n2-drv - remove casts from void* Remove unnesessary casts from void*. Signed-off-by: Kulikov Vasiliy <segooon(a)gmail.com> Signed-off-by: Herbert Xu <herbert(a)gondor.apana.org.au>
From: Herbert Xu on 9 Aug 2010 10:30 On Mon, Aug 09, 2010 at 12:45:14AM -0700, David Miller wrote: > > Kulikov, can you at least build test your patches? Casts are not > always incorrect, particularly when private cookies are "unsigned > long" as is the case here: > > drivers/char/hw_random/n2-drv.c: In function 'n2rng_data_read': > drivers/char/hw_random/n2-drv.c:390: warning: initialization makes pointer from integer without a cast > > Herbert, please revert this change, thanks. And I suspect there > might be more of these hwrng driver duds that went into the tree, > it's worth checking out. :-) Thanks Dave. I'll revert it for now. However, it probably makes sense to change priv into a void * as most drivers use it as a pointer instead of an integer. Thanks, -- Email: Herbert Xu <herbert(a)gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Vasiliy Kulikov on 9 Aug 2010 15:40
On Mon, Aug 09, 2010 at 00:45 -0700, David Miller wrote: > > Kulikov, can you at least build test your patches? Casts are not > always incorrect, particularly when private cookies are "unsigned > long" as is the case here: > > drivers/char/hw_random/n2-drv.c: In function 'n2rng_data_read': > drivers/char/hw_random/n2-drv.c:390: warning: initialization makes pointer from integer without a cast Ahh, shame on me... I'd compiled this on x86 and looked through error log, I wrongly pointed out that there is no error at this line. As I see now, this tactic is incorrect. I'd not do this any more, sorry for this... > > Herbert, please revert this change, thanks. And I suspect there > might be more of these hwrng driver duds that went into the tree, > it's worth checking out. :-) > > Thanks. > > commit 8b9cfdca9c52f7d39c3ccfac1668e31c20c9f42e > Author: Kulikov Vasiliy <segooon(a)gmail.com> > Date: Mon Jul 5 21:25:06 2010 +0800 > > hwrng: n2-drv - remove casts from void* > > Remove unnesessary casts from void*. > > Signed-off-by: Kulikov Vasiliy <segooon(a)gmail.com> > Signed-off-by: Herbert Xu <herbert(a)gondor.apana.org.au> > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |