Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp209355imm; Tue, 17 Jul 2018 17:16:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfWrLiXQbQnTulWOFwHpB0l1jkcZ6+hHI6LgzEsJMvtOeu3bgEScyxydv7UKKzVO1odKq+8 X-Received: by 2002:a62:5ec3:: with SMTP id s186-v6mr2847654pfb.129.1531873010941; Tue, 17 Jul 2018 17:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531873010; cv=none; d=google.com; s=arc-20160816; b=MxOJwarprtEMrIy0yxd7QbS/aSsbKCGkMX9dI3T/bx2xwDaiNNv3f2aNp2OwB1+HvZ biiUKZN9yQPyu4tOySngPLcwdtJU6zXpCU1SE+657NjT9DhIwgUqvXzBiELQpXaviglB xFn9ysRwuaVSnyd/pCNlgptl07hMbQMV8BcevQt0Rv1u3qLzZAI3eDVqgixhul//A+PD ywPDeb+60ujCm//D10UFafrEbJZedpxIPZQS9/WQVmrmq0RhO4rVYXbphb2voxICt2MM n2tL31HNqShYqfqupIyOKzP7tYZozyriO5kGSLmb8nYMUAKWUxjAAT7LNWtDDxk4m1AJ xQ7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references:message-id :in-reply-to:date:mime-version:dkim-signature :arc-authentication-results; bh=bGNvdnexsXmQKC3skfAzlLhLIVVMREt07kHDGLKDpVo=; b=Iup4d94dkyS0jCl9zMCeNb/xO3I8Br+J1h1hFXX7B7JkgJllePZ9ZeWKqMtqcyXfL7 E8tbQbz/eCyjDLGiUCPlKQXwkivEA2C36pl59jzy3EC4JizDuHqeNmN5N3my6cIBA8YW m3EOgZRPu1tYmg7Tsxavm3iL/m/J6xNUVYnal06EPO3UVykRp4Zq7mN8KULhR1gGEm5J AWKv2diF33Vs27A48cBk1uj0yCzNqXhygOaJo7h4wKc8QQq6uwbMDFHS6pMRhwKj41n4 y6RH3Qq7+rh6WPHInwN1sv4/BygYHxw9l2Mr7CyMfN3WIxlgNpsC4kQX46P2JiWbrFM8 DOJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="EFgF+/xi"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16-v6si1967258pgc.82.2018.07.17.17.16.36; Tue, 17 Jul 2018 17:16:50 -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=pass header.i=@google.com header.s=20161025 header.b="EFgF+/xi"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731578AbeGRAvC (ORCPT + 99 others); Tue, 17 Jul 2018 20:51:02 -0400 Received: from mail-yb0-f202.google.com ([209.85.213.202]:55743 "EHLO mail-yb0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730063AbeGRAvB (ORCPT ); Tue, 17 Jul 2018 20:51:01 -0400 Received: by mail-yb0-f202.google.com with SMTP id y16-v6so1485191ybk.22 for ; Tue, 17 Jul 2018 17:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:in-reply-to:message-id:references:subject:from:to :cc; bh=bGNvdnexsXmQKC3skfAzlLhLIVVMREt07kHDGLKDpVo=; b=EFgF+/xij5QQqfOtcZfp48YOnhztD7xrDVqQQdFvh9havB/hQFHpbBw+//OvNpORpi /NLD3/v8KxikiowAC3oi+wKfv++tu4WG6FM+Ty9CGumxYe3Rtj8nOvVQpBQvMDwtlKUu R6IG9quu3/Z3EXmXMCErw5vgXeSHJafTVJK+3tEpZMB9c97EosFkSNd2hjRgCXPwE/tq xf/F89J8yu12xMPXYa5ql6HBwrhlt7xRqfY8ONPI7oP6TOd1k0ym+iu3oyWCeehA5E2Q Zp5rU8jCVRXRVZB4K5FMb5Niz2rXMQ9CYlgW1DKejUK1xAa1/Gv3KYznWVStVnx3Bvju W4/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id :references:subject:from:to:cc; bh=bGNvdnexsXmQKC3skfAzlLhLIVVMREt07kHDGLKDpVo=; b=qWWvJdgZXuDL2LW+LWT59pdtlYmXegJgXzgc8V+6KG352/8OXYtB3JsteFBc5KnTvz +xHoewqGNH6Dr5xIFwhTUMAgaKNkPcePcD89GCACzfsBjZ+J2zvKdz2j2aK4ju2K7dbk UxDfqQwTs0HMkkGHhE3f3lxG5ujUO6FPu2JkEPQTkPx0sw0Vdy68JYlmtXAzm+5IcwdF WwctG2Vqis+wrkG85J9fZihdLXc3SS6akFXRaMuvmYkQJdexdDsDlrzKNYj8MF+mkX70 LzF+3MLomx/k10UjRgadgFVN4thRyR8yF9JptXSEzE7cjizi6l/SbdblDJSrBPLZyGAJ 1qcA== X-Gm-Message-State: AOUpUlGBmoHFrPIaKo/yMRyUA8fY1btLP7eHPoIuuzGqCwzy5Tzr4bNe Bp2MOsjLom0oMmnU3L4cFdOQJuiU MIME-Version: 1.0 X-Received: by 2002:a0d:d84d:: with SMTP id a74-v6mr1117457ywe.152.1531872955536; Tue, 17 Jul 2018 17:15:55 -0700 (PDT) Date: Tue, 17 Jul 2018 17:14:55 -0700 In-Reply-To: <20180718001455.140575-1-rkir@google.com> Message-Id: <20180718001455.140575-3-rkir@google.com> References: <20180718001455.140575-1-rkir@google.com> X-Mailer: git-send-email 2.18.0.203.gfac676dfb9-goog Subject: [PATCH 3/3] tty: Mark goldfish_tty_line_count as const From: rkir@google.com To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, tkjos@google.com, Roman Kiryanov 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 From: Roman Kiryanov The driver never mutates this variable - no benefits of keeping it mutable. Signed-off-by: Roman Kiryanov --- drivers/tty/goldfish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/goldfish.c b/drivers/tty/goldfish.c index a9c8ab8a4750..32b77bf54918 100644 --- a/drivers/tty/goldfish.c +++ b/drivers/tty/goldfish.c @@ -49,7 +49,7 @@ struct goldfish_tty { static DEFINE_MUTEX(goldfish_tty_lock); static struct tty_driver *goldfish_tty_driver; -static u32 goldfish_tty_line_count = 8; +static const u32 goldfish_tty_line_count = 8; static u32 goldfish_tty_current_line_count; static struct goldfish_tty *goldfish_ttys; -- 2.18.0.203.gfac676dfb9-goog