Received: by 10.223.185.116 with SMTP id b49csp1119692wrg; Fri, 23 Feb 2018 12:15:58 -0800 (PST) X-Google-Smtp-Source: AH8x227llCX/8k6h7iWaPi8IywTdPlZO3NG3Q0rvwyoSI1lElBvI68J1Oi7IpNjYnegBLK3TNm9l X-Received: by 10.99.109.70 with SMTP id i67mr2333350pgc.190.1519416958436; Fri, 23 Feb 2018 12:15:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519416958; cv=none; d=google.com; s=arc-20160816; b=AhMNSBYPC2Rp0px/kK8k/T79JqddxW9NVViiujMOoHA1eYU+zesQ4XYH6p+4JMAExD pgUjTfDubhCY6BG+Zi6hPwIN/ApwjA1F1dFZfmbPAWvnsgWQtGqZwl+bW8KzS8l3PkOr 4MqaulFpSFf/u8I/SHjLfaSO69r/hc7SDLzns7vse2/nUjD9vlsfQfzSWi9AiK3BZeEM unUnGLuQnaEt5dw84Xn//u9SLeGTUd21VUUVKzismvfj3a10pDrLqsDKR1uN6vHWWD8o kuIiYz4wzSGNIOnHd+dP8tEqSWxUFsK5jKWOcMmaXxLnCk6OJxCMTrRK/9NUP73mYBwV 1EpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=WLm5Lx2sZFpvq+iRYx1sUHc8dm3id/i9EEIZ2GFNBnI=; b=mRMxwtcJwbQZ6WsSlHf0y/e0aW9VGnVsuZkc68evkvF/wc4Va01MWUVKgpBp8joo3G LtFWDdrFJVHaLN64+saalO120Ob2iBkcWwlxyCWF7nPgdwtm0x5rBcp5rUMyUpP+hnuY a/k/T9sibvnpNjmTc+g+TD0fA6y0VxWRu7X9YYPa7fwrLeBcg1LX/qWZ9zCFbgDfnEUF kdz8opzEc8er0XZXit784VTeQWk3WuzLXpmxQFAygXJvJ0I9Z55+Kep7URCl7zoE3OAd MwhAEyLHnqmBZyZqpznX86lB2EVakCOODZw7PZvkrj48fEDptM9a2ZUq9H1L87OeEhZo plaQ== ARC-Authentication-Results: i=1; mx.google.com; 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 206si1859706pgb.647.2018.02.23.12.15.43; Fri, 23 Feb 2018 12:15:58 -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; 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 S932699AbeBWSku (ORCPT + 99 others); Fri, 23 Feb 2018 13:40:50 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40244 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932672AbeBWSks (ORCPT ); Fri, 23 Feb 2018 13:40:48 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E629D11F9; Fri, 23 Feb 2018 18:40:47 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Arnd Bergmann , Finn Thain Subject: [PATCH 4.4 155/193] ncr5380: shut up gcc indentation warning Date: Fri, 23 Feb 2018 19:26:28 +0100 Message-Id: <20180223170350.209664414@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann gcc-6 and higher warn about the way some loops are written in the ncr5380 driver: drivers/scsi/g_NCR5380.c: In function 'generic_NCR5380_pread': drivers/scsi/g_NCR5380.c:541:3: error: this 'while' clause does not guard... [-Werror=misleading-indentation] while (NCR5380_read(C400_CONTROL_STATUS_REG) & CSR_HOST_BUF_NOT_RDY); ^~~~~ drivers/scsi/g_NCR5380.c:544:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while' This was addressed in mainline kernels as part of a rework on commit 12150797d064 ("ncr5380: Use runtime register mapping"). We don't want the entire patch backported to stable kernels, but we can backport one hunk to get rid of the warning. Signed-off-by: Arnd Bergmann Acked-by: Finn Thain Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/g_NCR5380.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/drivers/scsi/g_NCR5380.c +++ b/drivers/scsi/g_NCR5380.c @@ -538,7 +538,10 @@ static inline int NCR5380_pread(struct S printk(KERN_ERR "53C400r: Got 53C80_IRQ start=%d, blocks=%d\n", start, blocks); return -1; } - while (NCR5380_read(C400_CONTROL_STATUS_REG) & CSR_HOST_BUF_NOT_RDY); + while (NCR5380_read(C400_CONTROL_STATUS_REG) & CSR_HOST_BUF_NOT_RDY) + { + // FIXME - no timeout + } #ifndef SCSI_G_NCR5380_MEM {