staging: unisys: remove unneeded functions
PATCH 1/1 staging: unisys: remove unneeded functions
these functions are not being used anywhere.so we can remove them. has been verified by "git grep" that they are not being referenced anywhere also has been build tested.
Signed-off-by Sudip Mukherjee <[email protected]>
---
i am not sure if this is correct. req_handler_add() and req_handler_del() is not being used anywhere but req_handler_find() is being used.if we do not add to the list req_handler_info_list then how can we find from the list?
drivers/staging/unisys/include/uisutils.h | 31 ----- drivers/staging/unisys/uislib/uisutils.c | 191 ------------------------------ 2 files changed, 222 deletions(-)
drivers/staging/unisys/include/uisutils.h +0 -31
@@ -65,17 +65,7 @@ struct req_handler_info {struct list_head list_link;/* links into ReqHandlerInfo_list */ }; -struct req_handler_info *req_handler_add (uuid_le switch_uuid, -const char *switch_type_name, -int (*controlfunc)(struct io_msgs *), -unsigned long min_channel_bytes, -int (*svr_channel_ok)(unsigned long - channel_bytes), -int (*svr_channel_init)(void *x, -unsigned char *client_str, -u32 client_str_len,u64 bytes));struct req_handler_info *req_handler_find (uuid_le switch_uuid); -int req_handler_del (uuid_le switch_uuid);#define uislib_ioremap_cache (addr, size) \ dbg_ioremap_cache(addr, size, __FILE__, __LINE__)
@@ -115,19 +105,7 @@ int uisutil_add_proc_line_ex(int *total, char **buffer, int *buffer_remaining,int uisctrl_register_req_handler (int type,void *fptr,struct ultra_vbus_deviceinfo *chipset_driver_info); -int uisctrl_register_req_handler_ex (uuid_le switch_guid, -const char *switch_type_name, -int (*fptr)(struct io_msgs *), -unsigned long min_channel_bytes, -int (*svr_channel_ok)(unsigned long - channel_bytes), -int (*svr_channel_init)(void *x, -unsigned char *client_str, -u32 client_str_len, -u64 bytes), -struct ultra_vbus_deviceinfo *chipset_driver_info); -int uisctrl_unregister_req_handler_ex (uuid_le switch_uuid);unsigned char *util_map_virt (struct phys_info *sg);void util_unmap_virt (struct phys_info *sg);unsigned char *util_map_virt_atomic (struct phys_info *sg);
@@ -212,15 +190,6 @@ wait_for_valid_guid(uuid_le __iomem *guid)LOGERR ("OK... GUID is non-0 now\n" ); } -/* CopyFragsInfoFromSkb returns the number of entries added to frags array -* Returns -1 on failure. -*/ -unsigned int uisutil_copy_fragsinfo_from_skb (unsigned char *calling_ctx, -void *skb_in, -unsigned int firstfraglen, -unsigned int frags_max, -struct phys_info frags[]); -static inline unsigned int issue_vmcall_io_controlvm_addr (u64 *control_addr,u32 *control_bytes) {
drivers/staging/unisys/uislib/uisutils.c +0 -191
211 lines not on this page · raw message
Signature · 1 line
1.8.1.2