Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1561130ybb; Thu, 9 Apr 2020 04:44:45 -0700 (PDT) X-Google-Smtp-Source: APiQypJAkjA7XDnvQBDYFo5mdrhe9zbbO0eZOzXsvczmtXyH6+PV+ZABko92FfHpKJMjYSGdE9MJ X-Received: by 2002:aca:5fd6:: with SMTP id t205mr6016784oib.27.1586432685337; Thu, 09 Apr 2020 04:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586432685; cv=none; d=google.com; s=arc-20160816; b=bxTOnDHXzFCWUVuK1Pbgx3NabB8OK5ZBqPyBoMHrDogaWJMrqoZboLerDEhWJoO1XX Psx/4vHh+uktj0RUqLUcTFRmniW6T/O6/5DMIvMtSWXxOxyw0saQkogxTS82fZ1CmTa/ FKXQ6wzzJ6mg0DHwEZxYWGySw/enEyKHSQogZU49321zuHwo4YPrbt0oSOMs+jrC750e tXOTXpBpnb3LjDHeJXQvCZQ8SFVx2nqqK1yvFdbqW8cvCLQuyzwEeNY6+sbC38/+hYH+ a1nN3GQWWUAO4rmHBNN4kOB76Zul8KV6tTPaUjPbAyczBcvopcsv0YAFJnFOLGZJHWtY joGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from; bh=7gFM1BiGHRi1iZMh9FlfWxyV2ypQbWZpOrH5li/0Iss=; b=VX4B/eg9lAFeiioZH/pcb7dPoP2NSzrLm8VA4ljt8lVi0tXUMj/nq4IGjgAIvbzLzN g1WbaeDf7UgZy/96c4bmyBbWkemkJUQVX6//mvQ5MDD9nIusao6Rio1Bkvaxmvom8VUs X7wkKfDpIeIXztFAwelVRNmF0oQi8uaksqHM1tnLJ1KsC6G9qHuGE8cHdUpc9kWDEC55 nnsBYBkpIoI+SpsbRM8/hgnVcaWSiITed9c6MBbmrYSUlBTWbS4QpAbiWx/llH9pIdEr TO0c3FFXS3eMCmsFPRnsRpOHUjPooQI009DX5phpwBhKGSqFoveGrbimTydlEJcb+jUN /QpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si4045990otn.57.2020.04.09.04.44.31; Thu, 09 Apr 2020 04:44:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726650AbgDILmY (ORCPT + 99 others); Thu, 9 Apr 2020 07:42:24 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12631 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725971AbgDILmY (ORCPT ); Thu, 9 Apr 2020 07:42:24 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id DD028843B943801B9B5E; Thu, 9 Apr 2020 19:42:21 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 19:42:13 +0800 From: Jason Yan To: , , , , , , Subject: [PATCH] x86: i8259: make default_legacy_pic static Date: Thu, 9 Apr 2020 19:40:45 +0800 Message-ID: <20200409114045.38648-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: arch/x86/kernel/i8259.c:410:19: warning: symbol 'default_legacy_pic' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- arch/x86/kernel/i8259.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c index 519649ddf100..004f32d2c61c 100644 --- a/arch/x86/kernel/i8259.c +++ b/arch/x86/kernel/i8259.c @@ -407,7 +407,7 @@ struct legacy_pic null_legacy_pic = { .make_irq = legacy_pic_uint_noop, }; -struct legacy_pic default_legacy_pic = { +static struct legacy_pic default_legacy_pic = { .nr_legacy_irqs = NR_IRQS_LEGACY, .chip = &i8259A_chip, .mask = mask_8259A_irq, -- 2.17.2