Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1680147pxj; Fri, 4 Jun 2021 23:27:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX+rdAUT3KBfwGGPmYUWxQVbao2GYtQzdXEMtRFpqb7mqVlNuW1EKb8tKYodFS1go+zLve X-Received: by 2002:a17:907:6289:: with SMTP id nd9mr7816003ejc.384.1622874445582; Fri, 04 Jun 2021 23:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622874445; cv=none; d=google.com; s=arc-20160816; b=oIxwVtYuoqWHZIMr7liwhYtqUvIJPTFkIzf3Vs1WKzA0cCcTRkDHq0KtABgdozO6xB l8qIEgyHz3WWl0NRcXBs5xcIQmS/4z5k60/iOBmNNBoGiIePnFbaH9b02sU918Us8pbI 1ilS+FvFZv6XEfk1xDJUgHE6Tjuc/JXwazsI5PYUGbg279OxXpm6TlG0a9G55knL7fMQ pnLvLmAnLNYE5RkE2hsAhFKWaQYEFzdja7U6KYzTUP1ii3GHLLfLcy2fyvFYaiTqGPMv AlOOWPO6oFl1CDPMArWkimgEHv3XRHAIUEHiuOx67M9EvMEmD9DyVz+JJYFqRZWpXG6k XH0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6EjE+m4ZGa5Pw2k3M++Z3dlMMGmLcxx9Tb5N7ZoqQT4=; b=sXKkprd2sUwq7jz70Qk7CdGAUXKy8NY1p40cCPIIS62T8zRo4OmK1QHQXvH5/FHXEg FJbcyaKnY7XqtlWHczCfWCZxxq8KwS85C15pIza+6CML8bvdx9YPVkbF4pAsvZPESNXi F1hKRUjEovybzu+XcSdB9Dg+xXUxlUYXjtBu62NSlCQKF5gu4fkPu995oU54NmFvHuhh YV/MMI9SILUBDKZASslYWHQG7/hyZEnt6UfxVbv5R9q945/VVDiawqbJBCnq1PiK5NjT BrKrwFUsjWCa2/cFnk8hePU6M0ThhWViBS7LtejRa+Um3mc9Qx3WUeIrksRwxIWacU/v dQpg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si2983772ejv.307.2021.06.04.23.26.47; Fri, 04 Jun 2021 23:27:25 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229822AbhFEGTG (ORCPT + 99 others); Sat, 5 Jun 2021 02:19:06 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3064 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhFEGTG (ORCPT ); Sat, 5 Jun 2021 02:19:06 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Fxq6j6pwmzWn6G; Sat, 5 Jun 2021 14:12:29 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 5 Jun 2021 14:17:16 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 5 Jun 2021 14:17:16 +0800 From: Baokun Li To: , , CC: , , , , Subject: [PATCH -next] capability: fix doc warnings in capability.c Date: Sat, 5 Jun 2021 14:26:02 +0800 Message-ID: <20210605062602.678602-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): kernel/capability.c:490: warning: Function parameter or member 'mnt_userns' not described in 'privileged_wrt_inode_uidgid' kernel/capability.c:506: warning: Function parameter or member 'mnt_userns' not described in 'capable_wrt_inode_uidgid' Signed-off-by: Baokun Li --- kernel/capability.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/capability.c b/kernel/capability.c index 46a361dde042..27a959aa897f 100644 --- a/kernel/capability.c +++ b/kernel/capability.c @@ -480,6 +480,7 @@ EXPORT_SYMBOL(file_ns_capable); /** * privileged_wrt_inode_uidgid - Do capabilities in the namespace work over the inode? * @ns: The user namespace in question + * @mnt_userns: User namespace of the mount the inode was found from * @inode: The inode in question * * Return true if the inode uid and gid are within the namespace. @@ -495,6 +496,7 @@ bool privileged_wrt_inode_uidgid(struct user_namespace *ns, /** * capable_wrt_inode_uidgid - Check nsown_capable and uid and gid mapped * @inode: The inode in question + * @mnt_userns: User namespace of the mount the inode was found from * @cap: The capability in question * * Return true if the current task has the given capability targeted at -- 2.31.1