From patchwork Thu Apr 21 13:53: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: 12821659 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 CC26CC433F5 for ; Thu, 21 Apr 2022 13:53:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385949AbiDUN4T (ORCPT ); Thu, 21 Apr 2022 09:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385016AbiDUN4R (ORCPT ); Thu, 21 Apr 2022 09:56:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0AD651FCFE for ; Thu, 21 Apr 2022 06:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650549207; 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=ZJT9EPj2AF0BAgtE5D1IQ2psGEhfq4Pud3Pk1dFggms=; b=SOS+yI3h83CZjsIKAXuWq/yWclqf2Mr5YVQWeoscReXh4NsyHYKJ9MpTRo6L5AFsxz7pq5 hmC3zl4Pjr4vXQe9r/M1AWZVBO26awGeZm55Qywh04ZpropiwYtlP3V8eEPwZx7yRsiXVw yQLQeDgJuUUozSwrDaPt5vtpRnr/Alo= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-29-G1a0OgqRNwqiTXEduEqymA-1; Thu, 21 Apr 2022 09:53:26 -0400 X-MC-Unique: G1a0OgqRNwqiTXEduEqymA-1 Received: by mail-qk1-f199.google.com with SMTP id m23-20020a05620a221700b006809e1fa4fdso3349303qkh.6 for ; Thu, 21 Apr 2022 06:53:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZJT9EPj2AF0BAgtE5D1IQ2psGEhfq4Pud3Pk1dFggms=; b=RMedADPcV44dTsYRbjSXEJpmikC4lhkhkrvgmuyIH1J9pMy7WzDtioaouyDXSEcL0X smhltEuIKVcdeFbEyHcUiQAFhdK5yHj6KRj4MgfajW7Qla5iSmVPOaznvBZRuMp2O6I/ +rsC/9PSnhpFMERNn5eZVQGZSXft/K0QKp+1rTAHfZL5/1N7/bJX1+EkZBrWi6T8nXx8 7TtXkkM6Y4En1XNDQyz5lKwQFA3h4Vf5+k/rMORyGMHHQ/kIvigE/+wLmWVxetWXkIgj UYQeCu6KIo0rRM0RQ2UWeGOPwYq6X4NjCzH1HUIqC0JrSdbqo2Vs+NfVMvzZs4KHumOi kzKA== X-Gm-Message-State: AOAM530KUTPvVfMrQHCNnps3XzUZxJvVCUaQxu43jveO9teABo69dlR5 2pQn2yq7eYEIvGMo0CblWN/hZjpShYwCVYSwu89C0ytw1tpnCViocjF4DWxQi5LqEq8W2C6uKI9 lDVKiWY6ofOCWmeqEFji1IA== X-Received: by 2002:a05:620a:472c:b0:69e:adc8:31bb with SMTP id bs44-20020a05620a472c00b0069eadc831bbmr10391133qkb.357.1650549205301; Thu, 21 Apr 2022 06:53:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ65Ni7KuvPVTHG9wXSVhaowghVkjzp4/JMCxuoAouEEprDA9UV4imd4z+Od6KwvJEfM7RhQ== X-Received: by 2002:a05:620a:472c:b0:69e:adc8:31bb with SMTP id bs44-20020a05620a472c00b0069eadc831bbmr10391122qkb.357.1650549205053; Thu, 21 Apr 2022 06:53:25 -0700 (PDT) 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 h123-20020a379e81000000b0069e955169e5sm2969054qke.2.2022.04.21.06.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 06:53:24 -0700 (PDT) From: Tom Rix To: mchehab@kernel.org, bp@alien8.de, 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/ghes: change ghes_hw from global to static Date: Thu, 21 Apr 2022 09:53:19 -0400 Message-Id: <20220421135319.1508754-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 Smatch reports this issue ghes_edac.c:44:3: warning: symbol 'ghes_hw' was not declared. Should it be static? ghes_hw is only used in ghes_edac.c so change its storage-class specifier to static. Signed-off-by: Tom Rix --- drivers/edac/ghes_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c index 2805d5610300..59b0bedc9c24 100644 --- a/drivers/edac/ghes_edac.c +++ b/drivers/edac/ghes_edac.c @@ -38,7 +38,7 @@ static struct ghes_pvt *ghes_pvt; * This driver's representation of the system hardware, as collected * from DMI. */ -struct ghes_hw_desc { +static struct ghes_hw_desc { int num_dimms; struct dimm_info *dimms; } ghes_hw;