From patchwork Tue Oct 9 11:20:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10632349 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 0726415E8 for ; Tue, 9 Oct 2018 11:20:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB7D628676 for ; Tue, 9 Oct 2018 11:20:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD3F928A6E; Tue, 9 Oct 2018 11:20:40 +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 B747528676 for ; Tue, 9 Oct 2018 11:20:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727577AbeJIShH (ORCPT ); Tue, 9 Oct 2018 14:37:07 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:44262 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbeJIShG (ORCPT ); Tue, 9 Oct 2018 14:37:06 -0400 Received: by mail-ed1-f67.google.com with SMTP id z21-v6so1304636edb.11 for ; Tue, 09 Oct 2018 04:20:37 -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=b/uCUfP8SuxFhuNaARI/TcFW71fTaY9liBiNrO3IVkM=; b=K4wtyX9HbbnM4clYyElO+N12hLv8DughUhNjldXBOzT0z/+7dV9xXN7i0aBbwvOO4e tMmHCyLeLm16ddpjUN6CoGkC+h0i1LNDnATouJwatEjQeHUCMPU0xSvpce0BOeqdi79Z e/UYTMYeWeOGI8u/o29xSMh94lH6QNK6TMUno= 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=b/uCUfP8SuxFhuNaARI/TcFW71fTaY9liBiNrO3IVkM=; b=pJSv9pch06wBKNf9ZkHEQSsHfc/85kMIkzevHoLwviBdSS0bSuU8tPmfU/ufAMtZQo GvSvohtx1QT1o2wmvbnj/vYvg7WbJXPrklZQnlmxsoYTDH4ba4q9dchy34h1p+ONuHC8 hk5COW73sojyg4t5nTDvRwhtTeb7VjcLxapqbfMHDMzs8YyQA3vwRKUnKrIuqr2HPPWZ QXM2KPRAi3n+ZFDXD0vbi2coX/zwOEGVybZUh4H3pt9cAVVAuQ/uKsRzjAk1dM1TsCIK rSa3K4GPj5MtxVDE2opC/5JhrclH0fkk2jGUXTO+D/W28n0ypN+hitut7x11hsUn43z8 KoNA== X-Gm-Message-State: ABuFfohdoDq7JqRWbESIXIdK3OHlULVfbpyLL2rxK1cXD9v/c3pkHUqw 4obuuERQeGEswVshH11W39bmDw== X-Google-Smtp-Source: ACcGV62TPVxdIvPLPUs8aRIN+0CH+3cIpKZGNS6KrJbEuvWoN2wIA0QMjytfyEVxt2T1RLI62IjFUQ== X-Received: by 2002:a50:ba43:: with SMTP id 3-v6mr33422770eds.227.1539084036650; Tue, 09 Oct 2018 04:20:36 -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.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Oct 2018 04:20:36 -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 v2 16/23] ACPI: remove unused __acpi_handle_debug macro Date: Tue, 9 Oct 2018 13:20:06 +0200 Message-Id: <20181009112013.14238-17-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 If CONFIG_DYNAMIC_DEBUG is not set, acpi_handle_debug directly invokes acpi_handle_printk (if DEBUG) or does a no-printk (if !DEBUG). So this macro is never used. Cc: linux-acpi@vger.kernel.org Acked-by: Jason Baron Signed-off-by: Rasmus Villemoes Acked-by: Rafael J. Wysocki --- include/linux/acpi.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 21e03aa32aae..e12d5ef1a054 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -948,9 +948,6 @@ acpi_handle_printk(const char *level, void *handle, const char *fmt, ...) {} #if defined(CONFIG_ACPI) && defined(CONFIG_DYNAMIC_DEBUG) __printf(3, 4) void __acpi_handle_debug(struct _ddebug *descriptor, acpi_handle handle, const char *fmt, ...); -#else -#define __acpi_handle_debug(descriptor, handle, fmt, ...) \ - acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); #endif /*