[hwmon:watchdog-next 18/22] drivers/watchdog/iTCO_wdt.c:280:19: error: no member named 'dev' in 'struct watchdog_device'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git watchdog-next
head: 4cade386df4881eaec83d4b1d1631861ee942d11
commit: 36657904fe28786802ec2c9b016fcefb8631bbb9 [18/22] watchdog: iTCO_wdt: use dev_*() instead of pr_*() for logging
config: x86_64-randconfig-a012-20201213 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d38205144febf4dc42c9270c6aa3d978f1ef65e1)
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/groeck/linux-staging.git/...
git remote add hwmon https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags hwmon watchdog-next
git checkout 36657904fe28786802ec2c9b016fcefb8631bbb9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/watchdog/iTCO_wdt.c:280:19: error: no member named 'dev' in 'struct watchdog_device'
dev_err(wd_dev->dev, "failed to reset NO_REBOOT flag, reboot disabled by hardware/BIOS\n");
~~~~~~ ^
include/linux/dev_printk.h:112:11: note: expanded from macro 'dev_err'
_dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~
1 error generated.
vim +280 drivers/watchdog/iTCO_wdt.c
267
268 static int iTCO_wdt_start(struct watchdog_device *wd_dev)
269 {
270 struct iTCO_wdt_private *p = watchdog_get_drvdata(wd_dev);
271 unsigned int val;
272
273 spin_lock(&p->io_lock);
274
275 iTCO_vendor_pre_start(p->smi_res, wd_dev->timeout);
276
277 /* disable chipset's NO_REBOOT bit */
278 if (p->update_no_reboot_bit(p->no_reboot_priv, false)) {
279 spin_unlock(&p->io_lock);
> 280 dev_err(wd_dev->dev, "failed to reset NO_REBOOT flag, reboot disabled by hardware/BIOS\n");
281 return -EIO;
282 }
283
284 /* Force the timer to its reload value by writing to the TCO_RLD
285 register */
286 if (p->iTCO_version >= 2)
287 outw(0x01, TCO_RLD(p));
288 else if (p->iTCO_version == 1)
289 outb(0x01, TCO_RLD(p));
290
291 /* Bit 11: TCO Timer Halt -> 0 = The TCO timer is enabled to count */
292 val = inw(TCO1_CNT(p));
293 val &= 0xf7ff;
294 outw(val, TCO1_CNT(p));
295 val = inw(TCO1_CNT(p));
296 spin_unlock(&p->io_lock);
297
298 if (val & 0x0800)
299 return -1;
300 return 0;
301 }
302
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[cifs:for-next 1/31] /tmp/mixer_oss-346997.s:202: Error: unrecognized opcode `zext.b s7,a1'
by kernel test robot
tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
head: de1ecd1edc1c428e6b1b37a0557d13ba7473e4fb
commit: 2494367d9d48498364276355dd85825c967d63c6 [1/31] cifs: Fix fall-through warnings for Clang
config: riscv-randconfig-r012-20201213 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 84c09ab44599ece409e4e19761288ddf796fceec)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add cifs git://git.samba.org/sfrench/cifs-2.6.git
git fetch --no-tags cifs for-next
git checkout 2494367d9d48498364276355dd85825c967d63c6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the cifs/for-next HEAD de1ecd1edc1c428e6b1b37a0557d13ba7473e4fb builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
/tmp/mixer_oss-346997.s: Assembler messages:
>> /tmp/mixer_oss-346997.s:202: Error: unrecognized opcode `zext.b s7,a1'
>> /tmp/mixer_oss-346997.s:225: Error: unrecognized opcode `zext.b s1,a0'
>> /tmp/mixer_oss-346997.s:228: Error: unrecognized opcode `zext.b a0,a0'
>> /tmp/mixer_oss-346997.s:278: Error: unrecognized opcode `zext.b a1,a1'
>> /tmp/mixer_oss-346997.s:412: Error: unrecognized opcode `zext.b a3,a0'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
--
In file included from kernel/time/timekeeping.c:6:
In file included from include/linux/timekeeper_internal.h:10:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inb(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inb'
#define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
#define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; })
^
In file included from kernel/time/timekeeping.c:6:
In file included from include/linux/timekeeper_internal.h:10:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from kernel/time/timekeeping.c:6:
In file included from include/linux/timekeeper_internal.h:10:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from kernel/time/timekeeping.c:6:
In file included from include/linux/timekeeper_internal.h:10:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from kernel/time/timekeeping.c:6:
In file included from include/linux/timekeeper_internal.h:10:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from kernel/time/timekeeping.c:6:
In file included from include/linux/timekeeper_internal.h:10:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from kernel/time/timekeeping.c:6:
In file included from include/linux/timekeeper_internal.h:10:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:1005:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
7 warnings generated.
/tmp/timekeeping-638290.s: Assembler messages:
>> /tmp/timekeeping-638290.s:1850: Error: unrecognized opcode `zext.b a4,a0'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[linux-next:master 12558/13205] drivers/thermal/intel/int340x_thermal/processor_thermal_rapl.c:96:50: sparse: sparse: cast removes address space '__iomem' of expression
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 3cc2bd440f2171f093b3a8480a4b54d8c270ed38
commit: a5923b6c3137b9d4fc2ea1c997f6e4d51ac5d774 [12558/13205] thermal: int340x: processor_thermal: Refactor MMIO interface
config: x86_64-randconfig-s022-20201213 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
# 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 a5923b6c3137b9d4fc2ea1c997f6e4d51ac5d774
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/thermal/intel/int340x_thermal/processor_thermal_rapl.c:96:50: sparse: sparse: cast removes address space '__iomem' of expression
drivers/thermal/intel/int340x_thermal/processor_thermal_rapl.c:100:36: sparse: sparse: cast removes address space '__iomem' of expression
vim +/__iomem +96 drivers/thermal/intel/int340x_thermal/processor_thermal_rapl.c
81
82 int proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv)
83 {
84 const struct rapl_mmio_regs *rapl_regs = &rapl_mmio_default;
85 enum rapl_domain_reg_id reg;
86 enum rapl_domain_type domain;
87 int ret;
88
89 if (!rapl_regs)
90 return 0;
91
92 for (domain = RAPL_DOMAIN_PACKAGE; domain < RAPL_DOMAIN_MAX; domain++) {
93 for (reg = RAPL_DOMAIN_REG_LIMIT; reg < RAPL_DOMAIN_REG_MAX; reg++)
94 if (rapl_regs->regs[domain][reg])
95 rapl_mmio_priv.regs[domain][reg] =
> 96 (u64)proc_priv->mmio_base +
97 rapl_regs->regs[domain][reg];
98 rapl_mmio_priv.limits[domain] = rapl_regs->limits[domain];
99 }
100 rapl_mmio_priv.reg_unit = (u64)proc_priv->mmio_base + rapl_regs->reg_unit;
101
102 rapl_mmio_priv.read_raw = rapl_mmio_read_raw;
103 rapl_mmio_priv.write_raw = rapl_mmio_write_raw;
104
105 rapl_mmio_priv.control_type = powercap_register_control_type(NULL, "intel-rapl-mmio", NULL);
106 if (IS_ERR(rapl_mmio_priv.control_type)) {
107 pr_debug("failed to register powercap control_type.\n");
108 return PTR_ERR(rapl_mmio_priv.control_type);
109 }
110
111 ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "powercap/rapl:online",
112 rapl_mmio_cpu_online, rapl_mmio_cpu_down_prep);
113 if (ret < 0) {
114 powercap_unregister_control_type(rapl_mmio_priv.control_type);
115 rapl_mmio_priv.control_type = NULL;
116 return ret;
117 }
118 rapl_mmio_priv.pcap_rapl_online = ret;
119
120 return 0;
121 }
122 EXPORT_SYMBOL_GPL(proc_thermal_rapl_add);
123
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[linux-stable-rc:linux-4.19.y 5653/9999] kernel/sched/fair.c:4905:1: warning: the frame size of 1152 bytes is larger than 1024 bytes
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: e864f43593ccf9180c61738abdf1c1dde091367d
commit: 742f2319cbd61d9a051f532ad8c83bb33b48f442 [5653/9999] sched/fair: Scale bandwidth quota and period without losing quota/period ratio precision
config: parisc-randconfig-r023-20201213 (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/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout 742f2319cbd61d9a051f532ad8c83bb33b48f442
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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 >>):
kernel/sched/fair.c: In function 'sched_cfs_period_timer':
>> kernel/sched/fair.c:4905:1: warning: the frame size of 1152 bytes is larger than 1024 bytes [-Wframe-larger-than=]
4905 | }
| ^
vim +4905 kernel/sched/fair.c
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4853
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4854 static enum hrtimer_restart sched_cfs_period_timer(struct hrtimer *timer)
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4855 {
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4856 struct cfs_bandwidth *cfs_b =
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4857 container_of(timer, struct cfs_bandwidth, period_timer);
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4858 int overrun;
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4859 int idle = 0;
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4860 int count = 0;
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4861
51f2176d74ace4c kernel/sched/fair.c Ben Segall 2014-05-19 4862 raw_spin_lock(&cfs_b->lock);
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4863 for (;;) {
77a4d1a1b9a122c kernel/sched/fair.c Peter Zijlstra 2015-04-15 4864 overrun = hrtimer_forward_now(timer, cfs_b->period);
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4865 if (!overrun)
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4866 break;
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4867
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4868 if (++count > 3) {
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4869 u64 new, old = ktime_to_ns(cfs_b->period);
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4870
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4871 /*
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4872 * Grow period by a factor of 2 to avoid losing precision.
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4873 * Precision loss in the quota/period ratio can cause __cfs_schedulable
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4874 * to fail.
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4875 */
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4876 new = old * 2;
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4877 if (new < max_cfs_quota_period) {
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4878 cfs_b->period = ns_to_ktime(new);
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4879 cfs_b->quota *= 2;
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4880
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4881 pr_warn_ratelimited(
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4882 "cfs_period_timer[cpu%d]: period too short, scaling up (new cfs_period_us = %lld, cfs_quota_us = %lld)\n",
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4883 smp_processor_id(),
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4884 div_u64(new, NSEC_PER_USEC),
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4885 div_u64(cfs_b->quota, NSEC_PER_USEC));
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4886 } else {
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4887 pr_warn_ratelimited(
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4888 "cfs_period_timer[cpu%d]: period too short, but cannot scale up without losing precision (cfs_period_us = %lld, cfs_quota_us = %lld)\n",
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4889 smp_processor_id(),
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4890 div_u64(old, NSEC_PER_USEC),
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4891 div_u64(cfs_b->quota, NSEC_PER_USEC));
742f2319cbd61d9 kernel/sched/fair.c Xuewei Zhang 2019-10-03 4892 }
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4893
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4894 /* reset count so we don't come right back in here */
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4895 count = 0;
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4896 }
c3edd427d5389ca kernel/sched/fair.c Phil Auld 2019-04-23 4897
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4898 idle = do_sched_cfs_period_timer(cfs_b, overrun);
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4899 }
4cfafd3082afc70 kernel/sched/fair.c Peter Zijlstra 2015-05-14 4900 if (idle)
4cfafd3082afc70 kernel/sched/fair.c Peter Zijlstra 2015-05-14 4901 cfs_b->period_active = 0;
51f2176d74ace4c kernel/sched/fair.c Ben Segall 2014-05-19 4902 raw_spin_unlock(&cfs_b->lock);
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4903
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4904 return idle ? HRTIMER_NORESTART : HRTIMER_RESTART;
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 @4905 }
029632fbb7b7c9d kernel/sched_fair.c Peter Zijlstra 2011-10-25 4906
:::::: The code at line 4905 was first introduced by commit
:::::: 029632fbb7b7c9d85063cc9eb470de6c54873df3 sched: Make separate sched*.c translation units
:::::: TO: Peter Zijlstra <a.p.zijlstra(a)chello.nl>
:::::: CC: Ingo Molnar <mingo(a)elte.hu>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[tnguy-next-queue:dev-queue 43/112] drivers/net/ethernet/intel/igc/igc_ptp.c:181:18: sparse: sparse: cast to restricted __le32
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: 49dd24e929ffd092788636429902443068bf9ebc
commit: 43483dcb31045ba36ac703314ca664429e339a95 [43/112] igc: Fix igc_ptp_rx_pktstamp()
config: parisc-randconfig-s032-20201213 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git/comm...
git remote add tnguy-next-queue https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git
git fetch --no-tags tnguy-next-queue dev-queue
git checkout 43483dcb31045ba36ac703314ca664429e339a95
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/net/ethernet/intel/igc/igc_ptp.c:181:18: sparse: sparse: cast to restricted __le32
>> drivers/net/ethernet/intel/igc/igc_ptp.c:181:18: sparse: sparse: cast to restricted __le32
>> drivers/net/ethernet/intel/igc/igc_ptp.c:181:18: sparse: sparse: cast to restricted __le32
>> drivers/net/ethernet/intel/igc/igc_ptp.c:181:18: sparse: sparse: cast to restricted __le32
>> drivers/net/ethernet/intel/igc/igc_ptp.c:181:18: sparse: sparse: cast to restricted __le32
>> drivers/net/ethernet/intel/igc/igc_ptp.c:181:18: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/intel/igc/igc_ptp.c:182:24: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/intel/igc/igc_ptp.c:182:24: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/intel/igc/igc_ptp.c:182:24: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/intel/igc/igc_ptp.c:182:24: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/intel/igc/igc_ptp.c:182:24: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/intel/igc/igc_ptp.c:182:24: sparse: sparse: cast to restricted __le32
vim +181 drivers/net/ethernet/intel/igc/igc_ptp.c
153
154 /**
155 * igc_ptp_rx_pktstamp - Retrieve timestamp from Rx packet buffer
156 * @q_vector: Pointer to interrupt specific structure
157 * @va: Pointer to address containing Rx buffer
158 * @skb: Buffer containing timestamp and packet
159 *
160 * This function retrieves the timestamp saved in the beginning of packet
161 * buffer. While two timestamps are available, one in timer0 reference and the
162 * other in timer1 reference, this function considers only the timestamp in
163 * timer0 reference.
164 */
165 void igc_ptp_rx_pktstamp(struct igc_q_vector *q_vector, u32 *va,
166 struct sk_buff *skb)
167 {
168 struct igc_adapter *adapter = q_vector->adapter;
169 u64 regval;
170 int adjust;
171
172 /* Timestamps are saved in little endian at the beginning of the packet
173 * buffer following the layout:
174 *
175 * DWORD: | 0 | 1 | 2 | 3 |
176 * Field: | Timer1 SYSTIML | Timer1 SYSTIMH | Timer0 SYSTIML | Timer0 SYSTIMH |
177 *
178 * SYSTIML holds the nanoseconds part while SYSTIMH holds the seconds
179 * part of the timestamp.
180 */
> 181 regval = le32_to_cpu(va[2]);
182 regval |= (u64)le32_to_cpu(va[3]) << 32;
183 igc_ptp_systim_to_hwtstamp(adapter, skb_hwtstamps(skb), regval);
184
185 /* Adjust timestamp for the RX latency based on link speed */
186 switch (adapter->link_speed) {
187 case SPEED_10:
188 adjust = IGC_I225_RX_LATENCY_10;
189 break;
190 case SPEED_100:
191 adjust = IGC_I225_RX_LATENCY_100;
192 break;
193 case SPEED_1000:
194 adjust = IGC_I225_RX_LATENCY_1000;
195 break;
196 case SPEED_2500:
197 adjust = IGC_I225_RX_LATENCY_2500;
198 break;
199 default:
200 adjust = 0;
201 netdev_warn_once(adapter->netdev, "Imprecise timestamp\n");
202 break;
203 }
204 skb_hwtstamps(skb)->hwtstamp =
205 ktime_sub_ns(skb_hwtstamps(skb)->hwtstamp, adjust);
206 }
207
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [RFC PATCH 2/2] overlayfs: propagate errors from upper to overlay sb in sync_fs
by kernel test robot
Hi Jeff,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on miklos-vfs/overlayfs-next]
[also build test WARNING on linus/master v5.10-rc7 next-20201211]
[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/Jeff-Layton/errseq-overlayfs-acc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-next
config: x86_64-randconfig-a016-20201213 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d38205144febf4dc42c9270c6aa3d978f1ef65e1)
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://github.com/0day-ci/linux/commit/89bd90a6b2a9bc40a46e9b9de68356e99...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jeff-Layton/errseq-overlayfs-accomodate-the-volatile-upper-layer-use-case/20201213-213109
git checkout 89bd90a6b2a9bc40a46e9b9de68356e99cde04e8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
>> fs/overlayfs/super.c:272:23: warning: variable 'upper_sb' is uninitialized when used here [-Wuninitialized]
ret = errseq_check(&upper_sb->s_wb_err, ofs->err_mark);
^~~~~~~~
fs/overlayfs/super.c:264:30: note: initialize the variable 'upper_sb' to silence this warning
struct super_block *upper_sb;
^
= NULL
1 warning generated.
vim +/upper_sb +272 fs/overlayfs/super.c
259
260 /* Sync real dirty inodes in upper filesystem (if it exists) */
261 static int ovl_sync_fs(struct super_block *sb, int wait)
262 {
263 struct ovl_fs *ofs = sb->s_fs_info;
264 struct super_block *upper_sb;
265 int ret;
266
267 if (!ovl_upper_mnt(ofs))
268 return 0;
269
270 if (!ovl_should_sync(ofs)) {
271 /* Propagate errors from upper to overlayfs */
> 272 ret = errseq_check(&upper_sb->s_wb_err, ofs->err_mark);
273 errseq_set(&sb->s_wb_err, ret);
274 return ret;
275 }
276
277 /*
278 * Not called for sync(2) call or an emergency sync (SB_I_SKIP_SYNC).
279 * All the super blocks will be iterated, including upper_sb.
280 *
281 * If this is a syncfs(2) call, then we do need to call
282 * sync_filesystem() on upper_sb, but enough if we do it when being
283 * called with wait == 1.
284 */
285 if (!wait)
286 return 0;
287
288 upper_sb = ovl_upper_mnt(ofs)->mnt_sb;
289
290 down_read(&upper_sb->s_umount);
291 ret = sync_filesystem(upper_sb);
292 up_read(&upper_sb->s_umount);
293
294 return ret;
295 }
296
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[efi:next 13/14] arch/x86/kernel/reboot.c:613: undefined reference to `efi_capsule_pending'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next
head: f4cc0ea28451d8adfb5f1ee35635e07650907c6e
commit: 168f1c4079fcddd8c989ce103fcc79d170b7b43c [13/14] efi: ia64: disable the capsule loader
config: x86_64-randconfig-a006-20201213 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/commit/?id=16...
git remote add efi https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git
git fetch --no-tags efi next
git checkout 168f1c4079fcddd8c989ce103fcc79d170b7b43c
# save the attached .config to linux build tree
make 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 errors (new ones prefixed by >>):
ld: warning: orphan section `.data..decrypted' from `arch/x86/kernel/cpu/vmware.o' being placed in section `.data..decrypted'
ld: warning: orphan section `.data..decrypted' from `arch/x86/kernel/kvm.o' being placed in section `.data..decrypted'
ld: arch/x86/kernel/reboot.o: in function `native_machine_emergency_restart':
>> arch/x86/kernel/reboot.c:613: undefined reference to `efi_capsule_pending'
vim +613 arch/x86/kernel/reboot.c
7432d149fda8ce9 Ingo Molnar 2008-03-06 573
660e34cebf0a11d Matthew Garrett 2011-04-04 574 /*
5be44a6fb1edb57 Ingo Molnar 2014-04-04 575 * To the best of our knowledge Windows compatible x86 hardware expects
5be44a6fb1edb57 Ingo Molnar 2014-04-04 576 * the following on reboot:
660e34cebf0a11d Matthew Garrett 2011-04-04 577 *
660e34cebf0a11d Matthew Garrett 2011-04-04 578 * 1) If the FADT has the ACPI reboot register flag set, try it
660e34cebf0a11d Matthew Garrett 2011-04-04 579 * 2) If still alive, write to the keyboard controller
660e34cebf0a11d Matthew Garrett 2011-04-04 580 * 3) If still alive, write to the ACPI reboot register again
660e34cebf0a11d Matthew Garrett 2011-04-04 581 * 4) If still alive, write to the keyboard controller again
a4f1987e4c5489a Li, Aubrey 2014-03-02 582 * 5) If still alive, call the EFI runtime service to reboot
5be44a6fb1edb57 Ingo Molnar 2014-04-04 583 * 6) If no EFI runtime service, call the BIOS to do a reboot
660e34cebf0a11d Matthew Garrett 2011-04-04 584 *
5be44a6fb1edb57 Ingo Molnar 2014-04-04 585 * We default to following the same pattern. We also have
5be44a6fb1edb57 Ingo Molnar 2014-04-04 586 * two other reboot methods: 'triple fault' and 'PCI', which
5be44a6fb1edb57 Ingo Molnar 2014-04-04 587 * can be triggered via the reboot= kernel boot option or
5be44a6fb1edb57 Ingo Molnar 2014-04-04 588 * via quirks.
5be44a6fb1edb57 Ingo Molnar 2014-04-04 589 *
5be44a6fb1edb57 Ingo Molnar 2014-04-04 590 * This means that this function can never return, it can misbehave
5be44a6fb1edb57 Ingo Molnar 2014-04-04 591 * by not rebooting properly and hanging.
660e34cebf0a11d Matthew Garrett 2011-04-04 592 */
416e2d63794d4e5 Jody Belka 2008-02-12 593 static void native_machine_emergency_restart(void)
4d022e35fd7e07c Miguel Boton 2008-01-30 594 {
4d022e35fd7e07c Miguel Boton 2008-01-30 595 int i;
660e34cebf0a11d Matthew Garrett 2011-04-04 596 int attempt = 0;
660e34cebf0a11d Matthew Garrett 2011-04-04 597 int orig_reboot_type = reboot_type;
edf2b1394611fef Robin Holt 2013-07-08 598 unsigned short mode;
4d022e35fd7e07c Miguel Boton 2008-01-30 599
d176720d34c72f7 Eduardo Habkost 2008-11-17 600 if (reboot_emergency)
d176720d34c72f7 Eduardo Habkost 2008-11-17 601 emergency_vmx_disable_all();
d176720d34c72f7 Eduardo Habkost 2008-11-17 602
840c2baf2d4cdf3 Joseph Cihula 2009-06-30 603 tboot_shutdown(TB_SHUTDOWN_REBOOT);
840c2baf2d4cdf3 Joseph Cihula 2009-06-30 604
4d022e35fd7e07c Miguel Boton 2008-01-30 605 /* Tell the BIOS if we want cold or warm reboot */
edf2b1394611fef Robin Holt 2013-07-08 606 mode = reboot_mode == REBOOT_WARM ? 0x1234 : 0;
edf2b1394611fef Robin Holt 2013-07-08 607 *((unsigned short *)__va(0x472)) = mode;
4d022e35fd7e07c Miguel Boton 2008-01-30 608
87615a34d561ef5 Matt Fleming 2016-04-25 609 /*
87615a34d561ef5 Matt Fleming 2016-04-25 610 * If an EFI capsule has been registered with the firmware then
87615a34d561ef5 Matt Fleming 2016-04-25 611 * override the reboot= parameter.
87615a34d561ef5 Matt Fleming 2016-04-25 612 */
87615a34d561ef5 Matt Fleming 2016-04-25 @613 if (efi_capsule_pending(NULL)) {
87615a34d561ef5 Matt Fleming 2016-04-25 614 pr_info("EFI capsule is pending, forcing EFI reboot.\n");
87615a34d561ef5 Matt Fleming 2016-04-25 615 reboot_type = BOOT_EFI;
87615a34d561ef5 Matt Fleming 2016-04-25 616 }
87615a34d561ef5 Matt Fleming 2016-04-25 617
4d022e35fd7e07c Miguel Boton 2008-01-30 618 for (;;) {
4d022e35fd7e07c Miguel Boton 2008-01-30 619 /* Could also try the reset bit in the Hammer NB */
4d022e35fd7e07c Miguel Boton 2008-01-30 620 switch (reboot_type) {
5be44a6fb1edb57 Ingo Molnar 2014-04-04 621 case BOOT_ACPI:
5be44a6fb1edb57 Ingo Molnar 2014-04-04 622 acpi_reboot();
5be44a6fb1edb57 Ingo Molnar 2014-04-04 623 reboot_type = BOOT_KBD;
5be44a6fb1edb57 Ingo Molnar 2014-04-04 624 break;
5be44a6fb1edb57 Ingo Molnar 2014-04-04 625
4d022e35fd7e07c Miguel Boton 2008-01-30 626 case BOOT_KBD:
144d102b926f887 Michael D Labriola 2012-02-01 627 mach_reboot_fixups(); /* For board specific fixups */
7432d149fda8ce9 Ingo Molnar 2008-03-06 628
4d022e35fd7e07c Miguel Boton 2008-01-30 629 for (i = 0; i < 10; i++) {
4d022e35fd7e07c Miguel Boton 2008-01-30 630 kb_wait();
4d022e35fd7e07c Miguel Boton 2008-01-30 631 udelay(50);
144d102b926f887 Michael D Labriola 2012-02-01 632 outb(0xfe, 0x64); /* Pulse reset low */
4d022e35fd7e07c Miguel Boton 2008-01-30 633 udelay(50);
4d022e35fd7e07c Miguel Boton 2008-01-30 634 }
660e34cebf0a11d Matthew Garrett 2011-04-04 635 if (attempt == 0 && orig_reboot_type == BOOT_ACPI) {
660e34cebf0a11d Matthew Garrett 2011-04-04 636 attempt = 1;
660e34cebf0a11d Matthew Garrett 2011-04-04 637 reboot_type = BOOT_ACPI;
660e34cebf0a11d Matthew Garrett 2011-04-04 638 } else {
a4f1987e4c5489a Li, Aubrey 2014-03-02 639 reboot_type = BOOT_EFI;
660e34cebf0a11d Matthew Garrett 2011-04-04 640 }
660e34cebf0a11d Matthew Garrett 2011-04-04 641 break;
4d022e35fd7e07c Miguel Boton 2008-01-30 642
4d022e35fd7e07c Miguel Boton 2008-01-30 643 case BOOT_EFI:
8562c99cdd30217 Matt Fleming 2014-06-13 644 efi_reboot(reboot_mode, NULL);
5be44a6fb1edb57 Ingo Molnar 2014-04-04 645 reboot_type = BOOT_BIOS;
5be44a6fb1edb57 Ingo Molnar 2014-04-04 646 break;
5be44a6fb1edb57 Ingo Molnar 2014-04-04 647
5be44a6fb1edb57 Ingo Molnar 2014-04-04 648 case BOOT_BIOS:
5be44a6fb1edb57 Ingo Molnar 2014-04-04 649 machine_real_restart(MRR_BIOS);
5be44a6fb1edb57 Ingo Molnar 2014-04-04 650
5be44a6fb1edb57 Ingo Molnar 2014-04-04 651 /* We're probably dead after this, but... */
5be44a6fb1edb57 Ingo Molnar 2014-04-04 652 reboot_type = BOOT_CF9_SAFE;
14d7ca5c5758536 H. Peter Anvin 2008-11-11 653 break;
4d022e35fd7e07c Miguel Boton 2008-01-30 654
5be44a6fb1edb57 Ingo Molnar 2014-04-04 655 case BOOT_CF9_FORCE:
14d7ca5c5758536 H. Peter Anvin 2008-11-11 656 port_cf9_safe = true;
df561f6688fef77 Gustavo A. R. Silva 2020-08-23 657 fallthrough;
4d022e35fd7e07c Miguel Boton 2008-01-30 658
5be44a6fb1edb57 Ingo Molnar 2014-04-04 659 case BOOT_CF9_SAFE:
14d7ca5c5758536 H. Peter Anvin 2008-11-11 660 if (port_cf9_safe) {
5be44a6fb1edb57 Ingo Molnar 2014-04-04 661 u8 reboot_code = reboot_mode == REBOOT_WARM ? 0x06 : 0x0E;
16c21ae5ca636cf Li Fei 2013-08-21 662 u8 cf9 = inb(0xcf9) & ~reboot_code;
14d7ca5c5758536 H. Peter Anvin 2008-11-11 663 outb(cf9|2, 0xcf9); /* Request hard reset */
14d7ca5c5758536 H. Peter Anvin 2008-11-11 664 udelay(50);
16c21ae5ca636cf Li Fei 2013-08-21 665 /* Actually do the reset */
16c21ae5ca636cf Li Fei 2013-08-21 666 outb(cf9|reboot_code, 0xcf9);
14d7ca5c5758536 H. Peter Anvin 2008-11-11 667 udelay(50);
14d7ca5c5758536 H. Peter Anvin 2008-11-11 668 }
5be44a6fb1edb57 Ingo Molnar 2014-04-04 669 reboot_type = BOOT_TRIPLE;
5be44a6fb1edb57 Ingo Molnar 2014-04-04 670 break;
5be44a6fb1edb57 Ingo Molnar 2014-04-04 671
5be44a6fb1edb57 Ingo Molnar 2014-04-04 672 case BOOT_TRIPLE:
e802a51ede91350 Thomas Gleixner 2017-08-28 673 idt_invalidate(NULL);
5be44a6fb1edb57 Ingo Molnar 2014-04-04 674 __asm__ __volatile__("int3");
5be44a6fb1edb57 Ingo Molnar 2014-04-04 675
5be44a6fb1edb57 Ingo Molnar 2014-04-04 676 /* We're probably dead after this, but... */
5be44a6fb1edb57 Ingo Molnar 2014-04-04 677 reboot_type = BOOT_KBD;
4d022e35fd7e07c Miguel Boton 2008-01-30 678 break;
4d022e35fd7e07c Miguel Boton 2008-01-30 679 }
4d022e35fd7e07c Miguel Boton 2008-01-30 680 }
4d022e35fd7e07c Miguel Boton 2008-01-30 681 }
4d022e35fd7e07c Miguel Boton 2008-01-30 682
:::::: The code at line 613 was first introduced by commit
:::::: 87615a34d561ef59bd0cffc73256a21220dfdffd x86/efi: Force EFI reboot to process pending capsules
:::::: TO: Matt Fleming <matt(a)codeblueprint.co.uk>
:::::: 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, 9 months
[cifs:for-next 1/31] /tmp/bq27xxx_battery_i2c-538025.s:427: Error: unrecognized opcode `zext.b a2,s1'
by kernel test robot
tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
head: 2e602aa485db999b6e8e995774e831e665817ea6
commit: 2494367d9d48498364276355dd85825c967d63c6 [1/31] cifs: Fix fall-through warnings for Clang
config: riscv-randconfig-r012-20201213 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 84c09ab44599ece409e4e19761288ddf796fceec)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add cifs git://git.samba.org/sfrench/cifs-2.6.git
git fetch --no-tags cifs for-next
git checkout 2494367d9d48498364276355dd85825c967d63c6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/power/supply/bq27xxx_battery_i2c.c:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/power/supply/bq27xxx_battery_i2c.c:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from drivers/power/supply/bq27xxx_battery_i2c.c:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from drivers/power/supply/bq27xxx_battery_i2c.c:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from drivers/power/supply/bq27xxx_battery_i2c.c:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:1005:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
7 warnings generated.
/tmp/bq27xxx_battery_i2c-538025.s: Assembler messages:
>> /tmp/bq27xxx_battery_i2c-538025.s:427: Error: unrecognized opcode `zext.b a2,s1'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
--
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/rtc/rtc-rv8803.c:14:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/rtc/rtc-rv8803.c:14:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from drivers/rtc/rtc-rv8803.c:14:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from drivers/rtc/rtc-rv8803.c:14:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from drivers/rtc/rtc-rv8803.c:14:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:1005:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
drivers/rtc/rtc-rv8803.c:539:18: warning: cast to smaller integer type 'enum rv8803_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
rv8803->type = (enum rv8803_type)
^~~~~~~~~~~~~~~~~~
8 warnings generated.
/tmp/rtc-rv8803-050782.s: Assembler messages:
>> /tmp/rtc-rv8803-050782.s:262: Error: unrecognized opcode `zext.b a2,s3'
>> /tmp/rtc-rv8803-050782.s:484: Error: unrecognized opcode `zext.b s5,s5'
>> /tmp/rtc-rv8803-050782.s:746: Error: unrecognized opcode `zext.b s5,a0'
>> /tmp/rtc-rv8803-050782.s:926: Error: unrecognized opcode `zext.b s3,s6'
/tmp/rtc-rv8803-050782.s:1368: Error: unrecognized opcode `zext.b s5,a0'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
--
In file included from drivers/i2c/busses/i2c-mt7621.c:16:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inb(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inb'
#define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
#define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; })
^
In file included from drivers/i2c/busses/i2c-mt7621.c:16:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/i2c/busses/i2c-mt7621.c:16:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/i2c/busses/i2c-mt7621.c:16:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from drivers/i2c/busses/i2c-mt7621.c:16:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from drivers/i2c/busses/i2c-mt7621.c:16:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from drivers/i2c/busses/i2c-mt7621.c:16:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:1005:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
7 warnings generated.
/tmp/i2c-mt7621-117489.s: Assembler messages:
>> /tmp/i2c-mt7621-117489.s:330: Error: unrecognized opcode `zext.b a0,a0'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[intel-linux-intel-lts:4.19/android_r 16398/20689] drivers/gpu/drm/drm_dp_mst_topology.c:1843 drm_dp_mst_update_dsc_info() warn: inconsistent indenting
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_r
head: 4a6aef8d991e7c47e5da39927e0ad28ec90cd01b
commit: b572376bedc67f334d005dabd7727dd318eeba44 [16398/20689] ANDROID: GKI: Add 'dsc_info' to struct drm_dp_mst_port
config: i386-randconfig-m021-20201213 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/gpu/drm/drm_dp_mst_topology.c:1843 drm_dp_mst_update_dsc_info() warn: inconsistent indenting
vim +1843 drivers/gpu/drm/drm_dp_mst_topology.c
1830
1831 int drm_dp_mst_update_dsc_info(struct drm_dp_mst_topology_mgr *mgr,
1832 struct drm_dp_mst_port *port,
1833 struct drm_dp_mst_dsc_info *dsc_info)
1834 {
1835 if (!dsc_info)
1836 return -EINVAL;
1837
1838 port = drm_dp_get_validated_port_ref(mgr, port);
1839 if (!port)
1840 return -EINVAL;
1841
1842 memcpy(&port->dsc_info, dsc_info, sizeof(struct drm_dp_mst_dsc_info));
> 1843 drm_dp_put_port(port);
1844
1845 return 0;
1846 }
1847 EXPORT_SYMBOL_GPL(drm_dp_mst_update_dsc_info);
1848
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months