Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2975638pxb; Fri, 8 Oct 2021 21:17:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8D+O32cvb2PfBXBtP9Z1P8x98im2zuxFb20KrFxpsa/C6HejSEzoloWPx8BnTfkKMF9a7 X-Received: by 2002:a17:903:18c:b0:13f:255:9dca with SMTP id z12-20020a170903018c00b0013f02559dcamr13171172plg.37.1633753063286; Fri, 08 Oct 2021 21:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633753063; cv=none; d=google.com; s=arc-20160816; b=vOZAxSz2TF6w0R6e1Q8Ky/HV5pexuq3/G9AHMCtvhTMDJ+EnYhwy1dTtH7zw9VpVy1 CqHX/zxPM517KvQigZvU+O3NRtsEaE1L8RkwySq4+hfpnW84RwSaBqrHGQlh16PNuM+b MuloJyZa41scMRvrTuwjsuTJKd8s51tvunysJHLOafllN/DBl89ghHc5QOv9r3QBNa64 IalddfKO6/yqQO7gohu+7DJldA0UijlwztvagtSaGTvTO24RzV+TsAOz0pTRI0XWzQ66 xDZ2mmN4v5RNn5UH2h4Ibti7WMVedYJikCmiYlh+xLPm4LLjpyBwXRhfNyLYsWeEiV+h Wd8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:abuse-reports-to:tuid:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=dPqCD77Xc0Yy1QVMU9Y211pF7cnzZmMnviKAYZevIU8=; b=WKz0NkRwjt8Nv2U3xwjvskmsMoSJ8A/4OaDP+QMYNqVZBq2oZNsgczz3XCRjjlbsza Uq8QGI7xJFEJf+EyKDeezVl/zjVgQWnT1NOIzZ5+ihqTte+xFLVHconCMHqcOzjByE7f oSffvjjMquE7jlTwXUL4NqTpX91/FEzrEW1pjEwWQu5yQpYk6lXT/QCc+vMryRvDPCvA /Qfh5dWIHA+/V6EUuYatRobTQvMcHyn8N+Lbc9SYywrVEFfeUtwOKIuJDcLLqeTLReYj hQasTywNJID4IuftwebvCsIg1sGgYqUD5xi8GiXGOIkqZ12bpzee8LqTxs6bAchX25zI mCJw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m8si1769272pfk.283.2021.10.08.21.17.23; Fri, 08 Oct 2021 21:17:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229594AbhJIESh (ORCPT + 99 others); Sat, 9 Oct 2021 00:18:37 -0400 Received: from unicom145.biz-email.net ([210.51.26.145]:61341 "EHLO unicom145.biz-email.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbhJIESg (ORCPT ); Sat, 9 Oct 2021 00:18:36 -0400 Received: from ([60.208.111.195]) by unicom145.biz-email.net ((LNX1044)) with ASMTP (SSL) id CEZ00035; Sat, 09 Oct 2021 12:16:35 +0800 Received: from localhost.localdomain (10.200.104.119) by jtjnmail201606.home.langchao.com (10.100.2.6) with Microsoft SMTP Server id 15.1.2308.14; Sat, 9 Oct 2021 12:16:34 +0800 From: Kai Song To: CC: , , , , Kai Song Subject: [PATCH] powerpc/eeh: Fix docstrings in eeh.c Date: Sat, 9 Oct 2021 12:16:30 +0800 Message-ID: <20211009041630.4135-1-songkai01@inspur.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.200.104.119] tUid: 20211009121635ba44a8c23c38adce8f579347a9c42382 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We fix the following warnings when building kernel with W=1: arch/powerpc/kernel/eeh.c:598: warning: Function parameter or member 'function' not described in 'eeh_pci_enable' arch/powerpc/kernel/eeh.c:774: warning: Function parameter or member 'edev' not described in 'eeh_set_dev_freset' arch/powerpc/kernel/eeh.c:774: warning: expecting prototype for eeh_set_pe_freset(). Prototype was for eeh_set_dev_freset() instead arch/powerpc/kernel/eeh.c:814: warning: Function parameter or member 'include_passed' not described in 'eeh_pe_reset_full' arch/powerpc/kernel/eeh.c:944: warning: Function parameter or member 'ops' not described in 'eeh_init' arch/powerpc/kernel/eeh.c:1451: warning: Function parameter or member 'include_passed' not described in 'eeh_pe_reset' arch/powerpc/kernel/eeh.c:1526: warning: Function parameter or member 'func' not described in 'eeh_pe_inject_err' arch/powerpc/kernel/eeh.c:1526: warning: Excess function parameter 'function' described in 'eeh_pe_inject_err' Signed-off-by: Kai Song Reviewed-by: Daniel Axtens --- arch/powerpc/kernel/eeh.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c index e9b597ed423c..91e0f4cf1db3 100644 --- a/arch/powerpc/kernel/eeh.c +++ b/arch/powerpc/kernel/eeh.c @@ -589,6 +589,7 @@ EXPORT_SYMBOL(eeh_check_failure); /** * eeh_pci_enable - Enable MMIO or DMA transfers for this slot * @pe: EEH PE + * @function: EEH option * * This routine should be called to reenable frozen MMIO or DMA * so that it would work correctly again. It's useful while doing @@ -761,8 +762,8 @@ int pcibios_set_pcie_reset_state(struct pci_dev *dev, enum pcie_reset_state stat } /** - * eeh_set_pe_freset - Check the required reset for the indicated device - * @data: EEH device + * eeh_set_dev_freset - Check the required reset for the indicated device + * @edev: EEH device * @flag: return value * * Each device might have its preferred reset type: fundamental or @@ -801,6 +802,7 @@ static void eeh_pe_refreeze_passed(struct eeh_pe *root) /** * eeh_pe_reset_full - Complete a full reset process on the indicated PE * @pe: EEH PE + * @include_passed: include passed-through devices? * * This function executes a full reset procedure on a PE, including setting * the appropriate flags, performing a fundamental or hot reset, and then @@ -937,6 +939,7 @@ static struct notifier_block eeh_device_nb = { /** * eeh_init - System wide EEH initialization + * @ops: struct to trace EEH operation callback functions * * It's the platform's job to call this from an arch_initcall(). */ @@ -1442,6 +1445,7 @@ static int eeh_pe_reenable_devices(struct eeh_pe *pe, bool include_passed) * eeh_pe_reset - Issue PE reset according to specified type * @pe: EEH PE * @option: reset type + * @include_passed: include passed-through devices? * * The routine is called to reset the specified PE with the * indicated type, either fundamental reset or hot reset. @@ -1513,12 +1517,12 @@ EXPORT_SYMBOL_GPL(eeh_pe_configure); * eeh_pe_inject_err - Injecting the specified PCI error to the indicated PE * @pe: the indicated PE * @type: error type - * @function: error function + * @func: error function * @addr: address * @mask: address mask * * The routine is called to inject the specified PCI error, which - * is determined by @type and @function, to the indicated PE for + * is determined by @type and @func, to the indicated PE for * testing purpose. */ int eeh_pe_inject_err(struct eeh_pe *pe, int type, int func, -- 2.27.0