From patchwork Tue Feb 12 21:41:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10808749 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 3159C1390 for ; Tue, 12 Feb 2019 21:42:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 223162C1B0 for ; Tue, 12 Feb 2019 21:42:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 165232C1B7; Tue, 12 Feb 2019 21:42:27 +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 0289E2C1B0 for ; Tue, 12 Feb 2019 21:42:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732027AbfBLVmP (ORCPT ); Tue, 12 Feb 2019 16:42:15 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:38457 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732004AbfBLVmM (ORCPT ); Tue, 12 Feb 2019 16:42:12 -0500 Received: by mail-ed1-f67.google.com with SMTP id h58so170564edb.5 for ; Tue, 12 Feb 2019 13:42:11 -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=0CJkTbgJKOf88jN5+EgmNcUAF0M4eYSxUZoWqS4bWAE=; b=f7cMWEOtPGa3jZLsH7hxYOFTebuDoAGpNDD4/NdGRVixUtpB3SAQ5XPzOJxrWe3wI2 rgKwgtFgxqqALIelG+W0z4wJc0FQf3KLKxxCukfHi3hh75uT9rPhdBimIeKOCb9/85le dbo0/9RMRIXfxmw75OMgaKm/5Xv45C6Dsk91Q= 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=0CJkTbgJKOf88jN5+EgmNcUAF0M4eYSxUZoWqS4bWAE=; b=oH+Em5P1e7GkT2K7MyYUJlVW8q1PVjCJQu327CtouyNcaZpPH8mSjwN9rFP4RsQI5d SBZP/uYA5SzlmtCGU3Fpafx4GL1t1oE8GxroOdFu9aciUJ72lbknk9spdM3PKdM8oErF 7Zx0eu4qhznsNV7Do98ZSagtFD2pNK6IT+y9Uv07+J+CHBmqxxu7p4EQTxlEGEU/rOFi fJFD59XaMzcQSMLAiWLmcsPzzonf3Vpjz6ZNzCDmjelqcohFP6iLG+w/NnllfAz100il 3utXtAL99AtElNdwAe1JBCyx65Gr7810B0UGFW3KLKKZVBIHRQiKJwvLcsHHVTBcnCjk s9/w== X-Gm-Message-State: AHQUAuZcKegpxaZeb7lHlEjgnYp67E6/PeZwAD/7URRQSc4biUYV6nzk cWzLXXiOltDRlPm/tj03lZDTLQ== X-Google-Smtp-Source: AHgI3IYqDHlyTHPy2gjWpREAoQDXmitARjvnAHQb8vuQcpPY97D6ufvrhhJJ5hPRMxCIgJmXaP8s3A== X-Received: by 2002:a17:906:34c2:: with SMTP id h2mr4146244ejb.234.1550007730978; Tue, 12 Feb 2019 13:42:10 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 13:42:10 -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 13/14] ACPI: remove unused __acpi_handle_debug macro Date: Tue, 12 Feb 2019 22:41:49 +0100 Message-Id: <20190212214150.4807-14-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 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 bcdfbb2bea24..07b9fa507824 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -953,9 +953,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 /*