• Qian Cai's avatar
    libnvdimm: Fix compilation warnings with W=1 · 69bb52fd
    Qian Cai authored
    [ Upstream commit c01dafad77fea8d64c4fdca0a6031c980842ad65 ]
    
    Several places (dimm_devs.c, core.c etc) include label.h but only
    label.c uses NSINDEX_SIGNATURE, so move its definition to label.c
    instead.
    
    In file included from drivers/nvdimm/dimm_devs.c:23:
    drivers/nvdimm/label.h:41:19: warning: 'NSINDEX_SIGNATURE' defined but
    not used [-Wunused-const-variable=]
    
    Also, some places abuse "/**" which is only reserved for the kernel-doc.
    
    drivers/nvdimm/bus.c:648: warning: cannot understand function prototype:
    'struct attribute_group nd_device_attribute_group = '
    drivers/nvdimm/bus.c:677: warning: cannot understand function prototype:
    'struct attribute_group nd_numa_attribute_group = '
    
    Those are just some member assignments for the "struct attribute_group"
    instances and it can't be expressed in the kernel-doc.
    Reviewed-by: default avatarVishal Verma <vishal.l.verma@intel.com>
    Signed-off-by: default avatarQian Cai <cai@lca.pw>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
    69bb52fd
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
blk.c Loading commit data...
btt.c Loading commit data...
btt.h Loading commit data...
btt_devs.c Loading commit data...
bus.c Loading commit data...
claim.c Loading commit data...
core.c Loading commit data...
dax_devs.c Loading commit data...
dimm.c Loading commit data...
dimm_devs.c Loading commit data...
e820.c Loading commit data...
label.c Loading commit data...
label.h Loading commit data...
namespace_devs.c Loading commit data...
nd-core.h Loading commit data...
nd.h Loading commit data...
pfn.h Loading commit data...
pfn_devs.c Loading commit data...
pmem.c Loading commit data...
pmem.h Loading commit data...
region.c Loading commit data...
region_devs.c Loading commit data...