Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1985204ybk; Mon, 11 May 2020 09:04:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLk166wMnxpZmmqOUEtNVKlO+bV+fONezSjj0XR/daFf5ydpFUdNJVGzQO5iM092BwMnpfL X-Received: by 2002:a50:f390:: with SMTP id g16mr13608308edm.211.1589213068597; Mon, 11 May 2020 09:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589213068; cv=none; d=google.com; s=arc-20160816; b=yS4nWwPOQeh3lm3/NM4j0vC07wSMjA0VdwGrdHXOpSAepDPTNb9STFEHnGMiiJHkti 241MD8exCDRlCM8N81Yp86O9VD0FBnsenOVEnZkrLQzu6ap07s+EYr5h9ZVbTautKwvk b30emlQ3vLE9DzTDEkWp+3Sb3OTVWkiMqau59pm2f0u934frYJ9QJfBTjagFCxFQpCkD Tlm+I/OlK8RdYB+3nbalWK4jLbE9h+9rinTyzhXclT6aGDBCsCve/4JhIaBIQvD/SAjV cxFws/TH6IpfxN449skHZM+iAhS8JOJ0w/7Y2AzX6E0MTbdbTj8t76SnxZN1Us37PU9L rwRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=YJxLpJX62Fekaa+AoIWZZCIoU3KlFpvhoNLivrRXfy0=; b=Tt7sVxRKFnWlcw/PHm1dPaPyXHz8At6cfWH8F8o0jckJTAWSBLpgZP8PrU02lAwNf7 VlO+/j7gLU5oyD20fnZ0Yit29qHzEeRWaGw6JaxnoYWdFjdYq/5TJT6yTbaUJP1rKCig 1J/1Xn5o9NKccBF/pRNYbIOD3eLNq3s0TxGgNpPzBEqbBTGBIQ0WCfwzjHPX3bMQfoR8 mEzwDz7gZcf67g75H9Lsne+IBmvn4ofPp3J/IEjWtUMyrcLbZ+koL+4gZw7J8WykuB2H g6m/7FzPx94mKCgOHra4/ykmQPz3yfZDNjY1dJBcL7iBMoaEhzivsd0xjoYNqFTUoUTU s03Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uv/YZnkN"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si3343591edr.32.2020.05.11.09.03.55; Mon, 11 May 2020 09:04:28 -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=@linaro.org header.s=google header.b="uv/YZnkN"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730066AbgEKQC3 (ORCPT + 99 others); Mon, 11 May 2020 12:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729802AbgEKQC3 (ORCPT ); Mon, 11 May 2020 12:02:29 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC396C061A0E for ; Mon, 11 May 2020 09:02:28 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id e26so18607960wmk.5 for ; Mon, 11 May 2020 09:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=YJxLpJX62Fekaa+AoIWZZCIoU3KlFpvhoNLivrRXfy0=; b=uv/YZnkNB3ieOwzEoD7DCWpFpAn+e/KKj67tegbx5RTEoNCuSd/EAzBjup0e9sx0K8 /mY90Bfv1qB2WQ4Yvi98RQtvi7IHohDApmRWP6Dk5I61Qa6Bm/uSvVKg8/JhOyBeXlE8 nTATGRzTclMXnN4nzeAazZGf3P4ZP0h2F049N6/eaGWwhE30RlY9o2sM7ZWmFitx9uX/ zPAGOX2FnmhjfBGWIIjjiZPeThZM2hYn5g0cnMbFaM0UDtrj17O5kMJkGq/CLQU4dqS7 VPrG8ITNOqjV0naX6BbyG5ftg+IT3O1MBbW9rbj4/Apb/9es0DgNxSzA2HAEujAMiv0H kZ/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=YJxLpJX62Fekaa+AoIWZZCIoU3KlFpvhoNLivrRXfy0=; b=j6DPpHYQlAOEsCNaLkk/aiairfdVlztZEoFDyiWnAUyPKpgk2k8bsvdA719GTcciM7 t9Vo34YsmCgxJPZA9IF8R2PqRlnItCEX9NGD8il/pdzpdLDUQ4ue6rMOrIwlNq06GvxU c4lSiZcDrwuttZGE3HsVrOvOAmgtLzaPVTDvD6rSCxzBLWbAoAaNd2POy5GBWYCIMJhA inRXX+Udh/u9PED4hOr3ahTDzuGnAYzIRUA91/EUslAacZslkiudXOLD7KkvSetPgKA1 x1oiQviwRokbdgkhUYFtG5fJhpZvfI/Ux2RWNzCJZYAcqnedby8JXRTpSMmF4PXgXkPg qyBw== X-Gm-Message-State: AGi0PuYMhJJaD1hfhOVGmf0XjP+oVdQ1Irsse0ctgihx495iZALz4d6I DyF6r7M+ckNP+nnyjA/xVhIUgQ== X-Received: by 2002:a7b:c931:: with SMTP id h17mr34342830wml.105.1589212947333; Mon, 11 May 2020 09:02:27 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id v124sm27068657wme.45.2020.05.11.09.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 09:02:26 -0700 (PDT) Date: Mon, 11 May 2020 17:02:24 +0100 From: Daniel Thompson To: Douglas Anderson Cc: jason.wessel@windriver.com, gregkh@linuxfoundation.org, 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, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 07/12] kgdboc: Remove useless #ifdef CONFIG_KGDB_SERIAL_CONSOLE in kgdboc Message-ID: <20200511160224.cvelsmnpxc2ykgzb@holly.lan> References: <20200507200850.60646-1-dianders@chromium.org> <20200507130644.v4.7.Icb528f03d0026d957e60f537aa711ada6fd219dc@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507130644.v4.7.Icb528f03d0026d957e60f537aa711ada6fd219dc@changeid> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 01:08:45PM -0700, Douglas Anderson wrote: > 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 Reviewed-by: Daniel Thompson > --- > > 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 >