mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
staging: unisys: remove unused functions from uislib.c
Delete uislib_client_add_vnic() and uislib_client_delete_vnic(), since these are never used. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ca68b110a2
commit
1d87ba3bcc
@ -1083,82 +1083,6 @@ uislib_client_inject_del_vnic(u32 bus_no, u32 dev_no)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(uislib_client_inject_del_vnic);
|
||||
|
||||
static int
|
||||
uislib_client_add_vnic(u32 busNo)
|
||||
{
|
||||
BOOL busCreated = FALSE;
|
||||
int devNo = 0; /* Default to 0, since only one device
|
||||
* will be created for this bus... */
|
||||
struct controlvm_message msg;
|
||||
|
||||
init_msg_header(&msg, CONTROLVM_BUS_CREATE, 0, 0);
|
||||
msg.hdr.flags.test_message = 1;
|
||||
msg.cmd.create_bus.bus_no = busNo;
|
||||
msg.cmd.create_bus.dev_count = 4;
|
||||
msg.cmd.create_bus.channel_addr = 0;
|
||||
msg.cmd.create_bus.channel_bytes = 0;
|
||||
if (create_bus(&msg, NULL) != CONTROLVM_RESP_SUCCESS) {
|
||||
LOGERR("client create_bus failed");
|
||||
return 0;
|
||||
}
|
||||
busCreated = TRUE;
|
||||
|
||||
init_msg_header(&msg, CONTROLVM_DEVICE_CREATE, 0, 0);
|
||||
msg.hdr.flags.test_message = 1;
|
||||
msg.cmd.create_device.bus_no = busNo;
|
||||
msg.cmd.create_device.dev_no = devNo;
|
||||
msg.cmd.create_device.dev_inst_uuid = NULL_UUID_LE;
|
||||
memset(&msg.cmd.create_device.intr, 0, sizeof(struct irq_info));
|
||||
msg.cmd.create_device.channel_addr = PhysicalDataChan;
|
||||
msg.cmd.create_device.channel_bytes = MIN_IO_CHANNEL_SIZE;
|
||||
msg.cmd.create_device.data_type_uuid = spar_vnic_channel_protocol_uuid;
|
||||
if (create_device(&msg, NULL) != CONTROLVM_RESP_SUCCESS) {
|
||||
LOGERR("client create_device failed");
|
||||
goto AwayCleanup;
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
AwayCleanup:
|
||||
if (busCreated) {
|
||||
init_msg_header(&msg, CONTROLVM_BUS_DESTROY, 0, 0);
|
||||
msg.hdr.flags.test_message = 1;
|
||||
msg.cmd.destroy_bus.bus_no = busNo;
|
||||
if (destroy_bus(&msg, NULL) != CONTROLVM_RESP_SUCCESS)
|
||||
LOGERR("client destroy_bus failed.\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
} /* end uislib_client_add_vnic */
|
||||
EXPORT_SYMBOL_GPL(uislib_client_add_vnic);
|
||||
|
||||
static int
|
||||
uislib_client_delete_vnic(u32 busNo)
|
||||
{
|
||||
int devNo = 0; /* Default to 0, since only one device
|
||||
* will be created for this bus... */
|
||||
struct controlvm_message msg;
|
||||
|
||||
init_msg_header(&msg, CONTROLVM_DEVICE_DESTROY, 0, 0);
|
||||
msg.hdr.flags.test_message = 1;
|
||||
msg.cmd.destroy_device.bus_no = busNo;
|
||||
msg.cmd.destroy_device.dev_no = devNo;
|
||||
if (destroy_device(&msg, NULL) != CONTROLVM_RESP_SUCCESS) {
|
||||
/* Don't error exit - try to see if bus can be destroyed... */
|
||||
LOGERR("client destroy_device failed.\n");
|
||||
}
|
||||
|
||||
init_msg_header(&msg, CONTROLVM_BUS_DESTROY, 0, 0);
|
||||
msg.hdr.flags.test_message = 1;
|
||||
msg.cmd.destroy_bus.bus_no = busNo;
|
||||
if (destroy_bus(&msg, NULL) != CONTROLVM_RESP_SUCCESS)
|
||||
LOGERR("client destroy_bus failed.\n");
|
||||
|
||||
return 1;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(uislib_client_delete_vnic);
|
||||
/* end client_delete_vnic */
|
||||
|
||||
void *
|
||||
uislib_cache_alloc(struct kmem_cache *cur_pool, char *fn, int ln)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user