Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1798364pxb; Mon, 22 Feb 2021 11:08:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQLsj/fw7LXW4VH3eEGizYds6G5EmLoxQihy28QwCsvYFuUEgFZRpreT2T2ffJCieI7Wui X-Received: by 2002:a05:6402:610:: with SMTP id n16mr23346773edv.288.1614020887388; Mon, 22 Feb 2021 11:08:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614020887; cv=none; d=google.com; s=arc-20160816; b=cJJHasQjIURpk8Jlxb6VlDG/ZiPV/cz+3B+PYZfaGZYfGYXPFC35SZmHJklgd6FVCO 0tHHJ2meX7TXTaLwiL8N8mF6I8yTY94jWrGBS24SetK7t7ThBD0tbI/HDKPnnI0WAwK1 IgSVbUfT5sdWOQw6LEO1eyRkuSwp4ATEhlL/Qrs4dTIRepxEA1/nv6OWAMUvo1TIhNCD JOhymkKuxmbA0XI1qjv3AX6cbMBqGZUqGYDJxFyVIuT+uW9l8Kt1zxiOmpPI1HLw8eg8 s7JNtr6Ng21g5JLRf7T3awZlUcjutZbSP863twZ6Qszm1CQpOJ74kKdKDePDe3cPF8go MzTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=EBB8yEb6+eCzfZCxw+P3Qa/hM/coYlaUW9BaaIGF43Y=; b=a2TCh17gFZudrpeIU1yTkPr1TGoJmlGm9x94caymmxAnhlBVfuWQK6ThozgijKPJMn pn+yeuKIaWx+KoYgPjvSs4i0NwPMqSHZRI/MzJGUPaxMygtnNNaY9lRlfRuDFjo9X/e6 sAIa/dzIjSYuHO1GNnqgn8NKDCp/JrIYburUk6UKTIXHtCNFlNKiw4G/klkOcgHS4DlK WeMgnfmZN8VlrruXn+4yh0RIcRi7JLaIOTbe4Qn4Vyviy0a0ME/BEYgFO6u4yO7rz+HD WwlDViqjkq1JG+12tuRAnEJsuw2aydJiEK73C7D4vAvZDSyZYUo6gjzz8kS4DSu7Y4cw kaPg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si8125110edx.531.2021.02.22.11.07.42; Mon, 22 Feb 2021 11:08:07 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232305AbhBVTEh (ORCPT + 99 others); Mon, 22 Feb 2021 14:04:37 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:65068 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232490AbhBVTDY (ORCPT ); Mon, 22 Feb 2021 14:03:24 -0500 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_smtp) via UNIX with SMTP (IdeaSmtpServer 0.83.537) id c3e939bef3a53db2; Mon, 22 Feb 2021 20:02:21 +0100 Received: from kreacher.localnet (89-64-81-242.dynamic.chello.pl [89.64.81.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 3ECD6662057; Mon, 22 Feb 2021 20:02:21 +0100 (CET) From: "Rafael J. Wysocki" To: Linux ACPI Cc: Linux PM , LKML , Hanjun Guo Subject: [PATCH v1 2/4] ACPI: sysfs: Get rid of ACPICA message printing Date: Mon, 22 Feb 2021 19:59:54 +0100 Message-ID: <4357646.0lvgoTfV33@kreacher> In-Reply-To: <5138173.kHyPcihzTF@kreacher> References: <5138173.kHyPcihzTF@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrkeefgdduudelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefgleehfffhtefflefhleetjeffteettefgteekjedvhfeffedtueefveegveeiveenucfkphepkeelrdeigedrkedurddvgedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepkeelrdeigedrkedurddvgedvpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepghhuohhhrghnjhhunheshhhurgifvghirdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=4 Fuz1=4 Fuz2=4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Replace the only ACPI_EXCEPTION() instance in sysfs.c with a pr_warn() call, drop the _COMPONENT and ACPI_MODULE_NAME() definitions that are not used any more and drop the ACPI_SYSTEM_COMPONENT definition that would not be used any more in a meaningful way after the above changes. Signed-off-by: Rafael J. Wysocki --- Documentation/firmware-guide/acpi/debug.rst | 1 - drivers/acpi/sysfs.c | 7 +------ include/acpi/acpi_drivers.h | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) Index: linux-pm/drivers/acpi/sysfs.c =================================================================== --- linux-pm.orig/drivers/acpi/sysfs.c +++ linux-pm/drivers/acpi/sysfs.c @@ -12,9 +12,6 @@ #include "internal.h" -#define _COMPONENT ACPI_SYSTEM_COMPONENT -ACPI_MODULE_NAME("sysfs"); - #ifdef CONFIG_ACPI_DEBUG /* * ACPI debug sysfs I/F, including: @@ -55,7 +52,6 @@ static const struct acpi_dlayer acpi_deb ACPI_DEBUG_INIT(ACPI_SBS_COMPONENT), ACPI_DEBUG_INIT(ACPI_FAN_COMPONENT), ACPI_DEBUG_INIT(ACPI_CONTAINER_COMPONENT), - ACPI_DEBUG_INIT(ACPI_SYSTEM_COMPONENT), ACPI_DEBUG_INIT(ACPI_MEMORY_DEVICE_COMPONENT), }; @@ -650,8 +646,7 @@ static int get_status(u32 index, acpi_ev if (index < num_gpes) { status = acpi_get_gpe_device(index, handle); if (ACPI_FAILURE(status)) { - ACPI_EXCEPTION((AE_INFO, AE_NOT_FOUND, - "Invalid GPE 0x%x", index)); + pr_warn("Invalid GPE 0x%x", index); return -ENXIO; } status = acpi_get_gpe_status(*handle, index, ret); Index: linux-pm/Documentation/firmware-guide/acpi/debug.rst =================================================================== --- linux-pm.orig/Documentation/firmware-guide/acpi/debug.rst +++ linux-pm/Documentation/firmware-guide/acpi/debug.rst @@ -55,7 +55,6 @@ shows the supported mask values, current ACPI_SBS_COMPONENT 0x00100000 ACPI_FAN_COMPONENT 0x00200000 ACPI_CONTAINER_COMPONENT 0x01000000 - ACPI_SYSTEM_COMPONENT 0x02000000 ACPI_MEMORY_DEVICE_COMPONENT 0x08000000 debug_level Index: linux-pm/include/acpi/acpi_drivers.h =================================================================== --- linux-pm.orig/include/acpi/acpi_drivers.h +++ linux-pm/include/acpi/acpi_drivers.h @@ -18,7 +18,6 @@ #define ACPI_SBS_COMPONENT 0x00100000 #define ACPI_FAN_COMPONENT 0x00200000 #define ACPI_CONTAINER_COMPONENT 0x01000000 -#define ACPI_SYSTEM_COMPONENT 0x02000000 #define ACPI_MEMORY_DEVICE_COMPONENT 0x08000000 /*