Re: [PATCH] Avoid nested function definition

2016-11-26 Thread Coly Li
On 2016/11/27 上午6:24, Peter Foley wrote: > Fixes below error with clang: > ../drivers/md/bcache/sysfs.c:759:3: error: function definition is not allowed > here > { return *((uint16_t *) r) - *((uint16_t *) l); } > ^ > ../drivers/md/bcache/sysfs.c:789:32: error

[PATCH] Avoid nested function definition

2016-11-26 Thread Peter Foley
Fixes below error with clang: ../drivers/md/bcache/sysfs.c:759:3: error: function definition is not allowed here { return *((uint16_t *) r) - *((uint16_t *) l); } ^ ../drivers/md/bcache/sysfs.c:789:32: error: use of undeclared identifier 'cmp'