Message ID | 20240202081317.128980-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-49449-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp282064dyc; Fri, 2 Feb 2024 00:19:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmPTRsdMp9iN+Y+Ln5L5bUIKFAyhRjiw7uE0RDi5LXOlTMUGmNAxXdOyOWFWE0r737XK2L X-Received: by 2002:a05:6402:1619:b0:55f:e35e:1383 with SMTP id f25-20020a056402161900b0055fe35e1383mr782085edv.23.1706861953479; Fri, 02 Feb 2024 00:19:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706861953; cv=pass; d=google.com; s=arc-20160816; b=DzkASmZ5TM/sSuzJHqbgkw0DLOAVeg6PVA8311KoPdqpe9sdtyNgt/IbAMUMn6pSg6 hOnZxV7OEv4OW05Rp8P8wwuXqqoB/ouqvP6p/2ih37Txxnd47Luau6SfEC3Q6Q4qu0Wu a82VgQ6sv10z0j8Qn+szudmJkR9dI8xJLsyF86beDYns/vhFlgAnxyFVYILRcrJ+Q+Xy o7jOfVeXDysazhgPxDtlH2ZgUMsJzyQLzVYR0sYo9tEMrqqELwNYSZ6xhDK4lNUNNAOH k0MFYdwjpi7QTB7ZmoM0E2r5QmW5a/oAJG8KBImlGLT1pfr5GMVxV0lnKnVvYLpiCTx2 lgFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=BA78W94TsX1NZo3/wDkJ/GmaTt/bWE4n+U2Ht/EEKi4=; fh=prOJZYSZGu6ZVgEitbh1ZjzSOPSSL1rOFY4SyseR0NY=; b=tRUUOkr4zOJnRE4sOIblCtNWD9L/LAlhqqxmiqTstQdhqV/52/lLEc0VaxP/gdFWF2 wjvCTAuKhhUYUs/G3XoUcz+1NiAylzqI78J/0JEmr4ILjon4MltKAI0wNcjJqw9YszD/ g7nqn7KWmKlMHhF0JKQMtEETZrCvCQjLGNzwx08K0BWFtFqNSL5Oaqhyo0Dp0/7n0PdN Joo6GtEpq+Y9B14UTAEP9dN5sjORapm+7qLSqFrBKICP5vpEbqHM0DkU0Gq3TCUgkVBi eHa0fbCLOElffyfcuoB07QQ9UQosmL+4X1/BUBRlyurKWYiqsXWMVzEP4xYSFSVpHxU3 lPWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=TZNAUWqq; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-49449-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49449-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com X-Forwarded-Encrypted: i=1; AJvYcCV+pHdwNjGADgn0bupUy3+r1bWL391at6DlphSSXsG9Olj+w0PiRSnUrLJWyOIatG2CNNBz5svvJJ8xv+u/nLKgzcjhBQ== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bx3-20020a0564020b4300b0055fec52ede4si421815edb.333.2024.02.02.00.19.13 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 00:19:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49449-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=TZNAUWqq; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-49449-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49449-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1B6F81F22945 for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 08:19:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7623742AB9; Fri, 2 Feb 2024 08:13:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="TZNAUWqq" Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0057042073; Fri, 2 Feb 2024 08:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.112 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706861605; cv=none; b=pWzdEAmkH6f8l/0yxDLfqgmn//R+iUEQN2cOYEtpWXRU3+0hQkaPwgaDrbXuP6yQ6GJUvDj4XwcGxOnyb8OLLZqh6El1JLAhbhuvcX438B0EV81oxvGdk6yXK0Dbxalc3J6yBlTl1ubS/BkAfCj19ueDU1VtLwrx415W6GL+oy4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706861605; c=relaxed/simple; bh=qrUxpwVEvWbKMnTLIqyVsjTe+MTNfHvKhmmLvn0sdu8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=OHIt/opxDCfyawiBcPwetiNKYLXva+jbcZYvT6HTClvlzNmHWJrBmXij0wiiExf6wok6yLKrkwsQGoWh5y9eLiwkHD5wVGOhH8mBr3maYwmXej9yQZpSJb2UD/Sz9S23CxegyMcTfQYQeh/cZS07rWRQH9dlEJD3cMSk+biZPQI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=TZNAUWqq; arc=none smtp.client-ip=115.124.30.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1706861599; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=BA78W94TsX1NZo3/wDkJ/GmaTt/bWE4n+U2Ht/EEKi4=; b=TZNAUWqq/FpnqnePkkQAr+MtYVBSPTn8ux9cb+S0b1W+bW1wQbvINAn9ihg91FzKqRxUt/bPsgfJmVCxgHLOuHUeYroLs0GwdlvRtYB4A7v4DVfxXYPXo4ZyUdoBCNh376ostJhkm7/4zoL3/h+q2xi1qNerJMEl47GhKlhK2w4= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0W.wLjLr_1706861598; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0W.wLjLr_1706861598) by smtp.aliyun-inc.com; Fri, 02 Feb 2024 16:13:19 +0800 From: Yang Li <yang.lee@linux.alibaba.com> To: linkinjeon@kernel.org, sfrench@samba.org Cc: senozhatsky@chromium.org, tom@talpey.com, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li <yang.lee@linux.alibaba.com> Subject: [PATCH -next] ksmbd: Add kernel-doc for ksmbd_extract_sharename() function Date: Fri, 2 Feb 2024 16:13:17 +0800 Message-Id: <20240202081317.128980-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789774479290620242 X-GMAIL-MSGID: 1789774479290620242 |
Series |
[-next] ksmbd: Add kernel-doc for ksmbd_extract_sharename() function
|
|
Commit Message
Yang Li
Feb. 2, 2024, 8:13 a.m. UTC
The ksmbd_extract_sharename() function lacked a complete kernel-doc
comment. This patch adds parameter descriptions and detailed function
behavior to improve code readability and maintainability.
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
fs/smb/server/misc.c | 1 +
1 file changed, 1 insertion(+)
Comments
On 2/2/24 00:13, Yang Li wrote: > The ksmbd_extract_sharename() function lacked a complete kernel-doc > comment. This patch adds parameter descriptions and detailed function > behavior to improve code readability and maintainability. > > Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Thanks. > --- > fs/smb/server/misc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/smb/server/misc.c b/fs/smb/server/misc.c > index 9e8afaa686e3..1a5faa6f6e7b 100644 > --- a/fs/smb/server/misc.c > +++ b/fs/smb/server/misc.c > @@ -261,6 +261,7 @@ char *ksmbd_casefold_sharename(struct unicode_map *um, const char *name) > > /** > * ksmbd_extract_sharename() - get share name from tree connect request > + * @um: pointer to a unicode_map structure for character encoding handling > * @treename: buffer containing tree name and share name > * > * Return: share name on success, otherwise error
2024-02-02 17:13 GMT+09:00, Yang Li <yang.lee@linux.alibaba.com>: > The ksmbd_extract_sharename() function lacked a complete kernel-doc > comment. This patch adds parameter descriptions and detailed function > behavior to improve code readability and maintainability. > > Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Applied it with Randy's acked-by tag to #ksmbd-for-next-next. Thanks for your patch.
diff --git a/fs/smb/server/misc.c b/fs/smb/server/misc.c index 9e8afaa686e3..1a5faa6f6e7b 100644 --- a/fs/smb/server/misc.c +++ b/fs/smb/server/misc.c @@ -261,6 +261,7 @@ char *ksmbd_casefold_sharename(struct unicode_map *um, const char *name) /** * ksmbd_extract_sharename() - get share name from tree connect request + * @um: pointer to a unicode_map structure for character encoding handling * @treename: buffer containing tree name and share name * * Return: share name on success, otherwise error