Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp497782pxb; Sat, 6 Mar 2021 06:40:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiwpymsJ0wt25YlF299EcS9o16oi4EMuNTP4+g5b/2dnX7+zINML/0rp6vKK9KTR7XbaQ0 X-Received: by 2002:a50:ec07:: with SMTP id g7mr13976812edr.72.1615041657569; Sat, 06 Mar 2021 06:40:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615041657; cv=none; d=google.com; s=arc-20160816; b=FRoJAw4czeQgZ4TM44LrId1WSpdUG96qPKBqpV1jESlmU0AxI8LmrEVulhdakPmYoH SZGrUu7V87K01SDjI1DC+HnY9TRPgWzEHNONvnOrNaxZp+F/ua+Uhn5A0AG/JBy+jozq 2xT1UlLmpn/HzL8hApxO/ug7NBDAFuaKNpaBtxOJt2lIhiARuz4p7ey+pk9kevvGtAkd xsVrL5SgTWqIGEFJ7r+PLAFzQ+wVQYkKyBKXRo9ASriGH2tpyTFRZWtjNVSCXev9DWpl ufGvv5XNFnQxdAVsts5b5kQPe0hZDtrqDzz2pjHk0/zprcck1usM7OwOzZYiegfUqYAy QKow== 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:subject:cc:to:from:date; bh=w48a+qtk+wW7ctIxot5kUrFLkw5Oxg9wGAUKOxJvt4E=; b=DX4zbaqo0o5tGmN548CIn6/bpa9gCoTuxVqisHKyq2Zu5W+DgzHHkCTJs+UBp62Xux CNBBzt27CKHZNYR+bYeLG7Ye2myDFnMSXk72IRTQOGit7D8r0a19ectyy52fsYGvYoPu WbtE7++ynTK23/eGLxmkfjw63ZMvX6R7vsCSy0B6eOxHDfJqzJ7DwXJ+30D2rijGi0+0 7F8AOPxX89ha2dkZOxLl6Y0+z1+EowM8FzXKAfm1AFN/XLLeBbWhK66LB072O2zmA5Ts t1rkusvnb4WbqW+nqYBGdPSuCK7bkZMY1w61xdGjgNrbYg4eDf6fFcuxcStSgB0rCrMN TGUQ== 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 w26si3556097ejf.489.2021.03.06.06.40.34; Sat, 06 Mar 2021 06:40:57 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230435AbhCFOio (ORCPT + 99 others); Sat, 6 Mar 2021 09:38:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:35086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbhCFOiR (ORCPT ); Sat, 6 Mar 2021 09:38:17 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9909F64EBD; Sat, 6 Mar 2021 14:38:15 +0000 (UTC) Date: Sat, 6 Mar 2021 14:38:12 +0000 From: Jonathan Cameron To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML , Linux PM , Zhang Rui , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: Re: [PATCH v1 3/4] IIO: acpi-als: Get rid of ACPICA message printing Message-ID: <20210306143812.4da7b32e@archlinux> In-Reply-To: <6250192.e2TqKytQZN@kreacher> References: <2775419.haJ69vZeI0@kreacher> <6250192.e2TqKytQZN@kreacher> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 05 Mar 2021 19:42:29 +0100 "Rafael J. Wysocki" wrote: > 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 Acked-by: Jonathan Cameron > --- > 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; > } > > > >