Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2464631rwb; Mon, 15 Aug 2022 06:05:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR5W/fXWS5wUVEyd4ki8WOwBgUWe5ZHR7wnHVpKEmOqHSQyTbwnVrSCbVpYXvJ/69YW0pcvZ X-Received: by 2002:aa7:dd4f:0:b0:439:c144:24cd with SMTP id o15-20020aa7dd4f000000b00439c14424cdmr14342958edw.209.1660568700396; Mon, 15 Aug 2022 06:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660568700; cv=none; d=google.com; s=arc-20160816; b=V1LjK1Rq3YqyJLYbHZ920c6pUFJAdZLsj5YsmgT1ZhsSdUr/CxxzFEwnj2Yvpc4+OH bsbydU+RTIyUWD45OfTY0TzkXz68VobgCWISXWQWpvucpmJbT1WHh9GAyxP9Lt8z4TRQ JqU7AZKlJ/a0WJNVJRW5GoF83dfRuB73TV+ydlYUXMyglY8FekEZsG2cVeW+zasxmhJk lA7b1/oMj1E9V5gVFhEmbJx17myv5JC8ImUAJ7bUJqBJyf7tm1pCpOLuMtO+EXzxsOZZ k5DPvUeMZJfSs11PxtMcmqRga+gRbjEGsfue/kqQn4IGAu/fNuiDWS+eluIpJbfnFskZ rW6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=pamSN+RwSsvGXoxRmBXbRrT8UuuhLtDxkJ5b9eqQNpA=; b=qysb4sFeMIVdIrQiFcKG11sbCCanHSXTkSuILs0mP6g8jo+FKhBNzwO1ShHklSqnch GwcX9mEbI/HgMvd1FXJUT9Oet6QJpjC/GMoJ5LBxfZ8PPwX3CC91xBw2WQteO7qvX340 m9xW++dg9zrenzvK4oxYUbymdMVY6mm6ZsLf5/X+v1YQuyLXkEsPMkw8FSp4p5xX2Y8j Smnj8oFvwgho9yRxu1fbmd67FoBj0uFWw0usT/favj4h0aQ2JciD89vGPaQASAlElej/ UROIo/BqcqERcwRs5qYDCVtXL19DBD/rvnrhl+6gKMu2Ku6BmRBl8jSCrMxfl/4TvQ1q M6mQ== 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 a9-20020a1709063e8900b0072b83c2b374si5743916ejj.62.2022.08.15.06.04.33; Mon, 15 Aug 2022 06:05:00 -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 S242417AbiHOMpF (ORCPT + 99 others); Mon, 15 Aug 2022 08:45:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242375AbiHOMpB (ORCPT ); Mon, 15 Aug 2022 08:45:01 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B2BDDEF4; Mon, 15 Aug 2022 05:45:00 -0700 (PDT) Received: from mail-ed1-f51.google.com ([209.85.208.51]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N9M1q-1nKpCw31XA-015KGt; Mon, 15 Aug 2022 14:44:58 +0200 Received: by mail-ed1-f51.google.com with SMTP id o22so9407298edc.10; Mon, 15 Aug 2022 05:44:58 -0700 (PDT) X-Gm-Message-State: ACgBeo0ZL3HyVV51XY9qvgKlCJbAZV/mb0R79Dd1wRATUIIHobZKgxPF rm6uo/bRLTRq6vNgBfSiuX5p/cw44F6cvjuxQWU= X-Received: by 2002:a05:6402:3495:b0:43d:d76e:e9ff with SMTP id v21-20020a056402349500b0043dd76ee9ffmr14788222edc.227.1660567498364; Mon, 15 Aug 2022 05:44:58 -0700 (PDT) MIME-Version: 1.0 References: <20220815120334.51887-1-tony@atomide.com> In-Reply-To: <20220815120334.51887-1-tony@atomide.com> From: Arnd Bergmann Date: Mon, 15 Aug 2022 14:44:42 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] clocksource/drivers/timer-ti-dm: Fix compile test warning To: Tony Lindgren Cc: Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel test robot Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:xgqHpud8HikUwOPWfwCj5k7CdhO43Q2Py7Q3XXitEc9MgcabGta pixz/MXNNFJURqI5aS0QqwRisDi+lhRH/Px6NhP1EY/zaxE3xQNDSKnZMyAFBNdzip1QPIK 5/UUinja6w+7tYgIPZ5AdYM8sKE5+kosbU2fwQiMxGm/Gh07Txw3blAfZWLPTReclRL0fux Xd+ylrDGfmWKHKYGwlMAQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:oE8NCrNUPdA=:+6NTaKMudK45G/JjPGvoC7 boVOS6sCrxZMuS7FwUnP7WzjGMnJBnRFmC6IL1/M51p/fM9jzQuRk9NV98NcTsgqXiGoOnBqY zskEEFIEWWxK/K2b7yjxs/DllGI2N7Lcirz8mGzK/7zdcHayUKCKCf86NBZ7szAD/NCBnH11p 6nnNikw//mrxnRu3G8dxVlLDK+LXDwzG077SP3I/dxmhjcOd+Kmpb998tiQIvc5DNiaJKpczT JIFxF2hRv32+JnElSgXSGNHxP4rDDevCzC1ICOjKENo5jEYUlhAHzIKy1LZokmhoQyrXLHWez ++mBu3KUoKRkd7aEWg6vQ5vWiC+p0RR3vS5rcOrDIaOMltYauvGbIGPGxXHM2MdmcOulgu3iP xPhqaOc/A8Pwt3+7iUlBdCXZqvmU5YawfHpuSZvUlNsqcxWgAdxPzs0BsfTUdqLbRfOcdiun4 xM01xNv7jP+F4PIwnbHNho6S0qjoaeHXURzQENKGx/Q5zgHe516v3tBxybFjV86Vlw5RNSJ4i /St1g/S4AQ1FKd2KyzFbjCMmG4wcPw+K5H7/Cu/MlXdON5DAnfSIGQSV/sSz6LSm0NFBWXgOC HMHq7DxKKnD+Chlo4LArLTUGuG5aL5TssA+ziWRBxtyQx1jHSDI0cIwqL3zS471DGegstr71M Ycms+PEAo2s9MokgRv7AjYdTkJ8PgyLPc611wuFHu/F6gol7Z5xvEZG+x0rocG3x5guTdEgb1 NE5J3zMxR0Yrfi9YmeDaOGam9TAo70j5A+ciAw== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, 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 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. Arnd