/openbmc/linux/scripts/coccinelle/api/ |
H A D | kstrdup.cocci | 2 /// Use kstrdup rather than duplicating its implementation 24 + to = kstrdup(from, flag); 39 + to = kstrdup(from, flag); 80 cocci.print_main("WARNING opportunity for kstrdup",p1) 88 cocci.print_main("WARNING opportunity for kstrdup",p1) 96 msg = "WARNING opportunity for kstrdup (strcpy on line %s)" % (p2[0].line) 104 msg = "WARNING opportunity for kstrdup (memcpy on line %s)" % (p2[0].line)
|
/openbmc/linux/drivers/parport/ |
H A D | probe.c | 80 info->mfr = kstrdup(sep, GFP_KERNEL); in parse_data() 83 info->model = kstrdup(sep, GFP_KERNEL); in parse_data() 88 info->class_name = kstrdup(sep, GFP_KERNEL); in parse_data() 102 info->cmdset = kstrdup(sep, GFP_KERNEL); in parse_data() 109 info->description = kstrdup(sep, GFP_KERNEL); in parse_data()
|
/openbmc/linux/net/sunrpc/xprtrdma/ |
H A D | transport.c | 154 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses4() 166 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses6() 189 xprt->address_strings[RPC_DISPLAY_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 192 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 195 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 403 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port() 407 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()
|
/openbmc/linux/fs/smb/client/ |
H A D | fs_context.c | 333 new_ctx->field = kstrdup(ctx->field, GFP_ATOMIC); \ 450 orig = opts = kstrdup(options, GFP_KERNEL); in smb3_parse_opt() 466 *val = kstrdup(nval, GFP_KERNEL); in smb3_parse_opt() 515 s = kstrdup(prepath, gfp); in cifs_sanitize_prepath() 897 cifs_sb->ctx->password = kstrdup(ses->password, GFP_KERNEL); in smb3_sync_session_ctx_passwords() 905 cifs_sb->ctx->password2 = kstrdup(ses->password2, GFP_KERNEL); in smb3_sync_session_ctx_passwords() 946 new_password = kstrdup(ctx->password, GFP_KERNEL); in smb3_reconfigure() 958 new_password2 = kstrdup(ctx->password2, GFP_KERNEL); in smb3_reconfigure() 1359 fc->source = kstrdup(ctx->source, GFP_KERNEL); in smb3_fs_context_parse_param() 1381 ctx->username = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() [all …]
|
H A D | dfs_cache.c | 100 npath = kstrdup(path, GFP_KERNEL); in dfs_cache_canonical_path() 368 t->name = kstrdup(name, GFP_ATOMIC); in alloc_target() 631 th = kstrdup(target->name, GFP_ATOMIC); in update_cache_entry_locked() 765 ref->path_name = kstrdup(path, GFP_ATOMIC); in setup_referral() 769 ref->node_name = kstrdup(target, GFP_ATOMIC); in setup_referral() 807 it->it_name = kstrdup(t->name, GFP_ATOMIC); in get_targets() 1191 path = kstrdup(server->leaf_fullpath + 1, GFP_ATOMIC); in __refresh_ses_referral()
|
H A D | unc.c | 64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
|
/openbmc/linux/arch/arm/mach-mvebu/ |
H A D | board-v7.c | 129 new_compat->name = kstrdup("compatible", GFP_KERNEL); in i2c_quirk() 131 new_compat->value = kstrdup("marvell,mv78230-a0-i2c", in i2c_quirk()
|
/openbmc/linux/arch/arm/mach-versatile/ |
H A D | versatile.c | 149 newprop->name = kstrdup("status", GFP_KERNEL); in versatile_dt_pci_init() 150 newprop->value = kstrdup("disabled", GFP_KERNEL); in versatile_dt_pci_init()
|
/openbmc/linux/drivers/interconnect/ |
H A D | debugfs-client.c | 74 src = kstrdup(src, GFP_ATOMIC); in icc_get_set() 75 dst = kstrdup(dst, GFP_ATOMIC); in icc_get_set()
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fb_cmdline.c | 54 *option = kstrdup(options, GFP_KERNEL); in fb_get_options()
|
/openbmc/linux/lib/ |
H A D | string_helpers.c | 704 return kstrdup("<unknown>", gfp); in kstrdup_quotable_file() 709 return kstrdup("<no_memory>", gfp); in kstrdup_quotable_file() 713 pathname = kstrdup("<too_long>", gfp); in kstrdup_quotable_file() 729 dst = kstrdup(src, gfp); in kstrdup_and_replace()
|
/openbmc/linux/kernel/trace/ |
H A D | trace_boot.c | 432 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms() 443 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms() 567 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter() 577 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
|
H A D | fprobe.c | 258 str = kstrdup(filter, GFP_KERNEL); in register_fprobe() 266 str = kstrdup(notfilter, GFP_KERNEL); in register_fprobe()
|
/openbmc/linux/fs/smb/server/mgmt/ |
H A D | share_config.c | 109 p->pattern = kstrdup(veto_list, GFP_KERNEL); in parse_veto_list() 160 share->name = kstrdup(name, GFP_KERNEL); in share_config_request()
|
H A D | user_config.c | 38 user->name = kstrdup(resp->account, GFP_KERNEL); in ksmbd_alloc_user()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | dlpar.c | 60 prop->name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_property() 87 dn->full_name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_node() 506 args = argbuf = kstrdup(buf, GFP_KERNEL); in dlpar_store()
|
/openbmc/linux/drivers/platform/x86/ |
H A D | think-lmi.c | 278 s = kstrdup(obj->string.pointer, GFP_KERNEL); in tlmi_extract_output_string() 435 new_pwd = kstrdup(buf, GFP_KERNEL); in new_password_store() 712 passwd = kstrdup(buf, GFP_KERNEL); in cert_to_password_store() 768 new_cert = kstrdup(buf, GFP_KERNEL); in certificate_store() 820 new_signature = kstrdup(buf, GFP_KERNEL); in signature_store() 849 new_signature = kstrdup(buf, GFP_KERNEL); in save_signature_store() 988 new_setting = kstrdup(buf, GFP_KERNEL); in current_value_store() 1168 new_setting = kstrdup(buf, GFP_KERNEL); in debug_cmd_store()
|
/openbmc/linux/drivers/regulator/ |
H A D | fixed-helper.c | 39 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on()
|
/openbmc/linux/fs/smb/server/ |
H A D | transport_tcp.c | 531 iface = alloc_iface(kstrdup(netdev->name, GFP_KERNEL)); in ksmbd_netdev_event() 627 if (!alloc_iface(kstrdup(netdev->name, GFP_KERNEL))) { in ksmbd_tcp_set_interfaces() 638 if (!alloc_iface(kstrdup(ifc_list, GFP_KERNEL))) in ksmbd_tcp_set_interfaces()
|
/openbmc/linux/fs/9p/ |
H A D | v9fs.c | 184 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options() 397 v9ses->uname = kstrdup(V9FS_DEFUSER, GFP_KERNEL); in v9fs_session_init() 401 v9ses->aname = kstrdup(V9FS_DEFANAME, GFP_KERNEL); in v9fs_session_init()
|
/openbmc/linux/drivers/isdn/mISDN/ |
H A D | dsp_hwec.c | 57 dup = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
|
/openbmc/linux/tools/power/pm-graph/config/ |
H A D | cgskip.txt | 39 kstrdup
|
/openbmc/linux/kernel/module/ |
H A D | kmod.c | 88 module_name = kstrdup(orig_module_name, GFP_KERNEL); in call_modprobe()
|
/openbmc/linux/drivers/scsi/aic7xxx/ |
H A D | aic7770_osm.c | 88 name = kstrdup(buf, GFP_ATOMIC); in aic7770_probe()
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_mitigations.c | 39 str = kstrdup(val, GFP_KERNEL); in mitigations_set()
|