From patchwork Tue Feb 12 21:41:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10808747 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 EE90713B4 for ; Tue, 12 Feb 2019 21:42:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD3F42C1B2 for ; Tue, 12 Feb 2019 21:42:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D18ED2C1B7; Tue, 12 Feb 2019 21:42:16 +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 7195D2C1B2 for ; Tue, 12 Feb 2019 21:42:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732035AbfBLVmP (ORCPT ); Tue, 12 Feb 2019 16:42:15 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:43092 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732027AbfBLVmO (ORCPT ); Tue, 12 Feb 2019 16:42:14 -0500 Received: by mail-ed1-f65.google.com with SMTP id f9so146973eds.10 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=T8p8jPT31kef19+v1A9B2WYMf1bZebVp+oweAGvzA+WsZLIY8RuFXXuCi2DMvDN1Ix yla4tFtOudQU941EyQtjw74wE4Z4mHhKz7beOoy+FHJcqTdCyJric0tGqzENhHpjF/iJ Kee6y9IxMZ10CcLrBkl/K2/pOImMwKEHFTIrmYKa62xwin5t9FlUnZoCn5N6D7N+CO15 tfG/IDRV2vGyUfyNUUpXR4qGANnINO/kJ3MQw8tF5vlDZHgQ7b176NVDMGFmXINT1ppC 636GZijnXohzckEjYQOjl+7ONHnZ8EOdB1NZXRyp4WgncDGgbGQk5hIDIJOQVbzwYwnd 7OMA== X-Gm-Message-State: AHQUAuakDAeSSiO3TrEiW/Iw4hLaAFCb/sQKKaMQKVDZZbC9RQUAhhVR CHgzst6ne5EvuabXjSmNcM8iaA== X-Google-Smtp-Source: AHgI3IYrtip8cBj7kxoj867+/Ik7PgoLY01O4UY+7t1axbQcVGamLRLlzTIbsdR9qeWMs2prSy+rJw== 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 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 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, ...) \ ({ \