Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp351469pxb; Tue, 1 Feb 2022 00:59:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVOI3io4dk1cvmywgyddAVY7ou6RDORehAaxJi9d4AL33POQNySJc7fqWh8BVom+uTAgQG X-Received: by 2002:a17:907:1692:: with SMTP id hc18mr20340366ejc.295.1643705978982; Tue, 01 Feb 2022 00:59:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643705978; cv=none; d=google.com; s=arc-20160816; b=iARUx9oBvGs23yoyJD31LBlQg3zsNLjYiu+x3M/YQyOTLjOXecupV+t0+DxyCFa4tC gOUemNiv+zArfB3DoGUNJis/z4WlK7+Fa597dmprx4V6ShZ8Yny/MCKBNq6U4l2XR+t1 dVphtbEdX12eGT1hUkKqBmKLTSAS8Vw6YJI16T+JwludF2KP9qX2cl4H+884PE/L7zhx OVjDz6GWVxHk68kJW+zlXRKen1DvA2RxtSSsdYk8XCxzwa2acq9H6hBXhQ+8m83/385H 77gDa6zGL/iPe+Tv4yHFqkzsGtZjJPOyrsQ4565uVzIwMkd4znu0LeHg2FzxvWpxYts4 hUZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=MVZak3zbu1eAFTux4Sw6Mf40DF40XMJ5a+qfLFJumpc=; b=rfnwIu1PjRR4K2N0iv9nAKOpBL42u2B0z+mBxTSpT6O5L0++xy6EUqCk/9Od3RFRfq kVqmgMnuM+qUXEOJ1fDOMWQUkhkXe6c21OtRGOSdxS68a0wtgm1i1SLtXk0U+rADi6/2 7gRW9OXKe/5vApWU1Ijr51WW04Hr2KqzUj1kulP2i9J2y0/gxc37ERUvgnDT0NJ9Iw4F GzmqaADOeNfWKisoOc/LMxpvLZqzRpa6Me3a+eclpJYUxGYGYAQ5XxXoxEumutVc5url yGzYObVx7Q63jbvsO57rr7GG8QwThOOCD6ZIBegUfXT/xgLTg0bL+pxawOeqmNVmOWCu QkcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=uR9BM+uT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s10si10184460edd.190.2022.02.01.00.59.14; Tue, 01 Feb 2022 00:59:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=uR9BM+uT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353470AbiA2X7y (ORCPT + 99 others); Sat, 29 Jan 2022 18:59:54 -0500 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:42654 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353267AbiA2X7x (ORCPT ); Sat, 29 Jan 2022 18:59:53 -0500 Received: from [192.168.192.153] (unknown [50.126.114.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id C6A9940E57; Sat, 29 Jan 2022 23:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643500784; bh=MVZak3zbu1eAFTux4Sw6Mf40DF40XMJ5a+qfLFJumpc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uR9BM+uT9n5Xdcu07wH15WQfEAwRCnIzzlbxh8oIHnifLd3KxPbgHV2qWxT9gwFc6 6IkXyjJOgKAsxZyDUrlu5LnopTTIiiUFkGhXFcWS4N/qVtc41EXlyss9Z93KoJQ7BU j/Yz3KzlBTstaJtEooG1QIglsv8xPvtXZLcj1icQKZxgyYN+SWkDHKaH+chSTJtz+o EIHcxf65ml1E8FhQMEHOsikd6+u7/o8qy7fYnjRE+8DuE+l6QccO1dlsbutGUCJKJJ kh6LOsT6amgfaA6FyVg8s74Yn/IvE7kaJwl2KE2x7BL3hvwzTR/DRrm9b0vtjruohu eqZiMs2EKKRbw== Message-ID: <7441eef2-5d5d-8bfe-42bb-423d0d865a52@canonical.com> Date: Sat, 29 Jan 2022 15:59:42 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH -next 1/3] apparmor: Fix match_mnt_path_str() and match_mnt() kernel-doc comment Content-Language: en-US To: Yang Li , serge@hallyn.com Cc: jmorris@namei.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220129025101.38355-1-yang.lee@linux.alibaba.com> From: John Johansen Organization: Canonical In-Reply-To: <20220129025101.38355-1-yang.lee@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/22 18:50, Yang Li wrote: > Fix a spelling problem and change @mntpath to @path to remove warnings > found by running scripts/kernel-doc, which is caused by using 'make W=1'. > > security/apparmor/mount.c:321: warning: Function parameter or member > 'devname' not described in 'match_mnt_path_str' > security/apparmor/mount.c:321: warning: Excess function parameter > 'devnme' description in 'match_mnt_path_str' > security/apparmor/mount.c:377: warning: Function parameter or member > 'path' not described in 'match_mnt' > security/apparmor/mount.c:377: warning: Excess function parameter > 'mntpath' description in 'match_mnt' > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Acked-by: John Johansen I have pulled this into my tree > --- > security/apparmor/mount.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/security/apparmor/mount.c b/security/apparmor/mount.c > index 23aafe68d49a..5cc5de062fc8 100644 > --- a/security/apparmor/mount.c > +++ b/security/apparmor/mount.c > @@ -304,7 +304,7 @@ static int path_flags(struct aa_profile *profile, const struct path *path) > * @profile: the confining profile > * @mntpath: for the mntpnt (NOT NULL) > * @buffer: buffer to be used to lookup mntpath > - * @devnme: string for the devname/src_name (MAY BE NULL OR ERRPTR) > + * @devname: string for the devname/src_name (MAY BE NULL OR ERRPTR) > * @type: string for the dev type (MAYBE NULL) > * @flags: mount flags to match > * @data: fs mount data (MAYBE NULL) > @@ -359,7 +359,7 @@ static int match_mnt_path_str(struct aa_profile *profile, > /** > * match_mnt - handle path matching for mount > * @profile: the confining profile > - * @mntpath: for the mntpnt (NOT NULL) > + * @path: for the mntpnt (NOT NULL) > * @buffer: buffer to be used to lookup mntpath > * @devpath: path devname/src_name (MAYBE NULL) > * @devbuffer: buffer to be used to lookup devname/src_name