linux-brain/drivers/nvdimm
Qian Cai 7ceb69670c libnvdimm/btt: fix variable 'rc' set but not used
[ Upstream commit 4e24e37d5313edca8b4ab86f240c046c731e28d6 ]

drivers/nvdimm/btt.c: In function 'btt_read_pg':
drivers/nvdimm/btt.c:1264:8: warning: variable 'rc' set but not used
[-Wunused-but-set-variable]
    int rc;
        ^~

Add a ratelimited message in case a storm of errors is encountered.

Fixes: d9b83c7569 ("libnvdimm, btt: rework error clearing")
Signed-off-by: Qian Cai <cai@lca.pw>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Link: https://lore.kernel.org/r/1572530719-32161-1-git-send-email-cai@lca.pw
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-04 13:59:46 +01:00
..
Kconfig pmem: add dax_operations support 2017-04-19 15:14:35 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
blk.c libnvdimm, {btt, blk}: do integrity setup before add_disk() 2018-03-28 18:24:41 +02:00
btt.c libnvdimm/btt: fix variable 'rc' set but not used 2020-01-04 13:59:46 +01:00
btt.h libnvdimm, btt: Fix an incompatibility in the log layout 2017-12-29 17:53:49 +01:00
btt_devs.c libnvdimm/btt: Fix a kmemdup failure check 2019-05-16 19:42:20 +02:00
bus.c libnvdimm: Fix compilation warnings with W=1 2019-06-19 08:20:57 +02:00
claim.c libnvdimm, btt: rework error clearing 2017-08-31 15:05:10 -07:00
core.c libnvdimm: rename nd_sector_size_{show,store} to nd_size_select_{show,store} 2017-08-11 17:36:54 -07:00
dax_devs.c libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
dimm.c libnvdimm, dimm: fix dpa reservation vs uninitialized label area 2018-04-24 09:36:32 +02:00
dimm_devs.c libnvdimm, dimm: clear 'locked' status on successful DIMM enable 2017-11-30 08:40:54 +00:00
e820.c libnvdimm, e820: use module_platform_driver 2016-12-05 08:52:21 -08:00
label.c libnvdimm: Fix compilation warnings with W=1 2019-06-19 08:20:57 +02:00
label.h libnvdimm: Fix compilation warnings with W=1 2019-06-19 08:20:57 +02:00
namespace_devs.c libnvdimm/namespace: Fix label tracking error 2019-05-31 06:47:11 -07:00
nd-core.h libnvdimm, pfn: Pad pfn namespaces relative to other regions 2018-12-13 09:18:54 +01:00
nd.h libnvdimm/namespace: Fix label tracking error 2019-05-31 06:47:11 -07:00
pfn.h libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
pfn_devs.c libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
pmem.c libnvdimm/pmem: Bypass CONFIG_HARDENED_USERCOPY overhead 2019-05-31 06:47:11 -07:00
pmem.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
region.c libnvdimm, region, pmem: fix 'badblocks' sysfs_get_dirent() reference lifetime 2017-06-30 18:56:03 -07:00
region_devs.c libnvdimm, pfn: Pad pfn namespaces relative to other regions 2018-12-13 09:18:54 +01:00