From patchwork Fri Nov 9 23:10:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10676671 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 557E0109C for ; Fri, 9 Nov 2018 23:11:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46D632F164 for ; Fri, 9 Nov 2018 23:11:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37B532F16E; Fri, 9 Nov 2018 23:11:23 +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 CC7792F164 for ; Fri, 9 Nov 2018 23:11:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728928AbeKJIyE (ORCPT ); Sat, 10 Nov 2018 03:54:04 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34040 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728765AbeKJIyE (ORCPT ); Sat, 10 Nov 2018 03:54:04 -0500 Received: by mail-lj1-f195.google.com with SMTP id u6-v6so2980829ljd.1 for ; Fri, 09 Nov 2018 15:11:20 -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=PeycFQIWB361UCrQAw91tO/V5hkVyltTQfPihSwVUzE=; b=ORYJI5oZkS4NwmV0OtapOeeNHN3Z8Bcb93RsNA7pryOlUV+CPXVpJNyOtrpOVuklZ+ y9+Oiqhkqoqk9kb2sX3TPmWktBwtWmDprVHkoxC1pfYH55Cza0xOjuNpPYyzup2El7d0 OeMjDAtMzlJKNJoZODC+IuQZ+SLNXdJGEkKBo= 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=PeycFQIWB361UCrQAw91tO/V5hkVyltTQfPihSwVUzE=; b=lHFWcu4RHuRXtaNKRqUt38Rer0lr3jlr4wIGCGWrW1KNVb5K/EXReQWkt0/p+UGz4r doAX5Yo+NcciZz7S0YWpDbJd6+J5ScFsAz9IugipI/H1p7HOjBZHO0KWlAZ14kUFwBqL 0IFfmZzwRnbPG4LUjZOCLXvyWuQqsNuvvENKvlPWjyao61ozqyx725/JOqHQFnOz7h7t Hrc8xTLK5i+HB22tyUTEk95Ncgdxmab0Hf5w1qmoI9kYIaM89n2GUohFB0b7jgVCvYE/ /ScuUX2B8+46S8NsGi5XB3Xz+zW4uDPfNeKIuctaL2WASeWutxZ9TgLHpiR2pRF86eC5 7aiw== X-Gm-Message-State: AGRZ1gI2JtE/DGK6uburqHZNa1/IkSq/PVarz3jvaBRhOsszCaNxvszt FBYwxRbe23rMDzEaRq6BCYhn/W94f7n4GQ== X-Google-Smtp-Source: AJdET5dSWX/JUGRZ5mSH0eZeoXcKYSTXEJCx6/IHg0wHch7cDxpT3xCCHeAfhAOEG8KJ7kij7Rj5Cw== X-Received: by 2002:a2e:82c9:: with SMTP id n9-v6mr6402169ljh.137.1541805079329; Fri, 09 Nov 2018 15:11:19 -0800 (PST) Received: from prevas-ravi.prevas.se (dhcp-5-186-114-252.cgn.ip.fibianet.dk. [5.186.114.252]) by smtp.gmail.com with ESMTPSA id x16sm1584012lff.26.2018.11.09.15.11.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Nov 2018 15:11:18 -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 v3 16/23] ACPI: remove unused __acpi_handle_debug macro Date: Sat, 10 Nov 2018 00:10:14 +0100 Message-Id: <20181109231021.11658-17-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.19.1.6.gbde171bbf5 In-Reply-To: <20181109231021.11658-1-linux@rasmusvillemoes.dk> References: <20181009112013.14238-1-linux@rasmusvillemoes.dk> <20181109231021.11658-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 Acked-by: Rafael J. Wysocki Signed-off-by: Rasmus Villemoes --- include/linux/acpi.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 052e6492ebd7..de8633456d71 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -946,9 +946,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 /*