From patchwork Wed Jun 21 08:23:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dhruva Gole X-Patchwork-Id: 110872 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4217875vqr; Wed, 21 Jun 2023 01:55:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ785/IQYk18VdHB+swd4B/KMb632WKBRR19lv/XymBZ2KrAGYHqSZKopBVBSurks6cLqk2w X-Received: by 2002:a17:90a:8a0b:b0:256:2cb7:406e with SMTP id w11-20020a17090a8a0b00b002562cb7406emr15331311pjn.45.1687337754261; Wed, 21 Jun 2023 01:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687337754; cv=none; d=google.com; s=arc-20160816; b=sSlwV61NEHKkuaLnjDuuesHIUA5+nmK4MNKCCi9M6sVN81AOs0ohKoQT+8bOu2LydB NpbSKx1Vg6GVRXygNGJ0xNw/V7WPm7nraP1GBFHvsvJQNysPsnwPeZl3cEMGEKVnLlNn x7fmxWOBBLc1azc5w2d2HdHXZzfV0L8z6VC3IA9NK2lV8aQXkoBzmD7TipS/5EvwjZIg yZe4zbUGBrdj0eMoHSFOkZfN9TDx7n8G8WjLwT7OF+AhF9J7H92Hf/Tyt4MyhKz2a+45 lTLjgX913iFcy2ZwefMwW9L20d2WxuBLiz6pYo/PldFL/qxc6fDjZM7X+zVmIBQXqTLt 6ssA== 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:dkim-signature; bh=7qJOY+Amzwz8yZfUfEoE6qN1GmbOBZaC7WF4l2NdgGg=; b=B9c10pqkV4u2u9x8PLlYazxQuKBm3ft8qjrK5XXnzhIhmXMRR+4TFZZ7135VE9YOuQ FpK4p5fcxOav5pZvu3VpnifJhNXhuM3HEW/qRUykURzP5xsrsiUChYC184ezekeq5+A+ ve4a7jZJF7KpBRZuQ7okPB0coC4XdhEoJQtbRxEUI9flC0ujS9RkkriXFqGx4Vo4Q0r0 XXHkvIKsAmMCrb+v783tsrhI0keTUTHoPZkEyzGtHH83Fpdtfy30mcoWr9YVYL49++P/ i1xzt+o9Ut2rAVFeQ9S3L0SpHkDED1xTfXCX+yaaXRFrnnOJdL5cdYoG042cDMBy6R31 GaTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=V3dsNnMm; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a17090a664f00b0024c1ddfa1bfsi11152906pjm.92.2023.06.21.01.55.35; Wed, 21 Jun 2023 01:55:54 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=V3dsNnMm; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbjFUIXp (ORCPT + 99 others); Wed, 21 Jun 2023 04:23:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbjFUIXl (ORCPT ); Wed, 21 Jun 2023 04:23:41 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69B11BC for ; Wed, 21 Jun 2023 01:23:40 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35L8NVVS017505; Wed, 21 Jun 2023 03:23:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687335811; bh=7qJOY+Amzwz8yZfUfEoE6qN1GmbOBZaC7WF4l2NdgGg=; h=From:To:CC:Subject:Date; b=V3dsNnMmemStoa0D4314MyMZ0/QO8lmYi1WR/BMmCwIrWmD+kiH59aGFefEj6JHhC eFtW4VoLp4xg3TINHg5IVLSS41Q2TPSb8CRfCUlyEoG4VOG5FIAncLIk+h8wVHXJK1 DkVx+fFojgG/lqD6hlHLm/b3y/ldz1mAth7lvgvU= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35L8NVpa042154 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 21 Jun 2023 03:23:31 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 21 Jun 2023 03:23:30 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 21 Jun 2023 03:23:30 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35L8NTIq069520; Wed, 21 Jun 2023 03:23:30 -0500 From: Dhruva Gole To: Nishanth Menon CC: Praneeth , Vignesh , Dhruva Gole , Tero Kristo , Santosh Shilimkar , , Subject: [PATCH] firmware: ti_sci: Fix few compiler warnings Date: Wed, 21 Jun 2023 13:53:09 +0530 Message-ID: <20230621082309.1569239-1-d-gole@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769301873130879695?= X-GMAIL-MSGID: =?utf-8?q?1769301873130879695?= Fix below warnings: CC drivers/firmware/ti_sci.o drivers/firmware/ti_sci.c:1988: warning: Excess function parameter 'vint_irq' description in 'ti_sci_cmd_set_irq' drivers/firmware/ti_sci.c:2036: warning: Excess function parameter 'vint_irq' description in 'ti_sci_cmd_free_irq' drivers/firmware/ti_sci.c:2632: warning: Function parameter or member ... drivers/firmware/ti_sci.c:2748: warning: expecting prototype for ti_sci_cmd_get_boot_status(). Prototype was for ti_sci_cmd_proc_get_status() instead drivers/firmware/ti_sci.c:3267: warning: Function parameter or member 'sub_type' not described in 'devm_ti_sci_get_resource' drivers/firmware/ti_sci.c:3267: warning: Excess function parameter 'suub_type' description in 'devm_ti_sci_get_resource' Fixes: 1e407f337f40 ("firmware: ti_sci: Add support for processor control") Signed-off-by: Dhruva Gole --- drivers/firmware/ti_sci.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 039d92a595ec..eca947bb35b9 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -1978,8 +1978,6 @@ static int ti_sci_free_irq(const struct ti_sci_handle *handle, u32 valid_params, * @src_index: IRQ source index within the source device * @dst_id: Device ID of the IRQ destination * @dst_host_irq: IRQ number of the destination device - * @vint_irq: Boolean specifying if this interrupt belongs to - * Interrupt Aggregator. * * Return: 0 if all went fine, else return appropriate error. */ @@ -2026,8 +2024,6 @@ static int ti_sci_cmd_set_event_map(const struct ti_sci_handle *handle, * @src_index: IRQ source index within the source device * @dst_id: Device ID of the IRQ destination * @dst_host_irq: IRQ number of the destination device - * @vint_irq: Boolean specifying if this interrupt belongs to - * Interrupt Aggregator. * * Return: 0 if all went fine, else return appropriate error. */ @@ -2736,7 +2732,7 @@ static int ti_sci_cmd_proc_set_control(const struct ti_sci_handle *handle, } /** - * ti_sci_cmd_get_boot_status() - Command to get the processor boot status + * ti_sci_cmd_proc_get_status() - Command to get the processor boot status * @handle: Pointer to TI SCI handle * @proc_id: Processor ID this request is for * @@ -3256,7 +3252,7 @@ EXPORT_SYMBOL_GPL(devm_ti_sci_get_of_resource); * @handle: TISCI handle * @dev: Device pointer to which the resource is assigned * @dev_id: TISCI device id to which the resource is assigned - * @suub_type: TISCI resource subytpe representing the resource. + * @sub_type: TISCI resource subytpe representing the resource. * * Return: Pointer to ti_sci_resource if all went well else appropriate * error pointer.