From patchwork Sat Dec 31 16:01:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13086111 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EACFC4332F for ; Sat, 31 Dec 2022 16:02:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbiLaQCW (ORCPT ); Sat, 31 Dec 2022 11:02:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiLaQCV (ORCPT ); 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 38A7DE36 for ; 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=1672502491; 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=YN2WYl6nvl7ZIa8tI4KoJsIx1Jv+v1nRT7MgCuLDL1oQGed3L4+iaGy4pwZbBxlgvhQZ+G QpI9FCunhhxUuLh+74i3n9+KaznUEZgDuPed0skTrcZe5V6iuFhFPuFXyWIWe63SNFwKeM f8kC9gG6g0GbSEFtKzeuru2Bm95koq0= Received: from mail-oa1-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-297-QIGZ6bICMLiytYlDjC1Now-1; Sat, 31 Dec 2022 11:01:29 -0500 X-MC-Unique: QIGZ6bICMLiytYlDjC1Now-1 Received: by mail-oa1-f70.google.com with SMTP id 586e51a60fabf-1502de563fcso4402958fac.15 for ; Sat, 31 Dec 2022 08:01:29 -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=bFUcksnKPmM80NKUvq4dc9It0SDnadXnMdI7Ywx3cir87BVR99yuU9BlxWoQZEMvBx /4TSjNu1pZNBq/zrdkfPf0gcRUIMKi/8cFrmntK43/euQPp9ugUvYyXUROoeyiL5fdcn Fl9cobomGt1Ifc+YYqmIOYNV9H11o8QviUNWREzu2Ggh9vADopJvU8gjp8xIJtXNLcaG pS0gvRvo7zdQGISggxfHe6mv4qCqB14J4NCHZZFD1i5ZKiOhkciGO3uMyaSzwjVXMtlJ mKJngKHv8c9oRWVqRlwkgmjnB2DQbh44r11rWsL2aeJY3/tWNpLD2C+hrapABO/BsziF iQng== X-Gm-Message-State: AFqh2kqAgvtIvBU6ALIvFXACpk8KTPTtmNz0yMexCd+t7rCbeA+te7Qs RvzmJtpU8SSk2fp41xVdbVw9aXay1FB18cIDEsm+/AGnXuOeNJwdD1JD4dJA9kv7ha5pxhDiF9V VgeSImK/tdLTRoW3n1ZkWeA== X-Received: by 2002:a05:6870:1b87:b0:148:25f1:bf35 with SMTP id hm7-20020a0568701b8700b0014825f1bf35mr17865911oab.28.1672502488377; Sat, 31 Dec 2022 08:01:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXsSM/oqnmzUCIQJkwhDRJi02tD3ISDY+eIi3zQNdrKd2rTGfyr/RZxYwiuZlE+NJ0nqAP3tgw== 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 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 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 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org 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 --- 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__ */