Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp644648ybz; Wed, 15 Apr 2020 15:50:30 -0700 (PDT) X-Google-Smtp-Source: APiQypJEEj0Od+Iq1igtSPALspwyU/7VCjDKlDtXGq6axVwuYp41Ydqmv5QJWzkNZs8C5GxwWtvM X-Received: by 2002:a50:8716:: with SMTP id i22mr5119310edb.248.1586991030406; Wed, 15 Apr 2020 15:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586991030; cv=none; d=google.com; s=arc-20160816; b=GaA5GBsgKRn7D9Qmsls+8YDZkzDVrIolP9rmF1+kuIcxA6h/jIjWaoGOkoF8SZb0fJ h+NWvZotsGzlJP3JpvoDvuLP///VWWsSOEi+bil2SHAtHcTO2jNdZ1iLLKxCxiTmmdZ+ MLD2ysbQhLW3lCrAiZd7Ioj/WiWnPke01wrxadQBgQuz9z9QmGEPbJTvqfakHhInZii5 VS3hRW3oqweoR9dxrSklxWf0deZO4mUblz+HJQIPm+H4f25l/eO4R0mKDhgbxlIQOgOM Xwd7xHvpQNS3+l/YAKr1JzksCSzTCj750wguWpwmh3Z+53kl/c6ixP4pJFWegdf+SVCj sTGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=PeBwwUHexbq/B0mllpXl205PmqHG/3tGbcfB95WXpZk=; b=SDDXx7PGEl4HdWgY8XmCJG5GCTus5zaaZ0NuTaoz3oZM0Lq8GJfxA6J29gbF7JTzF6 mdhe3GzFeUM5/PunFTSBPktrhJb1gEnf6t8rb0fU61s6uAPz0bDaxOnKmBeq1DAZH3Oz IhbQKnwINH3z3+PRCy1CF5nbQHh4LYwVCIMN2UqzbbmLkaCFo8/KxjemhCS5w+kHJAHm T8rr/L0unOjvaEGCny4mSG2iStBR52PyCPsHqTClyO6xhts1CrTXLZZWY7ArnRCLXSrK 9bGW0FoTpu9tjD3u8XyTgUSqpriplnbB7fMx/3Wln+izEFuia8X2qOYSSTuRtm8U6Zwc u9lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si7126675ejb.405.2020.04.15.15.50.07; Wed, 15 Apr 2020 15:50:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2895448AbgDOJYZ (ORCPT + 99 others); Wed, 15 Apr 2020 05:24:25 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:37026 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2895441AbgDOJYV (ORCPT ); Wed, 15 Apr 2020 05:24:21 -0400 Received: by mail-oi1-f195.google.com with SMTP id r25so3058376oij.4; Wed, 15 Apr 2020 02:24:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PeBwwUHexbq/B0mllpXl205PmqHG/3tGbcfB95WXpZk=; b=IWlILqMAoTKQSWSI8IDWMp6nVligMUztlOrGi0xClI07bE/qiBqpScu11d6QwI7hLT UzwElrqEz5Cez2IehCwiejPGUSRczWvUGxjEmGrqO5MCnzptk6vJUfol8YT6yCL/jaIL 2IbAQnZsZVbxeOOZsA7ocEPp7KeaJsGeReC2MsQryWwlrQyztN8DV/DnsDlO5N8pK5w/ tIiyzP2XElF9eIOOIdtC/mM3i/LT0Z3gTH3j8ZQKHsUDyv5kU14E8T/RX46l6mDztMFD FQ8T2/OGJcGs5gKJ5P8rm3VozfKuu8HQ5Dx1J2BYM06/fwD+OsjRBsQWjcZqwOHfqwbC F0IA== X-Gm-Message-State: AGi0PuaPiwbjl7p2vW85Ay8h1lRCkPw8mfjm45IkIxtCECdN8k3MyyeY YPdFoNKnlOX059X4ZU31TBCPLH2F9+v1h181dYY= X-Received: by 2002:a05:6808:81:: with SMTP id s1mr559297oic.68.1586942660307; Wed, 15 Apr 2020 02:24:20 -0700 (PDT) MIME-Version: 1.0 References: <20200415084933.6251-1-yanaijie@huawei.com> In-Reply-To: <20200415084933.6251-1-yanaijie@huawei.com> From: "Rafael J. Wysocki" Date: Wed, 15 Apr 2020 11:24:09 +0200 Message-ID: Subject: Re: [PATCH] ACPICA: make acpi_protocol_lengths static To: Jason Yan , Robert Moore , Erik Kaneda Cc: Rafael Wysocki , Len Brown , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , Linux Kernel Mailing List , Hulk Robot Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 10:23 AM Jason Yan wrote: > > Fix the following sparse warning: > > drivers/acpi/acpica/exfield.c:25:10: warning: symbol > 'acpi_protocol_lengths' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan Erik, Bob, this one is yours. :-) > --- > drivers/acpi/acpica/exfield.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi/acpica/exfield.c b/drivers/acpi/acpica/exfield.c > index e85eb31e5075..3323a2ba6a31 100644 > --- a/drivers/acpi/acpica/exfield.c > +++ b/drivers/acpi/acpica/exfield.c > @@ -22,7 +22,7 @@ ACPI_MODULE_NAME("exfield") > */ > #define ACPI_INVALID_PROTOCOL_ID 0x80 > #define ACPI_MAX_PROTOCOL_ID 0x0F > -const u8 acpi_protocol_lengths[] = { > +static const u8 acpi_protocol_lengths[] = { > ACPI_INVALID_PROTOCOL_ID, /* 0 - reserved */ > ACPI_INVALID_PROTOCOL_ID, /* 1 - reserved */ > 0x00, /* 2 - ATTRIB_QUICK */ > -- > 2.21.1 >