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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AB6CC433F5 for ; Fri, 11 Feb 2022 06:25:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240679AbiBKGZf (ORCPT ); Fri, 11 Feb 2022 01:25:35 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229849AbiBKGZe (ORCPT ); Fri, 11 Feb 2022 01:25:34 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BE32FE6 for ; Thu, 10 Feb 2022 22:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644560734; x=1676096734; h=date:from:to:cc:subject:message-id:mime-version; bh=apOCdSx56OUiu3kduwnCNTPvU+GxrnSwBeFMzCEGc3E=; b=Giavkk0+FlV4KxGPdApB2rJu5/jDCoU5nB9eHmtxaqgz++wDLeryDBZ1 ijrIU73uoPxeN/iy6Ono0WzHZWiwD41XDrJeLCjrd04EcelcqWAAd4oWq zWDlxjWYJ0j+18HvcZPGKVgfdTTxLiTn1VrTPrggxHAprvdtu5Uhmg8qw zVBhN4kHRGooLCSS3IfYi8Mk4s4yscXWBXhxGtkCRmUSvYDO4sTz1SKdu SCHlvZMJKyt3FByekfluh1ZGKaPyvjUwhoU+jZ5nQ+G8HbWcbVwoHHAZc 9cLulOJh/OCFTKv8DOJkMgv2qqj2+tt7sITr9k5c3mbqsLi4VGtCxthWv g==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="249617607" X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="249617607" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 22:25:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="774149087" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 10 Feb 2022 22:25:32 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nIPN5-0004Dx-MX; Fri, 11 Feb 2022 06:25:31 +0000 Date: Fri, 11 Feb 2022 14:25:10 +0800 From: kernel test robot To: Arnd Bergmann Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: drivers/media/platform/marvell-ccic/mmp-driver.c:366:34: warning: unused variable 'mmpcam_of_match' Message-ID: <202202111412.5iSkckar-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f1baf68e1383f6ed93eb9cff2866d46562607a43 commit: b408b611eb951594691abfee8ca687b405d27757 mips: ar7: convert to CONFIG_COMMON_CLK date: 8 months ago config: mips-buildonly-randconfig-r001-20220211 (https://download.01.org/0day-ci/archive/20220211/202202111412.5iSkckar-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f6685f774697c85d6a352dcea013f46a99f9fe31) 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 mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b408b611eb951594691abfee8ca687b405d27757 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b408b611eb951594691abfee8ca687b405d27757 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/media/platform/atmel/ drivers/media/platform/marvell-ccic/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/media/platform/marvell-ccic/mmp-driver.c:366:34: warning: unused variable 'mmpcam_of_match' [-Wunused-const-variable] static const struct of_device_id mmpcam_of_match[] = { ^ 1 warning generated. vim +/mmpcam_of_match +366 drivers/media/platform/marvell-ccic/mmp-driver.c bb0a896e3d5083 drivers/media/video/marvell-ccic/mmp-driver.c Jonathan Corbet 2011-12-30 365 83c40e6611ec1e drivers/media/platform/marvell-ccic/mmp-driver.c Lubomir Rintel 2019-05-28 @366 static const struct of_device_id mmpcam_of_match[] = { 83c40e6611ec1e drivers/media/platform/marvell-ccic/mmp-driver.c Lubomir Rintel 2019-05-28 367 { .compatible = "marvell,mmp2-ccic", }, 83c40e6611ec1e drivers/media/platform/marvell-ccic/mmp-driver.c Lubomir Rintel 2019-05-28 368 {}, 83c40e6611ec1e drivers/media/platform/marvell-ccic/mmp-driver.c Lubomir Rintel 2019-05-28 369 }; 08aac0e32fe44b drivers/media/platform/marvell-ccic/mmp-driver.c Lubomir Rintel 2019-07-22 370 MODULE_DEVICE_TABLE(of, mmpcam_of_match); 67a8dbbc4e04cd drivers/media/video/marvell-ccic/mmp-driver.c Jonathan Corbet 2011-06-11 371 :::::: The code at line 366 was first introduced by commit :::::: 83c40e6611ec1e548ece34f6940f516333abc16a media: marvell-ccic/mmp: add devicetree support :::::: TO: Lubomir Rintel :::::: CC: Mauro Carvalho Chehab --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org