Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp644563pxu; Fri, 23 Oct 2020 09:40:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytyTNRLprMPCuN7hItUVXBX2wJ4iSrYw+1s+8DnHNk2ZcAxegLpffp6nsJCSTB0Fim8OQv X-Received: by 2002:a05:6402:b72:: with SMTP id cb18mr2956801edb.129.1603471248015; Fri, 23 Oct 2020 09:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603471248; cv=none; d=google.com; s=arc-20160816; b=DL+0DZ+MBV/FC27z5KIcv8shuVJnnUfZ+kRTfnrYch/i1nd9NTKeEuFQUQmr0oyhJg 2cdbNK5YQDsQKCtwF/GH7nwVsZrTFiF46PNHnmZQrr5+L7ROFn5GMzvYUvDvdtFnWp7u /GNXwG5v6GTlfR2aWbNi21VLG+xeAEdyHHPLwD558jnqjG7I722uAxedrJ2dZRnvnodY HMaIrBh8moOeiAl18H0zl3G5U/koCgXpqfhSJDkwEsaUEh7uINL7X6ci9jC18fmJGB+D 0zvT+1ai+oD+t3rmnyiTu9lhmWAWtBiFwU8znMg4/wePwjiRNHKxtTD6dyqExlky4OM0 WZjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rVsU521CP1nV0UlsTButFI4UbVKKevWBgz9k3ZH5bYU=; b=B4q0aRYLMwcQyCRRNioYRexNGgc3xsms0IRyuUi0GeKOgmfM7y4STBnoNkAq6JNeMv NANEfKvmdLNKudQUPsYoUqAW+xbBdzl2sF0mBozo0y/i9GcAxOzATn7l2wVU4fDMUthu lBNhKOqQDyiZqMSaysAGlnYCCN8z2Ux44mzRrVmti/jB1T9qaJEKvrsAm71mHu5ZQYVP XLbqY1mApyh2Aix+6pGPz2c5ZZDu5JlP91JJmFUBe6U5ZO/c/n9R9kRPO8u89p0gNei7 9AMa3E4/mQJaIaR0S7zmdDskNIIbRlytumbM+OFZRI4MS+sg2N3D/g+4Tdf4I9wBqSAs 85HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MuQjCs93; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz26si1394191ejc.635.2020.10.23.09.40.24; Fri, 23 Oct 2020 09:40:48 -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; dkim=pass header.i=@kernel.org header.s=default header.b=MuQjCs93; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbgJWQhX (ORCPT + 99 others); Fri, 23 Oct 2020 12:37:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:33336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S465519AbgJWQdu (ORCPT ); Fri, 23 Oct 2020 12:33:50 -0400 Received: from mail.kernel.org (ip5f5ad5a3.dynamic.kabel-deutschland.de [95.90.213.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 17ED4246A0; Fri, 23 Oct 2020 16:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603470828; bh=O0Km0ajgV9bhoOvh/i6iVzB6gK8rP3kJd/sXq7p6oTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MuQjCs93q2GcvhNIAZAYHu76jGY/Y3EndDPqidILVKBMzvHdzTzKQOctn37b/LTQe fXvgpI34cqU8bdBiUu3TOlaABW3Z01FnkQ32Rpw4wl3yFwmO2CmAsH96b5ssdVU1RJ H1sf6PnBmCZdOzPVvu0x2s0XcenT7tHoRr1zb0v4= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kW00g-002Awi-2k; Fri, 23 Oct 2020 18:33:46 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH v3 30/56] uio: fix some kernel-doc markups Date: Fri, 23 Oct 2020 18:33:17 +0200 Message-Id: <82ab7b68d271aeda7396e369ff8a629491b9d628.1603469755.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The definitions for (devm_)uio_register_device should be at the header file, as the macros are there. The ones inside uio.c refer, instead, to __(devm_)uio_register_device. Update them and add new kernel-doc markups for the macros. Signed-off-by: Mauro Carvalho Chehab --- drivers/uio/uio.c | 4 ++-- include/linux/uio_driver.h | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 6dca744e39e9..01b349c1b923 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -906,7 +906,7 @@ static void uio_device_release(struct device *dev) } /** - * uio_register_device - register a new userspace IO device + * __uio_register_device - register a new userspace IO device * @owner: module that creates the new device * @parent: parent device * @info: UIO device capabilities @@ -1002,7 +1002,7 @@ static void devm_uio_unregister_device(struct device *dev, void *res) } /** - * devm_uio_register_device - Resource managed uio_register_device() + * __devm_uio_register_device - Resource managed uio_register_device() * @owner: module that creates the new device * @parent: parent device * @info: UIO device capabilities diff --git a/include/linux/uio_driver.h b/include/linux/uio_driver.h index 54bf6b118401..47c5962b876b 100644 --- a/include/linux/uio_driver.h +++ b/include/linux/uio_driver.h @@ -117,6 +117,14 @@ extern int __must_check struct uio_info *info); /* use a define to avoid include chaining to get THIS_MODULE */ + +/** + * uio_register_device - register a new userspace IO device + * @parent: parent device + * @info: UIO device capabilities + * + * returns zero on success or a negative error code. + */ #define uio_register_device(parent, info) \ __uio_register_device(THIS_MODULE, parent, info) @@ -129,6 +137,14 @@ extern int __must_check struct uio_info *info); /* use a define to avoid include chaining to get THIS_MODULE */ + +/** + * devm_uio_register_device - Resource managed uio_register_device() + * @parent: parent device + * @info: UIO device capabilities + * + * returns zero on success or a negative error code. + */ #define devm_uio_register_device(parent, info) \ __devm_uio_register_device(THIS_MODULE, parent, info) -- 2.26.2