Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp964120pxk; Thu, 10 Sep 2020 03:30:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaknjWFwsrlseLxWBWGuB/VI5lr98/1tN5zwqRJ1Ol1vcF6ExYVgmrVKZDCH57+vcw+1Hm X-Received: by 2002:a17:906:ce30:: with SMTP id sd16mr7921671ejb.53.1599733837845; Thu, 10 Sep 2020 03:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599733837; cv=none; d=google.com; s=arc-20160816; b=B+iQSH7tGvKiQjrkjcvffETR4XOBKW/5g8GuJge+/Pqylai0sYUmUQj6dkrO4MItiK NHuEOYl3S3cB6+lXz9ZsSmwoDeiWPyhwNzQmQ+oMz9qiIZH7IMk8gsWGHtCzeHqNSqIW muMxaMTPKMg1A/Bv4zdlc3xIa2/fSN0ekpmnh1sT59hltSVeDz1VhO65fMBQEWz5dJyl ejY5JceiLO11rvSWIf/WgqizvX6HaLhxCSq/fYYl8xUkGqiwDlwFGsIvD3FqTxR8M1g4 NsgvgVXAYE8pvDfx56WuHejz5YZdImjfONOqnspBcKQAjPfNbtPhO408GwtThaHaPv2o eqFQ== 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=GWnvXYVbFQ5UWBxIYTFfhDJsBf8iDvMN4xFy4JRI+ws=; b=yYj0e7S3F93d+ZnrvMoVfl1T2zDn2uZLX/DmGTGDF9+BpwX4SmQgbsv4++hshun68f LeSjE46+62LnEHO54JxpbwCvNsYLXsfSfIgES0nkw5X1Ns/+YnNK43pyCV5XudkWl2Cs hl46l/xghJFNr38Myxg/H7Ugvm0FVK0ZmClCe/ZTrz6hNfaCkFArTtOfQSfoV/LkbTy3 gJgYhdRlAx4+G5UIBFe7LwjqeGgVK1B2MsdWzXT2NqxeMr93IfsHuLrr7WXaGshr5bPX YYopbTEE3Zx0QxkGzKMcZj1sEtwoDnokJFkca34zgdE+vwycHjSj/qi4LsgDNy5R51IW eKGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="kgTflP/8"; 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 w1si3309233ejc.440.2020.09.10.03.30.15; Thu, 10 Sep 2020 03:30:37 -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="kgTflP/8"; 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 S1730895AbgIJK0V (ORCPT + 99 others); Thu, 10 Sep 2020 06:26:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:35638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730729AbgIJKY3 (ORCPT ); Thu, 10 Sep 2020 06:24:29 -0400 Received: from mail.kernel.org (ip5f5ad5ac.dynamic.kabel-deutschland.de [95.90.213.172]) (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 AB9C4221E5; Thu, 10 Sep 2020 10:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599733450; bh=fgfiyAtrFCoLlnnEOEO9teOqv1JFGl0mGCGkOu01V1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kgTflP/83AXdk/kctYAENTpI9SV0gCQGWweaisBNz+c3NXD1Rfmf8dj9mG7TvKviW oSdWjSx3WORYJpyFwcotL2FWNBuRectCX2HFf9ik3dypynJbveWPD7bveqqQ67Mj46 s/EHGbrZbbOiZrrWn+1jo+RTjM2aAnDcAkA4tZNM= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kGJkO-00EIOE-PU; Thu, 10 Sep 2020 12:24:08 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: [PATCH 14/14] gpu: docs: amdgpu.rst: get rid of wrong kernel-doc markups Date: Thu, 10 Sep 2020 12:24:07 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As reported by kernel-doc: ./drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:1: warning: no structured comments found ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1: warning: no structured comments found Those files only contain /** * DOC: */ markups, but they're included twice there: one to parse such markup, and another one to parse internal functions. In the case of amdgpu_xgmi.c, as it has just one such markup, we can simply include the file once, and let it parse the entire file without passing arguments to kernel-doc. This should place everything altogether. For amdgpu_ras.c, however, we need to remove the kernel-doc with just internal. This should be re-introduced if this file ever gets new non-DOC markups. Signed-off-by: Mauro Carvalho Chehab --- Documentation/gpu/amdgpu.rst | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Documentation/gpu/amdgpu.rst b/Documentation/gpu/amdgpu.rst index 9656f5f5bbcf..d46bfe52b722 100644 --- a/Documentation/gpu/amdgpu.rst +++ b/Documentation/gpu/amdgpu.rst @@ -74,10 +74,6 @@ AMDGPU XGMI Support =================== .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c - :doc: AMDGPU XGMI Support - -.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c - :internal: AMDGPU RAS Support ================== @@ -115,9 +111,6 @@ RAS VRAM Bad Pages sysfs Interface .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c :doc: AMDGPU RAS sysfs gpu_vram_bad_pages Interface -.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c - :internal: - Sample Code ----------- Sample code for testing error injection can be found here: -- 2.26.2