Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1591944ybv; Thu, 20 Feb 2020 23:54:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyR8zibYlamo6+gfW9cIvBZsJhu9qeRGYLifF02/muWBmd/ohO9c/n+mdp4MxjoN76cG39j X-Received: by 2002:a9d:1284:: with SMTP id g4mr25247329otg.47.1582271666727; Thu, 20 Feb 2020 23:54:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582271666; cv=none; d=google.com; s=arc-20160816; b=W0dIhuClznQA/sc6mnTdsOpdBvJRbyxCaZ/JQAEQdejwwCukbaHOyCRzk7AMXKNytl JhQR63OaUkLtYvj5RNn7HQpahtfCuIPgmXYs4ntMZFkCD78tru7nEjvx5dTsXpES6uOX 6vYGjw2KYGsnvywfiFSLfkU4mYf73ww7vAcRQZVKfpiq/T8DizkbR1mZBtobwVvwoOXt oq+L4L1d5CrrQ+ppAljs4mj1ejLLu6dS2BOsnds9wQL7mC++zfZS6t+kMi+H++Z0LQCC kuVOg71cWdNSywkKnh31tV+czNO8bXSgW1fTXPk1w6JZCSDZdd8EDmaWlX06HUISvTcm e2oQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VbKaMT4xc2ByhWNZgrCG3ZwxPTFPhlv8NULV1YSJJC8=; b=qUkdFWV+CP75EJbNEuxbyErO1b7NYnIE0/M3DXK4PaA4yDWihlfhJLorJzHrv148Ff qMBRwGdwW4WLfpCBwPn+QEO1m/K4HMeGvBnbHIU0Qmoh3WAUeHEwWn1g/VICYHfr9evD 8hxqRVXnzKVFsYRDImeTnIEPv4snoestpSTYKppfFQ5prwCWJnBfzYJDeOkX2q4Olusq 67k8KZJ/mww120Wt+vk28qIpT9cLx+OAA0n40lJvPppIIB6mdTyTekNJXsTyRbqWgwni MEjjWaqpkUtcoLzA0DIP9d2TtuWxRNTlUZiIlP+KIV6xEJx0m0uB9CPrITUJZvtNLdFW OPEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oqEQccDQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m85si405834oig.158.2020.02.20.23.54.14; Thu, 20 Feb 2020 23:54:26 -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=oqEQccDQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729897AbgBUHyL (ORCPT + 99 others); Fri, 21 Feb 2020 02:54:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:52612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730011AbgBUHyH (ORCPT ); Fri, 21 Feb 2020 02:54:07 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 30FAB2073A; Fri, 21 Feb 2020 07:54:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271646; bh=qe91vsZl+bETNV5aGSCLwyygrLUCbqOnEPRe1+9FlF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oqEQccDQ7BKJrUwnzrQq7FaBWx/VZhuHkcPoexbAYmezi2W5N1TD7skbpbJOAElbR sCN5J+kIbEIl8qIl2vKuTU6xzluJtn/JJgF7uXsl9kKuP0CnpH1c8ogChPwUrQyv8C +eyCDJd0gkWzC3NLMTBZlCt3ePN3NqYoU8ypNPOA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Sasha Levin Subject: [PATCH 5.5 246/399] tty: synclink_gt: Adjust indentation in several functions Date: Fri, 21 Feb 2020 08:39:31 +0100 Message-Id: <20200221072426.369477207@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 e8a9047de4516..36f1a4d870eb1 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c @@ -1334,10 +1334,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); } } @@ -1359,10 +1359,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); } } @@ -2560,8 +2560,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)) { @@ -3192,7 +3192,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; } @@ -3203,7 +3203,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; } @@ -3218,7 +3218,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