Message ID | 20221231160119.2994264-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3406075wrt; Sat, 31 Dec 2022 08:05:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXteSrhcVmMCMFXtJnsg31hV+XbV+P+JdArZmVFdhVxVUSrPPGSGUrUVzfdboiqJEDIp6Nez X-Received: by 2002:a17:902:8309:b0:189:469c:dc0 with SMTP id bd9-20020a170902830900b00189469c0dc0mr3309101plb.7.1672502715406; Sat, 31 Dec 2022 08:05:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672502715; cv=none; d=google.com; s=arc-20160816; b=apbYPZpEzuEhZJuvdMXqj7LUE+vwclxtUbSlgOmrhhyF/sc8FM4oxbtVxY3VvKljQ6 QqsgPi0+0WYObfl/cJ0FaHM/dOFS6F931en60ExaOnoYiwQwGkWPVvSxV1ZotLWlV7p0 gF/s1IPWqgfz+AmR7nl7q/PyDQ3TNM5zPFbw7bTdW6KMUQ+mBE27K6108nMqA5NbQpeb 64OeYJS6UkJ9uOb651a2NvZqas4ePI7rjnrmtA1rEi17nzv/eqYIc7fQnFrFuw1p+iKj kgj9BA7/O913B0OLmJiJGfFtK+gEHPttsHFvKWULDNTOnz8ZUOpmJ9KUqiE0Q8/aVJr0 oypw== 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=OVTkT6J2Hrxy6D3i2AFBcsY5vLlTPz0/Nv+lU2zXc/I=; b=dzJ1bbAUG3F8VtLziV+YKlabAgKSedOo1IgWoMPOeEwnFDyWN0QaAf3kyAeVJlu2xt inGdTnLfCb8JboqfzC9sqsjNASM8MmC6NYz78HMlx1z2O8op/V42iJWU6J4g/QZ0+CMk USjk4kI7HMhlKGo4rcjer5yPovhkSUtLO13IBWO5ahU/oZTASAuPo5yT4HobUA00lYyq oXb3shyMcL+NFMV2bu2gPsc1see+LY/4q2YF3h8zYIRRAdqprTwmrkneh8icj7s27HqO lDOy8MYo5MQftcHcV/vByFf+HdNbB7waZSzYQCRjKAgoNtgovYdLk3ObvS6/pym6ErJ7 NhfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dHypmf1R; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a170902c25200b00192b3d52c08si3023817plg.2.2022.12.31.08.05.02; Sat, 31 Dec 2022 08:05:15 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=dHypmf1R; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231804AbiLaQCW (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Sat, 31 Dec 2022 11:02:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbiLaQCV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 31 Dec 2022 11:02:21 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3FF838A0 for <linux-kernel@vger.kernel.org>; Sat, 31 Dec 2022 08:01:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672502492; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OVTkT6J2Hrxy6D3i2AFBcsY5vLlTPz0/Nv+lU2zXc/I=; b=dHypmf1RkvDOF1EV5a5jjEIWfeCCwDVHyzWEbH/Y/+zebxKrtoYSzme0gu0bFwvmmWiTeV reRF7O+wZusAccWFllEeoNeuuU+iwn8ZlidXSjyipbhF47BNQO1Q6XnokK8GoInK6nNnZq JdV1TQ3ZXEwqTOurAxxYMyHGoPVk+6g= Received: from mail-oa1-f71.google.com (mail-oa1-f71.google.com [209.85.160.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-607-kybYcjFYM-eM_ygBPJjIKw-1; Sat, 31 Dec 2022 11:01:29 -0500 X-MC-Unique: kybYcjFYM-eM_ygBPJjIKw-1 Received: by mail-oa1-f71.google.com with SMTP id 586e51a60fabf-14fa3e986a2so9039199fac.17 for <linux-kernel@vger.kernel.org>; Sat, 31 Dec 2022 08:01:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OVTkT6J2Hrxy6D3i2AFBcsY5vLlTPz0/Nv+lU2zXc/I=; b=0rQlUABZZP1jdWlJRVe2P8waL8lrs1FhIKhrdR5t3mh90ERCyVpRjICIHey48zR5fy IUGE1xTBbSBQpCPf6N4X9ZE5weArZD+g8YxSGizxLB6tVMCClMHAFOCdfWC7IREZj+py UMadNVoqCDu6W8iDaRkdrHeyhLOdnsm/I/hFiXS8Mg+0uqXzQcEkGn7Sbab8Qa1OfJLo rXLkgpXV7EYyvAtDIAg5qFnTNwr4kqFqPx2HDoe3uvaPlYxMq7PRDi270Wk8WPUUiyST rarF31J8x5TE/AWtE08AwmZqWP846N+Ac+2LQpU6/KsEo9f7aBCGQ8hZCFoRvuUVi32t jUVQ== X-Gm-Message-State: AFqh2kpKvpxuMY5CFZp0sbVK2VQkDENkBqsN1ntlpoJHsdfREWe2fpCg XQJV0ZVWAUCi51SiDpQq8XFiq9o1r4Hp3PcIjw32/UJ1LD2D3q/PDiXhHNyPfZGAh9pgjYDYmAY oxq+7MvyxlxJwhg7POn/wxyok X-Received: by 2002:a05:6870:1b87:b0:148:25f1:bf35 with SMTP id hm7-20020a0568701b8700b0014825f1bf35mr17865910oab.28.1672502488377; Sat, 31 Dec 2022 08:01:28 -0800 (PST) X-Received: by 2002:a05:6870:1b87:b0:148:25f1:bf35 with SMTP id hm7-20020a0568701b8700b0014825f1bf35mr17865888oab.28.1672502488165; Sat, 31 Dec 2022 08:01:28 -0800 (PST) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id b23-20020ac87557000000b003a5c60686b0sm14601158qtr.22.2022.12.31.08.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Dec 2022 08:01:27 -0800 (PST) From: Tom Rix <trix@redhat.com> To: bp@alien8.de, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix <trix@redhat.com> Subject: [PATCH] EDAC: add parameters to edac stub macros Date: Sat, 31 Dec 2022 11:01:19 -0500 Message-Id: <20221231160119.2994264-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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?1753746207266446409?= X-GMAIL-MSGID: =?utf-8?q?1753746207266446409?= |
Series |
EDAC: add parameters to edac stub macros
|
|
Commit Message
Tom Rix
Dec. 31, 2022, 4:01 p.m. UTC
cppcheck reports this error
[drivers/edac/amd8111_edac.c:175]: (error) failed to expand 'edac_pci_handle_npe',
Wrong number of parameters for macro 'edac_pci_handle_npe'.
cppcheck is testing the stubs which do not have parameters.
Add parameters to match function call.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/edac/edac_module.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/edac/edac_module.h b/drivers/edac/edac_module.h index 50ed9f2425bb..fe6b4e004432 100644 --- a/drivers/edac/edac_module.h +++ b/drivers/edac/edac_module.h @@ -117,8 +117,8 @@ extern void edac_pci_handle_npe(struct edac_pci_ctl_info *pci, #define edac_sysfs_pci_teardown() #define edac_pci_get_check_errors() #define edac_pci_get_poll_msec() -#define edac_pci_handle_pe() -#define edac_pci_handle_npe() +#define edac_pci_handle_pe(pci, msg) +#define edac_pci_handle_npe(pci, msg) #endif /* CONFIG_PCI */ #endif /* __EDAC_MODULE_H__ */