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 22089C433E9 for ; Tue, 9 Feb 2021 16:33:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9404064EC2 for ; Tue, 9 Feb 2021 16:33:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9404064EC2 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 CC8316B0005; Tue, 9 Feb 2021 11:33:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C4F9E6B006C; Tue, 9 Feb 2021 11:33:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B17EA6B006E; Tue, 9 Feb 2021 11:33:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0095.hostedemail.com [216.40.44.95]) by kanga.kvack.org (Postfix) with ESMTP id 9890A6B0005 for ; Tue, 9 Feb 2021 11:33:18 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 5FBA1824805A for ; Tue, 9 Feb 2021 16:33:18 +0000 (UTC) X-FDA: 77799274476.25.value26_560341727608 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id 271FD1804E563 for ; Tue, 9 Feb 2021 16:33:18 +0000 (UTC) X-HE-Tag: value26_560341727608 X-Filterd-Recvd-Size: 5340 Received: from mail-vk1-f176.google.com (mail-vk1-f176.google.com [209.85.221.176]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Tue, 9 Feb 2021 16:33:17 +0000 (UTC) Received: by mail-vk1-f176.google.com with SMTP id a6so4063164vkb.8 for ; Tue, 09 Feb 2021 08:33:17 -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=ylRfpxij4Gi4Y2NFiIFM8ci8361C7ERTwaut+6Gw6P8=; b=pzlBKSduIY6E/1U49cQrUm7SW5HZWbIxSVmqud1BhOQs1IRjSRPQazG/S/NFl5gfvw f+OnKfBamQJ8/GsotKiHvaORZMwEMSwQ4rvXH5TNk0YtcyquPWAH5g86knPHlltOZaBM 1Iyy+s+kpD0Lo9vYPcpU+54ZKTR8YJfiPwJtNzBQ6WB5fzy+EuGj+qjyTGdfz2SbOIrs +IEeQObJHU8yLWFjyyhqGaw3NP8QiZ+1riJfXIWBo9jOMwtXII35ZFeoJABEHreWYbNZ 4vXm+qtgJK4eB/k2R13fDyXpp7j5Cg0Hcd4pGvDpZ6VHlIPecN8QoMrNtYQd8oSg2kXD kAQw== 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=ylRfpxij4Gi4Y2NFiIFM8ci8361C7ERTwaut+6Gw6P8=; b=DlfqtrFMPlphM3IJJIqT7Tnu1Q+Nd01QjpoB8EwKurpmvjgL95ck4uKk9Dq4eR6fEo 6icARNx5Xty991t6ogwR/WJxYT9nrqf6EOwhypKR6jKKXBz7iRKhxYWQU0SuzWVfWez1 oJBs5tSA2W9JcgORawIgW6oDPuC85Mex4dpgmNoQxZHNeVql07HdBylzn1KgpNMUmQKd r02ZCZA3p+SSRCvJhjnlgvj0ZywDBAU8f0L9fLw4pAyjvC71tjR6OhT7eRkFps+gLs9/ 4H11jnQPZAzEiM6h86B6b65sDICl0G+SEcLk80sN5noOBbxjHboBPgjniEowmmFUIwub YQJw== X-Gm-Message-State: AOAM533R4AsMwIkJVX9NSsJhS6S7fK659SUx3iCUll9xDjSp9l+9D4Mf SdI+nj/NFzAKlpExUNyWEw6ro4XVqXl62aGY4zE= X-Google-Smtp-Source: ABdhPJwieyku/XQ0UFs4DiMfMTe2aypr0DTmr2geaNTftF9S1wLUVMT8hgf4RnG8YE5FYZQe0PJS/1Bdq0HYFO1N/Vo= X-Received: by 2002:a1f:da45:: with SMTP id r66mr9976098vkg.6.1612888397062; Tue, 09 Feb 2021 08:33:17 -0800 (PST) MIME-Version: 1.0 References: <202102070252.HkjUQntk-lkp@intel.com> In-Reply-To: <202102070252.HkjUQntk-lkp@intel.com> From: Souptick Joarder Date: Tue, 9 Feb 2021 22:03:05 +0530 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: kernel test robot Cc: George McCollister , 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 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. > > > 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