Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4342480imj; Tue, 12 Feb 2019 14:15:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IZinD6bzV2BR8dGigQqjw9dEmCkH6Yut9rtb5r+2LtPGpEVrosMz6wCiiygG5k7ipP9/ZS8 X-Received: by 2002:a63:e74b:: with SMTP id j11mr5672740pgk.397.1550009723115; Tue, 12 Feb 2019 14:15:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550009723; cv=none; d=google.com; s=arc-20160816; b=wnap7spHqKwAqP1OnxiG1Wpyei6Q2TAuuZEjDukGqTY+9FSEwHJnPvL27DtEWkOfqu cJWs8jCFDy1HM+KCu8+0+f8aItcbBu8+wAvGHMoAPqPwKp1dSBVSKc+B1YLY/KwE/FG2 Y7sWoIxDMfxZfzIqBUCeAGIOUGDUcqGfyL/p2M4NgOsZkgrudYkBJg47RdmK+CUgVLv+ qdiJRByfIXaWZa5rNQHUpdMghkyrauwHbzSCx8UU4mjOPlj58kmeLEsdB+1/y6PIn/Vw X6P9VDKSnaeKmWECtjLO4mmtSCKbrJ0iROvJ+PtLB+6sd7URr1wH4P2lhD6b458ByBKd Yefw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cZ4+J3qclzOiT4eS0G4mZNYid/q8EGWND5FwtaRiLJ8=; b=wA0RGUEzJG2Nq2a8v4uvNP8NTe6VyPmIzJ8CMb/lXymn3Sv0YKCuBZGiknfAsF+dqM 49xb3bVW8Go3NCKFPtQfPerV/d+L8ffYqC5xP+3ihP6QwnY/ewD0jcKm2bpwfOQ2Uzrs XH+FieBhMAuxgojkUnHfzM50G1gzACx/YQXHQ0ovZYgDJIimXVpVc+yCDxCa9mFaEkFx fM/sC7J58a1KfHUwv/LpQtSXeRlEivm9xzVQElxD+mRgbLp7ajm7gFMve7GT5GlF2IWL EO6PZbUYdEKYdOP2V/v+ahw+d72UJymdW6S1MiEvujTAQAhF7N1RexvMv8LJ1yZbLGGJ e+vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=hHF9WyDE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si4769087pgt.548.2019.02.12.14.15.05; Tue, 12 Feb 2019 14:15:23 -0800 (PST) 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=@rasmusvillemoes.dk header.s=google header.b=hHF9WyDE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732060AbfBLVmQ (ORCPT + 99 others); Tue, 12 Feb 2019 16:42:16 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40610 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732031AbfBLVmN (ORCPT ); Tue, 12 Feb 2019 16:42:13 -0500 Received: by mail-ed1-f68.google.com with SMTP id 10so161258eds.7 for ; Tue, 12 Feb 2019 13:42:12 -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=cZ4+J3qclzOiT4eS0G4mZNYid/q8EGWND5FwtaRiLJ8=; b=hHF9WyDE2qOpSpiKv2V9o9VpxsQ8Tyea718fPZiTOnGLYLYqbzDy3UdC6NxlaEWYhV TevrN4gYd7No7KG51GQaGc8a63kgjFm02Jgcomz75qpeL1DN5vC4XaB39F0UxRW9oMrE bX+JbiaAEMhSGhv1zDfyw7LprZQVOW7uNTuBg= 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=cZ4+J3qclzOiT4eS0G4mZNYid/q8EGWND5FwtaRiLJ8=; b=oX/t+rtAaea3dKRVK5hy1QXe1UMYtDrdG4Doh6lwsUImVH2XznQMvOh5czS9keMvEH 89HqExOE/XSX8uVF1R1FJ7JfBmP5nfxuBBwDqlIdm8r2KMCh5M9FsRLD06uqgSTvnVyH 4YJflWP5gmNAFu8CUt5OZPc9cCgWo3O/y73gqAR2nLpDJrJqaYnbRcqiLcJBy7qBVIxZ zknEs5ucb3onPdboZljmOCxaTeYryHZrjsXWR1p/N5i8Shrz2PmItu02zMRDYfmHirDU LdARxHQwf78yo1fCQ20bxtw2+j4PJO+6kBYldsfljOyRX0IpF1Xddw57KCYsxQK4OZhS drrA== X-Gm-Message-State: AHQUAubVKimqIYS6ZwdFmRQnZzP4I3GncwT5dKvYnYj1IyyGhfL7xnLh Wx5ouJAPnx2rJidUoq3dXS8l9g== X-Received: by 2002:a50:a982:: with SMTP id n2mr4669797edc.236.1550007732014; Tue, 12 Feb 2019 13:42:12 -0800 (PST) Received: from prevas-ravi.waoo.dk (ip-5-186-119-174.cgn.fibianet.dk. [5.186.119.174]) by smtp.gmail.com with ESMTPSA id v1sm3697607eds.47.2019.02.12.13.42.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 13:42:11 -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 v4 14/14] ACPI: implement acpi_handle_debug in terms of _dynamic_func_call Date: Tue, 12 Feb 2019 22:41:50 +0100 Message-Id: <20190212214150.4807-15-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190212214150.4807-1-linux@rasmusvillemoes.dk> References: <20190212214150.4807-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 07b9fa507824..96c4eaed9439 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -982,12 +982,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, ...) \ ({ \ -- 2.20.1