Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp689066rdb; Fri, 2 Feb 2024 00:19:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXfzLTdL4/YX1i8mSjVq4y4/ciNAWlfcM+f4dsIuAHOXpcy8d1FCzj13tSL8g35Ga1vWJC X-Received: by 2002:a05:6102:160d:b0:46c:f132:4288 with SMTP id cu13-20020a056102160d00b0046cf1324288mr1468768vsb.26.1706861942694; Fri, 02 Feb 2024 00:19:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706861942; cv=pass; d=google.com; s=arc-20160816; b=IItVv3Ucz6lnXaAoKL/eh1EV8lxaespBY8VMA5iX0Qb8yN1Dvc29W9YYVKd/JoVBDI tny8bdtvcepsQaGfry4hcwphX4pS7RA+nxsTTaaMIsoqJhGHlFRB6nWg5c9dkxO8Z2ka Q5mMfxeNiK1o4Q0FUToVkKztVCjAQbxZK7mv22t4lI2pRzuU6LlEwHiXzWiiezPxEQYw 3CL5VtxUgbx9eApts1O0FOEziwovjeF2tpHvdcYen7YqdxNTGf1MHNNlwfBDyLof4Jg6 T1j4ZxxQPRAI1dbHCZxq/3MCOaoNlpLnfGVKqQhkOMFnvuDt2wXz1dwIG94TomTYkW2k keeg== 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=lJ+JdUwiP2iWmMWKIdfVbc+696CiHxPq3snDNt3bkfw=; b=o814QW083t0lqfK7zeMf/XUnEULWoQlunaqoElkhEPN8jD7BGmoNo3h96UbuD/Zq9D sptfbsE5bo2LW8EQXjm6MBvTK795neiMJ6G1oLlD1OYQ/vEZPR8LOCbqAg4CPYIABWpk yZcKqKLKTP5u+7+aRXDfUZokWZzKmV8gQOJng5G1h9dKENmELgmEjAVYkY1zgcnR3mWL JktqzoGA1dJ0u+Cr+8K6MBqtS51qVcZu/UkXvcsQ1rhA0V4lPC6eyul+I89IvVyaZ8+U D2ojUQnvFN/pIsAtWvhi1x2AHtx+5DfHhIDPsXInjXqxTPx5lPtLCXWTosN/2wdMKaGK zi3w==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49449-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com X-Forwarded-Encrypted: i=1; AJvYcCW6G8qJXqVjJwuvBmp1+5SGnkdI2+PxBzV4SEIxsgNwfCLUoapQxHMOh9G92oQLiDWOc0CV8zVRFmoRPChJeHQ7800E7J0g3hLgABzGrA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u14-20020a0cf88e000000b0068c508e015dsi1423352qvn.299.2024.02.02.00.19.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 00:19:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49449-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 724ED1C2048C for ; Fri, 2 Feb 2024 08:19:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9033640C0E; Fri, 2 Feb 2024 08:13:26 +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 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 -- 2.20.1.7.g153144c