Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1200144

Re: [RFC PATCH 1/2] mtd: nand: add nand_check_erased helper functions

From Boris Brezillon <boris.brezillon@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 1/2] mtd: nand: add nand_check_erased helper functions
Date 2015-08-04 18:40 +0200
Message-ID <pTNpT-7C4-9@gated-at.bofh.it> (permalink)
References <pSfqi-2mC-9@gated-at.bofh.it> <pTMDw-6sx-27@gated-at.bofh.it> <pScLL-6UO-3@gated-at.bofh.it> <pTMDw-6sx-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



Hi Andrea

Le 4 août 2015 17:42:43 GMT+02:00, Andrea Scian <rnd4@dave-tech.it> a écrit :
>
>>> +
>>> +		bitflips += sizeof(long) - weight;
>
>as above:
>
>bitflips += sizeof(long)*BITS_PER_BYTE - weight;


Indeed, or we could just replace sizeof(u8) by BITS_PER_BYTE and sizeof(long) by BITS_PER_LONG.

I'll fix that in the next version.

Note that I didn't test the series on a real platform and won't be able to do so for the next two weeks, so you might find other inconsistencies/bugs.

Thanks for testing it.

Best regards,

Boris

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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH 1/2] mtd: nand: add nand_check_erased helper functions Andrea Scian <rnd4@dave-tech.it> - 2015-08-04 17:50 +0200
  Re: [RFC PATCH 1/2] mtd: nand: add nand_check_erased helper functions Boris Brezillon <boris.brezillon@free-electrons.com> - 2015-08-04 18:40 +0200

csiph-web