Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp676213pxb; Thu, 12 Nov 2020 13:29:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2OX1iKwcks1IXH8yDV+5pe+OwXUtLkHdq7nq7kEjN8+B3GdC5ad21Z5+9PBaR3vXLQt87 X-Received: by 2002:a50:d5dd:: with SMTP id g29mr2035866edj.344.1605216545072; Thu, 12 Nov 2020 13:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605216545; cv=none; d=google.com; s=arc-20160816; b=ru2QaoT49UYTyrC4WH9Yd8EmaJazPlAhVWpJrRnIwFqmMg42nXJJP3f3VAvp+hHbV/ efmANnp3xWefar0EKoqeJig1IETNcKqa85NViewdrg36n6ZjlT0Et9K4gCNTTXq/ykaO i2ylq94v/JZDmvDJlZa8nqAWs3S5eck0ec1cjg16id79x2xHusdP4NRf+PqpY58Gr/dn Qf6b5uYhetu3vzhNEUpn+b2ZQn3hFs8t0gcs7bFImOAhnAL3+3D6SGFGpsOZiNIX1SVD 3hyiUY8+CYabGvyF7ZFofFzEhYYH8m/hcmM2aBjzPCHf5LCuXgbUfMNM5ETuga9BSoaY ebEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=hUyTNFSy+FKV2Opdiuolyr8HGiYLytnqVqPxhLY1PsU=; b=cA1v9Jhcvu/HCAcRUrRGXvppuM4bfhnxVAnTrFLAakNrFC1JoPgdAScXq7+89Aehsc zF2+o9YB36dHoOaZDto3J8mtCwWpScjZonhBq9TMIwBq+6nQcB9FjrCPSPY0BfYT0SXB mCzxzYDfe05MWXwmontkzDtQTd0pq5H25K8VofYceBq8iN4uYOg3ratsLMuVH35u+3Kh sm4bsP1NQ9+tnovpfYRUPTfgkImPQ/HTwGChT/rejQqO2n/BW8VeLLUpEUhHWVMoRRjQ X+gXt/6VPC9NrBfBuxXpnSGtPaSaU8M3bOo7YbVw+qouM4ZYHQTacYBFz+MqZwbchIoi /2jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kD08hxSi; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si4638032eje.646.2020.11.12.13.28.42; Thu, 12 Nov 2020 13:29:05 -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=@gmail.com header.s=20161025 header.b=kD08hxSi; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727216AbgKLVZ5 (ORCPT + 99 others); Thu, 12 Nov 2020 16:25:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726963AbgKLVZ4 (ORCPT ); Thu, 12 Nov 2020 16:25:56 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2393C0613D1; Thu, 12 Nov 2020 13:25:56 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id h62so6726068wme.3; Thu, 12 Nov 2020 13:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hUyTNFSy+FKV2Opdiuolyr8HGiYLytnqVqPxhLY1PsU=; b=kD08hxSi7dEp2gX1wV+W3BVTsipcNzE87u1fHldICACt9NRM++rnO1Hd7tRRf5VAMQ rdqjZuDm5uJYSfj/vUMW0ONk7aMVuQD9N/ojEGkK9ExmtnsP+bgynZPXRyHYyQU62Tdu 3Obpvs43rMIF+l85GBGeeAsgt+6Xybyc9BZ3oQxK+tuwKtJ4YX6JIBCzrNfeIeSAPMpp +dwBr8SrhSIPab60tdJzleMGRT5Ad2vGIl3U+hhcKR8GONvbwWUJW5I/xgRqUIOPMoaJ E5fn/rxPjEOALrsWwpiVkTbcE1UJyD7tMktb5o/YEX+1K6gmQjXlrgEtlgo6C5+9Lnyc 1iHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hUyTNFSy+FKV2Opdiuolyr8HGiYLytnqVqPxhLY1PsU=; b=pXC4BZuBmaTVKl2jQnnFo3e9hSxCS5GZhijR4jACb+saSKxliluzW+WlOQ5PbID4kj n6z7YaOBHw+fWT+jAjyidmHghX9IvVzZfP0HcS1wuwZZe/gJOZHkRpRvOFs1/DALAUJK 6ACfPiyQeoLwSsYKiCaeMYCRfYPfEFYhe9yttkuEtf+JP4+WngtKyv18utCkjQNsRK6+ +E+LzVcEqUVG2YOu8jmFyUAK3+yud/bqjHhkLfDgmt/vZO+1v1oOL1yNArozTz650nJS Yau8PiDH3+H5XljoRw68qN7jx9KVh4/zmERdYRw4gi4a/svKkwWcKSDlhbGmYOeqm/Jz RggA== X-Gm-Message-State: AOAM5302DfwZnBiS2IKvujxznuUg1siLGbeP+gBqcPfwaBqA4fYd4b4d jOKCP9udcmk1XWbYHcqVb1SH7m2AQ7zj3jKHTpw= X-Received: by 2002:a1c:8150:: with SMTP id c77mr1677726wmd.26.1605216345970; Thu, 12 Nov 2020 13:25:45 -0800 (PST) MIME-Version: 1.0 References: <20201112190039.2785914-1-lee.jones@linaro.org> <20201112190039.2785914-15-lee.jones@linaro.org> In-Reply-To: <20201112190039.2785914-15-lee.jones@linaro.org> From: Alex Deucher Date: Thu, 12 Nov 2020 16:25:33 -0500 Message-ID: Subject: Re: [PATCH 14/30] drm/amd/amdgpu/amdgpu_ring: Fix a bunch of function misdocumentation To: Lee Jones Cc: David Airlie , LKML , amd-gfx list , =?UTF-8?Q?Christian_K=C3=B6nig?= , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Maling list - DRI developers , Alex Deucher , linux-media Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 2:01 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:63: warning: Excess function pa= rameter 'adev' description in 'amdgpu_ring_alloc' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:122: warning: Excess function p= arameter 'adev' description in 'amdgpu_ring_commit' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:167: warning: Function paramete= r or member 'max_dw' not described in 'amdgpu_ring_init' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:167: warning: Function paramete= r or member 'irq_src' not described in 'amdgpu_ring_init' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:167: warning: Function paramete= r or member 'irq_type' not described in 'amdgpu_ring_init' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:167: warning: Function paramete= r or member 'hw_prio' not described in 'amdgpu_ring_init' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:167: warning: Excess function p= arameter 'max_ndw' description in 'amdgpu_ring_init' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:167: warning: Excess function p= arameter 'nop' description in 'amdgpu_ring_init' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:285: warning: Excess function p= arameter 'adev' description in 'amdgpu_ring_fini' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:325: warning: Function paramete= r or member 'ring' not described in 'amdgpu_ring_emit_reg_write_reg_wait_he= lper' > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:325: warning: Excess function p= arameter 'adev' description in 'amdgpu_ring_emit_reg_write_reg_wait_helper' > > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Sumit Semwal > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Cc: linux-media@vger.kernel.org > Cc: linaro-mm-sig@lists.linaro.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/a= md/amdgpu/amdgpu_ring.c > index 2697b250dc326..a23b2079696a1 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c > @@ -52,7 +52,6 @@ > /** > * amdgpu_ring_alloc - allocate space on the ring buffer > * > - * @adev: amdgpu_device pointer > * @ring: amdgpu_ring structure holding ring information > * @ndw: number of dwords to allocate in the ring buffer > * > @@ -95,7 +94,8 @@ void amdgpu_ring_insert_nop(struct amdgpu_ring *ring, u= int32_t count) > amdgpu_ring_write(ring, ring->funcs->nop); > } > > -/** amdgpu_ring_generic_pad_ib - pad IB with NOP packets > +/** > + * amdgpu_ring_generic_pad_ib - pad IB with NOP packets > * > * @ring: amdgpu_ring structure holding ring information > * @ib: IB to add NOP packets to > @@ -112,7 +112,6 @@ void amdgpu_ring_generic_pad_ib(struct amdgpu_ring *r= ing, struct amdgpu_ib *ib) > * amdgpu_ring_commit - tell the GPU to execute the new > * commands on the ring buffer > * > - * @adev: amdgpu_device pointer > * @ring: amdgpu_ring structure holding ring information > * > * Update the wptr (write pointer) to tell the GPU to > @@ -156,7 +155,9 @@ void amdgpu_ring_undo(struct amdgpu_ring *ring) > * @adev: amdgpu_device pointer > * @ring: amdgpu_ring structure holding ring information > * @max_ndw: maximum number of dw for ring alloc > - * @nop: nop packet for this ring > + * @irq_src: interrupt source to use for this ring > + * @irq_type: interrupt type to use for this ring > + * @hw_prio: ring priority (NORMAL/HIGH) > * > * Initialize the driver information for the selected ring (all asics). > * Returns 0 on success, error on failure. > @@ -276,7 +277,6 @@ int amdgpu_ring_init(struct amdgpu_device *adev, stru= ct amdgpu_ring *ring, > /** > * amdgpu_ring_fini - tear down the driver ring struct. > * > - * @adev: amdgpu_device pointer > * @ring: amdgpu_ring structure holding ring information > * > * Tear down the driver information for the selected ring (all asics). > @@ -310,7 +310,7 @@ void amdgpu_ring_fini(struct amdgpu_ring *ring) > /** > * amdgpu_ring_emit_reg_write_reg_wait_helper - ring helper > * > - * @adev: amdgpu_device pointer > + * @ring: ring to write to > * @reg0: register to write > * @reg1: register to wait on > * @ref: reference value to write/wait on > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel