Received: by 10.213.65.68 with SMTP id h4csp2119795imn; Sun, 8 Apr 2018 20:11:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+WzYNGmlSaTwHC7b3I8LN6E/VJuGZ/SylyjL5HwwzYOPIVbHHWF/HeMxmlZbfud8ah/FLL X-Received: by 10.101.66.76 with SMTP id d12mr19515062pgq.109.1523243500553; Sun, 08 Apr 2018 20:11:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243500; cv=none; d=google.com; s=arc-20160816; b=lNpRjw17pzt5kRWAkzo1MHSoXLuU/pba2J8dtS6k8xawrWYsFOV438xcA7TRmmxxNG 9PzBNwOvsEVqARreMwyaga/YjBch4IkLeogt8/3uKEGtXbTu0UpGctqMiOmGtCEJlmWA o8dZixJloonND1TrhqJwRBc3sQ86L13bNvbInJt6ht8dPG+hhPj/0cGPB21unZ61563N xLaMCmJshSkz938vsFeH9badqCy6w4lPPHgkHDitapLkk1aoC3PjwguB1WrZqDzeU3B+ WT5D4IR9rFMzldm1xIvhvHlDGwTEinbKbxqMlVjeXIdoUmF9nFcGa+LBV1+GBWBZ/YUz Fx4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=rCE1VBW5thpq1kK0xdG8bvfsxDIYzDMWPz2xPKh+HhU=; b=xvawIddXysJHxfk/o8UCTTXn823zNQw5HPD4pVu/T2ffHuuk6cNjS0+PMjx79x9ZNl TTqrGjMKjPwAdo8hZ+vrUtkKO/9Y+tFivuHvzOm+8nIXEIW9GibPXGl2UkoxVNTKwjpj MSagih/TPaK08vQ40wrOD3dqBOIUv6UPSuqmvTiAbb9vLa97y1PigYeUC2hVO2FQI5Lh gbSXoqZijXGAyhOZ/JLIWNN1BSgzlAYgoMWf8tIT03yBUycmMsfTucQp0dj6c91XZb1V RuYgsN7qy+0e/52nqUQrcDxzoI24IgP04SbkjggDaxLY7jhx3R4416ZDIO7z3bTbAuq5 K6nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=ca82Fw4y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w71si12017952pfd.273.2018.04.08.20.11.04; Sun, 08 Apr 2018 20:11:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=ca82Fw4y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932638AbeDIBXD (ORCPT + 98 others); Sun, 8 Apr 2018 21:23:03 -0400 Received: from mail-sn1nam02on0113.outbound.protection.outlook.com ([104.47.36.113]:53303 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932726AbeDIAhE (ORCPT ); Sun, 8 Apr 2018 20:37:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rCE1VBW5thpq1kK0xdG8bvfsxDIYzDMWPz2xPKh+HhU=; b=ca82Fw4ydCLwqtHpOz9Av4ofGiRX9XdsF/AW0Z2S7VYiwMBALAEYMvDLOZoCnBZQmo+oPjfDaWf7QmvmBbA0Limpw4ZlBZgDhzOnVG+dVJV9C1YPxTSLMFcAnh3fjXwG2BJnnARmB28NSV7aCKWvtLV/5DKgGt7Fp7JRuUHmTVc= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0885.namprd21.prod.outlook.com (52.132.132.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:36:59 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:36:59 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Lv Zheng , "Rafael J . Wysocki" , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 077/162] ACPI: EC: Fix EC command visibility for dynamic debug Thread-Topic: [PATCH AUTOSEL for 4.4 077/162] ACPI: EC: Fix EC command visibility for dynamic debug Thread-Index: AQHTz5m16hbC8ZJ/i0uGqWRoBL9mUA== Date: Mon, 9 Apr 2018 00:28:39 +0000 Message-ID: <20180409002738.163941-77-alexander.levin@microsoft.com> References: <20180409002738.163941-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002738.163941-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0885;7:s6ZYxH0F4dL6piYZEOtuYBo7+QKU4p76Djbpx0Y4yCHgp4ctRL1OIkKG2Ld2s3cXWs8od6A4lrPZex6sD7F4KMP7aMW7SzoTCnXOOeOajUJqDvaE3Z0uUmmipuAIpM6LOKDQwsyiGxi9bPFu7CRQxBYyT+Cicx8ge62U+dDWOcqVeO2HLIpWoVhnmchBMdsQ1zJ0M8Il/hPknpQDLyLXI9i4TShPHmzBewQd/1Gxs7hIceTXQJrHbCIq81Z4rBVu;20:OqY+iZBrPIOuJoKSoLWSdcYiUhEAd37ENUJGMMtZPHKZ3gvK9b8/zUYoijvtZVS1wxUxQyaYQq7wldZpQmpJEhjhUihAXMiIIeeEAW7rem7Hb+HKb+t53ruhzoLVtCjz6PpSdrVaRY7BfBltfB3Tf9v2P213xlenpxy+3IMTeHY= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 25eb88ea-8215-4062-6cb5-08d59db20178 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0885; x-ms-traffictypediagnostic: DM5PR2101MB0885: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0885;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0885; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(396003)(376002)(39860400002)(366004)(346002)(199004)(189003)(66066001)(3846002)(6116002)(59450400001)(86362001)(305945005)(10290500003)(6436002)(5250100002)(3280700002)(10090500001)(3660700001)(6506007)(2501003)(107886003)(446003)(53936002)(11346002)(2616005)(26005)(76176011)(7736002)(478600001)(476003)(81156014)(25786009)(8676002)(81166006)(186003)(8936002)(4326008)(97736004)(102836004)(99286004)(14454004)(36756003)(6512007)(316002)(2906002)(22452003)(68736007)(54906003)(110136005)(486006)(6486002)(6666003)(5660300001)(2900100001)(1076002)(72206003)(86612001)(105586002)(106356001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0885;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: eiuU2/D8mGvPkUt4aLRyc0RDYSwT6yhcbEDbiaP/57Wvo8NYjdIt2Sne46GNhCA6ziMTL2BZfF6X3e0X05NExw/fM8DbKX2UcxseA/kEwUHSZK/ISkMAN13sIzhmWKNM3zjJpNkHRDcbFealcUn26RNeOdI9LU0+6PpVKbmC7hIbK/mqr3Nc3F++/Glaj4rxlIRsiJqsKe4CDtU2vMtY5af67+tXeSfvM0Qu01YVKBPiDG+8uonOd5NMP9vqo4jp6bOoM7NqFPyuZPVjLlDu/T88sXLkuZtLql+P1rdh6k5E3fSFY5k0IwZdbDmyxyFgZqJvKSHZsEurl9eOoZCdpq4wSl4EydnsuXZ0zpPP8s1SbHgp/c4zweBPR7pL2VF+CAmifOH7KXvV36cbpXqdCeUUYIA0giVg+spD2rg+3gU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 25eb88ea-8215-4062-6cb5-08d59db20178 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:28:39.9583 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0885 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lv Zheng [ Upstream commit 4625d752e600c116e6327f9d7fc16e8f5be107e9 ] acpi_ec_cmd_string() currently is only enabled for "DEBUG" macro, but users trend to use CONFIG_DYNAMIC_DEBUG and enable ec.c pr_debug() print-outs by "dyndbg=3D'file ec.c +p'". In this use case, all command names are turned into UNDEF and the log is confusing. This affects bugzilla triage work. This patch fixes this issue by enabling acpi_ec_cmd_string() for CONFIG_DYNAMIC_DEBUG. Tested-by: Wang Wendy Tested-by: Feng Chenzhou Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 43f20328f830..aaec2efbe64b 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -287,7 +287,7 @@ static inline void acpi_ec_write_data(struct acpi_ec *e= c, u8 data) ec->timestamp =3D jiffies; } =20 -#ifdef DEBUG +#if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG) static const char *acpi_ec_cmd_string(u8 cmd) { switch (cmd) { --=20 2.15.1