Commit 3840b772 authored by Bryan Thompson's avatar Bryan Thompson Committed by Greg Kroah-Hartman

staging: unisys: visorbus: Remove POSTCODE_LINUX_2 macro

Call POSTCODE_LINUX directly instead of passing through POSTCODE_LINUX_2.
Signed-off-by: default avatarBryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c0e87ae2
...@@ -966,7 +966,7 @@ create_bus_instance(struct visor_device *dev) ...@@ -966,7 +966,7 @@ create_bus_instance(struct visor_device *dev)
int err; int err;
struct spar_vbus_headerinfo *hdr_info; struct spar_vbus_headerinfo *hdr_info;
POSTCODE_LINUX_2(BUS_CREATE_ENTRY_PC, POSTCODE_SEVERITY_INFO); POSTCODE_LINUX(BUS_CREATE_ENTRY_PC, 0, 0, POSTCODE_SEVERITY_INFO);
hdr_info = kzalloc(sizeof(*hdr_info), GFP_KERNEL); hdr_info = kzalloc(sizeof(*hdr_info), GFP_KERNEL);
if (!hdr_info) if (!hdr_info)
...@@ -1307,7 +1307,7 @@ visorbus_init(void) ...@@ -1307,7 +1307,7 @@ visorbus_init(void)
err = create_bus_type(); err = create_bus_type();
if (err < 0) { if (err < 0) {
POSTCODE_LINUX_2(BUS_CREATE_ENTRY_PC, DIAG_SEVERITY_ERR); POSTCODE_LINUX(BUS_CREATE_ENTRY_PC, 0, 0, DIAG_SEVERITY_ERR);
goto error; goto error;
} }
......
...@@ -519,14 +519,14 @@ chipset_init(struct controlvm_message *inmsg) ...@@ -519,14 +519,14 @@ chipset_init(struct controlvm_message *inmsg)
int rc = CONTROLVM_RESP_SUCCESS; int rc = CONTROLVM_RESP_SUCCESS;
int res = 0; int res = 0;
POSTCODE_LINUX_2(CHIPSET_INIT_ENTRY_PC, POSTCODE_SEVERITY_INFO); POSTCODE_LINUX(CHIPSET_INIT_ENTRY_PC, 0, 0, POSTCODE_SEVERITY_INFO);
if (chipset_inited) { if (chipset_inited) {
rc = -CONTROLVM_RESP_ERROR_ALREADY_DONE; rc = -CONTROLVM_RESP_ERROR_ALREADY_DONE;
res = -EIO; res = -EIO;
goto out_respond; goto out_respond;
} }
chipset_inited = 1; chipset_inited = 1;
POSTCODE_LINUX_2(CHIPSET_INIT_EXIT_PC, POSTCODE_SEVERITY_INFO); POSTCODE_LINUX(CHIPSET_INIT_EXIT_PC, 0, 0, POSTCODE_SEVERITY_INFO);
/* /*
* Set features to indicate we support parahotplug (if Command * Set features to indicate we support parahotplug (if Command
...@@ -591,8 +591,8 @@ save_crash_message(struct controlvm_message *msg, enum crash_obj_type typ) ...@@ -591,8 +591,8 @@ save_crash_message(struct controlvm_message *msg, enum crash_obj_type typ)
saved_crash_message_count), saved_crash_message_count),
&local_crash_msg_count, sizeof(u16)); &local_crash_msg_count, sizeof(u16));
if (err) { if (err) {
POSTCODE_LINUX_2(CRASH_DEV_CTRL_RD_FAILURE_PC, POSTCODE_LINUX(CRASH_DEV_CTRL_RD_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return err; return err;
} }
...@@ -608,8 +608,8 @@ save_crash_message(struct controlvm_message *msg, enum crash_obj_type typ) ...@@ -608,8 +608,8 @@ save_crash_message(struct controlvm_message *msg, enum crash_obj_type typ)
saved_crash_message_offset), saved_crash_message_offset),
&local_crash_msg_offset, sizeof(u32)); &local_crash_msg_offset, sizeof(u32));
if (err) { if (err) {
POSTCODE_LINUX_2(CRASH_DEV_CTRL_RD_FAILURE_PC, POSTCODE_LINUX(CRASH_DEV_CTRL_RD_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return err; return err;
} }
...@@ -619,8 +619,8 @@ save_crash_message(struct controlvm_message *msg, enum crash_obj_type typ) ...@@ -619,8 +619,8 @@ save_crash_message(struct controlvm_message *msg, enum crash_obj_type typ)
msg, msg,
sizeof(struct controlvm_message)); sizeof(struct controlvm_message));
if (err) { if (err) {
POSTCODE_LINUX_2(SAVE_MSG_BUS_FAILURE_PC, POSTCODE_LINUX(SAVE_MSG_BUS_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return err; return err;
} }
} else { } else {
...@@ -630,8 +630,8 @@ save_crash_message(struct controlvm_message *msg, enum crash_obj_type typ) ...@@ -630,8 +630,8 @@ save_crash_message(struct controlvm_message *msg, enum crash_obj_type typ)
msg, msg,
sizeof(struct controlvm_message)); sizeof(struct controlvm_message));
if (err) { if (err) {
POSTCODE_LINUX_2(SAVE_MSG_DEV_FAILURE_PC, POSTCODE_LINUX(SAVE_MSG_DEV_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return err; return err;
} }
} }
...@@ -1135,16 +1135,16 @@ initialize_controlvm_payload(void) ...@@ -1135,16 +1135,16 @@ initialize_controlvm_payload(void)
offsetof(struct spar_controlvm_channel_protocol, offsetof(struct spar_controlvm_channel_protocol,
request_payload_offset), request_payload_offset),
&payload_offset, sizeof(payload_offset)) < 0) { &payload_offset, sizeof(payload_offset)) < 0) {
POSTCODE_LINUX_2(CONTROLVM_INIT_FAILURE_PC, POSTCODE_LINUX(CONTROLVM_INIT_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return; return;
} }
if (visorchannel_read(controlvm_channel, if (visorchannel_read(controlvm_channel,
offsetof(struct spar_controlvm_channel_protocol, offsetof(struct spar_controlvm_channel_protocol,
request_payload_bytes), request_payload_bytes),
&payload_bytes, sizeof(payload_bytes)) < 0) { &payload_bytes, sizeof(payload_bytes)) < 0) {
POSTCODE_LINUX_2(CONTROLVM_INIT_FAILURE_PC, POSTCODE_LINUX(CONTROLVM_INIT_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return; return;
} }
initialize_controlvm_payload_info(phys_addr, initialize_controlvm_payload_info(phys_addr,
...@@ -1564,7 +1564,7 @@ setup_crash_devices_work_queue(struct work_struct *work) ...@@ -1564,7 +1564,7 @@ setup_crash_devices_work_queue(struct work_struct *work)
u32 local_crash_msg_offset; u32 local_crash_msg_offset;
u16 local_crash_msg_count; u16 local_crash_msg_count;
POSTCODE_LINUX_2(CRASH_DEV_ENTRY_PC, POSTCODE_SEVERITY_INFO); POSTCODE_LINUX(CRASH_DEV_ENTRY_PC, 0, 0, POSTCODE_SEVERITY_INFO);
/* send init chipset msg */ /* send init chipset msg */
msg.hdr.id = CONTROLVM_CHIPSET_INIT; msg.hdr.id = CONTROLVM_CHIPSET_INIT;
...@@ -1578,8 +1578,8 @@ setup_crash_devices_work_queue(struct work_struct *work) ...@@ -1578,8 +1578,8 @@ setup_crash_devices_work_queue(struct work_struct *work)
offsetof(struct spar_controlvm_channel_protocol, offsetof(struct spar_controlvm_channel_protocol,
saved_crash_message_count), saved_crash_message_count),
&local_crash_msg_count, sizeof(u16)) < 0) { &local_crash_msg_count, sizeof(u16)) < 0) {
POSTCODE_LINUX_2(CRASH_DEV_CTRL_RD_FAILURE_PC, POSTCODE_LINUX(CRASH_DEV_CTRL_RD_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return; return;
} }
...@@ -1595,8 +1595,8 @@ setup_crash_devices_work_queue(struct work_struct *work) ...@@ -1595,8 +1595,8 @@ setup_crash_devices_work_queue(struct work_struct *work)
offsetof(struct spar_controlvm_channel_protocol, offsetof(struct spar_controlvm_channel_protocol,
saved_crash_message_offset), saved_crash_message_offset),
&local_crash_msg_offset, sizeof(u32)) < 0) { &local_crash_msg_offset, sizeof(u32)) < 0) {
POSTCODE_LINUX_2(CRASH_DEV_CTRL_RD_FAILURE_PC, POSTCODE_LINUX(CRASH_DEV_CTRL_RD_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return; return;
} }
...@@ -1605,8 +1605,8 @@ setup_crash_devices_work_queue(struct work_struct *work) ...@@ -1605,8 +1605,8 @@ setup_crash_devices_work_queue(struct work_struct *work)
local_crash_msg_offset, local_crash_msg_offset,
&local_crash_bus_msg, &local_crash_bus_msg,
sizeof(struct controlvm_message)) < 0) { sizeof(struct controlvm_message)) < 0) {
POSTCODE_LINUX_2(CRASH_DEV_RD_BUS_FAIULRE_PC, POSTCODE_LINUX(CRASH_DEV_RD_BUS_FAIULRE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return; return;
} }
...@@ -1616,8 +1616,8 @@ setup_crash_devices_work_queue(struct work_struct *work) ...@@ -1616,8 +1616,8 @@ setup_crash_devices_work_queue(struct work_struct *work)
sizeof(struct controlvm_message), sizeof(struct controlvm_message),
&local_crash_dev_msg, &local_crash_dev_msg,
sizeof(struct controlvm_message)) < 0) { sizeof(struct controlvm_message)) < 0) {
POSTCODE_LINUX_2(CRASH_DEV_RD_DEV_FAIULRE_PC, POSTCODE_LINUX(CRASH_DEV_RD_DEV_FAIULRE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return; return;
} }
...@@ -1625,8 +1625,8 @@ setup_crash_devices_work_queue(struct work_struct *work) ...@@ -1625,8 +1625,8 @@ setup_crash_devices_work_queue(struct work_struct *work)
if (local_crash_bus_msg.cmd.create_bus.channel_addr) { if (local_crash_bus_msg.cmd.create_bus.channel_addr) {
bus_create(&local_crash_bus_msg); bus_create(&local_crash_bus_msg);
} else { } else {
POSTCODE_LINUX_2(CRASH_DEV_BUS_NULL_FAILURE_PC, POSTCODE_LINUX(CRASH_DEV_BUS_NULL_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return; return;
} }
...@@ -1634,11 +1634,11 @@ setup_crash_devices_work_queue(struct work_struct *work) ...@@ -1634,11 +1634,11 @@ setup_crash_devices_work_queue(struct work_struct *work)
if (local_crash_dev_msg.cmd.create_device.channel_addr) { if (local_crash_dev_msg.cmd.create_device.channel_addr) {
my_device_create(&local_crash_dev_msg); my_device_create(&local_crash_dev_msg);
} else { } else {
POSTCODE_LINUX_2(CRASH_DEV_DEV_NULL_FAILURE_PC, POSTCODE_LINUX(CRASH_DEV_DEV_NULL_FAILURE_PC, 0, 0,
POSTCODE_SEVERITY_ERR); POSTCODE_SEVERITY_ERR);
return; return;
} }
POSTCODE_LINUX_2(CRASH_DEV_EXIT_PC, POSTCODE_SEVERITY_INFO); POSTCODE_LINUX(CRASH_DEV_EXIT_PC, 0, 0, POSTCODE_SEVERITY_INFO);
} }
void void
...@@ -2174,11 +2174,12 @@ visorchipset_init(struct acpi_device *acpi_device) ...@@ -2174,11 +2174,12 @@ visorchipset_init(struct acpi_device *acpi_device)
visorchipset_platform_device.dev.devt = major_dev; visorchipset_platform_device.dev.devt = major_dev;
if (platform_device_register(&visorchipset_platform_device) < 0) { if (platform_device_register(&visorchipset_platform_device) < 0) {
POSTCODE_LINUX_2(DEVICE_REGISTER_FAILURE_PC, DIAG_SEVERITY_ERR); POSTCODE_LINUX(DEVICE_REGISTER_FAILURE_PC, 0, 0,
DIAG_SEVERITY_ERR);
err = -ENODEV; err = -ENODEV;
goto error_cancel_work; goto error_cancel_work;
} }
POSTCODE_LINUX_2(CHIPSET_INIT_SUCCESS_PC, POSTCODE_SEVERITY_INFO); POSTCODE_LINUX(CHIPSET_INIT_SUCCESS_PC, 0, 0, POSTCODE_SEVERITY_INFO);
err = visorbus_init(); err = visorbus_init();
if (err < 0) if (err < 0)
...@@ -2207,7 +2208,7 @@ visorchipset_init(struct acpi_device *acpi_device) ...@@ -2207,7 +2208,7 @@ visorchipset_init(struct acpi_device *acpi_device)
static int static int
visorchipset_exit(struct acpi_device *acpi_device) visorchipset_exit(struct acpi_device *acpi_device)
{ {
POSTCODE_LINUX_2(DRIVER_EXIT_PC, POSTCODE_SEVERITY_INFO); POSTCODE_LINUX(DRIVER_EXIT_PC, 0, 0, POSTCODE_SEVERITY_INFO);
visorbus_exit(); visorbus_exit();
...@@ -2218,7 +2219,7 @@ visorchipset_exit(struct acpi_device *acpi_device) ...@@ -2218,7 +2219,7 @@ visorchipset_exit(struct acpi_device *acpi_device)
visorchipset_file_cleanup(visorchipset_platform_device.dev.devt); visorchipset_file_cleanup(visorchipset_platform_device.dev.devt);
platform_device_unregister(&visorchipset_platform_device); platform_device_unregister(&visorchipset_platform_device);
POSTCODE_LINUX_2(DRIVER_EXIT_PC, POSTCODE_SEVERITY_INFO); POSTCODE_LINUX(DRIVER_EXIT_PC, 0, 0, POSTCODE_SEVERITY_INFO);
return 0; return 0;
} }
......
...@@ -254,9 +254,6 @@ do { \ ...@@ -254,9 +254,6 @@ do { \
} while (0) } while (0)
/* MOST COMMON */ /* MOST COMMON */
#define POSTCODE_LINUX_2(EVENT_PC, severity) \
POSTCODE_LINUX(EVENT_PC, 0, 0, severity)
#define POSTCODE_LINUX_3(EVENT_PC, pc32bit, severity) \ #define POSTCODE_LINUX_3(EVENT_PC, pc32bit, severity) \
POSTCODE_LINUX(EVENT_PC, (pc32bit >> 16), (pc32bit & 0xFFFF), \ POSTCODE_LINUX(EVENT_PC, (pc32bit >> 16), (pc32bit & 0xFFFF), \
severity) severity)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment