Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp989593rwb; Thu, 19 Jan 2023 05:25:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXtLphm70AHO24UL1nkU5AwklkzGY9f5OLaDvpqPwVXHTdQPgvQ+vxAK4nTMJlkkzIqSEZaV X-Received: by 2002:a05:6a20:66a7:b0:b8:6a9c:fe21 with SMTP id o39-20020a056a2066a700b000b86a9cfe21mr19462001pzh.51.1674134703901; Thu, 19 Jan 2023 05:25:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674134703; cv=none; d=google.com; s=arc-20160816; b=b++b/2bYfwJFYlF/cXDDZdMh6XV2cPNRtzPw6xkIaXqzAKSK1Cx7OC8+SN2FSTXUep 6dhmByUh0GuwCAeQgqgKex4MnMRcOhmRxWQJOCtSaOM9LI1lO5/7VXpsDoXGUNTcCzqQ rn8MgtodftGKSTdRZGboPju6qzwEGOYBaigeqoD4kunXAgyBy2OmtHYvU2f6+OWerHU0 7fCxyLHTTYIgMorEOw2RPbIIAD8VBvecacsSAA8d9qxBFgKpxNp2u43ej4vSzAfPDLr1 w+19k20kyoVFN887ckIDn2+ZfypFkzYZsXaAPg3QqnWLOCiC0Z0mf/6DtBZaYUaddmvb xrWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=h/gzBH5dOQh5cU6Z/SH4mfc4HZcpyYg+0DXeV6ErbWA=; b=FENL3SGsqTY88+xS8SqIxPcndsCE8P+wQu6sBn9R5lIY6Y9R+19ql6ZhEoTxzIDzia TLuic/Zmju47PbbcSqBJL5YcDvv6++MgHXnw4uIVQRDZGqxtz28yYgk84o8G09CFoOK6 GE410q66yAocAcnV5aLJHVVtrEKC4Z3H0bXa+KsA+Cw7XCnjU7+D4W1TEjg/k8sHBaZv Mrn9jyeGVJEhZmbWjnid10eF/dZGPXsedZkNnjiufL0IqycJeNeYa6kviwWTgkqLF8d6 LyQj1hmb+TFiGvVEvan+BBu33kGXwbO/XwY/OYroZ2Ua1Te9Kwk9Cz26FGF8N6Ijm+/J JpJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jxzWnwrI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 78-20020a630251000000b0043c3f90f7c8si39928170pgc.655.2023.01.19.05.24.57; Thu, 19 Jan 2023 05:25:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jxzWnwrI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230389AbjASNFL (ORCPT + 46 others); Thu, 19 Jan 2023 08:05:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbjASNEN (ORCPT ); Thu, 19 Jan 2023 08:04:13 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4670B7E6A5; Thu, 19 Jan 2023 05:03:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D087160ED9; Thu, 19 Jan 2023 13:03:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8570C433D2; Thu, 19 Jan 2023 13:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674133380; bh=4fpRwxBDEvKhdeNvpW0jXDdE0yZhmx+fqvJjKU6UQ8o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jxzWnwrIOK3O/jYLSAqMZPG5FXGQqLLw1cHUt7kw3BLgocy1ioIoytm80AedZHoMO mtbNusCHvs3V0zPrfLPLj+gCAJ+jVAKbLB/m2iNDLAX4nWrUD6vCjYE4qWFQxtfOKI +4j88CsxiWONiAV+Ubv20xf/nuI0MILqna0DufCw= Date: Thu, 19 Jan 2023 14:02:57 +0100 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Alan Stern , Kevin Hilman , Arnd Bergmann , Tony Lindgren , Felipe Balbi , Ard Biesheuvel , Janusz Krzysztofik , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: ohci-omap: avoid unused-variable warning Message-ID: References: <20230118082746.391542-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230118082746.391542-1-arnd@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 18, 2023 at 09:27:34AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The dead code removal has led to 'need_transceiver' not being > used at all when OTG support is disabled: > > drivers/usb/host/ohci-omap.c: In function 'ohci_omap_reset': > drivers/usb/host/ohci-omap.c:99:33: error: unused variable 'need_transceiver' [-Werror=unused-variable] > 99 | int need_transceiver = (config->otg != 0); > > Change the #ifdef check into an IS_ENABLED() check to make the > code more readable and let the compiler see where it is used. > > Fixes: 8825acd7cc8a ("ARM: omap1: remove dead code") > Signed-off-by: Arnd Bergmann > --- > The patch that caused the issue is in the boardfile-removal branch > of the soc tree. I would just add the patch there. Reviewed-by: Greg Kroah-Hartman