From patchwork Fri Nov 9 23:10:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10676673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A7B5109C for ; Fri, 9 Nov 2018 23:12:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BEE72F164 for ; Fri, 9 Nov 2018 23:12:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B1282F16E; Fri, 9 Nov 2018 23:12:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 199D42F164 for ; Fri, 9 Nov 2018 23:12:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728994AbeKJIyH (ORCPT ); Sat, 10 Nov 2018 03:54:07 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46566 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728765AbeKJIyG (ORCPT ); Sat, 10 Nov 2018 03:54:06 -0500 Received: by mail-lj1-f195.google.com with SMTP id v15-v6so2941949ljh.13 for ; Fri, 09 Nov 2018 15:11:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WjlkOi7SsoKeG44ML8h7MnjFOLGteuTlJadrTcyRrTQ=; b=gxNBQ1Jgalir7n7qBfARJLrySPGPeemWx8ePDBGJblGpaZbx+xIRof3IKgDtosB2j5 jYpwiF8oe3+KHfQ/b8HsdwFRhFpEGydX2ybC0gB6zbsIsowZ+sGa0z9SjzXV/W84YfI9 OXlY78Ha9rLTJHpSge3WruhMzaeQHKyMduBUs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WjlkOi7SsoKeG44ML8h7MnjFOLGteuTlJadrTcyRrTQ=; b=GEOdQb1IHezUfN/34VHq4ctW4R7qw2U6Q1/X5+YCT/sLnjb1SGKzVV/MFvYnBTeVZl U4q99VFOZSHndOAfpX1fm7EWrsNtSt7kAx3OsZQstNgGKhu9Pxp24GpbbcxVZzsEZm0l tdSST9DNLpVUpizLVD30qwM4u0aGHtNrt2y259UOM+FE8rFD59XXiA7H88OPnDN5QLXQ Yl7yIKRnSrxIzdFExtkQzC/q0MxIPdMPNW54Se854PF7MtFq+fzfcjpsNrrLlrP+dbTa NA341Tmk0f5AeJXticbJZctm3jXXlosnrXHaMKLuB2+AkCUCCUKbbI9tJ+OkGY7oKBuF X5dA== X-Gm-Message-State: AGRZ1gKAOuxJF/lSGm7jzmhhWIxkvkxdWiP+8uAgBeyt3d7+Ou3aIn41 5+4GhVIOJAE7EmjVD8++os0PBA== X-Google-Smtp-Source: AJdET5elACq6XJVK7gZmLt4RGbeG75mJlPBBpzOC98ImthMx8XGxkLJ5rMT6nOyMuaCx61lKBdgFFw== X-Received: by 2002:a2e:3218:: with SMTP id y24-v6mr3300351ljy.157.1541805080702; Fri, 09 Nov 2018 15:11:20 -0800 (PST) Received: from prevas-ravi.prevas.se (dhcp-5-186-114-252.cgn.ip.fibianet.dk. [5.186.114.252]) by smtp.gmail.com with ESMTPSA id x16sm1584012lff.26.2018.11.09.15.11.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Nov 2018 15:11:20 -0800 (PST) From: Rasmus Villemoes To: Andrew Morton , Jason Baron Cc: linux-kernel@vger.kernel.org, Rasmus Villemoes , linux-acpi@vger.kernel.org, "Rafael J . Wysocki" Subject: [PATCH v3 17/23] ACPI: implement acpi_handle_debug in terms of _dynamic_func_call Date: Sat, 10 Nov 2018 00:10:15 +0100 Message-Id: <20181109231021.11658-18-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.19.1.6.gbde171bbf5 In-Reply-To: <20181109231021.11658-1-linux@rasmusvillemoes.dk> References: <20181009112013.14238-1-linux@rasmusvillemoes.dk> <20181109231021.11658-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With coming changes on x86-64, all dynamic debug descriptors in a translation unit must have distinct names. The macro _dynamic_func_call takes care of that. No functional change. Cc: linux-acpi@vger.kernel.org Acked-by: Rafael J. Wysocki Acked-by: Jason Baron Signed-off-by: Rasmus Villemoes --- include/linux/acpi.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index de8633456d71..b284598ae023 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -975,12 +975,8 @@ void __acpi_handle_debug(struct _ddebug *descriptor, acpi_handle handle, const c #else #if defined(CONFIG_DYNAMIC_DEBUG) #define acpi_handle_debug(handle, fmt, ...) \ -do { \ - DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ - if (DYNAMIC_DEBUG_BRANCH(descriptor)) \ - __acpi_handle_debug(&descriptor, handle, pr_fmt(fmt), \ - ##__VA_ARGS__); \ -} while (0) + _dynamic_func_call(fmt, __acpi_handle_debug, \ + handle, pr_fmt(fmt), ##__VA_ARGS__) #else #define acpi_handle_debug(handle, fmt, ...) \ ({ \