Received: by 10.223.185.116 with SMTP id b49csp1028950wrg; Wed, 14 Feb 2018 10:28:32 -0800 (PST) X-Google-Smtp-Source: AH8x224JK2tPea+KrHdUH6nUkrZ5B+KRsJl4eBKpQjUSl1mkGhTY8z7OMqveOJTErgzz85cbFwFm X-Received: by 2002:a17:902:2983:: with SMTP id h3-v6mr75063plb.76.1518632912877; Wed, 14 Feb 2018 10:28:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518632912; cv=none; d=google.com; s=arc-20160816; b=UT946uzsej+wYtHkSIP+1I+ptCpbBLICYW2VhBDrtuispPEabjRyNTmFwOlu3TAWbR iuCz8Hxqw8N4oyU1lAg9izdX21x3d+Z4qwFZTfW6ENZBFXsvMoMElSyP5wt4kwwzObPP kXlFz/v+AjLTCQCxQSRA2xSOUDz4QqYmg5b3CRBGgNJuWjN1LE0eRHXMcMR3Rx4cG1Rk KxX0ymyHSxvBXV42D6hCn25ax17b+2KNP74UnKGHi1Zhu8LX8xCmZf8xsblSYoNuwf3A o3oOIk1e7BYwAvwm8MzwZjtymBlQ8edS6NkZ9uKnR2rJ9+W7EhstpHP4dBOjrKe8FXt6 LNqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=GtO3WxoQVSWOI6IQefcpR9c8Itq0yVaxKFx0QZlzn6g=; b=EVjIoXDLe9bu5Y01315eTdZiXeQDAY8BwcBkfsUz85NvQqOYvwekiGsFdwP9jpy+2B CZomStINnQ6Ey2jgWrgHK97TuW+mKNrucph4eZ5Ac113ZRKTLdoxz3tbO6kHpfbndc3N KGce1tEFtb0zZ5Rl+q+oPXGbUO7ez7ClnZZ0Gr/0/tfnfUSPw6fQ8toiimw3TaYEqJlk mOGuO7NT+LikouLSxS+KKh90XJd8H4tJOcsLQXn6SygO5+ufhAShopVPA0dbdnApfq5e ogV8MNBwIpIcg62r88leLGZUrTtlitCE4Ehkk43DWhLNg1w73I3Zc+V2bpnUW4pXuFMq llKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XdrVJEst; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o74si3674891pfj.76.2018.02.14.10.28.17; Wed, 14 Feb 2018 10:28:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XdrVJEst; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162068AbeBNS02 (ORCPT + 99 others); Wed, 14 Feb 2018 13:26:28 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:58540 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161943AbeBNS0Z (ORCPT ); Wed, 14 Feb 2018 13:26:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GtO3WxoQVSWOI6IQefcpR9c8Itq0yVaxKFx0QZlzn6g=; b=XdrVJEstkc8i6lCDAizMI6tjE hG7bOPkSM1tyQHzv3MfvBl1aY0KCkrYzWh+sz+pbMmsvlywZy0jHfr5JjVNZ3l+m0EFijzg8L7eJC tRqx5IhznjYJ3mSMnpOSu4KZ3CDEkmKBzYrMCQ5yRBciMxiANpuqX3fchzdC0uoKSb17J3dvsdGQ7 EYFaqQXKlPj2OZULKExX9xByztKJhyePTVrjFT04xLoUpxn/ik8tik1SdsZamJ90Ee4Wk5bdqziNE oNlWP509r2p8Ehs6uh3gC1xwy+x/WwYul38lwELej0V3dpomXiQS1eZoqAW98zciG7AELgjjrOTE/ XJzsgT1fA==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1em1l9-0003sl-9K; Wed, 14 Feb 2018 18:26:23 +0000 From: Matthew Wilcox To: Andrew Morton Cc: Matthew Wilcox , linux-mm@kvack.org, Kees Cook , linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: [PATCH 1/2] mm: Add kernel-doc for kvfree Date: Wed, 14 Feb 2018 10:26:17 -0800 Message-Id: <20180214182618.14627-2-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180214182618.14627-1-willy@infradead.org> References: <20180214182618.14627-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- mm/util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mm/util.c b/mm/util.c index c1250501364f..dc4c7b551aaf 100644 --- a/mm/util.c +++ b/mm/util.c @@ -430,6 +430,16 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node) } EXPORT_SYMBOL(kvmalloc_node); +/** + * kvfree() - Free memory. + * @addr: Pointer to allocated memory. + * + * kvfree frees memory allocated by any of vmalloc(), kmalloc() or + * kvmalloc(). It is slightly more efficient to use kfree() or vfree() + * if you are certain that you know which one to use. + * + * Context: Any context except NMI. + */ void kvfree(const void *addr) { if (is_vmalloc_addr(addr)) -- 2.15.1