Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp35329pxj; Thu, 20 May 2021 04:01:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1gqgI4yCsxGDj8OpV+fmVGap1l72NFkEurvzuumHRtw8VnoGf9BWAmskpafYeE5HAsPLi X-Received: by 2002:a05:6402:100c:: with SMTP id c12mr4324092edu.165.1621508493951; Thu, 20 May 2021 04:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621508493; cv=none; d=google.com; s=arc-20160816; b=XNIbPpoRDsJ66u+rygx5EG8FtjnORcSAdgK2KdiYH6HTIfhRDhwyB0DgS7Qx1e56tx 8bYaoJSqeQLKcgVGdvYbZZfqcdXhAIXqE44owu2gyO2plnujcrmBYl8dPOtLkaBHujMz 6OidqnK8OsB3noxGslzUMmRovp0gBLk8yGH58MBWTCzo+flauufnJkmWUtWPxbAQnsg6 nkQRKcsX2tESmIg/pUj1bgJ9NzdGaRdv+6fZ/pG/4+sK4TeoqCsHGS0KlPg6HyRNVlLo D5VwLTxkCXQsqBSu/IuPGlyLDTIK1YQlBnD3CTuNKStizDoc2O9WLQsTLXWfdcJeyYAl e38w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tayOGHtiDKiPQeR5ML5UfhnROJUFxSWVUVmOYHOwyME=; b=EI0xzaIMnVGJXdws6fnIuRqhAqysSeoNJhkPtJAIcwQsBNcQL//v4GZkLzqSmmIJu7 1+ZH2Cu1WHfyk/rWUxcr5CnGWHK5UlGgc8+6qIAaNqVCi3d2kUd1pqNArCu2FX+2gPrO d56rRsgAf3rko9lrVCwXncQb3NBRbnxWjrrqvAOI/iEuKiSGA4AtUOmm+ymvIiYubNZe /qwyp+sbA0iNasymJwJfiy1LBT85OANQI+lwniOJ8NIO8ruY6ajrFGgKExkak3NA6hjn 1/+9GwFojb5SoHIDd4Vx22GWsnXBdoIkporNZNI/xCRR4HJDJsdKgBp53SnW5Db9k6xx lHEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lyv8woT2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si2059451edr.379.2021.05.20.04.00.59; Thu, 20 May 2021 04:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lyv8woT2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239138AbhETK5d (ORCPT + 99 others); Thu, 20 May 2021 06:57:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:44690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237553AbhETKln (ORCPT ); Thu, 20 May 2021 06:41:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1642361C89; Thu, 20 May 2021 09:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504567; bh=uTaG+Di4XS1WYWv0Dz6/jBPs2AoiU/Wa29VweIUts/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lyv8woT2TOs04QdESWx0WdnIVD1QvtItK0lejcfQ9fYhrKNKlI26Q7FV1jn9CBwV8 llHbAk/oWoCSdlFu0B4Z3cSoqMVSezEHSR59+SK9xEXCXS4YCP23DhYpxO41w0qplx nkK822jix1eGpksPoAEIDsJsUeN1evUF55j83aX8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 4.14 304/323] usb: sl811-hcd: improve misleading indentation Date: Thu, 20 May 2021 11:23:16 +0200 Message-Id: <20210520092130.656582232@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann commit 8460f6003a1d2633737b89c4f69d6f4c0c7c65a3 upstream. gcc-11 now warns about a confusingly indented code block: drivers/usb/host/sl811-hcd.c: In function ‘sl811h_hub_control’: drivers/usb/host/sl811-hcd.c:1291:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1291 | if (*(u16*)(buf+2)) /* only if wPortChange is interesting */ | ^~ drivers/usb/host/sl811-hcd.c:1295:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1295 | break; Rewrite this to use a single if() block with the __is_defined() macro. Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20210322164244.827589-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/sl811-hcd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c @@ -1286,11 +1286,10 @@ sl811h_hub_control( goto error; put_unaligned_le32(sl811->port1, buf); -#ifndef VERBOSE - if (*(u16*)(buf+2)) /* only if wPortChange is interesting */ -#endif - dev_dbg(hcd->self.controller, "GetPortStatus %08x\n", - sl811->port1); + if (__is_defined(VERBOSE) || + *(u16*)(buf+2)) /* only if wPortChange is interesting */ + dev_dbg(hcd->self.controller, "GetPortStatus %08x\n", + sl811->port1); break; case SetPortFeature: if (wIndex != 1 || wLength != 0)