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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B3A9C433EF for ; Mon, 28 Feb 2022 17:37:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cVhnEpMQCK9mn4qbeWaD0tYyMbWyQjZcW+Fr49iEjdg=; b=lXdcgxNZoiYLPz Fh2tiL6fKh21mwIkkKQOVKdb6TSi3/2gr6gh2HhAJa4wdkt0qRdkDTrpj2gDnb45cvB3FYA9e+01p JygWs9omO8VCo5mdPDZYC+EbyZ4RCBdpA8xqoiY3SMyWj1UYokOfYUQxCw2Z4Qqg7Wh/h+bf5bCK+ BdihkNT2RT8sXQRqKHPyn4e6+JQiNiyr6E6wB53nmr0Hw1840TuzL9D53ZXM6rJrQlFEpZS8Lhwj+ rl99qSOpBCFLh5mkbaI/9PpqdAwNu1JpK0+Y9VokM0MkOoHL4NyAGgeu4HkkFC+RhwJcrCY6csBx6 Mz2Wx/qS1qb0eT60QhIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOjwb-00DXft-Ry; Mon, 28 Feb 2022 17:36:22 +0000 Received: from mga01.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOjwX-00DXeM-38 for linux-arm-kernel@lists.infradead.org; Mon, 28 Feb 2022 17:36:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646069777; x=1677605777; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Oc3EwdvPkCRX9VtOGg0y58VHgEG5oYia76pX3LF4U1Q=; b=cJDPtv0CygW81ywHLfzrzM5qG2cfbzLLViBR6/lkNfkC4IA4Z25fsZ0C wwUkh3jgkV03QHxGKsaec4547DHVhIDhFUuxOOPEETgHGeRXiw24B46o6 /3iYX0Fnp+IS/lEua+eRWl71VYm43cmDS9MFoAXlbYW5inqIkZaXhsUi+ CtgtYElIz1ztZJptgYGxgloopnNR3J86cSH1z4F12QTrH+3ps7nq37IfT 8K3wVdZbNhMLdV0QksfksrxcTZst3SgWiT2QRvYk0bUZ5SBCGX9rqgIDG wj+YhTspDqBAWyIERe2uzLp+yPB2+TiDIjYgcfXqR9C8QuhT0Knifld4E A==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="277599950" X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="277599950" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2022 09:36:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="544807364" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 28 Feb 2022 09:36:14 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nOjwU-0007am-9u; Mon, 28 Feb 2022 17:36:14 +0000 Date: Tue, 1 Mar 2022 01:35:24 +0800 From: kernel test robot To: Claudiu Beznea , daniel.lezcano@linaro.org, tglx@linutronix.de Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Claudiu Beznea Subject: Re: [PATCH 5/7] clocksource/drivers/timer-microchip-pit64b: add delay timer Message-ID: <202202282139.f38uxhKT-lkp@intel.com> References: <20220228111923.1400049-6-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220228111923.1400049-6-claudiu.beznea@microchip.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220228_093617_224583_19B0EB79 X-CRM114-Status: GOOD ( 16.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Claudiu, I love your patch! Yet something to improve: [auto build test ERROR on tip/timers/core] [also build test ERROR on soc/for-next linus/master v5.17-rc6 next-20220225] [cannot apply to daniel-lezcano/clockevents/next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Claudiu-Beznea/clocksource-drivers-timer-microchip-pit64b-fixes-and-improvements/20220228-191933 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 35e13e9da9afbce13c1d36465504ece4e65f24fe config: openrisc-randconfig-r035-20220228 (https://download.01.org/0day-ci/archive/20220228/202202282139.f38uxhKT-lkp@intel.com/config) compiler: or1k-linux-gcc (GCC) 11.2.0 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 # https://github.com/0day-ci/linux/commit/6050ca5a0af604ed2c397dcb907a9b057635a64e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Claudiu-Beznea/clocksource-drivers-timer-microchip-pit64b-fixes-and-improvements/20220228-191933 git checkout 6050ca5a0af604ed2c397dcb907a9b057635a64e # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/clocksource/timer-microchip-pit64b.c: In function 'mchp_pit64b_init_clksrc': >> drivers/clocksource/timer-microchip-pit64b.c:382:23: error: invalid use of undefined type 'struct delay_timer' 382 | mchp_pit64b_dt.read_current_timer = mchp_pit64b_dt_read; | ^ drivers/clocksource/timer-microchip-pit64b.c:383:23: error: invalid use of undefined type 'struct delay_timer' 383 | mchp_pit64b_dt.freq = clk_rate; | ^ >> drivers/clocksource/timer-microchip-pit64b.c:384:9: error: implicit declaration of function 'register_current_timer_delay' [-Werror=implicit-function-declaration] 384 | register_current_timer_delay(&mchp_pit64b_dt); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clocksource/timer-microchip-pit64b.c: At top level: >> drivers/clocksource/timer-microchip-pit64b.c:97:27: error: storage size of 'mchp_pit64b_dt' isn't known 97 | static struct delay_timer mchp_pit64b_dt; | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +382 drivers/clocksource/timer-microchip-pit64b.c 341 342 static int __init mchp_pit64b_init_clksrc(struct mchp_pit64b_timer *timer, 343 u32 clk_rate) 344 { 345 struct mchp_pit64b_clksrc *cs; 346 int ret; 347 348 cs = kzalloc(sizeof(*cs), GFP_KERNEL); 349 if (!cs) 350 return -ENOMEM; 351 352 mchp_pit64b_reset(timer, ULLONG_MAX, MCHP_PIT64B_MR_CONT, 0); 353 354 mchp_pit64b_cs_base = timer->base; 355 356 cs->timer.base = timer->base; 357 cs->timer.pclk = timer->pclk; 358 cs->timer.gclk = timer->gclk; 359 cs->timer.mode = timer->mode; 360 cs->clksrc.name = MCHP_PIT64B_NAME; 361 cs->clksrc.mask = CLOCKSOURCE_MASK(64); 362 cs->clksrc.flags = CLOCK_SOURCE_IS_CONTINUOUS; 363 cs->clksrc.rating = 210; 364 cs->clksrc.read = mchp_pit64b_clksrc_read; 365 cs->clksrc.suspend = mchp_pit64b_clksrc_suspend; 366 cs->clksrc.resume = mchp_pit64b_clksrc_resume; 367 368 ret = clocksource_register_hz(&cs->clksrc, clk_rate); 369 if (ret) { 370 pr_debug("clksrc: Failed to register PIT64B clocksource!\n"); 371 372 /* Stop timer. */ 373 writel_relaxed(MCHP_PIT64B_CR_SWRST, 374 timer->base + MCHP_PIT64B_CR); 375 kfree(cs); 376 377 return ret; 378 } 379 380 sched_clock_register(mchp_pit64b_sched_read_clk, 64, clk_rate); 381 > 382 mchp_pit64b_dt.read_current_timer = mchp_pit64b_dt_read; 383 mchp_pit64b_dt.freq = clk_rate; > 384 register_current_timer_delay(&mchp_pit64b_dt); 385 386 return 0; 387 } 388 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel