akpm@xxxxxxxxxxxxxxxxxxxx wrote:
From: Marcin Slusarz <marcin.slusarz@xxxxxxxxx> replace all: little_endian_variable = cpu_to_leX(leX_to_cpu(little_endian_variable) + expression_in_cpu_byteorder); with: leX_add_cpu(&little_endian_variable, expression_in_cpu_byteorder); generated with semantic patch Signed-off-by: Marcin Slusarz <marcin.slusarz@xxxxxxxxx> Cc: James.Bottomley@xxxxxxxxxxxxxxxxxxxxx Acked-by: "Salyzyn, Mark" <Mark_Salyzyn@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/scsi/aacraid/commsup.c | 2 +- drivers/scsi/ips.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-)
Not commenting on the patch, but the API: it should be le32_add() not le32_add_cpu()
Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html