From patchwork Fri Mar 28 11:41:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 27258 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 327FC20062 for ; Fri, 28 Mar 2014 11:42:14 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id hl1sf1895071igb.0 for ; Fri, 28 Mar 2014 04:42:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=bbZXvf01VnjMNFEIi7GbbQlZdUS18aADm0InOfmGjnY=; b=I73pedex0yodiniqFOdL4Md85kGhYabztXr39tj2bLlD25sB4IdqfUzTF7tdwJo2XJ qKWJuSQN+0POxkosoy0miBw5WKrxbxzRHkcgGuKdmHgwVjaAl8lJRjGayQ1uwrWLiWRi lf850rPEmKObdITE5vNKuJEF8mqCAxIjsV8i0t8J+8Cu0cUv9fYUtafPybh+0uUikO8+ 0cF91yyGM2TpilVO4Xf5u/pz+PAA5D8vNMICm9rRF3lWYRfzpSjvq34B5A6TNX29XNey nvAu91vKlGnsgd4aU9zmHreyuASWMjcYK03bBmHzgM7hAalfRH0AHfbmB+7yhpxHTxdT T5aA== X-Gm-Message-State: ALoCoQl6khpmcC54c31SAAU0kE4oQ/VfE4tKjzYwOX6WhxY5v6dYwYzmgMCu7AgGUR8nBZa3vi8u X-Received: by 10.182.28.36 with SMTP id y4mr2987557obg.46.1396006933491; Fri, 28 Mar 2014 04:42:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.22.167 with SMTP id 36ls1516475qgn.55.gmail; Fri, 28 Mar 2014 04:42:13 -0700 (PDT) X-Received: by 10.58.187.78 with SMTP id fq14mr6662572vec.9.1396006933405; Fri, 28 Mar 2014 04:42:13 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id d12si1096543vco.83.2014.03.28.04.42.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 04:42:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so5823131vcb.30 for ; Fri, 28 Mar 2014 04:42:13 -0700 (PDT) X-Received: by 10.58.188.52 with SMTP id fx20mr108774vec.28.1396006933335; Fri, 28 Mar 2014 04:42:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.12.8 with SMTP id v8csp1530vcv; Fri, 28 Mar 2014 04:42:12 -0700 (PDT) X-Received: by 10.180.21.225 with SMTP id y1mr12113917wie.24.1396006932520; Fri, 28 Mar 2014 04:42:12 -0700 (PDT) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by mx.google.com with ESMTPS id ne11si1755423wic.77.2014.03.28.04.42.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 04:42:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.171 is neither permitted nor denied by best guess record for domain of daniel.thompson@linaro.org) client-ip=209.85.212.171; Received: by mail-wi0-f171.google.com with SMTP id q5so637451wiv.16 for ; Fri, 28 Mar 2014 04:42:12 -0700 (PDT) X-Received: by 10.181.9.65 with SMTP id dq1mr11761107wid.51.1396006927244; Fri, 28 Mar 2014 04:42:07 -0700 (PDT) Received: from sundance.lan (cpc4-aztw19-0-0-cust157.18-1.cable.virginm.net. [82.33.25.158]) by mx.google.com with ESMTPSA id h19sm6422346wiw.17.2014.03.28.04.42.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Mar 2014 04:42:06 -0700 (PDT) From: Daniel Thompson To: linux-serial@vger.kernel.org Cc: patches@linaro.org, linaro-kernel@lists.linaro.org, Daniel Thompson , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, Jiri Kosina Subject: [PATCH] serial: mux: Align SUPPORT_SYSRQ behaviour with other drivers. Date: Fri, 28 Mar 2014 11:41:38 +0000 Message-Id: <1396006898-31624-1-git-send-email-daniel.thompson@linaro.org> X-Mailer: git-send-email 1.9.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.thompson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The mux driver is anomalous among all the serial drivers that can define SUPPORT_SYSRQ because it can, with some configs, set SUPPORT_SYSRQ when SERIAL_CORE_CONSOLE is not set. Not only does this impose a pointless (but tiny) runtime overhead for such configs but, more significantly, it adds needless complexity when doing a code review to check for unexpected side effects of any changes to the serial core. This is (cross-)compile tested only because I do not have any PA-RISC hardware. Signed-off-by: Daniel Thompson --- drivers/tty/serial/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c index 7fd6aaa..9b27d34 100644 --- a/drivers/tty/serial/mux.c +++ b/drivers/tty/serial/mux.c @@ -29,7 +29,7 @@ #include #include -#ifdef CONFIG_MAGIC_SYSRQ +#if defined(CONFIG_SERIAL_MUX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) #include #define SUPPORT_SYSRQ #endif