Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2669760pxb; Mon, 11 Jan 2021 16:40:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcEqkU5y4MRj/DI0Vt2EsGfB09IIwjj1R6v1z2UP04nAckOlRKm87XJjKEW4U5UxsvK/UD X-Received: by 2002:aa7:c64e:: with SMTP id z14mr1384518edr.69.1610412039295; Mon, 11 Jan 2021 16:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610412039; cv=none; d=google.com; s=arc-20160816; b=HbtcUZCJMMRl23kzf0nY2+iI2kXZvQ9U3KF4GaKIxdyWjaY4xYS1J1sZnVyV4s+PMp ydWF5wLLZeud6Ahnnz+6wn/LOhcvbjl6VL3E3t4nZTq0RaZOsG2XVsiDu832dAAhjBwt gcipGWrPf9BeH9DHUo/WUeOpvTCFYcIrZ2oMaKhubzX/0bNYwkAEimN55wwD+7WRi/qH g20bJdG/N32lPAbLJFIcSK9pThbQtvQ494eJZMBioYQbfbqxkxlu3W8tSfIKv+oGgUFm 7W4dqVP42CP6D91g9aARqco9wORXFusbDFlyYLbj1J8sv8K1u7cdcB+UOO2VCxVWNhCg HMSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MQIcMMQr4fBdNn/n7xtKL3xisvfpOYXLZCgeqAib7vs=; b=jlPHxEofr7fV9sWlg3nYBlAaxfYzFmC6c7VYCQILI5bomdrPi0d0CNP8Obr6BkHTDo sZMpNauh3Fsqmt22Cp+EtM4KjlJqE1uaj2ESxlU51hg2DbxDngJ2h156xMZBAZoZsedT L9g6KYML2AvM1O5AK52r7CYaZ8S0NstNCqGn5NY7NprvRkr9gu5g5Slg5kT84LnepB2c rDLM2h3f5e/EfZQGFXf1Q1L2bnkwo1Fpb9OL8y1x/Pv4aiVTw4tTfuk0aSEgyQW4T5ag uV0etZQ++pew4ix3RkCVmwmtrViEQ74/89eNEi5aHw+L1MlRi8J5X1hWk0Ys4YGQUI1I SxIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=thTK+QwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si379260eji.656.2021.01.11.16.40.15; Mon, 11 Jan 2021 16:40:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=thTK+QwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726347AbhAKMbk (ORCPT + 99 others); Mon, 11 Jan 2021 07:31:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbhAKMbk (ORCPT ); Mon, 11 Jan 2021 07:31:40 -0500 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19DBDC061786 for ; Mon, 11 Jan 2021 04:31:00 -0800 (PST) Received: by mail-pg1-x52b.google.com with SMTP id c132so12449841pga.3 for ; Mon, 11 Jan 2021 04:31:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MQIcMMQr4fBdNn/n7xtKL3xisvfpOYXLZCgeqAib7vs=; b=thTK+QwCItEq3I8wVJHTDhKVF+aeXltkSBKfOLzbv/D9m5QIAWwaKkaoKdiYTY4K8+ Y3RJUSTFLmCbcMvr5kUWy93Alha+ZQ4S1g57UWDQn1F1/FUwmsAGsUCwrDx2dZyKrWdq mhPv8BFd8fXzpewT18pQ6PwOQyz7WQbLvos9upnGg588eT73+baNrkn6m+qgM6xQPQ9y kvl71upblM+Bo1xCNtcNWXacB4adFJIe/fhrIcb5aGNv7EB46qKrCffuh0ZX9k0jQLCL aFX1oUD9kdoTgG2xy2KBTyIksq2eFU77+uG3xz0Yu9/saEdjPVYnzDhc9uRKF6eikoTV ZQvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MQIcMMQr4fBdNn/n7xtKL3xisvfpOYXLZCgeqAib7vs=; b=bNW0E8WtMI3XAe9NmnFc5jfnOmp//39mWUC2+cgKJ0DA6avFJQT9FImXHQSzPemPTA OZQWCvspJoCwDSOFtHdMpd57wcaUP/AgmYruVHEnYNbs/IqW35e5ExwH1Kt4NrX5oY+Q Uu3k0dk1CdsZwOS1H5PLvIx+Rvnf9d+DDcZfd2iI3TCY527UCfhv/oeVuHiIbbjf3QB5 sBQIsgt9Gl0DRcjrguasI7rkhABwAqy7eVBd/B/yWQXMMNKt6yZPp9Lp/3Lk3wbvg4w3 ieCz32DiJISQ4gNbZr1nFGBq0fX3Oooye6BmQYqVU2RS41ylgYqsjJtDtbCeDaYVQGnK znJA== X-Gm-Message-State: AOAM532e1PZHk0W1INFDS8qV8Adr7xJHYWZ+Vm/ggzhTXey9EygaDuYM k7AzUIBsEOhzZTDCf0ZVSuD0ExlgeH0= X-Received: by 2002:a65:64ce:: with SMTP id t14mr19691144pgv.36.1610368259531; Mon, 11 Jan 2021 04:30:59 -0800 (PST) Received: from localhost (g178.219-103-173.ppp.wakwak.ne.jp. [219.103.173.178]) by smtp.gmail.com with ESMTPSA id e5sm18420926pfc.76.2021.01.11.04.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 04:30:58 -0800 (PST) Date: Mon, 11 Jan 2021 21:30:55 +0900 From: Stafford Horne To: kernel test robot Cc: Pawel Czarnecki , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org, Mateusz Holenko Subject: Re: drivers/soc/litex/litex_soc_ctrl.c:143:34: warning: unused variable 'litex_soc_ctrl_of_match' Message-ID: <20210111123055.GA2002709@lianli.shorne-pla.net> References: <202101070445.8Kz6oJcS-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202101070445.8Kz6oJcS-lkp@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 04:04:47AM +0800, kernel test robot wrote: > Hi Pawel, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 > commit: 22447a99c97e353bde8f90c2353873f27681d57c drivers/soc/litex: add LiteX SoC Controller driver > date: 8 weeks ago > config: x86_64-randconfig-a001-20210107 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5c951623bc8965fa1e89660f2f5f4a2944e4981a) > 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/torvalds/linux.git/commit/?id=22447a99c97e353bde8f90c2353873f27681d57c > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 22447a99c97e353bde8f90c2353873f27681d57c > # 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/soc/litex/litex_soc_ctrl.c:143:34: warning: unused variable 'litex_soc_ctrl_of_match' [-Wunused-const-variable] > static const struct of_device_id litex_soc_ctrl_of_match[] = { > ^ > 1 warning generated. > > > vim +/litex_soc_ctrl_of_match +143 drivers/soc/litex/litex_soc_ctrl.c > > 142 > > 143 static const struct of_device_id litex_soc_ctrl_of_match[] = { > 144 {.compatible = "litex,soc-controller"}, > 145 {}, > 146 }; > 147 > I don't use clang but GCC, and I cannot reproduce this warning. $ make drivers/soc/litex/litex_soc_ctrl.o CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool CC drivers/soc/litex/litex_soc_ctrl.o Also, I can see litex_soc_ctrl_of_match is used. I am not sure what is going on here. -Stafford