Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1931458ybv; Fri, 14 Feb 2020 08:26:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwrFXg9vIXYAvdgw85VF02jIRh8M++aVtIR01jaIylTMZWRhjoDXsD5o11ngwHTGTj9xCJG X-Received: by 2002:a9d:bb8:: with SMTP id 53mr2710618oth.150.1581697564994; Fri, 14 Feb 2020 08:26:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581697564; cv=none; d=google.com; s=arc-20160816; b=XGUBBjd//11iIOn0smudYoh+trqfSJPswBJk4HuRIp8Yo0OInZDmqyWmYGtosAI9m4 kcKMkpB7IsHLqmi7KdLAbqwDVeY/aqWj+aLkCqUjCLzHiNLcuz4GsZbztjdWCw4et840 WwBr2TjIeI+Z5jl9rz86dPqOsQPf4jxnpIuwvMDVBGR97oFkpzoZV4cDrzoN5J8Wxr3T zjFxKL0ywm5Kp6bw8kn+hfKMZtjRE7ytGgon/zqY1RpKNUmHTe66mUbu2+nDEmTPaDRy ZcDRVEygTnT+cNFSXnarRkliS4yJ3EIJLRvXJBUbUTIUzZoqlGTH6SwalN7WR5jSn486 YZeg== 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=/ADEd+oC5Do2K1psRjHgKMXoPQhfB9OWxgJ0Zao4hKE=; b=hOr3N0EWoWI84IV6wsWmeYczZxaxTGxt+v63tydsaZYoGmJObamLIWB/ZjCEnkKpmi qKy0Y4lmsJ0/Tg4QEsINpW7hCJyjI38Dx/OeybwHdU27s2zcewnlyklwWqgOGC1tpRzY G0PbKh1o34ehmulMfFQ8RlVQ8Zweai+NFQCIafhCuXYH8Tpk6lDARTC0GyQZ5y0q+0NI qsIzQXRG0Mn99PU2KLjj3AL9P16qhySP4+/cod6pIWOiqvF3JRZSbeYjWXLDKmVAY+Ds 90NZrHjRAJlEJRX9rfTH84PRIabrg+gh5e9NnR1b+G1MJgjeC+sumhk0925KUVtRJ+87 nn9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mMTek149; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s77si2676467oih.51.2020.02.14.08.25.53; Fri, 14 Feb 2020 08:26:04 -0800 (PST) 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=@kernel.org header.s=default header.b=mMTek149; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406097AbgBNQZZ (ORCPT + 99 others); Fri, 14 Feb 2020 11:25:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:59538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405593AbgBNQXU (ORCPT ); Fri, 14 Feb 2020 11:23:20 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 376D02477A; Fri, 14 Feb 2020 16:23:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697399; bh=EfSfan5JRv4sluPCnKE6qk2yzhC1u0spmT0Ty6qEfnY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mMTek1499qfg7jq5LnC1tapd8wGPtmi59FQ8mDE1DkdsshPX9FU/WamghBpS3i023 /+qARebzH8blkuv1MoMcnJIlOAfn8L1HNbjQ59ORlfGptg8X/GIY/9ATcuQNNqnaQF 3jtJJUXxVt+gRGoAABfkk5ngKyr0etIaCMXxvjf8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nathan Chancellor , Greg Kroah-Hartman , Sasha Levin , clang-built-linux@googlegroups.com Subject: [PATCH AUTOSEL 4.9 093/141] tty: synclink_gt: Adjust indentation in several functions Date: Fri, 14 Feb 2020 11:20:33 -0500 Message-Id: <20200214162122.19794-93-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit 446e76873b5e4e70bdee5db2f2a894d5b4a7d081 ] Clang warns: ../drivers/tty/synclink_gt.c:1337:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] if (C_CRTSCTS(tty)) { ^ ../drivers/tty/synclink_gt.c:1335:2: note: previous statement is here if (I_IXOFF(tty)) ^ ../drivers/tty/synclink_gt.c:2563:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] if (I_BRKINT(info->port.tty) || I_PARMRK(info->port.tty)) ^ ../drivers/tty/synclink_gt.c:2561:2: note: previous statement is here if (I_INPCK(info->port.tty)) ^ ../drivers/tty/synclink_gt.c:3221:3: warning: misleading indentation; statement is not part of the previous 'else' [-Wmisleading-indentation] set_signals(info); ^ ../drivers/tty/synclink_gt.c:3219:2: note: previous statement is here else ^ 3 warnings generated. The indentation on these lines is not at all consistent, tabs and spaces are mixed together. Convert to just using tabs to be consistent with the Linux kernel coding style and eliminate these warnings from clang. Link: https://github.com/ClangBuiltLinux/linux/issues/822 Signed-off-by: Nathan Chancellor Link: https://lore.kernel.org/r/20191218023912.13827-1-natechancellor@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/synclink_gt.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index e645ee1cfd989..7446ce29f6770 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c @@ -1349,10 +1349,10 @@ static void throttle(struct tty_struct * tty) DBGINFO(("%s throttle\n", info->device_name)); if (I_IXOFF(tty)) send_xchar(tty, STOP_CHAR(tty)); - if (C_CRTSCTS(tty)) { + if (C_CRTSCTS(tty)) { spin_lock_irqsave(&info->lock,flags); info->signals &= ~SerialSignal_RTS; - set_signals(info); + set_signals(info); spin_unlock_irqrestore(&info->lock,flags); } } @@ -1374,10 +1374,10 @@ static void unthrottle(struct tty_struct * tty) else send_xchar(tty, START_CHAR(tty)); } - if (C_CRTSCTS(tty)) { + if (C_CRTSCTS(tty)) { spin_lock_irqsave(&info->lock,flags); info->signals |= SerialSignal_RTS; - set_signals(info); + set_signals(info); spin_unlock_irqrestore(&info->lock,flags); } } @@ -2576,8 +2576,8 @@ static void change_params(struct slgt_info *info) info->read_status_mask = IRQ_RXOVER; if (I_INPCK(info->port.tty)) info->read_status_mask |= MASK_PARITY | MASK_FRAMING; - if (I_BRKINT(info->port.tty) || I_PARMRK(info->port.tty)) - info->read_status_mask |= MASK_BREAK; + if (I_BRKINT(info->port.tty) || I_PARMRK(info->port.tty)) + info->read_status_mask |= MASK_BREAK; if (I_IGNPAR(info->port.tty)) info->ignore_status_mask |= MASK_PARITY | MASK_FRAMING; if (I_IGNBRK(info->port.tty)) { @@ -3208,7 +3208,7 @@ static int tiocmset(struct tty_struct *tty, info->signals &= ~SerialSignal_DTR; spin_lock_irqsave(&info->lock,flags); - set_signals(info); + set_signals(info); spin_unlock_irqrestore(&info->lock,flags); return 0; } @@ -3219,7 +3219,7 @@ static int carrier_raised(struct tty_port *port) struct slgt_info *info = container_of(port, struct slgt_info, port); spin_lock_irqsave(&info->lock,flags); - get_signals(info); + get_signals(info); spin_unlock_irqrestore(&info->lock,flags); return (info->signals & SerialSignal_DCD) ? 1 : 0; } @@ -3234,7 +3234,7 @@ static void dtr_rts(struct tty_port *port, int on) info->signals |= SerialSignal_RTS | SerialSignal_DTR; else info->signals &= ~(SerialSignal_RTS | SerialSignal_DTR); - set_signals(info); + set_signals(info); spin_unlock_irqrestore(&info->lock,flags); } -- 2.20.1