Message ID | 20230512064655.82246-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4897440vqo; Thu, 11 May 2023 23:57:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4u07WoBM5dYB4FTa6ffF/YX/z25L630w7Pw6wgz2IZoeiOuN48xhWCyrRnmtxEgzZf7d+z X-Received: by 2002:a17:902:eccd:b0:1a6:4127:857 with SMTP id a13-20020a170902eccd00b001a641270857mr32723892plh.5.1683874676864; Thu, 11 May 2023 23:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683874676; cv=none; d=google.com; s=arc-20160816; b=Jsa7x7yxzlGCbExPfbm2WXc8fxh2U+DQDkdHyC6L5fsE6VJKaYSj0bvuNB91w5l1vC HKPKrtRZyWetUGydvaxAknhH9fO4lwbr7bTFXns6CXzJN5lfZcoGbkkE1NIevrFgj9UK DFurFPrOMq9De3sC1yztqN95LUIoTeQ4wZx/+1rZiONB6benRt+MOBJPG3rYCrhs1q1p FuMsbLzgae5hfUimPFfKurPyJ0Vt0R5WeLNxp126KDfAxBK5gvgcFYqwzx7/d51EBV1n d2nvEOAYunTmhHdAXs4CDd6qggZzcJYtAPY1QafAJ28HhB1BdiaahoZqr6wjHKhCsRmL nOOw== 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=fVRR1XN+6eZvzoGRLL4vhMZaLOYy6+7Q5nDLNDSMNRQ=; b=D2u3vbEU+QTeIkqKHBKJFw7VQJTRJDqBdVweShunkKuQUbPBIzgPoQ5yFSUdGSA7G9 /pmdI8x6kpCPw7Hxu7kshnEnAlcWW2bIZoDpqhE4iHkhXCHqU+Xu62KkdVvoY9rh9g8P 90uxGEnjOt1UeOxqe++jFNKc9ioPd3sFdDu74e4KeyUvWyGYB/RjACqHMkrPXNAWDUW6 Vyc3R8/7ihfLyC3ZJlfctE2b2cfgN65fmIu8RKDB7XtZEfvzm5WthgF3XWC7HkszyUZG 9yYMOBhto9pzSx1KM9J/ZOPCow786GBZpcsf4kXQyGtQgqgjlkbTrixM1+hBg2Ul5f0t gsLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a170902c94800b001a66c501a46si9791486pla.136.2023.05.11.23.57.43; Thu, 11 May 2023 23:57:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239664AbjELGrC (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Fri, 12 May 2023 02:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232675AbjELGrB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 12 May 2023 02:47:01 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA9D11BC5 for <linux-kernel@vger.kernel.org>; Thu, 11 May 2023 23:46:59 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0ViO5x46_1683874015; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0ViO5x46_1683874015) by smtp.aliyun-inc.com; Fri, 12 May 2023 14:46:56 +0800 From: Yang Li <yang.lee@linux.alibaba.com> To: ogabbay@kernel.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li <yang.lee@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH -next] habanalabs: Fix some kernel-doc comments Date: Fri, 12 May 2023 14:46:55 +0800 Message-Id: <20230512064655.82246-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765670573416589575?= X-GMAIL-MSGID: =?utf-8?q?1765670573416589575?= |
Series |
[-next] habanalabs: Fix some kernel-doc comments
|
|
Commit Message
Yang Li
May 12, 2023, 6:46 a.m. UTC
Make the description of @regs_range_array and @regs_range_array_size
to @user_regs_range_array and @user_regs_range_array_size to silence
the warnings:
drivers/accel/habanalabs/common/security.c:506: warning: Function parameter or member 'user_regs_range_array' not described in 'hl_init_pb_ranges_single_dcore'
drivers/accel/habanalabs/common/security.c:506: warning: Function parameter or member 'user_regs_range_array_size' not described in 'hl_init_pb_ranges_single_dcore'
drivers/accel/habanalabs/common/security.c:506: warning: Excess function parameter 'regs_range_array' description in 'hl_init_pb_ranges_single_dcore'
drivers/accel/habanalabs/common/security.c:506: warning: Excess function parameter 'regs_range_array_size' description in 'hl_init_pb_ranges_single_dcore'
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4940
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
drivers/accel/habanalabs/common/security.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Fri, May 12, 2023 at 9:47 AM Yang Li <yang.lee@linux.alibaba.com> wrote: > > Make the description of @regs_range_array and @regs_range_array_size > to @user_regs_range_array and @user_regs_range_array_size to silence > the warnings: > > drivers/accel/habanalabs/common/security.c:506: warning: Function parameter or member 'user_regs_range_array' not described in 'hl_init_pb_ranges_single_dcore' > drivers/accel/habanalabs/common/security.c:506: warning: Function parameter or member 'user_regs_range_array_size' not described in 'hl_init_pb_ranges_single_dcore' > drivers/accel/habanalabs/common/security.c:506: warning: Excess function parameter 'regs_range_array' description in 'hl_init_pb_ranges_single_dcore' > drivers/accel/habanalabs/common/security.c:506: warning: Excess function parameter 'regs_range_array_size' description in 'hl_init_pb_ranges_single_dcore' > > Reported-by: Abaci Robot <abaci@linux.alibaba.com> > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4940 > Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> > --- > drivers/accel/habanalabs/common/security.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/accel/habanalabs/common/security.c b/drivers/accel/habanalabs/common/security.c > index 297e6e44fd0c..dc23ff57c91a 100644 > --- a/drivers/accel/habanalabs/common/security.c > +++ b/drivers/accel/habanalabs/common/security.c > @@ -495,8 +495,8 @@ int hl_init_pb_single_dcore(struct hl_device *hdev, u32 dcore_offset, > * @instance_offset: offset between instances > * @pb_blocks: blocks array > * @blocks_array_size: blocks array size > - * @regs_range_array: register range array > - * @regs_range_array_size: register range array size > + * @user_regs_range_array: register range array > + * @user_regs_range_array_size: register range array size > * > */ > int hl_init_pb_ranges_single_dcore(struct hl_device *hdev, u32 dcore_offset, > -- > 2.20.1.7.g153144c > Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Applied to -next. Thanks, Oded
diff --git a/drivers/accel/habanalabs/common/security.c b/drivers/accel/habanalabs/common/security.c index 297e6e44fd0c..dc23ff57c91a 100644 --- a/drivers/accel/habanalabs/common/security.c +++ b/drivers/accel/habanalabs/common/security.c @@ -495,8 +495,8 @@ int hl_init_pb_single_dcore(struct hl_device *hdev, u32 dcore_offset, * @instance_offset: offset between instances * @pb_blocks: blocks array * @blocks_array_size: blocks array size - * @regs_range_array: register range array - * @regs_range_array_size: register range array size + * @user_regs_range_array: register range array + * @user_regs_range_array_size: register range array size * */ int hl_init_pb_ranges_single_dcore(struct hl_device *hdev, u32 dcore_offset,