]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparse: fix misplaced __pmem definition
authorDan Williams <dan.j.williams@intel.com>
Tue, 30 Jun 2015 16:07:17 +0000 (12:07 -0400)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:18:59 +0000 (12:18 -0500)
commita49b47a08ce8517119bab6e205d3fc85cc078fb6
tree17f5ed752bd47fe529ccbe26369033478dcca7d8
parent1b2f57577b3c56c96d2afa2c9fb517c874c60a30
sparse: fix misplaced __pmem definition

Orabug: 22913653

Move the definition of __pmem outside of CONFIG_SPARSE_RCU_POINTER to fix:

drivers/nvdimm/pmem.c:198:17: sparse: too many arguments for function __builtin_expect
drivers/nvdimm/pmem.c:36:33: sparse: expected ; at end of declaration
drivers/nvdimm/pmem.c:48:21: sparse: void declaration

...due to __pmem failing to be defined in some configurations when
CONFIG_SPARSE_RCU_POINTER=y.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 31f02455455d405320e2f749696bef4e02903b35)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
include/linux/compiler.h