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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 8F9ACC4361B for ; Wed, 16 Dec 2020 03:28:47 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E171120700 for ; Wed, 16 Dec 2020 03:28:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E171120700 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fluxnic.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3432A6B0036; Tue, 15 Dec 2020 22:28:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2F49D6B005D; Tue, 15 Dec 2020 22:28:46 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 231C26B0068; Tue, 15 Dec 2020 22:28:46 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0211.hostedemail.com [216.40.44.211]) by kanga.kvack.org (Postfix) with ESMTP id 0D6466B0036 for ; Tue, 15 Dec 2020 22:28:46 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id C20D4181AEF15 for ; Wed, 16 Dec 2020 03:28:45 +0000 (UTC) X-FDA: 77597713410.16.pin23_1e1013a27428 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 9B4CA100E6903 for ; Wed, 16 Dec 2020 03:28:45 +0000 (UTC) X-HE-Tag: pin23_1e1013a27428 X-Filterd-Recvd-Size: 5335 Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Wed, 16 Dec 2020 03:28:44 +0000 (UTC) Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 3E73C9FEEB; Tue, 15 Dec 2020 22:28:44 -0500 (EST) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=Soi7nbwpJGykHfUAsC4PXX9Px+k=; b=rQAQ46 UA0pe59HWInoAYNnLEsR3YzPciV7DMSd+/OkPRDgjgTzj+2U6Q/iiRQk87wpUvdR qmuIxmjeaHJ196RIN5ykR2F9NR6qsxwrXw1aLVNh/+fxxT/H8E7K3CtgMVycX0vc lIk3oNRExqF+alIanxktb6WqMcisvx7Ypxc4o= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 2765D9FEEA; Tue, 15 Dec 2020 22:28:44 -0500 (EST) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=zaI1UjSHoeKnlabVUIp+3qqTJ4AyOfCK2/bTRQ+01pM=; b=NrTmQeErx1UGZ0iFPTQF8hoKCANuoulEW2AbI+ixHllRbBw66Q5qRSpNaN89kJDYOqGzShL/IBiCpBUcWQBzjYf4/R3XZBC54oNcrDGavn8Px6HHF6oPl4zpp6L87aYXQka/H2VMCdvrrjG0GmYq32mld4Q6lz7AcyRfxl7jbVQ= Received: from yoda.home (unknown [24.203.50.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id A1ADF9FEE9; Tue, 15 Dec 2020 22:28:43 -0500 (EST) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id 5AA572DA0AA7; Tue, 15 Dec 2020 22:28:42 -0500 (EST) Date: Tue, 15 Dec 2020 22:28:42 -0500 (EST) From: Nicolas Pitre To: Souptick Joarder cc: 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' In-Reply-To: Message-ID: <5np5642-89p-61no-4027-475p936rn078@syhkavp.arg> References: <202012150402.NnbPvD05-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: CC8E49CC-3F4E-11EB-8385-74DE23BA3BAF-78420484!pb-smtp2.pobox.com 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 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. > > 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 >