Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2488297rwb; Mon, 15 Aug 2022 06:24:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR4HDEAQd0JjvtD7TbWrU6dO+xLih+4+HLf/QUCaDt5derMQi0sbvO8xBUjgxggWbdVpH9yj X-Received: by 2002:a05:6402:3293:b0:43e:4a21:af84 with SMTP id f19-20020a056402329300b0043e4a21af84mr14780908eda.170.1660569898778; Mon, 15 Aug 2022 06:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660569898; cv=none; d=google.com; s=arc-20160816; b=fg5qCVU0h5aEpPMJ2yv9C1/kzFQm4iz2c6yYlDVzyPyFOt3ZS5kiFwVg8pAzAapycL tAIwp3J0DvnanIZmY6/jCKFJnF1UZRazJE0F1D7f3QwM6PjYTslqK/nKtL30ukx/iRXd Wbc4aHeV72ofOrKtdYUYIEIEk+A3x9Eew5+rRunfeoQcV7O5tCEvao+Ax3qEUIX+5tzW quBROPM0doxKXhIREnJTBABS9sM+qzwZ2B41o9SwIAc2tfQFy4k+IEkFDviML3BBxE91 pHIiQfPgbEhqK3/bueuNQJsEZssI+IjlyTEBAyl/e8rFyPcZ8B28q44/qgS9PrfgHRHE LGFg== 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=Qgr+xXH5si51UI6UXM77kyCMx5fseXFY+OCGVoVv6DY=; b=AVU5vKmiezzUjhX85NPwrzqFquo94eWbSwM3eBPHSXyVcFrgo1w3nvsSTR6WZEfEu+ JNWYEOKHrXKOewWkEWRvWREGAmYDQZ8XaSdXxoQw7yD/Nw4le4zYMRAh3+CgxPejwqku otwVbfkhh+8BaV5tY2IvCgSRgTR+MLJLfZmfqAkIT367ij6OJ8Jg+HTcJKzC44Cxotrg yrnmk1nfkeD1e+yAe01VjAjmOMkHB/qvaEvQG5OXpUeGboRhbaDb9qN25l61qMLA+hhF YZNTRBlSGz/yTD0IklIoGdPCx7hOJyMKM7K7n0A4esqMlPNlNclHqRCXs2NuGHFXHSEN LsQg== 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 gr23-20020a170906e2d700b0071576eb9e6bsi6901717ejb.211.2022.08.15.06.24.32; Mon, 15 Aug 2022 06:24:58 -0700 (PDT) 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 S232245AbiHONDn (ORCPT + 99 others); Mon, 15 Aug 2022 09:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiHONDl (ORCPT ); Mon, 15 Aug 2022 09:03:41 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D8A71182B; Mon, 15 Aug 2022 06:03:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 60EAA80FB; Mon, 15 Aug 2022 12:56:48 +0000 (UTC) Date: Mon, 15 Aug 2022 16:03:37 +0300 From: Tony Lindgren To: Arnd Bergmann Cc: Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel test robot Subject: Re: [PATCH] clocksource/drivers/timer-ti-dm: Fix compile test warning Message-ID: References: <20220815120334.51887-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 * Arnd Bergmann [220815 12:48]: > On Mon, Aug 15, 2022 at 2:03 PM Tony Lindgren wrote: > > > > We can get a warning with COMPILE_TEST enabled for omap_timer_match > > for 'omap_timer_match' defined but not used. > > > > Fixes: ab0bbef3ae0f ("clocksource/drivers/timer-ti-dm: Make timer selectable for ARCH_K3") > > Reported-by: kernel test robot > > Signed-off-by: Tony Lindgren > > --- > > drivers/clocksource/timer-ti-dm.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c > > --- a/drivers/clocksource/timer-ti-dm.c > > +++ b/drivers/clocksource/timer-ti-dm.c > > @@ -1040,7 +1040,7 @@ static const struct dmtimer_platform_data am6_pdata = { > > .timer_ops = &dmtimer_ops, > > }; > > > > -static const struct of_device_id omap_timer_match[] = { > > +static const __maybe_unused struct of_device_id omap_timer_match[] = { > > { > > .compatible = "ti,omap2420-timer", > > }, > > I think a better way to address this is to remove the of_match_ptr() > usage from the driver. The only reason to use of_match_ptr() is to save > a few bytes on machines that don't have CONFIG_OF enabled, but this > driver is not used on such machines any more. OK makes sense, will send v2 patch. Thanks, Tony