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 X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42B8DC2BBCA for ; Wed, 16 Dec 2020 08:47:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A141921D81 for ; Wed, 16 Dec 2020 08:47:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A141921D81 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 33CA66B0072; Wed, 16 Dec 2020 03:47:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2EBE28D0003; Wed, 16 Dec 2020 03:47:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 202CE8D0002; Wed, 16 Dec 2020 03:47:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0022.hostedemail.com [216.40.44.22]) by kanga.kvack.org (Postfix) with ESMTP id 06D8B6B0072 for ; Wed, 16 Dec 2020 03:47:04 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id BF1B8824999B for ; Wed, 16 Dec 2020 08:47:03 +0000 (UTC) X-FDA: 77598515526.29.straw52_4a12e992742a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin29.hostedemail.com (Postfix) with ESMTP id 9B5EE18087367 for ; Wed, 16 Dec 2020 08:47:03 +0000 (UTC) X-HE-Tag: straw52_4a12e992742a X-Filterd-Recvd-Size: 4510 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by imf32.hostedemail.com (Postfix) with ESMTP for ; Wed, 16 Dec 2020 08:47:02 +0000 (UTC) Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 842AD1F44662; Wed, 16 Dec 2020 08:47:01 +0000 (GMT) Date: Wed, 16 Dec 2020 09:46:58 +0100 From: Boris Brezillon To: Nicolas Pitre Cc: Souptick Joarder , kernel test robot , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, Linux Memory Management List , Boris Brezillon Subject: Re: [linux-next:master 6404/13375] drivers/i3c/master/mipi-i3c-hci/core.c:780:34: warning: unused variable 'i3c_hci_of_match' Message-ID: <20201216094658.67472406@collabora.com> In-Reply-To: <5np5642-89p-61no-4027-475p936rn078@syhkavp.arg> References: <202012150402.NnbPvD05-lkp@intel.com> <5np5642-89p-61no-4027-475p936rn078@syhkavp.arg> Organization: Collabora X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, 15 Dec 2020 22:28:42 -0500 (EST) Nicolas Pitre wrote: > On Wed, 16 Dec 2020, Souptick Joarder wrote: > > > On Tue, Dec 15, 2020 at 1:31 AM kernel test robot wrote: > > > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > > head: 7bba37a1591369e2e506d599b8f5d7d0516b2dbc > > > commit: 9ad9a52cce2828d932ae9495181e3d6414f72c07 [6404/13375] i3c/master: introduce the mipi-i3c-hci driver > > > config: x86_64-randconfig-a013-20201215 (attached as .config) > > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d38205144febf4dc42c9270c6aa3d978f1ef65e1) > > > reproduce (this is a W=1 build): > > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > > chmod +x ~/bin/make.cross > > > # install x86_64 cross compiling tool for clang build > > > # apt-get install binutils-x86-64-linux-gnu > > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=9ad9a52cce2828d932ae9495181e3d6414f72c07 > > > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > > git fetch --no-tags linux-next master > > > git checkout 9ad9a52cce2828d932ae9495181e3d6414f72c07 > > > # save the attached .config to linux build tree > > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 > > > > > > If you fix the issue, kindly add following tag as appropriate > > > Reported-by: kernel test robot > > > > > > All warnings (new ones prefixed by >>): > > > > > > >> drivers/i3c/master/mipi-i3c-hci/core.c:780:34: warning: unused variable 'i3c_hci_of_match' [-Wunused-const-variable] > > > static const struct of_device_id i3c_hci_of_match[] = { > > > ^ > > > 1 warning generated. > > > > CONFIG_OF not enabled. > > > > Does it make sense to remove of_match_ptr() ? > > > > static struct platform_driver i3c_hci_driver = { > > .probe = i3c_hci_probe, > > .remove = i3c_hci_remove, > > .driver = { > > .name = "mipi-i3c-hci", > > .of_match_table = of_match_ptr(i3c_hci_of_match), > > }, > > That... or having #ifdef CONFIG_OF around struct of_device_id. Or adding a __maybe_unused qualifier. Can you send patch for this so I can apply it before sending my PR to Linus? > > > > vim +/i3c_hci_of_match +780 drivers/i3c/master/mipi-i3c-hci/core.c > > > > > > 779 > > > > 780 static const struct of_device_id i3c_hci_of_match[] = { > > > 781 { .compatible = "mipi-i3c-hci", }, > > > 782 {}, > > > 783 }; > > > 784 MODULE_DEVICE_TABLE(of, i3c_hci_of_match); > > > 785 > > > > > > --- > > > 0-DAY CI Kernel Test Service, Intel Corporation > > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > >