On Thu, Dec 03, 2015 at 05:31:51PM +0800, Xiubo Li wrote:Both of them are okay for me.
There will be some warning like the following when checking newIf there's a change to shut checkpatch up I'd rather just add the blank
patches near this code:
"WARNING: Missing a blank line after declarations"
This patch will suppress this warning.
switch (map->cache_word_size) {
- case 1: {
- u8 *cache = base;
- cache[idx] = val;
+ case 1:
+ ((u8 *)base)[idx] = val;
break;
- }
line it's asking for - the code is the way it is currently to avoid the
casts since they're hard for people to read.