Commit 2c683cde authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: refactor CRASH_OBJ_TYPE

Remove the typedef from the enumeration and replace references to it with
enum crash_obj_type. Fix CamelCase names:

CRASH_dev => CRASH_DEV
CRASH_bus => CRASH_BUS

Update all references to changed names.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6fb23e18
...@@ -53,10 +53,10 @@ enum visorchipset_addresstype { ...@@ -53,10 +53,10 @@ enum visorchipset_addresstype {
ADDRTYPE_LOCALTEST, ADDRTYPE_LOCALTEST,
}; };
typedef enum { enum crash_obj_type {
CRASH_dev, CRASH_DEV,
CRASH_bus, CRASH_BUS,
} CRASH_OBJ_TYPE; };
/** Attributes for a particular Supervisor channel. /** Attributes for a particular Supervisor channel.
*/ */
...@@ -288,7 +288,7 @@ int visorchipset_chipset_notready(void); ...@@ -288,7 +288,7 @@ int visorchipset_chipset_notready(void);
void visorchipset_controlvm_respond_reportEvent(struct controlvm_message *msg, void visorchipset_controlvm_respond_reportEvent(struct controlvm_message *msg,
void *payload); void *payload);
void visorchipset_save_message(struct controlvm_message *msg, void visorchipset_save_message(struct controlvm_message *msg,
CRASH_OBJ_TYPE type); enum crash_obj_type type);
void *visorchipset_cache_alloc(struct kmem_cache *pool, void *visorchipset_cache_alloc(struct kmem_cache *pool,
BOOL ok_to_block, char *fn, int ln); BOOL ok_to_block, char *fn, int ln);
void visorchipset_cache_free(struct kmem_cache *pool, void *p, void visorchipset_cache_free(struct kmem_cache *pool, void *p,
......
...@@ -760,7 +760,8 @@ static void controlvm_respond_physdev_changestate( ...@@ -760,7 +760,8 @@ static void controlvm_respond_physdev_changestate(
} }
void void
visorchipset_save_message(struct controlvm_message *msg, CRASH_OBJ_TYPE type) visorchipset_save_message(struct controlvm_message *msg,
enum crash_obj_type type)
{ {
u32 localSavedCrashMsgOffset; u32 localSavedCrashMsgOffset;
u16 localSavedCrashMsgCount; u16 localSavedCrashMsgCount;
...@@ -796,7 +797,7 @@ visorchipset_save_message(struct controlvm_message *msg, CRASH_OBJ_TYPE type) ...@@ -796,7 +797,7 @@ visorchipset_save_message(struct controlvm_message *msg, CRASH_OBJ_TYPE type)
return; return;
} }
if (type == CRASH_bus) { if (type == CRASH_BUS) {
if (visorchannel_write(ControlVm_channel, if (visorchannel_write(ControlVm_channel,
localSavedCrashMsgOffset, localSavedCrashMsgOffset,
msg, msg,
......
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