All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Lezcano <daniel.lezcano@kernel.org>,
	tglx@kernel.org, zhipeng.wang_1@nxp.com
Cc: oe-kbuild-all@lists.linux.dev, shawnguo@kernel.org,
	jstultz@google.com, linux-kernel@vger.kernel.org,
	"Daniel Lezcano" <daniel.lezcano@linaro.org>,
	"Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Bryan O'Donoghue" <bryan.odonoghue@linaro.org>,
	"Rob Herring" <robh@kernel.org>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Arnd Bergmann" <arnd@arndb.de>,
	"Stephen Boyd" <sboyd@kernel.org>
Subject: Re: [PATCH resend v1 1/7] clocksource/drivers/timer-probe: Create a platform_device before the framework is initialized
Date: Sat, 28 Mar 2026 21:05:18 +0800	[thread overview]
Message-ID: <202603282049.OhKWsoYR-lkp@intel.com> (raw)
In-Reply-To: <20260327180600.8150-2-daniel.lezcano@kernel.org>

Hi Daniel,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/timers/core]
[also build test ERROR on rockchip/for-next arnd-asm-generic/master linus/master v7.0-rc5 next-20260327]
[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/Daniel-Lezcano/clocksource-drivers-timer-probe-Create-a-platform_device-before-the-framework-is-initialized/20260328-080154
base:   tip/timers/core
patch link:    https://lore.kernel.org/r/20260327180600.8150-2-daniel.lezcano%40kernel.org
patch subject: [PATCH resend v1 1/7] clocksource/drivers/timer-probe: Create a platform_device before the framework is initialized
config: x86_64-randconfig-013-20260328 (https://download.01.org/0day-ci/archive/20260328/202603282049.OhKWsoYR-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260328/202603282049.OhKWsoYR-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603282049.OhKWsoYR-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/current.h:11,
                    from arch/x86/include/asm/processor.h:17,
                    from arch/x86/include/asm/timex.h:5,
                    from include/linux/timex.h:67,
                    from include/linux/time32.h:13,
                    from include/linux/time.h:60,
                    from arch/x86/entry/vdso/vdso32/../common/vclock_gettime.c:11,
                    from arch/x86/entry/vdso/vdso32/vclock_gettime.c:1:
   arch/x86/include/asm/tlbflush.h: In function 'cpu_tlbstate_update_lam':
   arch/x86/include/asm/tlbflush.h:468:46: warning: right shift count >= width of type [-Wshift-count-overflow]
     468 |         this_cpu_write(cpu_tlbstate.lam, lam >> X86_CR3_LAM_U57_BIT);
         |                                              ^~
   arch/x86/include/asm/percpu.h:145:69: note: in definition of macro '__raw_cpu_write'
     145 |         *(qual __my_cpu_type(pcp) * __force)__my_cpu_ptr(&(pcp)) = (val);       \
         |                                                                     ^~~
   include/linux/percpu-defs.h:369:25: note: in expansion of macro 'this_cpu_write_1'
     369 |                 case 1: stem##1(variable, __VA_ARGS__);break;           \
         |                         ^~~~
   include/linux/percpu-defs.h:500:41: note: in expansion of macro '__pcpu_size_call'
     500 | #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
         |                                         ^~~~~~~~~~~~~~~~
   arch/x86/include/asm/tlbflush.h:468:9: note: in expansion of macro 'this_cpu_write'
     468 |         this_cpu_write(cpu_tlbstate.lam, lam >> X86_CR3_LAM_U57_BIT);
         |         ^~~~~~~~~~~~~~
   arch/x86/include/asm/tlbflush.h:468:46: warning: right shift count >= width of type [-Wshift-count-overflow]
     468 |         this_cpu_write(cpu_tlbstate.lam, lam >> X86_CR3_LAM_U57_BIT);
         |                                              ^~
   arch/x86/include/asm/percpu.h:145:69: note: in definition of macro '__raw_cpu_write'
     145 |         *(qual __my_cpu_type(pcp) * __force)__my_cpu_ptr(&(pcp)) = (val);       \
         |                                                                     ^~~
   include/linux/percpu-defs.h:370:25: note: in expansion of macro 'this_cpu_write_2'
     370 |                 case 2: stem##2(variable, __VA_ARGS__);break;           \
         |                         ^~~~
   include/linux/percpu-defs.h:500:41: note: in expansion of macro '__pcpu_size_call'
     500 | #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
         |                                         ^~~~~~~~~~~~~~~~
   arch/x86/include/asm/tlbflush.h:468:9: note: in expansion of macro 'this_cpu_write'
     468 |         this_cpu_write(cpu_tlbstate.lam, lam >> X86_CR3_LAM_U57_BIT);
         |         ^~~~~~~~~~~~~~
   arch/x86/include/asm/tlbflush.h:468:46: warning: right shift count >= width of type [-Wshift-count-overflow]
     468 |         this_cpu_write(cpu_tlbstate.lam, lam >> X86_CR3_LAM_U57_BIT);
         |                                              ^~
   arch/x86/include/asm/percpu.h:145:69: note: in definition of macro '__raw_cpu_write'
     145 |         *(qual __my_cpu_type(pcp) * __force)__my_cpu_ptr(&(pcp)) = (val);       \
         |                                                                     ^~~
   include/linux/percpu-defs.h:371:25: note: in expansion of macro 'this_cpu_write_4'
     371 |                 case 4: stem##4(variable, __VA_ARGS__);break;           \
         |                         ^~~~
   include/linux/percpu-defs.h:500:41: note: in expansion of macro '__pcpu_size_call'
     500 | #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
         |                                         ^~~~~~~~~~~~~~~~
   arch/x86/include/asm/tlbflush.h:468:9: note: in expansion of macro 'this_cpu_write'
     468 |         this_cpu_write(cpu_tlbstate.lam, lam >> X86_CR3_LAM_U57_BIT);
         |         ^~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/percpu.h:598:
   arch/x86/include/asm/tlbflush.h:468:46: warning: right shift count >= width of type [-Wshift-count-overflow]
     468 |         this_cpu_write(cpu_tlbstate.lam, lam >> X86_CR3_LAM_U57_BIT);
         |                                              ^~
   include/asm-generic/percpu.h:87:33: note: in definition of macro 'raw_cpu_generic_to_op'
      87 |         *raw_cpu_ptr(&(pcp)) op val;                                    \
         |                                 ^~~
   include/asm-generic/percpu.h:412:41: note: in expansion of macro 'this_cpu_generic_to_op'
     412 | #define this_cpu_write_8(pcp, val)      this_cpu_generic_to_op(pcp, val, =)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:372:25: note: in expansion of macro 'this_cpu_write_8'
     372 |                 case 8: stem##8(variable, __VA_ARGS__);break;           \
         |                         ^~~~
   include/linux/percpu-defs.h:500:41: note: in expansion of macro '__pcpu_size_call'
     500 | #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
         |                                         ^~~~~~~~~~~~~~~~
   arch/x86/include/asm/tlbflush.h:468:9: note: in expansion of macro 'this_cpu_write'
     468 |         this_cpu_write(cpu_tlbstate.lam, lam >> X86_CR3_LAM_U57_BIT);
         |         ^~~~~~~~~~~~~~
   In file included from include/linux/kasan.h:38,
                    from include/linux/slab.h:264,
                    from include/linux/fs.h:45,
                    from include/linux/compat.h:17,
                    from arch/x86/include/asm/ia32.h:7,
                    from arch/x86/include/asm/elf.h:10,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:20,
                    from include/linux/device/driver.h:21,
                    from include/linux/device.h:32,
                    from include/linux/platform_device.h:13,
                    from include/linux/clocksource.h:21,
                    from include/clocksource/hyperv_timer.h:16,
                    from arch/x86/include/asm/vdso/gettimeofday.h:20,
                    from include/vdso/datapage.h:196,
                    from arch/x86/include/uapi/../../../../lib/vdso/gettimeofday.c:6,
                    from arch/x86/entry/vdso/vdso32/../common/vclock_gettime.c:16:
   include/linux/pgtable.h: At top level:
>> include/linux/pgtable.h:2204:2: error: #error Missing MAX_POSSIBLE_PHYSMEM_BITS definition
    2204 | #error Missing MAX_POSSIBLE_PHYSMEM_BITS definition
         |  ^~~~~
   arch/x86/include/asm/ia32.h:28:8: error: redefinition of 'struct stat64'
      28 | struct stat64 {
         |        ^~~~~~
   In file included from include/linux/stat.h:6,
                    from include/linux/sysfs.h:22,
                    from include/linux/kobject.h:20,
                    from include/linux/of.h:18,
                    from include/linux/clocksource.h:19:
   arch/x86/include/uapi/asm/stat.h:42:8: note: originally defined here
      42 | struct stat64 {
         |        ^~~~~~


vim +2204 include/linux/pgtable.h

^1da177e4c3f41 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16  2196  
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2197  #if !defined(MAX_POSSIBLE_PHYSMEM_BITS) && !defined(CONFIG_64BIT)
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2198  #ifdef CONFIG_PHYS_ADDR_T_64BIT
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2199  /*
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2200   * ZSMALLOC needs to know the highest PFN on 32-bit architectures
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2201   * with physical address space extension, but falls back to
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2202   * BITS_PER_LONG otherwise.
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2203   */
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11 @2204  #error Missing MAX_POSSIBLE_PHYSMEM_BITS definition
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2205  #else
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2206  #define MAX_POSSIBLE_PHYSMEM_BITS 32
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2207  #endif
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2208  #endif
cef397038167ac include/linux/pgtable.h       Arnd Bergmann  2020-11-11  2209  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2026-03-28 13:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27 18:05 [PATCH v1 resend 0/7] Timer driver module support Daniel Lezcano
2026-03-27 18:05 ` [PATCH resend v1 1/7] clocksource/drivers/timer-probe: Create a platform_device before the framework is initialized Daniel Lezcano
2026-03-28  6:55   ` kernel test robot
2026-03-28  7:39   ` kernel test robot
2026-03-28 13:05   ` kernel test robot [this message]
2026-03-27 18:05 ` [PATCH resend v1 5/7] clocksource/drivers/rockchip: Use the TIMER_PDEV_DECLARE() macro Daniel Lezcano
2026-03-27 18:05   ` Daniel Lezcano
2026-03-27 18:05 ` [PATCH resend v1 6/7] clocksource/drivers/rockchip: Add rockchip timer module support Daniel Lezcano
2026-03-27 18:05   ` Daniel Lezcano
2026-03-27 18:05 ` [PATCH resend v1 7/7] clocksource/drivers/mediatek: Convert to " Daniel Lezcano
2026-04-03  7:59 ` [EXT] [PATCH v1 resend 0/7] Timer driver " Zhipeng Wang
2026-04-03  8:50   ` Daniel Lezcano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202603282049.OhKWsoYR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=bryan.odonoghue@linaro.org \
    --cc=daniel.lezcano@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jstultz@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=shawnguo@kernel.org \
    --cc=tglx@kernel.org \
    --cc=zhipeng.wang_1@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.