From: "Rafael J. Wysocki" Subject: [PATCH v2 1/5] ACPI: EC: Declare boot_ec as static Date: Fri, 01 Feb 2019 10:57:01 +0100 Message-ID: <3257902.HcCiuEjYcT@aspire.rjw.lan> References: <2897234.rJkq6cDEjt@aspire.rjw.lan> <2804781.zocuRj5ZkX@aspire.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <2804781.zocuRj5ZkX@aspire.rjw.lan> Sender: linux-kernel-owner@vger.kernel.org To: Linux ACPI Cc: Erik Schmauss , Zhang Rui , LKML List-Id: linux-acpi@vger.kernel.org From: Rafael J. Wysocki The boot_ec variable is not used outside of the file it is defined in, so declare it as static. No intentional functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/ec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: linux-pm/drivers/acpi/ec.c =================================================================== --- linux-pm.orig/drivers/acpi/ec.c +++ linux-pm/drivers/acpi/ec.c @@ -186,8 +186,10 @@ static void advance_transaction(struct a static void acpi_ec_event_handler(struct work_struct *work); static void acpi_ec_event_processor(struct work_struct *work); -struct acpi_ec *boot_ec, *first_ec; +struct acpi_ec *first_ec; EXPORT_SYMBOL(first_ec); + +static struct acpi_ec *boot_ec; static bool boot_ec_is_ecdt = false; static struct workqueue_struct *ec_query_wq;