Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp867639imn; Sat, 30 Jul 2022 06:14:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vjbjTIYNagzSrnqFaNBalIAaWJrAWxqjHUvAU7dMErVlUmb5JhpHTHhqUp3dJBifI5/YC7 X-Received: by 2002:a05:6a00:1305:b0:52c:65a4:5e4 with SMTP id j5-20020a056a00130500b0052c65a405e4mr7885574pfu.58.1659186864293; Sat, 30 Jul 2022 06:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659186864; cv=none; d=google.com; s=arc-20160816; b=E7uLVrc5A+PL52oZ4BIM/GcqfcT0j+L3tRstW9YumJ4nvrrpuY5fRQiYMD+lxaZ9uH R1x7dKSC1ooFvQVmwIm8SrMzZ6ee0dLVFIO2oF6nw5ovGUQ2f2XtwmpR1M+PdnDKwBpr /JUsBIEvg/qET5mjUr02yeDYtRL1Ehp0uug7Pamp248oIp09MHfs/rphwOKn/8JF9M32 DGnMSWetZkNbHEWa15cred/DDFRv+brtnRzd1IsO9XSprX+8/Io18P88QgYRqbSNftFl 3ME8ELb6g6sdhcbGufNPrKK/ymuEbT2J/fzjrxbTY7uDmHwoxY/gjPL+5YiSkHHUNSJ8 Yg+A== 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=0is3YB4GJjgQV5UXJUCEVUj1xHHZejnZzWVmOx/0Omc=; b=nngHcfj9Z7LZG4RnLDMYUa3D22Gia7Spd3EPxFH6JcJUrN/a3mLjtp1NS4VyBuQAHD sb1FWV6bBAzww2sV2F0U9XKwP5RLCgdb2i7ZhEXSW8iWhgiZud/n+9o97KTLoAFA66vT Y+3HMyIvMAddndH/yVUd9xccWbk8MnVEofY6ZuouY1dqe4TXwoX36CH7VWHwKnz0s6f5 +mvqB+f5BDJwKt04PpWlHC852UTt6JgyL6Uu7Vq0O3MWXX+rCEGifn/x/OU+n/wZ8U0f F23iWCdsgmE9XCVr/sVS6gruYBVvr80y/sgyZVyOo5tPrDnHK6Iou+yOJkYStfnjD3qn K1eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FnowfZdo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w70-20020a638249000000b003fe25580685si909024pgd.349.2022.07.30.06.13.56; Sat, 30 Jul 2022 06:14:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FnowfZdo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234494AbiG3NLQ (ORCPT + 99 others); Sat, 30 Jul 2022 09:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbiG3NLP (ORCPT ); Sat, 30 Jul 2022 09:11:15 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BA001570C for ; Sat, 30 Jul 2022 06:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659186671; x=1690722671; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uSuryMV+764/ne8nNCoPnbffLiJ44XbJvucP19l+3u0=; b=FnowfZdoB69AFBG9RujhoCSZFC8sd/fElCUvWjUvJHzrFUiV2gsRRo7H Uj6/gG1kUdKBlFHokms5u7YF8jYzjJufROvPBZcJOlJjy9VVrqMwUeGQr 4i06XrD2YKLjb1vZesrogSFi62xUiFm8/fNlq0q63Kyp9FdrDLimKicCY se9uVrfoiZRk2TNc3y3qWeEtHCfoqI3tNuqK+PxYz4wJ8jgLWnMJbeiiL drjf3sFfNTvf9eY3ljxuNym4SV5H5LPTgrxR+H2rYt8BUt12r4lijhuDi ugdRO83+zgvJeoYCNOqW5sxflCxWQu184ujoo0AtoyJpJ48yLmYWvbrZj g==; X-IronPort-AV: E=McAfee;i="6400,9594,10424"; a="352919813" X-IronPort-AV: E=Sophos;i="5.93,204,1654585200"; d="scan'208";a="352919813" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2022 06:11:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,204,1654585200"; d="scan'208";a="690999928" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 30 Jul 2022 06:11:08 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oHmFI-000Cqi-0b; Sat, 30 Jul 2022 13:11:08 +0000 Date: Sat, 30 Jul 2022 21:10:17 +0800 From: kernel test robot To: Liu Chao , linux-kernel@vger.kernel.org, tglx@linutronix.de Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, hewenliang4@huawei.com, linfeilong@huawei.com Subject: Re: [PATCH] add miss time to CPUTIME_USER when kernel boots with highres=off Message-ID: <202207302033.Sreft8cI-lkp@intel.com> References: <20220730091456.3741503-1-liuchao173@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220730091456.3741503-1-liuchao173@huawei.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Liu, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/timers/core] [also build test ERROR on linus/master v5.19-rc8 next-20220728] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Liu-Chao/add-miss-time-to-CPUTIME_USER-when-kernel-boots-with-highres-off/20220730-171718 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git cceeeb6a6d02e7b9a74ddd27a3225013b34174aa config: s390-randconfig-r044-20220729 (https://download.01.org/0day-ci/archive/20220730/202207302033.Sreft8cI-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e) 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/intel-lab-lkp/linux/commit/7ac63e1383163d700eb4212b689a272a4763e185 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Liu-Chao/add-miss-time-to-CPUTIME_USER-when-kernel-boots-with-highres-off/20220730-171718 git checkout 7ac63e1383163d700eb4212b689a272a4763e185 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash kernel/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from kernel/time/hrtimer.c:32: In file included from include/linux/tick.h:8: 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:37: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 kernel/time/hrtimer.c:32: In file included from include/linux/tick.h:8: 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:35: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 kernel/time/hrtimer.c:32: In file included from include/linux/tick.h:8: 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); ~~~~~~~~~~ ^ kernel/time/hrtimer.c:120:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME, ^~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:118:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:121:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC, ^~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:118:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:122:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME, ^~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:118:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:123:17: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [CLOCK_TAI] = HRTIMER_BASE_TAI, ^~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:118:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ >> kernel/time/hrtimer.c:754:19: error: static declaration of 'hrtimer_is_hres_enabled' follows non-static declaration static inline int hrtimer_is_hres_enabled(void) { return 0; } ^ include/linux/hrtimer.h:329:12: note: previous declaration is here extern int hrtimer_is_hres_enabled(void); ^ 16 warnings and 1 error generated. vim +/hrtimer_is_hres_enabled +754 kernel/time/hrtimer.c 54cdfdb47f73b5 kernel/hrtimer.c Thomas Gleixner 2007-02-16 753 54cdfdb47f73b5 kernel/hrtimer.c Thomas Gleixner 2007-02-16 @754 static inline int hrtimer_is_hres_enabled(void) { return 0; } 75e3b37d059856 kernel/time/hrtimer.c Luiz Capitulino 2015-08-11 755 static inline void hrtimer_switch_to_hres(void) { } 54cdfdb47f73b5 kernel/hrtimer.c Thomas Gleixner 2007-02-16 756 -- 0-DAY CI Kernel Test Service https://01.org/lkp