Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1033235ybj; Thu, 7 May 2020 13:12:22 -0700 (PDT) X-Google-Smtp-Source: APiQypJrfwnXYclPGzsd0pcw1/DsbbrC61kCgOcBbYpvPOqU1lOMp0bnyr+uI3123tzwkLkySrq9 X-Received: by 2002:a05:6402:333:: with SMTP id q19mr14279774edw.186.1588882342382; Thu, 07 May 2020 13:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588882342; cv=none; d=google.com; s=arc-20160816; b=FaTsRcnQyUxDMAY3q8AGzk3JLj0c1+gDeYiyBB+xqYjAlDft7q1olvEFIr83SGJFPr pI4jPve240QGSsidE/SjMPYMvUDp9l+xh7WuQ2uTbPG80PCMLOwsx+3zZgGcXSU21du8 U5yjaTx7jyK9TEV8+FtsR766FR0Q211zAwfDA6g7d2tsmF6wzly+U+jMJ66f+r+hpIH3 DoA286vQVwaFRuMk0vFnF//NIcK7Cl1ilumwRM8Nnj8h4FsuBhR6t4OSWO5zccOjpLDq 0qxwRYmccjttno2ngLz9ZQ7WsTxY7idh/zbpPiTRsG7bQ0kvzlgDlwBCBPekaAv0uQlE Kadw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+igHgzIqWZe6OT6gTK1ehvXj127NSNGPVn9Isn122A8=; b=u1VDrzA+RH2vZIv/zbTJbYKTTx74xYUA4v31X4PRIjUBydSvReB8Kz7mYEhR5TIfaR lvgHBR58KO6xuROmAlHZ3QqXByUp1+kmTchT7yjYfAO1Dy0NC68wyKr5D6OABhGO2uDZ 5UNncFWwV+/9+STZ2YByEiLsd375eqdc3J8KVLBgB5zdc6zHo5HdPiNfm2wwDeY+nD7N brM2fNlfedjEJCruxy6rHWI419cQRNdVT78Cgtha2va8YHwsA2YxEVKJsxHTYnyV6rWj cm03Z7zy6KZZcjnJ+wiZUcFDemMzsKlnaMgSZq21FlcjMSvnG5l4AmZhwO58zIrQlJCq cySw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XE5En1H+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si3996029edr.351.2020.05.07.13.11.58; Thu, 07 May 2020 13:12:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XE5En1H+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728765AbgEGUJm (ORCPT + 99 others); Thu, 7 May 2020 16:09:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728580AbgEGUJJ (ORCPT ); Thu, 7 May 2020 16:09:09 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7E8C05BD0A for ; Thu, 7 May 2020 13:09:09 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id s10so2524019plr.1 for ; Thu, 07 May 2020 13:09:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+igHgzIqWZe6OT6gTK1ehvXj127NSNGPVn9Isn122A8=; b=XE5En1H+lpOUQAX8ckpo+HHEGAyxCAmUBvhkKbZMRLxQT47ProdK8zaHod/JbejEoB sXh/Tu/5AhbLKSQfHn96xpSNZhK++iWxZEmNf3n00E7bbkO7DqQS+C+GLh9i60S4xQ0m eWVJ5rkfjbi64nWZcUyAR1cMh0h46rlZb+HqE= 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=+igHgzIqWZe6OT6gTK1ehvXj127NSNGPVn9Isn122A8=; b=YGwJIjYBrGHSH8r7zGeQkQhOWTjAsnJndfYtqqivLvwZbJiew4SO4CfObPoB9SdeJY iR2VdJtfSOUqmws3IoQLLNPofXNvwG9Bv73dBgLa3bqAwvUj4LHSZCqzjXghAqwqi4R3 EciS1kkd0dOm6RZ88xRIUhslzZPzyXu+Frc8yUgxvwq94e+HnMZqSAC70wqV9Ma+8E8r L9ThZGDtTV+yVONGpdLvRm8gh413Y6K089ESlDbk62vpnY2kNAiIa+zOtZCzR+uRIF02 QOvYmNtdpep400g/OIr3b4cUxTf09JO0CfoRgrfbrbAOqoTM5+shhVCiIK5kXLjgsRtm uQTQ== X-Gm-Message-State: AGi0PubDRstMb/y6jsfcBAvHzpl1rhzAocH4erDZ/lSnpx/7nHvxGqxx d8nqskkodIK9H2+PCCs2zcqUTw== X-Received: by 2002:a17:902:7596:: with SMTP id j22mr14310656pll.226.1588882149206; Thu, 07 May 2020 13:09:09 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id d203sm5547601pfd.79.2020.05.07.13.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 13:09:08 -0700 (PDT) From: Douglas Anderson To: jason.wessel@windriver.com, daniel.thompson@linaro.org, gregkh@linuxfoundation.org Cc: corbet@lwn.net, frowand.list@gmail.com, bjorn.andersson@linaro.org, linux-serial@vger.kernel.org, mingo@redhat.com, hpa@zytor.com, jslaby@suse.com, kgdb-bugreport@lists.sourceforge.net, sumit.garg@linaro.org, will@kernel.org, tglx@linutronix.de, agross@kernel.org, catalin.marinas@arm.com, bp@alien8.de, Douglas Anderson , linux-kernel@vger.kernel.org Subject: [PATCH v4 07/12] kgdboc: Remove useless #ifdef CONFIG_KGDB_SERIAL_CONSOLE in kgdboc Date: Thu, 7 May 2020 13:08:45 -0700 Message-Id: <20200507130644.v4.7.Icb528f03d0026d957e60f537aa711ada6fd219dc@changeid> X-Mailer: git-send-email 2.26.2.645.ge9eca65c58-goog In-Reply-To: <20200507200850.60646-1-dianders@chromium.org> References: <20200507200850.60646-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This file is only ever compiled if that config is on since the Makefile says: obj-$(CONFIG_KGDB_SERIAL_CONSOLE) += kgdboc.o Let's get rid of the useless #ifdef. Reported-by: Daniel Thompson Signed-off-by: Douglas Anderson --- Changes in v4: - ("kgdboc: Remove useless #ifdef...") new for v4. Changes in v3: None Changes in v2: None drivers/tty/serial/kgdboc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/tty/serial/kgdboc.c b/drivers/tty/serial/kgdboc.c index 519d8cfbfbed..2e9158fff976 100644 --- a/drivers/tty/serial/kgdboc.c +++ b/drivers/tty/serial/kgdboc.c @@ -380,7 +380,6 @@ static struct kgdb_io kgdboc_io_ops = { .post_exception = kgdboc_post_exp_handler, }; -#ifdef CONFIG_KGDB_SERIAL_CONSOLE static int kgdboc_option_setup(char *opt) { if (!opt) { @@ -409,7 +408,6 @@ static int __init kgdboc_early_init(char *opt) } early_param("ekgdboc", kgdboc_early_init); -#endif /* CONFIG_KGDB_SERIAL_CONSOLE */ module_init(init_kgdboc); module_exit(exit_kgdboc); -- 2.26.2.645.ge9eca65c58-goog