From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80276C25B0E for ; Mon, 15 Aug 2022 13:03:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232284AbiHONDo (ORCPT ); Mon, 15 Aug 2022 09:03:44 -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: 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