[xlnx:xlnx_rebase_v5.4 179/1757] include/uapi/linux/zocl_ioctl.h:42:2: error: unknown type name 'uint64_t'
by kernel test robot
Hi Umang,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: f09edce8c39b74223461bf2175649535ebe8b213
commit: f4c3b72e2c97c5350214853d0e9fbd93e2cea071 [179/1757] drm: ZynQ OpenCL driver
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/f4c3b72e2c97c5350214853d0e9fb...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout f4c3b72e2c97c5350214853d0e9fbd93e2cea071
# save the attached .config to linux build tree
make W=1 W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from <command-line>:
>> include/uapi/linux/zocl_ioctl.h:42:2: error: unknown type name 'uint64_t'
42 | uint64_t size;
| ^~~~~~~~
>> include/uapi/linux/zocl_ioctl.h:43:2: error: unknown type name 'uint32_t'
43 | uint32_t handle;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:44:2: error: unknown type name 'uint32_t'
44 | uint32_t flags;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:48:2: error: unknown type name 'uint32_t'
48 | uint32_t handle;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:49:2: error: unknown type name 'uint32_t'
49 | uint32_t pad;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:50:2: error: unknown type name 'uint64_t'
50 | uint64_t offset;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:61:2: error: unknown type name 'uint32_t'
61 | uint32_t handle;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:63:2: error: unknown type name 'uint64_t'
63 | uint64_t offset;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:64:2: error: unknown type name 'uint64_t'
64 | uint64_t size;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:74:2: error: unknown type name 'uint32_t'
74 | uint32_t handle;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:75:2: error: unknown type name 'uint64_t'
75 | uint64_t size;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:76:2: error: unknown type name 'uint64_t'
76 | uint64_t paddr;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:88:2: error: unknown type name 'uint32_t'
88 | uint32_t handle;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:89:2: error: unknown type name 'uint32_t'
89 | uint32_t pad;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:90:2: error: unknown type name 'uint64_t'
90 | uint64_t offset;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:91:2: error: unknown type name 'uint64_t'
91 | uint64_t size;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:92:2: error: unknown type name 'uint64_t'
92 | uint64_t data_ptr;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:104:2: error: unknown type name 'uint32_t'
104 | uint32_t handle;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:105:2: error: unknown type name 'uint32_t'
105 | uint32_t pad;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:106:2: error: unknown type name 'uint64_t'
106 | uint64_t offset;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:107:2: error: unknown type name 'uint64_t'
107 | uint64_t size;
| ^~~~~~~~
include/uapi/linux/zocl_ioctl.h:108:2: error: unknown type name 'uint64_t'
108 | uint64_t data_ptr;
| ^~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for UIO_DMEM_GENIRQ
Depends on UIO && HAS_DMA
Selected by
- UIO_XILINX_AI_ENGINE && UIO
vim +/uint64_t +42 include/uapi/linux/zocl_ioctl.h
40
41 struct drm_zocl_create_bo {
> 42 uint64_t size;
> 43 uint32_t handle;
44 uint32_t flags;
45 };
46
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-platforms:irq/domain_cleanup 17/17] include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head: 5a65598a27f5f18b56e0f471925ccfa02e56ca84
commit: 5a65598a27f5f18b56e0f471925ccfa02e56ca84 [17/17] genirq: Move non-irqdomain handle_domain_irq() handling into ARM's handle_IRQ()
config: powerpc-randconfig-r035-20210513 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/domain_cleanup
git checkout 5a65598a27f5f18b56e0f471925ccfa02e56ca84
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:23:
In file included from arch/powerpc/include/asm/irq.h:9:
include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq' [-Werror,-Wimplicit-function-declaration]
return irq_desc_get_irq(desc);
^
include/linux/irqdomain.h:420:9: note: did you mean 'irq_get_next_irq'?
include/linux/irqnr.h:10:14: note: 'irq_get_next_irq' declared here
unsigned int irq_get_next_irq(unsigned int offset);
^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:584:
include/linux/irqdesc.h:127:28: error: static declaration of 'irq_desc_get_irq' follows non-static declaration
static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
^
include/linux/irqdomain.h:420:9: note: previous implicit declaration is here
return irq_desc_get_irq(desc);
^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:584:
>> include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' [-Wmissing-prototypes]
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
include/linux/irqdesc.h:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
static
1 warning and 2 errors generated.
--
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:23:
In file included from arch/powerpc/include/asm/irq.h:9:
include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq' [-Werror,-Wimplicit-function-declaration]
return irq_desc_get_irq(desc);
^
include/linux/irqdomain.h:420:9: note: did you mean 'irq_get_next_irq'?
include/linux/irqnr.h:10:14: note: 'irq_get_next_irq' declared here
unsigned int irq_get_next_irq(unsigned int offset);
^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:584:
include/linux/irqdesc.h:127:28: error: static declaration of 'irq_desc_get_irq' follows non-static declaration
static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
^
include/linux/irqdomain.h:420:9: note: previous implicit declaration is here
return irq_desc_get_irq(desc);
^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:584:
>> include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' [-Wmissing-prototypes]
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
include/linux/irqdesc.h:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
static
1 warning and 2 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/generic_handle_domain_irq +178 include/linux/irqdesc.h
171
172 int handle_domain_irq(struct irq_domain *domain,
173 unsigned int hwirq, struct pt_regs *regs);
174
175 int handle_domain_nmi(struct irq_domain *domain, unsigned int hwirq,
176 struct pt_regs *regs);
177 #else
> 178 int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
179 {
180 return -EINVAL;
181 }
182 #endif
183
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-platforms:irq/domain_cleanup 11/17] include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head: d4796f65d6c7a6e596dbccb03d6e1141a63e49f9
commit: 0280c7950849a75ff5473618af7ddbfe624d2746 [11/17] irqdomain: Introduce irq_resolve_mapping()
config: powerpc-iss476-smp_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/domain_cleanup
git checkout 0280c7950849a75ff5473618af7ddbfe624d2746
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h: In function 'irq_find_mapping':
>> include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq'; did you mean 'irq_get_next_irq'? [-Werror=implicit-function-declaration]
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
| irq_get_next_irq
In file included from include/linux/irq.h:584,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdesc.h: At top level:
include/linux/irqdesc.h:127:28: error: conflicting types for 'irq_desc_get_irq'
127 | static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
| ^~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h:420:9: note: previous implicit declaration of 'irq_desc_get_irq' was here
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h: In function 'irq_find_mapping':
>> include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq'; did you mean 'irq_get_next_irq'? [-Werror=implicit-function-declaration]
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
| irq_get_next_irq
In file included from include/linux/irq.h:584,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdesc.h: At top level:
include/linux/irqdesc.h:127:28: error: conflicting types for 'irq_desc_get_irq'
127 | static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
| ^~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h:420:9: note: previous implicit declaration of 'irq_desc_get_irq' was here
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h: In function 'irq_find_mapping':
>> include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq'; did you mean
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
| irq_get_next_irq
In file included from include/linux/irq.h:584,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdesc.h: At top level:
include/linux/irqdesc.h:127:28: error: conflicting types for 'irq_desc_get_irq'
127 | static inline unsigned int irq_desc_get_irq(struct irq_desc
| ^~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h:420:9: note: previous implicit declaration of 'irq_desc_get_irq' was here
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
Target '__build' not remade because of errors.
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [Makefile:1227: prepare0] Error 2
Target 'prepare' not remade because of errors.
make: Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
vim +/irq_desc_get_irq +420 include/linux/irqdomain.h
403
404 extern struct irq_desc *irq_resolve_mapping(struct irq_domain *domain,
405 irq_hw_number_t hwirq);
406
407 /**
408 * irq_find_mapping() - Find a linux irq from a hw irq number.
409 * @domain: domain owning this hardware interrupt
410 * @hwirq: hardware irq number in that domain space
411 */
412 static inline unsigned int irq_find_mapping(struct irq_domain *domain,
413 irq_hw_number_t hwirq)
414 {
415 struct irq_desc *desc = irq_resolve_mapping(domain, hwirq);
416
417 if (unlikely(!desc))
418 return 0;
419
> 420 return irq_desc_get_irq(desc);
421 }
422
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-platforms:irq/domain_cleanup 11/17] arch/x86/include/asm/pgtable.h:1393:22: warning: shift count >= width of type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head: d4796f65d6c7a6e596dbccb03d6e1141a63e49f9
commit: 0280c7950849a75ff5473618af7ddbfe624d2746 [11/17] irqdomain: Introduce irq_resolve_mapping()
config: x86_64-randconfig-a002-20210513 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/domain_cleanup
git checkout 0280c7950849a75ff5473618af7ddbfe624d2746
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15:
In file included from arch/x86/entry/vdso/../../../../lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
In file included from arch/x86/include/asm/vdso/gettimeofday.h:21:
In file included from include/clocksource/hyperv_timer.h:18:
In file included from arch/x86/include/asm/mshyperv.h:7:
In file included from include/linux/msi.h:7:
In file included from arch/x86/include/asm/msi.h:5:
In file included from arch/x86/include/asm/irqdomain.h:5:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:21:
In file included from include/linux/slab.h:136:
In file included from include/linux/kasan.h:28:
In file included from include/linux/pgtable.h:6:
>> arch/x86/include/asm/pgtable.h:1393:22: warning: shift count >= width of type [-Wshift-count-overflow]
return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:71:26: note: expanded from macro '_PAGE_PKEY_MASK'
#define _PAGE_PKEY_MASK (_PAGE_PKEY_BIT0 | \
^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:60:43: note: expanded from macro '_PAGE_PKEY_BIT0'
#define _PAGE_PKEY_BIT0 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT0)
^ ~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15:
In file included from arch/x86/entry/vdso/../../../../lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
In file included from arch/x86/include/asm/vdso/gettimeofday.h:21:
In file included from include/clocksource/hyperv_timer.h:18:
In file included from arch/x86/include/asm/mshyperv.h:7:
In file included from include/linux/msi.h:7:
In file included from arch/x86/include/asm/msi.h:5:
In file included from arch/x86/include/asm/irqdomain.h:5:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:21:
In file included from include/linux/slab.h:136:
In file included from include/linux/kasan.h:28:
In file included from include/linux/pgtable.h:6:
>> arch/x86/include/asm/pgtable.h:1393:22: warning: shift count >= width of type [-Wshift-count-overflow]
return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:72:5: note: expanded from macro '_PAGE_PKEY_MASK'
_PAGE_PKEY_BIT1 | \
^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:61:43: note: expanded from macro '_PAGE_PKEY_BIT1'
#define _PAGE_PKEY_BIT1 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT1)
^ ~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15:
In file included from arch/x86/entry/vdso/../../../../lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
In file included from arch/x86/include/asm/vdso/gettimeofday.h:21:
In file included from include/clocksource/hyperv_timer.h:18:
In file included from arch/x86/include/asm/mshyperv.h:7:
In file included from include/linux/msi.h:7:
In file included from arch/x86/include/asm/msi.h:5:
In file included from arch/x86/include/asm/irqdomain.h:5:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:21:
In file included from include/linux/slab.h:136:
In file included from include/linux/kasan.h:28:
In file included from include/linux/pgtable.h:6:
>> arch/x86/include/asm/pgtable.h:1393:22: warning: shift count >= width of type [-Wshift-count-overflow]
return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:73:5: note: expanded from macro '_PAGE_PKEY_MASK'
_PAGE_PKEY_BIT2 | \
^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:62:43: note: expanded from macro '_PAGE_PKEY_BIT2'
#define _PAGE_PKEY_BIT2 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT2)
^ ~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15:
In file included from arch/x86/entry/vdso/../../../../lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
In file included from arch/x86/include/asm/vdso/gettimeofday.h:21:
In file included from include/clocksource/hyperv_timer.h:18:
In file included from arch/x86/include/asm/mshyperv.h:7:
In file included from include/linux/msi.h:7:
In file included from arch/x86/include/asm/msi.h:5:
In file included from arch/x86/include/asm/irqdomain.h:5:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:21:
In file included from include/linux/slab.h:136:
In file included from include/linux/kasan.h:28:
In file included from include/linux/pgtable.h:6:
>> arch/x86/include/asm/pgtable.h:1393:22: warning: shift count >= width of type [-Wshift-count-overflow]
return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:74:5: note: expanded from macro '_PAGE_PKEY_MASK'
_PAGE_PKEY_BIT3)
^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:63:43: note: expanded from macro '_PAGE_PKEY_BIT3'
#define _PAGE_PKEY_BIT3 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT3)
^ ~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15:
In file included from arch/x86/entry/vdso/../../../../lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
In file included from arch/x86/include/asm/vdso/gettimeofday.h:21:
In file included from include/clocksource/hyperv_timer.h:18:
In file included from arch/x86/include/asm/mshyperv.h:7:
In file included from include/linux/msi.h:7:
In file included from arch/x86/include/asm/msi.h:5:
In file included from arch/x86/include/asm/irqdomain.h:5:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:21:
In file included from include/linux/slab.h:136:
In file included from include/linux/kasan.h:28:
In file included from include/linux/pgtable.h:6:
arch/x86/include/asm/pgtable.h:1393:39: warning: shift count >= width of type [-Wshift-count-overflow]
return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
^ ~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15:
In file included from arch/x86/entry/vdso/../../../../lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
In file included from arch/x86/include/asm/vdso/gettimeofday.h:21:
In file included from include/clocksource/hyperv_timer.h:18:
In file included from arch/x86/include/asm/mshyperv.h:7:
In file included from include/linux/msi.h:7:
In file included from arch/x86/include/asm/msi.h:5:
In file included from arch/x86/include/asm/irqdomain.h:5:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:21:
In file included from include/linux/slab.h:136:
In file included from include/linux/kasan.h:28:
include/linux/pgtable.h:1511:2: error: Missing MAX_POSSIBLE_PHYSMEM_BITS definition
#error Missing MAX_POSSIBLE_PHYSMEM_BITS definition
^
In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
arch/x86/entry/vdso/vdso32/../vclock_gettime.c:70:5: warning: no previous prototype for function '__vdso_clock_gettime64' [-Wmissing-prototypes]
int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts)
^
arch/x86/entry/vdso/vdso32/../vclock_gettime.c:70:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts)
^
static
6 warnings and 1 error generated.
vim +1393 arch/x86/include/asm/pgtable.h
33a709b25a760b Dave Hansen 2016-02-12 1388
33a709b25a760b Dave Hansen 2016-02-12 1389 static inline u16 pte_flags_pkey(unsigned long pte_flags)
33a709b25a760b Dave Hansen 2016-02-12 1390 {
33a709b25a760b Dave Hansen 2016-02-12 1391 #ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
33a709b25a760b Dave Hansen 2016-02-12 1392 /* ifdef to avoid doing 59-bit shift on 32-bit values */
33a709b25a760b Dave Hansen 2016-02-12 @1393 return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
33a709b25a760b Dave Hansen 2016-02-12 1394 #else
33a709b25a760b Dave Hansen 2016-02-12 1395 return 0;
33a709b25a760b Dave Hansen 2016-02-12 1396 #endif
33a709b25a760b Dave Hansen 2016-02-12 1397 }
33a709b25a760b Dave Hansen 2016-02-12 1398
:::::: The code at line 1393 was first introduced by commit
:::::: 33a709b25a760b91184bb335cf7d7c32b8123013 mm/gup, x86/mm/pkeys: Check VMAs and PTEs for protection keys
:::::: TO: Dave Hansen <dave.hansen(a)linux.intel.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-platforms:irq/domain_cleanup 15/17] drivers/irqchip/irq-ingenic-tcu.c:41:3: error: implicit declaration of function 'generic_handle_domain_irq'; did you mean 'generic_handle_irq'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head: d4796f65d6c7a6e596dbccb03d6e1141a63e49f9
commit: 1a76591eb226405218fe20143f3ed39f15911caf [15/17] irqchip: Bulk conversion to generic_handle_domain_irq()
config: sparc-randconfig-r023-20210513 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/domain_cleanup
git checkout 1a76591eb226405218fe20143f3ed39f15911caf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/irqchip/irq-ingenic-tcu.c: In function 'ingenic_tcu_intc_cascade':
>> drivers/irqchip/irq-ingenic-tcu.c:41:3: error: implicit declaration of function 'generic_handle_domain_irq'; did you mean 'generic_handle_irq'? [-Werror=implicit-function-declaration]
41 | generic_handle_domain_irq(domain, i);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| generic_handle_irq
cc1: some warnings being treated as errors
vim +41 drivers/irqchip/irq-ingenic-tcu.c
23
24 static void ingenic_tcu_intc_cascade(struct irq_desc *desc)
25 {
26 struct irq_chip *irq_chip = irq_data_get_irq_chip(&desc->irq_data);
27 struct irq_domain *domain = irq_desc_get_handler_data(desc);
28 struct irq_chip_generic *gc = irq_get_domain_generic_chip(domain, 0);
29 struct regmap *map = gc->private;
30 uint32_t irq_reg, irq_mask;
31 unsigned int i;
32
33 regmap_read(map, TCU_REG_TFR, &irq_reg);
34 regmap_read(map, TCU_REG_TMR, &irq_mask);
35
36 chained_irq_enter(irq_chip, desc);
37
38 irq_reg &= ~irq_mask;
39
40 for_each_set_bit(i, (unsigned long *)&irq_reg, 32)
> 41 generic_handle_domain_irq(domain, i);
42
43 chained_irq_exit(irq_chip, desc);
44 }
45
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
arch/mips/boot/compressed/ashldi3.c:9:19: warning: no previous prototype for function '__ashldi3'
by kernel test robot
Hi Thomas,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c06a2ba62fc401b7aaefd23f5d0bc06d2457ccc1
commit: 396c7d94c3bbe07ae00c9f694a5c731878843038 MIPS: alchemy: Fix build breakage, if TOUCHSCREEN_WM97XX is disabled
date: 7 months ago
config: mips-randconfig-r012-20210513 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 396c7d94c3bbe07ae00c9f694a5c731878843038
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/mips/boot/compressed/ashldi3.c:9:19: warning: no previous prototype for function '__ashldi3' [-Wmissing-prototypes]
long long notrace __ashldi3(long long u, word_type b)
^
arch/mips/boot/compressed/ashldi3.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
long long notrace __ashldi3(long long u, word_type b)
^
static
1 warning generated.
--
>> arch/mips/boot/compressed/bswapsi.c:5:22: warning: no previous prototype for function '__bswapsi2' [-Wmissing-prototypes]
unsigned int notrace __bswapsi2(unsigned int u)
^
arch/mips/boot/compressed/bswapsi.c:5:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned int notrace __bswapsi2(unsigned int u)
^
static
1 warning generated.
--
>> arch/mips/boot/compressed/uart-alchemy.c:4:6: warning: no previous prototype for function 'putc' [-Wmissing-prototypes]
void putc(char c)
^
arch/mips/boot/compressed/uart-alchemy.c:4:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void putc(char c)
^
static
1 warning generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-next:master 2317/2770] undefined reference to `wwan_port_get_drvdata'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec2618180c3450d06a6a4ba951d4c9a2c689b517
commit: cac6fb015f719104e60b1c68c15ca5b734f57b9c [2317/2770] usb: class: cdc-wdm: WWAN framework integration
config: parisc-randconfig-r033-20210513 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout cac6fb015f719104e60b1c68c15ca5b734f57b9c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
hppa-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_wwan_port_stop':
>> (.text+0xf28): undefined reference to `wwan_port_get_drvdata'
hppa-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_wwan_port_tx':
(.text+0xf88): undefined reference to `wwan_port_get_drvdata'
>> hppa-linux-ld: (.text+0x1038): undefined reference to `wwan_port_txoff'
hppa-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_wwan_port_start':
(.text+0x1064): undefined reference to `wwan_port_get_drvdata'
>> hppa-linux-ld: (.text+0x10c4): undefined reference to `wwan_port_txon'
hppa-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_wwan_port_tx_complete':
>> (.text+0x1100): undefined reference to `wwan_port_txon'
hppa-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_in_callback':
(.text+0x13cc): undefined reference to `wwan_port_rx'
hppa-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_disconnect':
>> (.text+0x18d0): undefined reference to `wwan_remove_port'
hppa-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_create':
>> (.text+0x1de8): undefined reference to `wwan_create_port'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-platforms:irq/domain_cleanup 11/17] arch/x86/include/asm/pgtable_types.h:60:43: warning: left shift count >= width of type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head: 8e0598e62fa7869706329d39c485097a24ee4b4b
commit: 0280c7950849a75ff5473618af7ddbfe624d2746 [11/17] irqdomain: Introduce irq_resolve_mapping()
config: x86_64-randconfig-a011-20210513 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/domain_cleanup
git checkout 0280c7950849a75ff5473618af7ddbfe624d2746
# save the attached .config to linux build tree
make W=1 W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/x86/include/asm/paravirt_types.h:39,
from arch/x86/include/asm/ptrace.h:97,
from arch/x86/include/asm/math_emu.h:5,
from arch/x86/include/asm/processor.h:13,
from arch/x86/include/asm/timex.h:5,
from include/linux/timex.h:65,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:11,
from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
arch/x86/include/asm/pgtable.h: In function 'pte_flags_pkey':
>> arch/x86/include/asm/pgtable_types.h:60:43: warning: left shift count >= width of type [-Wshift-count-overflow]
60 | #define _PAGE_PKEY_BIT0 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT0)
| ^~
arch/x86/include/asm/pgtable_types.h:71:26: note: in expansion of macro '_PAGE_PKEY_BIT0'
71 | #define _PAGE_PKEY_MASK (_PAGE_PKEY_BIT0 | \
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable.h:1393:22: note: in expansion of macro '_PAGE_PKEY_MASK'
1393 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:61:43: warning: left shift count >= width of type [-Wshift-count-overflow]
61 | #define _PAGE_PKEY_BIT1 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT1)
| ^~
arch/x86/include/asm/pgtable_types.h:72:5: note: in expansion of macro '_PAGE_PKEY_BIT1'
72 | _PAGE_PKEY_BIT1 | \
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable.h:1393:22: note: in expansion of macro '_PAGE_PKEY_MASK'
1393 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:62:43: warning: left shift count >= width of type [-Wshift-count-overflow]
62 | #define _PAGE_PKEY_BIT2 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT2)
| ^~
arch/x86/include/asm/pgtable_types.h:73:5: note: in expansion of macro '_PAGE_PKEY_BIT2'
73 | _PAGE_PKEY_BIT2 | \
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable.h:1393:22: note: in expansion of macro '_PAGE_PKEY_MASK'
1393 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:63:43: warning: left shift count >= width of type [-Wshift-count-overflow]
63 | #define _PAGE_PKEY_BIT3 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT3)
| ^~
arch/x86/include/asm/pgtable_types.h:74:5: note: in expansion of macro '_PAGE_PKEY_BIT3'
74 | _PAGE_PKEY_BIT3)
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable.h:1393:22: note: in expansion of macro '_PAGE_PKEY_MASK'
1393 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
| ^~~~~~~~~~~~~~~
In file included from include/linux/pgtable.h:6,
from include/linux/kasan.h:28,
from include/linux/slab.h:136,
from include/linux/irq.h:21,
from include/linux/irqdomain.h:34,
from arch/x86/include/asm/irqdomain.h:5,
from arch/x86/include/asm/msi.h:5,
from include/linux/msi.h:7,
from arch/x86/include/asm/mshyperv.h:7,
from include/clocksource/hyperv_timer.h:18,
from arch/x86/include/asm/vdso/gettimeofday.h:21,
from include/vdso/datapage.h:137,
from arch/x86/entry/vdso/vdso32/../../../../../lib/vdso/gettimeofday.c:5,
from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15,
from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
>> arch/x86/include/asm/pgtable.h:1393:39: warning: right shift count >= width of type [-Wshift-count-overflow]
1393 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
| ^~
In file included from include/linux/kasan.h:28,
from include/linux/slab.h:136,
from include/linux/irq.h:21,
from include/linux/irqdomain.h:34,
from arch/x86/include/asm/irqdomain.h:5,
from arch/x86/include/asm/msi.h:5,
from include/linux/msi.h:7,
from arch/x86/include/asm/mshyperv.h:7,
from include/clocksource/hyperv_timer.h:18,
from arch/x86/include/asm/vdso/gettimeofday.h:21,
from include/vdso/datapage.h:137,
from arch/x86/entry/vdso/vdso32/../../../../../lib/vdso/gettimeofday.c:5,
from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15,
from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
include/linux/pgtable.h: At top level:
include/linux/pgtable.h:1511:2: error: #error Missing MAX_POSSIBLE_PHYSMEM_BITS definition
1511 | #error Missing MAX_POSSIBLE_PHYSMEM_BITS definition
| ^~~~~
In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
arch/x86/entry/vdso/vdso32/../vclock_gettime.c:70:5: warning: no previous prototype for '__vdso_clock_gettime64' [-Wmissing-prototypes]
70 | int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +60 arch/x86/include/asm/pgtable_types.h
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 42
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 43 #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 44 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 45 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 46 #define _PAGE_PWT (_AT(pteval_t, 1) << _PAGE_BIT_PWT)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 47 #define _PAGE_PCD (_AT(pteval_t, 1) << _PAGE_BIT_PCD)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 48 #define _PAGE_ACCESSED (_AT(pteval_t, 1) << _PAGE_BIT_ACCESSED)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 49 #define _PAGE_DIRTY (_AT(pteval_t, 1) << _PAGE_BIT_DIRTY)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 50 #define _PAGE_PSE (_AT(pteval_t, 1) << _PAGE_BIT_PSE)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 51 #define _PAGE_GLOBAL (_AT(pteval_t, 1) << _PAGE_BIT_GLOBAL)
c46a7c817e662a Mel Gorman 2014-06-04 52 #define _PAGE_SOFTW1 (_AT(pteval_t, 1) << _PAGE_BIT_SOFTW1)
f955371ca9d398 David Vrabel 2014-01-07 53 #define _PAGE_SOFTW2 (_AT(pteval_t, 1) << _PAGE_BIT_SOFTW2)
6c0df8689494e1 Joerg Roedel 2018-07-18 54 #define _PAGE_SOFTW3 (_AT(pteval_t, 1) << _PAGE_BIT_SOFTW3)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 55 #define _PAGE_PAT (_AT(pteval_t, 1) << _PAGE_BIT_PAT)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 56 #define _PAGE_PAT_LARGE (_AT(pteval_t, 1) << _PAGE_BIT_PAT_LARGE)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 57 #define _PAGE_SPECIAL (_AT(pteval_t, 1) << _PAGE_BIT_SPECIAL)
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 58 #define _PAGE_CPA_TEST (_AT(pteval_t, 1) << _PAGE_BIT_CPA_TEST)
5c1d90f51027e1 Dave Hansen 2016-02-12 59 #ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
5c1d90f51027e1 Dave Hansen 2016-02-12 @60 #define _PAGE_PKEY_BIT0 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT0)
5c1d90f51027e1 Dave Hansen 2016-02-12 61 #define _PAGE_PKEY_BIT1 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT1)
5c1d90f51027e1 Dave Hansen 2016-02-12 62 #define _PAGE_PKEY_BIT2 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT2)
5c1d90f51027e1 Dave Hansen 2016-02-12 63 #define _PAGE_PKEY_BIT3 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT3)
5c1d90f51027e1 Dave Hansen 2016-02-12 64 #else
5c1d90f51027e1 Dave Hansen 2016-02-12 65 #define _PAGE_PKEY_BIT0 (_AT(pteval_t, 0))
5c1d90f51027e1 Dave Hansen 2016-02-12 66 #define _PAGE_PKEY_BIT1 (_AT(pteval_t, 0))
5c1d90f51027e1 Dave Hansen 2016-02-12 67 #define _PAGE_PKEY_BIT2 (_AT(pteval_t, 0))
5c1d90f51027e1 Dave Hansen 2016-02-12 68 #define _PAGE_PKEY_BIT3 (_AT(pteval_t, 0))
5c1d90f51027e1 Dave Hansen 2016-02-12 69 #endif
8d19c99faf6165 Jeremy Fitzhardinge 2009-02-08 70
:::::: The code at line 60 was first introduced by commit
:::::: 5c1d90f51027e197e1299ab1235a2fed78910905 x86/mm/pkeys: Add PTE bits for storing protection key
:::::: TO: Dave Hansen <dave.hansen(a)linux.intel.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months