From patchwork Wed Sep 19 22:04:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10606595 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 83EA4921 for ; Wed, 19 Sep 2018 22:05:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 736C12BBAF for ; Wed, 19 Sep 2018 22:05:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 676C22CAC9; Wed, 19 Sep 2018 22:05:29 +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 15BD72BBAF for ; Wed, 19 Sep 2018 22:05:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387514AbeITDpM (ORCPT ); Wed, 19 Sep 2018 23:45:12 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:37295 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387495AbeITDpM (ORCPT ); Wed, 19 Sep 2018 23:45:12 -0400 Received: by mail-ed1-f68.google.com with SMTP id a20-v6so6177195edd.4 for ; Wed, 19 Sep 2018 15:05:15 -0700 (PDT) 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; bh=ZnAb6cCBC8ah3DmJhREWNHBuYwNcmaAAPZ+lXSIi240=; b=Acw7Zrbj35k1L7Zk+2zd/dNVQQfI/RS/7MKg/XUdrlV/l2GQvNKgaX8yCWNS8t7Xma Cy914RSZw/cuOGeyBCxck6Or/niZdAHplzI5X9gT1ablsmdMBGPOusecCJRpVexQc+CH d6HCEYl7846MsWD+/8IEiKokSGh5vjVoUe1G4= 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; bh=ZnAb6cCBC8ah3DmJhREWNHBuYwNcmaAAPZ+lXSIi240=; b=f53SWDk0ucwKUj980M4uYYv20wgUzRvpyOZJNJwGhJQTJrIj5nyI1VfjuchwfCsMQW Y95rUbPK9swIedWxcvh9Jjj9TEfweBs0NDTGhla1l88ng0xUbDkgjogeRcXiz15QAj0W 4Z2IEpcPoBP/KEQV+cglmwTTCARoH8z0fq05wfIShqTBdx2JMZie/Jg9yLEaVaPL51UK mUPrInT1HkpoXp1gBll3aLtjS23eQXLGnaHI1sFA8eomE40p2FsLWYgVZt9ZS1te5tR+ r7pGgKpDRR2/MW/CMnI3smJ6eLA4EZVXAWgqgL+QGn8erJkbVNH5bJ5Amvtn1w9v8omJ RxwA== X-Gm-Message-State: APzg51AVNFaAGro5s2SAimxqcMPKEUkL9+SRSsLO6KOfvJs8mEO+s3oV YjJ075uaICn+ALRV+pDTLYtFEu7bevhDqTi1 X-Google-Smtp-Source: ANB0VdYOp5gDvqteWKMJMBBVhe6Q+1puUZEkLxTZjtiOxge5iqQ6XqKYrBcaxJH29ERfENH+Nu+GIw== X-Received: by 2002:a50:bb69:: with SMTP id y96-v6mr62368010ede.10.1537394714619; Wed, 19 Sep 2018 15:05:14 -0700 (PDT) Received: from prevas-ravi.waoo.dk (dhcp-5-186-115-161.cgn.ip.fibianet.dk. [5.186.115.161]) by smtp.gmail.com with ESMTPSA id a9-v6sm2798edi.26.2018.09.19.15.05.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Sep 2018 15:05:14 -0700 (PDT) From: Rasmus Villemoes To: Jason Baron , Andrew Morton Cc: linux-kernel@vger.kernel.org, Rasmus Villemoes , linux-acpi@vger.kernel.org Subject: [PATCH 17/22] ACPI: implement acpi_handle_debug in terms of _dynamic_func_call Date: Thu, 20 Sep 2018 00:04:39 +0200 Message-Id: <20180919220444.23190-18-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180919220444.23190-1-linux@rasmusvillemoes.dk> References: <20180919220444.23190-1-linux@rasmusvillemoes.dk> 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 Signed-off-by: Rasmus Villemoes Acked-by: Rafael J. Wysocki --- 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 e12d5ef1a054..83bacf9039e9 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -977,12 +977,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, ...) \ ({ \