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 DD344C433DB for ; Tue, 30 Mar 2021 09:59:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CC57B6187E for ; Tue, 30 Mar 2021 09:59:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC57B6187E 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 52ABB6B0071; Tue, 30 Mar 2021 05:59:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4DBC26B007D; Tue, 30 Mar 2021 05:59:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3A29D6B0080; Tue, 30 Mar 2021 05:59:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0119.hostedemail.com [216.40.44.119]) by kanga.kvack.org (Postfix) with ESMTP id 1A3116B0071 for ; Tue, 30 Mar 2021 05:59:03 -0400 (EDT) Received: from smtpin31.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id CBAF4640E for ; Tue, 30 Mar 2021 09:59:02 +0000 (UTC) X-FDA: 77976092124.31.290E3B6 Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) by imf25.hostedemail.com (Postfix) with ESMTP id 9F65E6000101 for ; Tue, 30 Mar 2021 09:59:00 +0000 (UTC) Received: by mail-yb1-f182.google.com with SMTP id j2so16808349ybj.8 for ; Tue, 30 Mar 2021 02:59:02 -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=EO2lU8GwPWcrxAkv9uO07JNl8w9018+K1G2whyvU8iY=; b=zjAuB2YcfW4ayDSn7FrZYMxrCSmW+ixcHr+Fi1154nIaZl6QT3GoZW1M13rpKzbtl6 P126xydrMK3+OFOR6iZK/OXkV5ew98RS/NF22GnSIvwfBNSzoKV8+OFLwZjXRLgxCYOz mVeqSH/kHCM6cGJNv7qTDEECuWaWjeH4fbx7j63Aq98+p+xqHZ2NKIvSwsDOFBw9nOYn dskNJBiEqwDD0FRQhMVewoXxL4k2MjisDOBvk4lx3e12EryoH7IbDfONCTbEt0vej+Y2 bFq5pfr+ARxgHNG6G/LXqvhNE6qNlgy9NGzhbS0TMWpS5ik0lE4sy0jodPKjEfoVYqyi /SAQ== 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=EO2lU8GwPWcrxAkv9uO07JNl8w9018+K1G2whyvU8iY=; b=WE+c6+Ew4aZpAK7bGL/oEsXR7hqDRtu/VM0o2siMgheHMro822n192AA79i4WN9+sD gRATkh3NQKD1bdgjgapp7q8xGghCjFFwsRjweScjZukNvaJlOcPTDO+vkRB6WcYIYhHN RX5huzwOB+wmgHNaiVtlH7Hu67deeuiFO3KEzubAdjl5DHpnxjFV2sufim/PQyTPw7eT KgEn7Hj07h9aQTc+Q4YRAMNHR4lu9ms52MNyKXJExgMV9MEIhL3A5dNgRZZGxqiik4vB rqBHwpbH4qVuwlAxYg7cH3tb1hshrIJHyMX4yYkVbUSVfhA+agnjpeDFypfKYevzHRqG 3Q3A== X-Gm-Message-State: AOAM530T1JcEEEMqPR94FelZ9iJKJ3a8gjijtrnF/CicG/W64v6Jbg94 U1IZQ48O21gdlWKst3dZPNCTUBKog94YJ5UM/O5P1Q== X-Google-Smtp-Source: ABdhPJyKgapVu87cKzzkxqzXrpdiU3S0QgzNlirlqBASxYY5W3nGH2PmRUPtCybHDsetlouu8384bt6ae+3+K2Dn4Ac= X-Received: by 2002:a25:a0cd:: with SMTP id i13mr45004230ybm.302.1617098341672; Tue, 30 Mar 2021 02:59:01 -0700 (PDT) MIME-Version: 1.0 References: <202103301259.dhlOOcXV-lkp@intel.com> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 30 Mar 2021 11:58:50 +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-Server: rspam05 X-Rspamd-Queue-Id: 9F65E6000101 X-Stat-Signature: pzd19jtm3try16rpa7xk41gsdpkekrni Received-SPF: none (baylibre.com>: No applicable sender policy available) receiver=imf25; identity=mailfrom; envelope-from=""; helo=mail-yb1-f182.google.com; client-ip=209.85.219.182 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1617098340-596078 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:55 AM Andy Shevchenko wrote: > > On Tue, Mar 30, 2021 at 11:26:17AM +0200, Bartosz Golaszewski wrote: > > 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? > > Ah, you simply missed to add it to the platform driver structure. > > No, it's not false positive. > > > > > 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); > > -- > With Best Regards, > Andy Shevchenko > > Indeed. I'll send a patch. Bartosz