From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 154042F28 for ; Mon, 7 Feb 2022 13:56:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644242194; x=1675778194; h=date:from:to:cc:subject:message-id:mime-version; bh=1aDY4r2ofWXUc255tHvukM5ySPZSpaIy9ycCLTaLOl8=; b=Im17PKDcp0rh3ojUY21tkNpznGDc+GwELuDDb9PACTzM5VwruaxpA635 ECuA9xi8EwNCAaTzD31GyGcCIll25kEPDjoZnfJhHukTJCB9VGA2Sn2Mp R/tiFvmKVTG8eGZF6mTLOkpGhdET+efFWsGogmjU+PsyPU/RUSOQ785OC PNcjijkOgqLVZ88/6y2xGwJkDmrJExhj/5NPCCaSMhcNSEW3ytUih72JK 3nFmdVBgEreb18tbEiPFlb05UDzhu4UFN5Kd9j7ykSEV+EykUG+eIO3az lcQKVSFoixaEvJKGRhZsu9CPa9cRSBrAcj5r2qcThuVoVAzsr4EvhhDaN Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10250"; a="248667329" X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="248667329" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 05:56:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="499205206" Received: from lkp-server01.sh.intel.com (HELO 9dd77a123018) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 07 Feb 2022 05:56:30 -0800 Received: from kbuild by 9dd77a123018 with local (Exim 4.92) (envelope-from ) id 1nH4VK-0000aZ-7F; Mon, 07 Feb 2022 13:56:30 +0000 Date: Mon, 7 Feb 2022 21:56:17 +0800 From: kernel test robot To: Samuel Holland Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Maxime Ripard Subject: [sunxi:sunxi/clk-for-5.18 2/2] drivers/rtc/rtc-sun6i.c:689:30: error: use of undeclared identifier 'dev'; did you mean 'pdev'? Message-ID: <202202072137.HeXwgdkA-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git sunxi/clk-for-5.18 head: 4f88abd86756e574c733d2ca14676be335cc0058 commit: 4f88abd86756e574c733d2ca14676be335cc0058 [2/2] clk: sunxi-ng: Add support for the sun6i RTC clocks config: arm-randconfig-r013-20220207 (https://download.01.org/0day-ci/archive/20220207/202202072137.HeXwgdkA-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0d8850ae2cae85d49bea6ae0799fa41c7202c05c) 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/sunxi/linux.git/commit/?id=4f88abd86756e574c733d2ca14676be335cc0058 git remote add sunxi https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git git fetch --no-tags sunxi sunxi/clk-for-5.18 git checkout 4f88abd86756e574c733d2ca14676be335cc0058 # 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=arm SHELL=/bin/bash drivers/rtc/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/rtc/rtc-sun6i.c:689:30: error: use of undeclared identifier 'dev'; did you mean 'pdev'? ret = sun6i_rtc_ccu_probe(dev, chip->base); ^~~ pdev drivers/rtc/rtc-sun6i.c:672:52: note: 'pdev' declared here static int sun6i_rtc_probe(struct platform_device *pdev) ^ 1 error generated. vim +689 drivers/rtc/rtc-sun6i.c 668 669 static SIMPLE_DEV_PM_OPS(sun6i_rtc_pm_ops, 670 sun6i_rtc_suspend, sun6i_rtc_resume); 671 672 static int sun6i_rtc_probe(struct platform_device *pdev) 673 { 674 struct sun6i_rtc_dev *chip = sun6i_rtc; 675 int ret; 676 677 if (!chip) { 678 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); 679 if (!chip) 680 return -ENOMEM; 681 682 spin_lock_init(&chip->lock); 683 684 chip->base = devm_platform_ioremap_resource(pdev, 0); 685 if (IS_ERR(chip->base)) 686 return PTR_ERR(chip->base); 687 688 if (IS_REACHABLE(CONFIG_SUN6I_RTC_CCU)) { > 689 ret = sun6i_rtc_ccu_probe(dev, chip->base); 690 if (ret) 691 return ret; 692 } 693 } 694 695 platform_set_drvdata(pdev, chip); 696 697 chip->irq = platform_get_irq(pdev, 0); 698 if (chip->irq < 0) 699 return chip->irq; 700 701 ret = devm_request_irq(&pdev->dev, chip->irq, sun6i_rtc_alarmirq, 702 0, dev_name(&pdev->dev), chip); 703 if (ret) { 704 dev_err(&pdev->dev, "Could not request IRQ\n"); 705 return ret; 706 } 707 708 /* clear the alarm counter value */ 709 writel(0, chip->base + SUN6I_ALRM_COUNTER); 710 711 /* disable counter alarm */ 712 writel(0, chip->base + SUN6I_ALRM_EN); 713 714 /* disable counter alarm interrupt */ 715 writel(0, chip->base + SUN6I_ALRM_IRQ_EN); 716 717 /* disable week alarm */ 718 writel(0, chip->base + SUN6I_ALRM1_EN); 719 720 /* disable week alarm interrupt */ 721 writel(0, chip->base + SUN6I_ALRM1_IRQ_EN); 722 723 /* clear counter alarm pending interrupts */ 724 writel(SUN6I_ALRM_IRQ_STA_CNT_IRQ_PEND, 725 chip->base + SUN6I_ALRM_IRQ_STA); 726 727 /* clear week alarm pending interrupts */ 728 writel(SUN6I_ALRM1_IRQ_STA_WEEK_IRQ_PEND, 729 chip->base + SUN6I_ALRM1_IRQ_STA); 730 731 /* disable alarm wakeup */ 732 writel(0, chip->base + SUN6I_ALARM_CONFIG); 733 734 clk_prepare_enable(chip->losc); 735 736 device_init_wakeup(&pdev->dev, 1); 737 738 chip->rtc = devm_rtc_allocate_device(&pdev->dev); 739 if (IS_ERR(chip->rtc)) 740 return PTR_ERR(chip->rtc); 741 742 chip->rtc->ops = &sun6i_rtc_ops; 743 chip->rtc->range_max = 2019686399LL; /* 2033-12-31 23:59:59 */ 744 745 ret = devm_rtc_register_device(chip->rtc); 746 if (ret) 747 return ret; 748 749 dev_info(&pdev->dev, "RTC enabled\n"); 750 751 return 0; 752 } 753 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org