Received: by 10.213.65.68 with SMTP id h4csp1295340imn; Wed, 14 Mar 2018 16:02:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELtt0vVY1M9x7Fa6SGasUK46uZQ/FwuFdgVqLL+jq8F4I8NVevZnMQ3l24WY62YwDwNQXmjN X-Received: by 10.101.65.134 with SMTP id a6mr5006459pgq.331.1521068525968; Wed, 14 Mar 2018 16:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521068525; cv=none; d=google.com; s=arc-20160816; b=mN05BOR/EA6yCOGr8a0DmqFJtOh6Zcjhu4zCfVomUgqIvFhikEmAaJ/ylsJ+CFayjz pX/4mxWW1e1FWf0Z6ZWMvmch0wSGM2BlA8AOhmB0RL0TqusV9OhDmg3vnrqsug8gxuLr 9SwejaXG2PgzttiKTok1Z2oGTboxTn499atC9Oi0aNnu+PRNxyYY+UQTedkGpnC/P8Zn PRRBgUBLQzZ+2FZML5VXGNzJ8nIIuemUhpiAq3bqgnCk/duiYOxk8k9ouFJZ4ZPz5mh4 KxrrmSs727M1gUw20fVejvVtrua2YWAQ2VkynKu2SHaCFTjQbE7ACk0bQzE+Wcr+vVXi faJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=LK1J+7LWn+rG7Pow3GU64DD4jDCRHuJTdmHApTmOl5o=; b=kzseQBQmhxTYe+p22ZWEQEPbvs6/UQ8+LXG66FijnjjsXJ6WNQxiveo7NiqePRtU06 fPNhftV2jxBQ9tprdYSjhcZubnxBJzt5R1b3R/vM3Y0v77cMUjQs4SvTmiLcCu6pYj5r QQQozh0q3E6SBB8vFh0N+G542s5i2PQpPSWDVAfYjIExkfFa2bR47Zpt2m9s5WMrap3Y 8m+ZxUKbC7bUAiZgn8wM1WxyHOKVSlX87NfmeNIeAIAX8tOgYAOzUTlc72cy0qikrCpH VJ8pxwNwSO4Gwly0nJKO0zNoOjp6UVgn54OxcxGe5KjYaUK6LV/BpGKD5CISJLg3MIW+ d+FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=uQcwTo0S; dkim=fail header.i=@chromium.org header.s=google header.b=Vdhy9wUp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1-v6si2690563pld.401.2018.03.14.16.01.48; Wed, 14 Mar 2018 16:02:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=uQcwTo0S; dkim=fail header.i=@chromium.org header.s=google header.b=Vdhy9wUp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751555AbeCNXAm (ORCPT + 99 others); Wed, 14 Mar 2018 19:00:42 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:41240 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751366AbeCNXAk (ORCPT ); Wed, 14 Mar 2018 19:00:40 -0400 Received: by mail-ua0-f194.google.com with SMTP id u99so3182659uau.8 for ; Wed, 14 Mar 2018 16:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=LK1J+7LWn+rG7Pow3GU64DD4jDCRHuJTdmHApTmOl5o=; b=uQcwTo0SUs2Of+h3g/fzf1ZFn5GRD7myQK+ESUQcJf1ZG+OcJuYUaKbOPs5cyUeSMN g+3Ahh0LaLth7f2GcpFk7mC0qZjSC2SnBfwLyCSMAYX20x5yMfxO2thEyp5HNb0Ai5nx B0fuJXreKHugAPEf7yZJJMeW+6ChPo/CSqyLzRdyHqtUfa3YiCWQBBo9paoGMNu3djQe edl+Bxa+3iIc08Pabt7nKTcUxuydacMSoL1nj9P5JHGChyqLubXP+BGKrakQ7fZvukJc S9Ck7yd7WOeWDH4IGa30LjhcgkuWHhS3WTHAEeYpk+8DzTkGO5pBfnI4HuNZN7gStJ9M yOXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=LK1J+7LWn+rG7Pow3GU64DD4jDCRHuJTdmHApTmOl5o=; b=Vdhy9wUpo1IM3uETIsAvU9jMOpD0/dgdDef8oQQoD2xjhxiPUGmExkaTtTv6VWrHri 52rV3L8uOCvB0hs/jMaqtyPRUVZm1Aghv43kXxkWYKTYlDsx0f+kTIGPvE68PZHV4ax3 HwgTFUyiCOHyTYObwvHuZbmyPK2vN5Udr/BVc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=LK1J+7LWn+rG7Pow3GU64DD4jDCRHuJTdmHApTmOl5o=; b=WDevUlwozLmbDvYASQGYsy9gjB5eOZ9fkdib/TLwQjbEUF6b9MuvNWagMoNh2fP6Ir 8vL9NjH+z56j7jrDxhnw9uBAJtQOriGEGBD6dA81yp+TCLZvPmV7CRW1itnTLmCVTMYq E39utkA7z9jjpvm8/YQNy338JGXvWeL1vhhdXR/CkSlW5IlcLmz77tXjWgg9amo73zDc eEERRQwmZF2xkOVPuxMeJqKtKQroGXCC/3i48guDDr+pEwjbdoRP4aSkdMUpjJomUlFO 0qx6GC4TDLd5otMIQ8lS6ZW4l92lRn4rTM6It29nKgSwpbfBzKZp44aO4PSvnB1tz6TR d8Qw== X-Gm-Message-State: AElRT7FanhZtprVUl7fgtm4LmBM4PHM1dwC+BaXNYVSGeJftYQHIBH40 fjvyZKzM8F6c0BiHmhJbo5hoE718R615mnu2sgZ8jA== X-Received: by 10.159.36.165 with SMTP id 34mr1752204uar.83.1521068439349; Wed, 14 Mar 2018 16:00:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.172.6 with HTTP; Wed, 14 Mar 2018 16:00:38 -0700 (PDT) In-Reply-To: References: <20180314214439.27806-1-djkurtz@chromium.org> <20180314214439.27806-4-djkurtz@chromium.org> From: Kees Cook Date: Wed, 14 Mar 2018 16:00:38 -0700 X-Google-Sender-Auth: J9cfIG163Mj8VLx2g4VIQ3-cDrI Message-ID: Subject: Re: [PATCH v2 3/3] serial: core: Allow skipping old serial port initialization To: Daniel Kurtz Cc: Greg Kroah-Hartman , Aaron Durbin , LKML , "Rafael J. Wysocki" , Len Brown , Jiri Slaby , Andy Shevchenko , Matthias Brugger , David Howells , Vignesh R , Sean Young , Jeffy Chen , Douglas Anderson , Matt Redfearn , Marc Gonzalez , "open list:ACPI" , "open list:SERIAL DRIVERS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 14, 2018 at 3:58 PM, Kees Cook wrote: > On Wed, Mar 14, 2018 at 2:44 PM, Daniel Kurtz wrote: > Sorry for being dense. What tree is this against? I can't find mention > of amdcz in Linus's tree nor linux-next. As I watched this email send, I noticed the "3/3" in the Subject. ;) I see the amdcz support now. :P https://patchwork.kernel.org/project/LKML/list/?submitter=18441 >> diff --git a/include/linux/serial_8250.h b/include/linux/serial_8250.h >> index a27ef5f56431..02570edaddd8 100644 >> --- a/include/linux/serial_8250.h >> +++ b/include/linux/serial_8250.h >> @@ -136,6 +136,12 @@ struct uart_8250_port { >> struct uart_8250_em485 *em485; >> }; >> >> +#ifdef CONFIG_SERIAL_8250 >> +extern bool serial8250_skip_old_ports; >> +#else >> +static const bool serial8250_skip_old_ports; >> +#endif > > Where does serial8250_skip_old_ports get used where CONFIG_SERIAL_8250 > isn't defined? (i.e. why is the #ifdef needed here?) This question still stands, though. -Kees -- Kees Cook Pixel Security