From patchwork Mon Sep 4 13:00:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 809671 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3xm926306vz9sNr; Mon, 4 Sep 2017 23:00:46 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1doqzc-0000lU-Cn; Mon, 04 Sep 2017 13:00:44 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1doqza-0000lO-7l for fwts-devel@lists.ubuntu.com; Mon, 04 Sep 2017 13:00:42 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1doqzZ-0008JG-SV; Mon, 04 Sep 2017 13:00:42 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] dmi: dmicheck: constify array dmi_used_by_kernel_table Date: Mon, 4 Sep 2017 14:00:41 +0100 Message-Id: <20170904130041.6286-1-colin.king@canonical.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" From: Colin Ian King The array dmi_used_by_kernel_table is static and read-only so also make it const Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Ivan Hu --- src/dmi/dmicheck/dmicheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c index 20f28b17..61c6b816 100644 --- a/src/dmi/dmicheck/dmicheck.c +++ b/src/dmi/dmicheck/dmicheck.c @@ -264,7 +264,7 @@ static const fwts_dmi_version dmi_versions[] = { * we care that work, * see drivers/firmware/dmi_scan.c, dmi_decode() */ -static fwts_dmi_used_by_kernel dmi_used_by_kernel_table[] = { +static const fwts_dmi_used_by_kernel dmi_used_by_kernel_table[] = { /* Type 0 BIOS Information fields */ { 0, 4 }, { 0, 5 },