This patch deletes multiple definitions of ARRAY_SIZE and
move the definition to a common file.
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
{ -EIO, "I/O error" },
};
-#define ARRAY_SIZE(x) (sizeof(x)/sizeof(*(x)))
-
static const char *get_blk_error(int err)
{
int i;
#include "ras-events.h"
#include "libtrace/event-parse.h"
-
-#define ARRAY_SIZE(x) (sizeof(x)/sizeof(*(x)))
-
enum cputype {
CPU_GENERIC,
CPU_P6OLD,
#define SQLITE_RAS_DB RASSTATEDIR "/" RAS_DB_FNAME
-
-#define ARRAY_SIZE(x) (sizeof(x)/sizeof(*(x)))
-
/*
* Table and functions to handle ras:mc_event
*/
#include <stdint.h>
#include "config.h"
+#define ARRAY_SIZE(x) (sizeof(x)/sizeof(*(x)))
+
extern long user_hz;
struct ras_events *ras;