[PATCH v2 2/6] kdump-lib: add common variables and function for fence kdump