OSDN Git Service

EDAC/device: Rework error logging API
authorHanna Hawa <hhhawa@amazon.com>
Mon, 23 Sep 2019 19:17:40 +0000 (20:17 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 9 Oct 2019 11:01:42 +0000 (13:01 +0200)
commit9816b4af4351bf9d33c2e635b6f14327823a9c2a
tree8846d170ec94945e9188e5d5235ef57c1d27337a
parentf05390d30e20cccd8f8de981dee42bcdd8d2d137
EDAC/device: Rework error logging API

Make the main workhorse the "count" functions which can log a @count
of errors. Have the current APIs edac_device_handle_{ce,ue}() call
the _count() variants and this way keep the exported symbols number
unchanged.

 [ bp: Rewrite. ]

Signed-off-by: Hanna Hawa <hhhawa@amazon.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: benh@amazon.com
Cc: dwmw@amazon.co.uk
Cc: hanochu@amazon.com
Cc: James Morse <james.morse@arm.com>
Cc: jonnyc@amazon.com
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: ronenk@amazon.com
Cc: talel@amazon.com
Cc: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20190923191741.29322-2-hhhawa@amazon.com
drivers/edac/edac_device.c
drivers/edac/edac_device.h