/linux-6.3-rc2/scripts/coccinelle/api/ |
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)
|
/linux-6.3-rc2/drivers/parport/ |
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()
|
/linux-6.3-rc2/net/sunrpc/xprtrdma/ |
A D | transport.c | 163 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses4() 175 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses6() 198 xprt->address_strings[RPC_DISPLAY_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 201 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 204 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 412 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port() 416 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()
|
/linux-6.3-rc2/fs/ksmbd/mgmt/ |
A D | share_config.c | 108 p->pattern = kstrdup(veto_list, GFP_KERNEL); in parse_veto_list() 158 share->name = kstrdup(name, GFP_KERNEL); in share_config_request() 161 share->path = kstrdup(ksmbd_share_config_path(resp), in share_config_request()
|
A D | user_config.c | 38 user->name = kstrdup(resp->account, GFP_KERNEL); in ksmbd_alloc_user()
|
/linux-6.3-rc2/arch/arm/mach-versatile/ |
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()
|
/linux-6.3-rc2/arch/arm/mach-mvebu/ |
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()
|
/linux-6.3-rc2/fs/cifs/ |
A D | fs_context.c | 298 new_ctx->field = kstrdup(ctx->field, GFP_ATOMIC); \ 413 orig = opts = kstrdup(options, GFP_KERNEL); in smb3_parse_opt() 429 *val = kstrdup(nval, GFP_KERNEL); in smb3_parse_opt() 472 return kstrdup(path, GFP_KERNEL); in sanitize_path() 1140 ctx->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1145 fc->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1165 ctx->username = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1177 ctx->password = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1204 ctx->domainname = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1228 ctx->iocharset = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
|
A D | unc.c | 64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
|
/linux-6.3-rc2/fs/cachefiles/ |
A D | daemon.c | 553 dir = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_dir() 581 secctx = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_secctx() 607 tag = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_tag() 787 cache->tag = kstrdup("CacheFiles", GFP_KERNEL); in cachefiles_daemon_bind()
|
/linux-6.3-rc2/kernel/trace/ |
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()
|
A D | fprobe.c | 193 str = kstrdup(filter, GFP_KERNEL); in register_fprobe() 201 str = kstrdup(notfilter, GFP_KERNEL); in register_fprobe()
|
/linux-6.3-rc2/drivers/video/fbdev/core/ |
A D | fb_cmdline.c | 58 options = kstrdup(fb_mode_option, GFP_KERNEL); in fb_get_options()
|
/linux-6.3-rc2/arch/powerpc/platforms/pseries/ |
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() 523 args = argbuf = kstrdup(buf, GFP_KERNEL); in dlpar_store()
|
/linux-6.3-rc2/drivers/platform/x86/ |
A D | think-lmi.c | 276 s = kstrdup(obj->string.pointer, GFP_KERNEL); in tlmi_extract_output_string() 433 new_pwd = kstrdup(buf, GFP_KERNEL); in new_password_store() 706 passwd = kstrdup(buf, GFP_KERNEL); in cert_to_password_store() 762 new_cert = kstrdup(buf, GFP_KERNEL); in certificate_store() 814 new_signature = kstrdup(buf, GFP_KERNEL); in signature_store() 843 new_signature = kstrdup(buf, GFP_KERNEL); in save_signature_store() 962 new_setting = kstrdup(buf, GFP_KERNEL); in current_value_store() 1121 new_setting = kstrdup(buf, GFP_KERNEL); in debug_cmd_store()
|
/linux-6.3-rc2/drivers/regulator/ |
A D | fixed-helper.c | 39 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on()
|
/linux-6.3-rc2/fs/ksmbd/ |
A D | transport_tcp.c | 513 iface = alloc_iface(kstrdup(netdev->name, GFP_KERNEL)); in ksmbd_netdev_event() 609 if (!alloc_iface(kstrdup(netdev->name, GFP_KERNEL))) in ksmbd_tcp_set_interfaces() 618 if (!alloc_iface(kstrdup(ifc_list, GFP_KERNEL))) in ksmbd_tcp_set_interfaces()
|
/linux-6.3-rc2/drivers/isdn/mISDN/ |
A D | dsp_hwec.c | 57 dup = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
|
/linux-6.3-rc2/tools/power/pm-graph/config/ |
A D | cgskip.txt | 39 kstrdup
|
/linux-6.3-rc2/fs/9p/ |
A D | v9fs.c | 181 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options() 394 v9ses->uname = kstrdup(V9FS_DEFUSER, GFP_KERNEL); in v9fs_session_init() 398 v9ses->aname = kstrdup(V9FS_DEFANAME, GFP_KERNEL); in v9fs_session_init()
|
/linux-6.3-rc2/lib/ |
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()
|
/linux-6.3-rc2/kernel/ |
A D | kmod.c | 83 module_name = kstrdup(module_name, GFP_KERNEL); in call_modprobe()
|
/linux-6.3-rc2/drivers/soc/aspeed/ |
A D | aspeed-socinfo.c | 127 attrs->machine = kstrdup(machine, GFP_KERNEL); in aspeed_socinfo_init()
|
/linux-6.3-rc2/drivers/scsi/aic7xxx/ |
A D | aic7770_osm.c | 88 name = kstrdup(buf, GFP_ATOMIC); in aic7770_probe()
|
/linux-6.3-rc2/sound/core/ |
A D | info_oss.c | 38 x = kstrdup(string, GFP_KERNEL); in snd_oss_info_register()
|