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 3F170C4332F for ; Mon, 28 Feb 2022 17:37:53 +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=ZWQCpwHNi9PXnpv6JcD67cC857l27OoFECyZ3PWR3vw=; b=XFpRNw9yBTwxsG SWURibAvtrpp17fDG1hh5q7tX/SOVZ/oZGXSS9rM7tK8DF99I6WI7XJ7vPiKLpTC4qasFVPVWDUBZ 8S/W2aG99V/Opc330rLpocndDlERtDsFNOLn4F0kpptlC73vqkN+V1qIV2/AkjrcacGWUpDpgCM8O 8DM73yq1bJEacEw07hpuTUghtkwLKLHt3CK4Anuapowk3FTTIKbelsN/5VUyvEm2JaEJ43bMa4MuR HhcI9pXrBbdiwgtbC/c+7rOOqRDTTSo2j9gRYLhQMmcVaKBYNYI/qO2HFN+qK/aSFQ2H9203SsOpP h+omSuVc738wUggjasBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOjwo-00DXlI-1C; Mon, 28 Feb 2022 17:36:34 +0000 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOjwY-00DXeh-1Q for linux-arm-kernel@lists.infradead.org; Mon, 28 Feb 2022 17:36:20 +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=xNaNNHqAIqgJiiZ16Dvv6Se8got1HO3XhTb5+wE1vwk=; b=SknKbpW+9giDXUV6CBJIhDQiAyi5gol8kiRqEzq9w25yu+EGbX+5e/YX nDTPN7wOKiULlsce8yd+bMX4EFYUq3LF3lyTkqqK0t1UU8wj5qmRfUOfa ZI28v2KR870NobjqcLI1FnyV7l3TtaFknT1byEA949IXMAz+8d5B+UW3I SSWDImlQjbbYDgax+vAiYTNwq74zCF0aVJUqpQt3a8s55ScnN1Us1s7sd dbZVLHzecq7QPMa5qTUPBXhBF363421lSUAs7ijaBRNtAK4teJz4Vd7aD RHYKsBqr/NdyQ8u0GvyYHIjXYWmHAlRBj3dxgi8HnXslKY17lx8NHBqH7 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="252865434" X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="252865434" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2022 09:36:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="608524735" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 28 Feb 2022 09:36:15 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nOjwU-0007aj-9X; Mon, 28 Feb 2022 17:36:14 +0000 Date: Tue, 1 Mar 2022 01:35:56 +0800 From: kernel test robot To: Claudiu Beznea , daniel.lezcano@linaro.org, tglx@linutronix.de Cc: llvm@lists.linux.dev, 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: <202202282242.zM0FjCHj-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_093618_156016_7669E083 X-CRM114-Status: GOOD ( 16.33 ) 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! Perhaps something to improve: [auto build test WARNING on tip/timers/core] [also build test WARNING 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: s390-randconfig-r036-20220228 (https://download.01.org/0day-ci/archive/20220228/202202282242.zM0FjCHj-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # 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=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash drivers/clocksource/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/clocksource/timer-microchip-pit64b.c:11: In file included from include/linux/clockchips.h:14: In file included from include/linux/clocksource.h:22: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) ^ include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) ^ In file included from drivers/clocksource/timer-microchip-pit64b.c:11: In file included from include/linux/clockchips.h:14: In file included from include/linux/clocksource.h:22: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) ^ In file included from drivers/clocksource/timer-microchip-pit64b.c:11: In file included from include/linux/clockchips.h:14: In file included from include/linux/clocksource.h:22: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> drivers/clocksource/timer-microchip-pit64b.c:97:27: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct delay_timer' [-Wtentative-definition-incomplete-type] static struct delay_timer mchp_pit64b_dt; ^ drivers/clocksource/timer-microchip-pit64b.c:97:15: note: forward declaration of 'struct delay_timer' static struct delay_timer mchp_pit64b_dt; ^ drivers/clocksource/timer-microchip-pit64b.c:382:16: error: incomplete definition of type 'struct delay_timer' mchp_pit64b_dt.read_current_timer = mchp_pit64b_dt_read; ~~~~~~~~~~~~~~^ drivers/clocksource/timer-microchip-pit64b.c:97:15: note: forward declaration of 'struct delay_timer' static struct delay_timer mchp_pit64b_dt; ^ drivers/clocksource/timer-microchip-pit64b.c:383:16: error: incomplete definition of type 'struct delay_timer' mchp_pit64b_dt.freq = clk_rate; ~~~~~~~~~~~~~~^ drivers/clocksource/timer-microchip-pit64b.c:97:15: note: forward declaration of 'struct delay_timer' static struct delay_timer mchp_pit64b_dt; ^ drivers/clocksource/timer-microchip-pit64b.c:384:2: error: implicit declaration of function 'register_current_timer_delay' [-Werror,-Wimplicit-function-declaration] register_current_timer_delay(&mchp_pit64b_dt); ^ drivers/clocksource/timer-microchip-pit64b.c:97:27: error: tentative definition has type 'struct delay_timer' that is never completed static struct delay_timer mchp_pit64b_dt; ^ drivers/clocksource/timer-microchip-pit64b.c:97:15: note: forward declaration of 'struct delay_timer' static struct delay_timer mchp_pit64b_dt; ^ 13 warnings and 4 errors generated. vim +97 drivers/clocksource/timer-microchip-pit64b.c 87 88 #define clksrc_to_mchp_pit64b_timer(x) \ 89 ((struct mchp_pit64b_timer *)container_of(x,\ 90 struct mchp_pit64b_clksrc, clksrc)) 91 92 /* Base address for clocksource timer. */ 93 static void __iomem *mchp_pit64b_cs_base; 94 /* Default cycles for clockevent timer. */ 95 static u64 mchp_pit64b_ce_cycles; 96 /* Delay timer. */ > 97 static struct delay_timer mchp_pit64b_dt; 98 --- 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