From patchwork Tue Oct 9 11:20:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10632353 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 8E21815E8 for ; Tue, 9 Oct 2018 11:21:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FFD8289FB for ; Tue, 9 Oct 2018 11:21:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6427728A6F; Tue, 9 Oct 2018 11:21:43 +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 07A46289FB for ; Tue, 9 Oct 2018 11:21:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727579AbeJIShI (ORCPT ); Tue, 9 Oct 2018 14:37:08 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:34092 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727523AbeJIShI (ORCPT ); Tue, 9 Oct 2018 14:37:08 -0400 Received: by mail-ed1-f65.google.com with SMTP id w19-v6so1330920eds.1 for ; Tue, 09 Oct 2018 04:20:38 -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 :mime-version:content-transfer-encoding; bh=sA/jxv5F0qnu20pN8RN11C/qVSfpGyeJaerZ5AKmtrw=; b=UzHZEYUl5l+tombdmqejznWOMhkCvGGaGvUVKh5UY1P96yp9c96NY2T8qDJumNOjis gv+ExKavG9+qi6a//nsBB/qxhI7OzuBx/3TlczeWKBgoO9h4RhDnXsUfXeSHUbwbf0i9 POSE14zyfnKF2OZWaCDqvrT7WUSmyfG+pjT5o= 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=sA/jxv5F0qnu20pN8RN11C/qVSfpGyeJaerZ5AKmtrw=; b=riwJfYyQoMgLQVOTBVWWb5gvrMvUpSleMfcDG7pvTNlSuhy0YRNSnrR0GLvf3ulB5w pHH58BoJ9cGhc/3v2t858VPB5T3syg1bw5yFaOECRG2EvBH1O4hnS6119COsWwRBJ3nX k21Z7zi5PBvlmIDOBXdmRgNkJxd46xL0dC9EXFIJ8BEScRJZTnE4c02s07VLw1hJxUDU gdz9GaG/Pkg8xn8vb/uPfyNH/qi6gBAJ25WTmYeU6fnMAZpk/CKVdggNgUFuWWTOefmW 320Cdjo7HYZIDTYaZfaqAx+aAOqjKSX2DQe8ab3V55r0iXCewQhnbD9y9tdKpwZd81bK wKPw== X-Gm-Message-State: ABuFfohnGvJgwmfep8S7cEKl09ylhLwLejwluEs2nNaARfxJ6ib+kP/T jlt8/uYNTt4TP45x6slva0HTzQ== X-Google-Smtp-Source: ACcGV61tpBu0WZrNf/LYNlxmnAzSaQpd03+1J63CcJra5woKkfXH7Hm+vhjSa0stjjjNHmNgOfjBig== X-Received: by 2002:a50:d651:: with SMTP id c17-v6mr33324459edj.178.1539084037824; Tue, 09 Oct 2018 04:20:37 -0700 (PDT) Received: from prevas-ravi.vestasvisitor.net ([193.47.71.171]) by smtp.gmail.com with ESMTPSA id n23-v6sm3595821eja.41.2018.10.09.04.20.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Oct 2018 04:20:37 -0700 (PDT) From: Rasmus Villemoes To: Jason Baron , Andrew Morton Cc: linux-kernel@vger.kernel.org, Rasmus Villemoes , linux-acpi@vger.kernel.org, "Rafael J . Wysocki" Subject: [PATCH v2 17/23] ACPI: implement acpi_handle_debug in terms of _dynamic_func_call Date: Tue, 9 Oct 2018 13:20:07 +0200 Message-Id: <20181009112013.14238-18-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.19.1.4.g721af0fda3 In-Reply-To: <20181009112013.14238-1-linux@rasmusvillemoes.dk> References: <20180919220444.23190-1-linux@rasmusvillemoes.dk> <20181009112013.14238-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 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, ...) \ ({ \