Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2252567pxb; Fri, 5 Mar 2021 10:46:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNSGOgnfMY52bBAxAZnDeVrmbX0VSySUHBYSjuzBlw2yiaw/eZBFg8m+MTt1vGyhrK0GcJ X-Received: by 2002:a17:907:75c7:: with SMTP id jl7mr3758262ejc.191.1614969988912; Fri, 05 Mar 2021 10:46:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614969988; cv=none; d=google.com; s=arc-20160816; b=XfnV7z9duqs4GfvYDDY6QDMgD8gVHblFKFNO+5jANygjLCvUGkJPYzwW+kQZ4Ua+R9 OG63trvIpORJsmE9aykSP1PHd7PnFhsXMiCwY0wbTUz5YIuvZykScfBg6bSzo8NsOe4v qUDo140AFAmGxyhAfk88DZGwdARzsuOCx2xjg1sxlBcVSM1x1PVskBidtQoPdnqZJoJR xjYeoo4Fic4B82BfMlryn9zx2lnxRonc+llBswV5v7PYsIZAn+t7IaswM8orP55L2Edi DodctL+nQenrzuoek0Q+n7NcCLFXtM7qWp5/Zk8wQ8XlpivQTL26Y/3F6QO0B8N1xtV3 ZMbg== 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=2Oa1r2oMWInPjDp3VOkBRuySHoKI/0WFpXsLKBPDbGo=; b=0WG7wCNulEDIR8oc+p9q++M/+XRSokp2Wt1VaYMQe4cvrEbAw8xBG6dgvBGRjxfunn gmsF4zfeaJQwDDvGLTLpzUBlydrY8s+tLp+O08/ol3V0ZefQidvqk/ZJ86DTenxvbMNm ITpyz9TUUD9dx7puuSGT96E7wcac+9Qov1POXxp+t+YFwU/57hg2+ta18Who9Wbi716A hTBZ3DIqr54ReZRuuNa3thJiYxUXAMdjaH+BLO75mNoY4+r8dPUPp3a7FMp1vWF1W5u0 SKU83VZfAZu4ByV2PhmoN17085thfqCNglgkbPRioPnjMzE/l0JkF9Zej7GeNNHFJbwK 1d+Q== 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 x9si1917262eje.662.2021.03.05.10.46.06; Fri, 05 Mar 2021 10:46:28 -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 S229693AbhCESpK (ORCPT + 99 others); Fri, 5 Mar 2021 13:45:10 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:49364 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbhCESoh (ORCPT ); Fri, 5 Mar 2021 13:44:37 -0500 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 0.83.537) id a79710fd8a3dea04; Fri, 5 Mar 2021 19:44:35 +0100 Received: from kreacher.localnet (89-64-81-9.dynamic.chello.pl [89.64.81.9]) (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 905FD663EA1; Fri, 5 Mar 2021 19:44:33 +0100 (CET) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Linux PM , Zhang Rui , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: [PATCH v1 3/4] IIO: acpi-als: Get rid of ACPICA message printing Date: Fri, 05 Mar 2021 19:42:29 +0100 Message-ID: <6250192.e2TqKytQZN@kreacher> In-Reply-To: <2775419.haJ69vZeI0@kreacher> References: <2775419.haJ69vZeI0@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledruddtiedguddtjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepgfelheffhfetffelhfelteejffetteetgfetkeejvdfhfeeftdeufeevgeevieevnecukfhppeekledrieegrdekuddrleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeekledrieegrdekuddrledphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepjhhitgdvfeeskhgvrhhnvghlrdhorhhgpdhrtghp thhtoheplhgrrhhssehmvghtrghfohhordguvgdprhgtphhtthhopehpmhgvvghrfiesphhmvggvrhifrdhnvghtpdhrtghpthhtoheplhhinhhugidqihhiohesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjuggvlhhvrghrvgesshhushgvrdgtohhmpdhrtghpthhtoheplhhinhhugiesrhhovggtkhdquhhsrdhnvghtpdhrtghpthhtoheplhhinhhugidqhhifmhhonhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-DCC--Metrics: v370.home.net.pl 1024; Body=11 Fuz1=11 Fuz2=11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Use acpi_evaluation_failure_warn() introduced previously instead of the ACPICA-specific ACPI_EXCEPTION() macro to log warning messages regarding ACPI object evaluation failures and drop the ACPI_MODULE_NAME() definition only used by the ACPICA message printing macro. Signed-off-by: Rafael J. Wysocki --- drivers/iio/light/acpi-als.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) Index: linux-pm/drivers/iio/light/acpi-als.c =================================================================== --- linux-pm.orig/drivers/iio/light/acpi-als.c +++ linux-pm/drivers/iio/light/acpi-als.c @@ -26,8 +26,6 @@ #define ACPI_ALS_DEVICE_NAME "acpi-als" #define ACPI_ALS_NOTIFY_ILLUMINANCE 0x80 -ACPI_MODULE_NAME("acpi-als"); - /* * So far, there's only one channel in here, but the specification for * ACPI0008 says there can be more to what the block can report. Like @@ -91,7 +89,7 @@ static int acpi_als_read_value(struct ac &temp_val); if (ACPI_FAILURE(status)) { - ACPI_EXCEPTION((AE_INFO, status, "Error reading ALS %s", prop)); + acpi_evaluation_failure_warn(als->device->handle, prop, status); return -EIO; }