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=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 1FEC7C433E0 for ; Tue, 9 Feb 2021 17:18:28 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8281164EC4 for ; Tue, 9 Feb 2021 17:18:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8281164EC4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B65C16B006E; Tue, 9 Feb 2021 12:18:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B172F6B0070; Tue, 9 Feb 2021 12:18:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A2B926B0071; Tue, 9 Feb 2021 12:18:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0040.hostedemail.com [216.40.44.40]) by kanga.kvack.org (Postfix) with ESMTP id 85B666B006E for ; Tue, 9 Feb 2021 12:18:26 -0500 (EST) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 68C89C5C9 for ; Tue, 9 Feb 2021 17:18:25 +0000 (UTC) X-FDA: 77799388170.22.grip17_290999727609 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin22.hostedemail.com (Postfix) with ESMTP id 30266180AE04C for ; Tue, 9 Feb 2021 17:18:25 +0000 (UTC) X-HE-Tag: grip17_290999727609 X-Filterd-Recvd-Size: 5844 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by imf20.hostedemail.com (Postfix) with ESMTP for ; Tue, 9 Feb 2021 17:18:24 +0000 (UTC) Received: by mail-ot1-f50.google.com with SMTP id s107so18127154otb.8 for ; Tue, 09 Feb 2021 09:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QY7kQDHxUgMlJkA2AQGwx0SUPpLYoccxOTueugt+18w=; b=fG2RtB4FQCQB3ZB07wZQZG5E7tZ+7w2awxhgZ1OUK6Ea3/L0A8jQoFWjfgCLbaOx/J U4PdGfnxbCNoe0ey8GWloRTCQfzF3F4zD74GKVEKagh3FB1pbzG0o1VKcuSnnWO42Sdk bUzjnJkQ3CqCKV4fHWTvzRg6dN6n0FTHfYYWN20pt1s/1R9M24Zru5sWXomLKrPIZtue vAHhWEAVJyKaBamRlny9KNguRJD7yj62TbN1qVQlSAXY62CMcb7atAzRL4njwIOZTeC0 Bi0kMyrom4c4+SWQk6j7maO2qHGCOGJJU7Cy4TzWAXK7fQw3SMPCegD/I9XoGkk9RN0I NDrA== 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=QY7kQDHxUgMlJkA2AQGwx0SUPpLYoccxOTueugt+18w=; b=a1OtVRnqDIb0b1iT2Wim9ana7bTrJHyrVB7jd0UpNmVKY1fr7m5U6gkK/J2MVrBYm+ 8BQFR1cxS8DdZn4u/zRPyPhfHp7odsVgjvnQWDZV0cyvxSskWH7fySY+/Mx8WMju/Gp2 wc89G2uTGcmEmB2ZT/7l99X2zAbiUg9DE93/DIfA19fssThn713lf7W328OyyYzsEfvH PhOIux8B+xaMY83OZSO7wLP6uI2SnHhVht25CDbgQTf6DwE1RuM6jvUDft6kY1rGAEqJ bEVIDJfJxbUuME2S+8SVSU+qKQ3Y08JEGe4cqXmindPWH3ODHA8U1csT59tYRCIm4Vk0 2h0Q== X-Gm-Message-State: AOAM533BLRroM63ejYmWiIYbrvOPC6dS5Qf0AQ27GRc/g3/DykjIaNYZ E8mWkskfYdaugCOHFUsGLcLq3SAm1LMbL04cYA== X-Google-Smtp-Source: ABdhPJwKE0XIBe/ZPsQ2IHEg/SOwAA3WkrFrPM2TWlX1p/MuAz9jkmajt4yDd047FqBtxnWoCyHH8apNSf2XV+VaX2A= X-Received: by 2002:a9d:e82:: with SMTP id 2mr16732508otj.287.1612891103970; Tue, 09 Feb 2021 09:18:23 -0800 (PST) MIME-Version: 1.0 References: <202102070252.HkjUQntk-lkp@intel.com> In-Reply-To: From: George McCollister Date: Tue, 9 Feb 2021 11:18:12 -0600 Message-ID: Subject: Re: [linux-next:master 3824/6048] drivers/net/dsa/xrs700x/xrs700x_i2c.c:127:34: warning: unused variable 'xrs700x_i2c_dt_ids' To: Souptick Joarder Cc: kernel test robot , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, Linux Memory Management List , Jakub Kicinski , Florian Fainelli , Andrew Lunn , Vladimir Oltean Content-Type: text/plain; charset="UTF-8" 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, Feb 9, 2021 at 10:33 AM Souptick Joarder wrote: > > On Sat, Feb 6, 2021 at 11:32 PM kernel test robot wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 59fa6a163ffabc1bf25c5e0e33899e268a96d3cc > > commit: ee00b24f32eb822f55190efd1078fe572e931d5c [3824/6048] net: dsa: add Arrow SpeedChips XRS700x driver > > config: x86_64-randconfig-a011-20210207 (attached as .config) > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476) > > 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=ee00b24f32eb822f55190efd1078fe572e931d5c > > 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 ee00b24f32eb822f55190efd1078fe572e931d5c > > # 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/net/dsa/xrs700x/xrs700x_i2c.c:127:34: warning: unused variable 'xrs700x_i2c_dt_ids' [-Wunused-const-variable] > > static const struct of_device_id xrs700x_i2c_dt_ids[] = { > > ^ > > 1 warning generated. > > I think, this can defined under #ifdef CONFIG_OF. Was this robot reporting this warning for other DSA drivers? A lot of them appear to use of_device_id in the same manner (unless I'm missing something). Do we need to do something DSA wide to deal with this? > > > > > > > vim +/xrs700x_i2c_dt_ids +127 drivers/net/dsa/xrs700x/xrs700x_i2c.c > > > > 126 > > > 127 static const struct of_device_id xrs700x_i2c_dt_ids[] = { > > 128 { .compatible = "arrow,xrs7003e", .data = &xrs7003e_info }, > > 129 { .compatible = "arrow,xrs7003f", .data = &xrs7003f_info }, > > 130 { .compatible = "arrow,xrs7004e", .data = &xrs7004e_info }, > > 131 { .compatible = "arrow,xrs7004f", .data = &xrs7004f_info }, > > 132 {}, > > 133 }; > > 134 MODULE_DEVICE_TABLE(of, xrs700x_i2c_dt_ids); > > 135 > > > > --- > > 0-DAY CI Kernel Test Service, Intel Corporation > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org -George