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=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 35A16C433DB for ; Tue, 30 Mar 2021 09:26:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 005846196A for ; Tue, 30 Mar 2021 09:26:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 005846196A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6614C6B0071; Tue, 30 Mar 2021 05:26:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 610C86B007D; Tue, 30 Mar 2021 05:26:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4DA226B0080; Tue, 30 Mar 2021 05:26:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0244.hostedemail.com [216.40.44.244]) by kanga.kvack.org (Postfix) with ESMTP id 311556B0071 for ; Tue, 30 Mar 2021 05:26:30 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id DEEDC181AEF3F for ; Tue, 30 Mar 2021 09:26:29 +0000 (UTC) X-FDA: 77976010098.09.619769A Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) by imf19.hostedemail.com (Postfix) with ESMTP id 78A2C90009DE for ; Tue, 30 Mar 2021 09:26:21 +0000 (UTC) Received: by mail-yb1-f178.google.com with SMTP id v107so11728529ybi.9 for ; Tue, 30 Mar 2021 02:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YskxgI2eBL7WCfGtW9xSTnMDtjUxiMBZffJbF8N8Ozo=; b=WCEoa/9Zowb12z6vfkVuaHoBncOuPDZRhpYQk26gDabflChyiYmkFZUQF9B39PCAaJ +e3JBcwgPiQZoewDngrtYlJNGNymUyOgX+zITXjE8UTt/DomC0jd76wDdRStgDajuUFe Aq3MmPkPo6BSpI827KYvzn7lRottaM5D2s4HZH3KllrOUgb0nFvIMRN3aXnUDKPsa/h9 pkR91F9zz344TCJH9Azu2TFrXQD0omIDutJiYDu7AXsOC6QuqDI8zNpOsxux1256Y3Cn EAzmlJHQMV99e+m0WUoi8k2SDPLhFHvK7fHyQAAPCpGFaD2vQN5Y0xBdoX2J7PWjU0SQ 7uXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YskxgI2eBL7WCfGtW9xSTnMDtjUxiMBZffJbF8N8Ozo=; b=heIFWlagPL0tJLR8YXDQJnGdRlyfFYJ9C4SOqI96xYhW7Q3CeOr49YwtUKI1UBoNF4 pOBOAIv3Q6SvZvvzrfkBZGXhSxY/uO07x5tyT5tbv9h9wWquEG/E7UFTVrU0Q9XecBVK nGfK1shgl/1re6EmCI0xM8ROeewNLhBbtHRh8oX4Mf+6FCTZ4xbYs9vR6bpg1e6SGdvo 8ubPwzqrhp4rGfnL8IHKUx45ggjlsM9K3Fd/Cj8czZytGxN/Wu8chfYHJp16qZuCGRFk SDxbBmRffdXQwZvDiH9knl7y5M/6Z7qPjW8lJeVKxZ3+ib7Flb3bbhh17RgBiWSt5jmd GMxw== X-Gm-Message-State: AOAM531/WP8l7gpYWMZa9DY1mjuf24enGVtahwT+ZWooAKsH/chysq7f ldYDcJW7A6dVsKl3v24PpOflqMgOXihZUKdMR1RV7A== X-Google-Smtp-Source: ABdhPJyTVbVddWiCE8wq/oCl0vrI0olsf4xvX0zkigWwTRiXWWCmXbTQEbnY4TgCWJ2gerbINBmciga3m99J5ShiiH0= X-Received: by 2002:a25:768c:: with SMTP id r134mr11869574ybc.366.1617096388448; Tue, 30 Mar 2021 02:26:28 -0700 (PDT) MIME-Version: 1.0 References: <202103301259.dhlOOcXV-lkp@intel.com> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 30 Mar 2021 11:26:17 +0200 Message-ID: Subject: Re: [linux-next:master 7313/8469] drivers/gpio/gpio-sim.c:388:34: warning: unused variable 'gpio_sim_of_match' To: Andy Shevchenko Cc: kernel test robot , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, Linux Memory Management List , Linus Walleij Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 78A2C90009DE X-Stat-Signature: 1bpziku5ordwmeso6axmnzgcx3ddx6rt X-Rspamd-Server: rspam02 Received-SPF: none (baylibre.com>: No applicable sender policy available) receiver=imf19; identity=mailfrom; envelope-from=""; helo=mail-yb1-f178.google.com; client-ip=209.85.219.178 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1617096381-168919 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, Mar 30, 2021 at 11:11 AM Andy Shevchenko wrote: > > On Tue, Mar 30, 2021 at 12:15:04PM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 9d49ed9ca93b8c564033c1d6808017bc9052b5db > > commit: 3f0279eb9e3767f37939358a42054c226503233a [7313/8469] gpio: sim: new testing module > > config: arm-randconfig-r001-20210330 (attached as .config) > > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 482283042f795ecc27838a3b2f76b5494991401c) > > 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 arm cross compiling tool for clang build > > # apt-get install binutils-arm-linux-gnueabi > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3f0279eb9e3767f37939358a42054c226503233a > > 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 3f0279eb9e3767f37939358a42054c226503233a > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>): > > > > >> drivers/gpio/gpio-sim.c:388:34: warning: unused variable 'gpio_sim_of_match' [-Wunused-const-variable] > > static const struct of_device_id gpio_sim_of_match[] = { > > ^ > > 1 warning generated. > > of_match_ptr() should be removed AFAIU the case. > I'm not using it though... Other drivers do the same thing as I did here. Can this be a false positive? Bart > > vim +/gpio_sim_of_match +388 drivers/gpio/gpio-sim.c > > > > 387 > > > 388 static const struct of_device_id gpio_sim_of_match[] = { > > 389 { .compatible = "gpio-simulator" }, > > 390 { } > > 391 }; > > 392 MODULE_DEVICE_TABLE(of, gpio_sim_of_match); > > 393 > > > > --- > > 0-DAY CI Kernel Test Service, Intel Corporation > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > > > > -- > With Best Regards, > Andy Shevchenko > >