Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6771540rwb; Wed, 18 Jan 2023 09:09:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXs0RASGHSwXbsBWmNBiyDv7cqFmdL4cxj7vhBfnLNHvnJvQmg1VNDtbZqCsxdL/X0TjZMs8 X-Received: by 2002:a05:6402:2b86:b0:499:70a8:f919 with SMTP id fj6-20020a0564022b8600b0049970a8f919mr8210233edb.32.1674061765293; Wed, 18 Jan 2023 09:09:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674061765; cv=none; d=google.com; s=arc-20160816; b=nrvvKpyIMbKpTqEv3ehhzwHX6D+Y04MKG4xoSzODWpVr7dCJq47aSzLnQQOgiA9pi2 T1WPygCCOnswtwb0CqC8w4fBWYKdKyTxKCM5ylZJgGLuhpQeEhLypkyVJvG/AL4v7jpk cCiODji2zI4NWVKq46VJUjY3d2DR43fOVCZ7E7RiPkiyTxTrmK1/4Ip4i2X8TGPWZJ3F BoMSjsbGH3CsZZ3VWdokeqa9/JHi9M2qzOtDYXMIF+dM72/umSvdbgnPOHRW0wF7ppMf +bwgbkwSN6vSrQT/y38Z9ON08CImYar9bT2oRO/fUp2QCm7vOjZ/PYUGbgWzU2GyhxQ9 S4/w== 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; bh=EAgpMavK9rL1gxUW3zYZrnjVYTCf9HHzlZS06LS1sGY=; b=rCzF3Kjp+Tn9WKn3/sjfyoI5B4A70GlsGuQUeZN/OzY92jaXru5ToViK+6VRbz/+Or XQlZ3PUg0n3mBE78faZWtojJ37eoZgyALRe1G3pfa378M1rDpgmY+KF1pEA3UhKtqghj IxRx6IaKwBP9ZWMXRBzKjaeLUmeLWv7vXtukcdPOUCTUeeoDneQfHmEA9TNtyQ0LoBas ZRBjj1hVb4CFREE2/cg3OJx0RURroEOZT4bcz/TumMKTGSAXRUEDgiAsCfmwwrb03jAh tyZHMHtJBDki+D1tid3WbSbt+w2e1UEnoGe8ds6R6UApkXj3iy+hRJed3pS971E+PiAN rINQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id er16-20020a056402449000b0049e16834b77si10508310edb.346.2023.01.18.09.09.14; Wed, 18 Jan 2023 09:09:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbjARQNC (ORCPT + 45 others); Wed, 18 Jan 2023 11:13:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbjARQMo (ORCPT ); Wed, 18 Jan 2023 11:12:44 -0500 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 61D6C53E7F for ; Wed, 18 Jan 2023 08:07:29 -0800 (PST) Received: (qmail 212028 invoked by uid 1000); 18 Jan 2023 11:07:28 -0500 Date: Wed, 18 Jan 2023 11:07:28 -0500 From: Alan Stern To: Arnd Bergmann Cc: Greg Kroah-Hartman , 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=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS autolearn=no 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 > --- Acked-by: Alan Stern > The patch that caused the issue is in the boardfile-removal branch > of the soc tree. I would just add the patch there.