[linux-stable-rc:linux-4.19.y 2397/3689] arch/powerpc/kernel/process.c:1285:6: error: no previous prototype for 'show_user_instructions'
by kernel test robot
Hi Michael,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: 7281e11121f6fb47ea1e757b7781c5c15e3781fe
commit: 57ac40ee09cea2ec90f71c6f49b15d0d82667b38 [2397/3689] powerpc: Drop -me200 addition to build flags
config: powerpc64-randconfig-p001-20210318 (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/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 57ac40ee09cea2ec90f71c6f49b15d0d82667b38
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
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 >>):
>> arch/powerpc/kernel/process.c:1285:6: error: no previous prototype for 'show_user_instructions' [-Werror=missing-prototypes]
1285 | void show_user_instructions(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
arch/powerpc/kernel/traps.c:1880:6: error: no previous prototype for 'DebugException' [-Werror=missing-prototypes]
1880 | void DebugException(struct pt_regs *regs, unsigned long debug_status)
| ^~~~~~~~~~~~~~
>> arch/powerpc/kernel/traps.c:1993:6: error: no previous prototype for 'CacheLockingException' [-Werror=missing-prototypes]
1993 | void CacheLockingException(struct pt_regs *regs, unsigned long address,
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
arch/powerpc/mm/fsl_booke_mmu.c:70:15: error: no previous prototype for 'tlbcam_sz' [-Werror=missing-prototypes]
70 | unsigned long tlbcam_sz(int idx)
| ^~~~~~~~~
>> arch/powerpc/mm/fsl_booke_mmu.c:269:21: error: no previous prototype for 'relocate_init' [-Werror=missing-prototypes]
269 | notrace void __init relocate_init(u64 dt_ptr, phys_addr_t start)
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
arch/powerpc/perf/core-fsl-emb.c: In function 'perf_event_interrupt':
>> arch/powerpc/perf/core-fsl-emb.c:665:6: error: variable 'found' set but not used [-Werror=unused-but-set-variable]
665 | int found = 0;
| ^~~~~
arch/powerpc/perf/core-fsl-emb.c: At top level:
>> arch/powerpc/perf/core-fsl-emb.c:704:6: error: no previous prototype for 'hw_perf_event_setup' [-Werror=missing-prototypes]
704 | void hw_perf_event_setup(int cpu)
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as 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
WARNING: unmet direct dependencies detected for FSL_EMB_PERFMON
Depends on E500 || PPC_83xx
Selected by
- PPC_FSL_BOOK3E
vim +/show_user_instructions +1285 arch/powerpc/kernel/process.c
06d67d54741a5b Paul Mackerras 2005-10-10 1284
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 @1285 void show_user_instructions(struct pt_regs *regs)
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1286 {
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1287 unsigned long pc;
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1288 int i;
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1289
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1290 pc = regs->nip - (instructions_to_print * 3 / 4 * sizeof(int));
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1291
a932ed3b718147 Michael Ellerman 2018-10-05 1292 /*
a932ed3b718147 Michael Ellerman 2018-10-05 1293 * Make sure the NIP points at userspace, not kernel text/data or
a932ed3b718147 Michael Ellerman 2018-10-05 1294 * elsewhere.
a932ed3b718147 Michael Ellerman 2018-10-05 1295 */
a932ed3b718147 Michael Ellerman 2018-10-05 1296 if (!__access_ok(pc, instructions_to_print * sizeof(int), USER_DS)) {
a932ed3b718147 Michael Ellerman 2018-10-05 1297 pr_info("%s[%d]: Bad NIP, not dumping instructions.\n",
a932ed3b718147 Michael Ellerman 2018-10-05 1298 current->comm, current->pid);
a932ed3b718147 Michael Ellerman 2018-10-05 1299 return;
a932ed3b718147 Michael Ellerman 2018-10-05 1300 }
a932ed3b718147 Michael Ellerman 2018-10-05 1301
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1302 pr_info("%s[%d]: code: ", current->comm, current->pid);
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1303
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1304 for (i = 0; i < instructions_to_print; i++) {
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1305 int instr;
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1306
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1307 if (!(i % 8) && (i > 0)) {
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1308 pr_cont("\n");
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1309 pr_info("%s[%d]: code: ", current->comm, current->pid);
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1310 }
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1311
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1312 if (probe_kernel_address((unsigned int __user *)pc, instr)) {
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1313 pr_cont("XXXXXXXX ");
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1314 } else {
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1315 if (regs->nip == pc)
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1316 pr_cont("<%08x> ", instr);
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1317 else
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1318 pr_cont("%08x ", instr);
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1319 }
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1320
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1321 pc += sizeof(int);
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1322 }
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1323
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1324 pr_cont("\n");
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1325 }
88b0fe17573592 Murilo Opsfelder Araujo 2018-08-01 1326
:::::: The code at line 1285 was first introduced by commit
:::::: 88b0fe17573592a8e3196bf143f865da460178e7 powerpc: Add show_user_instructions()
:::::: TO: Murilo Opsfelder Araujo <muriloo(a)linux.ibm.com>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 109/132] fs/proc/self.c:23:23: error: use of undeclared identifier 'PF_IO_WORKER'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: f0c8e16e7a2545ec4684e7186e2d450400f7b5a2 [109/132] proc: don't allow async path resolution of /proc/thread-self components
config: x86_64-randconfig-r032-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 436c6c9c20cc522c92a923440a5fc509c342a7db)
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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout f0c8e16e7a2545ec4684e7186e2d450400f7b5a2
# 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 >>):
>> fs/proc/self.c:23:23: error: use of undeclared identifier 'PF_IO_WORKER'
if (current->flags & PF_IO_WORKER)
^
1 error generated.
--
>> fs/proc/thread_self.c:24:23: error: use of undeclared identifier 'PF_IO_WORKER'
if (current->flags & PF_IO_WORKER)
^
1 error generated.
vim +/PF_IO_WORKER +23 fs/proc/self.c
7
8 /*
9 * /proc/self:
10 */
11 static const char *proc_self_get_link(struct dentry *dentry,
12 struct inode *inode,
13 struct delayed_call *done)
14 {
15 struct pid_namespace *ns = proc_pid_ns(inode);
16 pid_t tgid = task_tgid_nr_ns(current, ns);
17 char *name;
18
19 /*
20 * Not currently supported. Once we can inherit all of struct pid,
21 * we can allow this.
22 */
> 23 if (current->flags & PF_IO_WORKER)
24 return ERR_PTR(-EOPNOTSUPP);
25
26 if (!tgid)
27 return ERR_PTR(-ENOENT);
28 /* max length of unsigned int in decimal + NULL term */
29 name = kmalloc(10 + 1, dentry ? GFP_KERNEL : GFP_ATOMIC);
30 if (unlikely(!name))
31 return dentry ? ERR_PTR(-ENOMEM) : ERR_PTR(-ECHILD);
32 sprintf(name, "%u", tgid);
33 set_delayed_call(done, kfree_link, name);
34 return name;
35 }
36
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH v7 bpf-next 09/14] bpd: add multi-buffer support to xdp copy helpers
by kernel test robot
Hi Lorenzo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Lorenzo-Bianconi/mvneta-introduc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
compiler: nios2-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
^
net/core/filter.c:10085:6: note: Variable 'ret' is reassigned a value before the old one has been used.
ret = -EACCES;
^
net/core/filter.c:10090:6: note: Variable 'ret' is reassigned a value before the old one has been used.
ret = fprog->len;
^
>> net/core/filter.c:4593:30: warning: Uninitialized variable: copy_len [uninitvar]
memcpy(dst_buff, src_buff, copy_len);
^
vim +4593 net/core/filter.c
4551
4552 static unsigned long bpf_xdp_copy(void *dst_buff, const void *ctx,
4553 unsigned long off, unsigned long len)
4554 {
4555 struct xdp_buff *xdp = (struct xdp_buff *)ctx;
4556 struct xdp_shared_info *xdp_sinfo;
4557 unsigned long base_len;
4558 const void *src_buff;
4559
4560 if (likely(!xdp->mb)) {
4561 src_buff = xdp->data;
4562 memcpy(dst_buff, src_buff + off, len);
4563
4564 return 0;
4565 }
4566
4567 base_len = xdp->data_end - xdp->data;
4568 xdp_sinfo = xdp_get_shared_info_from_buff(xdp);
4569 do {
4570 unsigned long copy_len;
4571
4572 if (off < base_len) {
4573 src_buff = xdp->data + off;
4574 copy_len = min(len, base_len - off);
4575 } else {
4576 unsigned long frag_off_total = base_len;
4577 int i;
4578
4579 for (i = 0; i < xdp_sinfo->nr_frags; i++) {
4580 skb_frag_t *frag = &xdp_sinfo->frags[i];
4581 unsigned long frag_len = xdp_get_frag_size(frag);
4582 unsigned long frag_off = off - frag_off_total;
4583
4584 if (frag_off < frag_len) {
4585 src_buff = xdp_get_frag_address(frag) +
4586 frag_off;
4587 copy_len = min(len, frag_len - frag_off);
4588 break;
4589 }
4590 frag_off_total += frag_len;
4591 }
4592 }
> 4593 memcpy(dst_buff, src_buff, copy_len);
4594 off += copy_len;
4595 len -= copy_len;
4596 dst_buff += copy_len;
4597 } while (len);
4598
4599 return 0;
4600 }
4601
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH 2/2] net: phy: dp83867: add support for changing LED modes
by kernel test robot
Hi Michael,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on net/master ipvs/master net-next/master v5.12-rc3 next-20210319]
[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/Michael-Tretter/net-phy-dp83867-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm-randconfig-r023-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project fcc1ce00931751ac02498986feb37744e9ace8de)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/740c2de62bc36c66a54a8c152a65ae2eb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Michael-Tretter/net-phy-dp83867-Configure-LED-modes-via-device-tree/20210320-000027
git checkout 740c2de62bc36c66a54a8c152a65ae2ebf805515
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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 >>):
>> drivers/net/phy/dp83867.c:550:14: warning: incompatible integer to pointer conversion passing 'u32' (aka 'unsigned int') to parameter of type 'u32 *' (aka 'unsigned int *'); take the address with & [-Wint-conversion]
index, tmp);
^~~
&
include/linux/of.h:311:28: note: passing argument to parameter 'out_value' here
u32 index, u32 *out_value);
^
>> drivers/net/phy/dp83867.c:550:14: warning: variable 'tmp' is uninitialized when used here [-Wuninitialized]
index, tmp);
^~~
drivers/net/phy/dp83867.c:543:9: note: initialize the variable 'tmp' to silence this warning
u32 tmp;
^
= 0
2 warnings generated.
vim +550 drivers/net/phy/dp83867.c
538
539 #if IS_ENABLED(CONFIG_OF_MDIO)
540 static int dp83867_of_led_mode_read(struct device_node *of_node,
541 const char *led_name, u32 *mode)
542 {
543 u32 tmp;
544 int index;
545 int err;
546
547 index = of_property_match_string(of_node, "ti,dp83867-led-mode-names",
548 led_name);
549 err = of_property_read_u32_index(of_node, "ti,dp83867-led-modes",
> 550 index, tmp);
551 if (err)
552 return err;
553 if (tmp == 0xc || tmp >= 0xf)
554 return -EINVAL;
555
556 *mode = tmp;
557
558 return 0;
559 }
560
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[arnd-playground:randconfig-v5.12 390/597] arch/s390/pci/pci_iov.c:84:28: error: 'struct zpci_bus' has no member named 'bus'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-v5.12
head: fd21c2581b744639b5207c11651ab40abf13701a
commit: aeb172ab4efb38a4817cf99c9c977d89130c3937 [390/597] pci: s390: remove redundant zbus->bus member
config: s390-allyesconfig (attached as .config)
compiler: s390-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/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground randconfig-v5.12
git checkout aeb172ab4efb38a4817cf99c9c977d89130c3937
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 >>):
arch/s390/pci/pci_iov.c: In function 'zpci_iov_setup_virtfn':
>> arch/s390/pci/pci_iov.c:84:28: error: 'struct zpci_bus' has no member named 'bus'
84 | pdev = pci_get_slot(zbus->bus, zdev->devfn);
| ^~
vim +84 arch/s390/pci/pci_iov.c
abb95b7550f88b Niklas Schnelle 2020-08-17 62
abb95b7550f88b Niklas Schnelle 2020-08-17 63 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn)
abb95b7550f88b Niklas Schnelle 2020-08-17 64 {
abb95b7550f88b Niklas Schnelle 2020-08-17 65 int i, cand_devfn;
abb95b7550f88b Niklas Schnelle 2020-08-17 66 struct zpci_dev *zdev;
abb95b7550f88b Niklas Schnelle 2020-08-17 67 struct pci_dev *pdev;
abb95b7550f88b Niklas Schnelle 2020-08-17 68 int vfid = vfn - 1; /* Linux' vfid's start at 0 vfn at 1*/
abb95b7550f88b Niklas Schnelle 2020-08-17 69 int rc = 0;
abb95b7550f88b Niklas Schnelle 2020-08-17 70
abb95b7550f88b Niklas Schnelle 2020-08-17 71 if (!zbus->multifunction)
abb95b7550f88b Niklas Schnelle 2020-08-17 72 return 0;
abb95b7550f88b Niklas Schnelle 2020-08-17 73
abb95b7550f88b Niklas Schnelle 2020-08-17 74 /* If the parent PF for the given VF is also configured in the
abb95b7550f88b Niklas Schnelle 2020-08-17 75 * instance, it must be on the same zbus.
abb95b7550f88b Niklas Schnelle 2020-08-17 76 * We can then identify the parent PF by checking what
abb95b7550f88b Niklas Schnelle 2020-08-17 77 * devfn the VF would have if it belonged to that PF using the PF's
abb95b7550f88b Niklas Schnelle 2020-08-17 78 * stride and offset. Only if this candidate devfn matches the
abb95b7550f88b Niklas Schnelle 2020-08-17 79 * actual devfn will we link both functions.
abb95b7550f88b Niklas Schnelle 2020-08-17 80 */
abb95b7550f88b Niklas Schnelle 2020-08-17 81 for (i = 0; i < ZPCI_FUNCTIONS_PER_BUS; i++) {
abb95b7550f88b Niklas Schnelle 2020-08-17 82 zdev = zbus->function[i];
abb95b7550f88b Niklas Schnelle 2020-08-17 83 if (zdev && zdev->is_physfn) {
abb95b7550f88b Niklas Schnelle 2020-08-17 @84 pdev = pci_get_slot(zbus->bus, zdev->devfn);
:::::: The code at line 84 was first introduced by commit
:::::: abb95b7550f88bfb77081601f80662a259f2d143 s390/pci: consolidate SR-IOV specific code
:::::: TO: Niklas Schnelle <schnelle(a)linux.ibm.com>
:::::: CC: Vasily Gorbik <gor(a)linux.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 92/132] drivers/gpu/drm/panel/panel-elida-kd35t133.c:233:27: sparse: sparse: incorrect type in initializer (different argument counts)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: e2bf810d1ab3ed29b696968b2b4cceb58f2f5bad [92/132] drm/panel: add panel driver for Elida KD35T133 panels
config: i386-randconfig-s001-20210318 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-277-gc089cd2d-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout e2bf810d1ab3ed29b696968b2b4cceb58f2f5bad
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
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/gpu/drm/panel/panel-elida-kd35t133.c:233:27: sparse: sparse: incorrect type in initializer (different argument counts) @@ expected int ( *get_modes )( ... ) @@ got int ( * )( ... ) @@
drivers/gpu/drm/panel/panel-elida-kd35t133.c:233:27: sparse: expected int ( *get_modes )( ... )
drivers/gpu/drm/panel/panel-elida-kd35t133.c:233:27: sparse: got int ( * )( ... )
>> drivers/gpu/drm/panel/panel-elida-kd35t133.c:281:23: sparse: sparse: too many arguments for function drm_panel_init
drivers/gpu/drm/panel/panel-elida-kd35t133.c:284:15: sparse: sparse: undefined identifier 'drm_panel_of_backlight'
vim +233 drivers/gpu/drm/panel/panel-elida-kd35t133.c
229
230 static const struct drm_panel_funcs kd35t133_funcs = {
231 .unprepare = kd35t133_unprepare,
232 .prepare = kd35t133_prepare,
> 233 .get_modes = kd35t133_get_modes,
234 };
235
236 static int kd35t133_probe(struct mipi_dsi_device *dsi)
237 {
238 struct device *dev = &dsi->dev;
239 struct kd35t133 *ctx;
240 int ret;
241
242 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
243 if (!ctx)
244 return -ENOMEM;
245
246 ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
247 if (IS_ERR(ctx->reset_gpio)) {
248 DRM_DEV_ERROR(dev, "cannot get reset gpio\n");
249 return PTR_ERR(ctx->reset_gpio);
250 }
251
252 ctx->vdd = devm_regulator_get(dev, "vdd");
253 if (IS_ERR(ctx->vdd)) {
254 ret = PTR_ERR(ctx->vdd);
255 if (ret != -EPROBE_DEFER)
256 DRM_DEV_ERROR(dev,
257 "Failed to request vdd regulator: %d\n",
258 ret);
259 return ret;
260 }
261
262 ctx->iovcc = devm_regulator_get(dev, "iovcc");
263 if (IS_ERR(ctx->iovcc)) {
264 ret = PTR_ERR(ctx->iovcc);
265 if (ret != -EPROBE_DEFER)
266 DRM_DEV_ERROR(dev,
267 "Failed to request iovcc regulator: %d\n",
268 ret);
269 return ret;
270 }
271
272 mipi_dsi_set_drvdata(dsi, ctx);
273
274 ctx->dev = dev;
275
276 dsi->lanes = 1;
277 dsi->format = MIPI_DSI_FMT_RGB888;
278 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
279 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET;
280
> 281 drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs,
282 DRM_MODE_CONNECTOR_DSI);
283
284 ret = drm_panel_of_backlight(&ctx->panel);
285 if (ret)
286 return ret;
287
288 drm_panel_add(&ctx->panel);
289
290 ret = mipi_dsi_attach(dsi);
291 if (ret < 0) {
292 DRM_DEV_ERROR(dev, "mipi_dsi_attach failed: %d\n", ret);
293 drm_panel_remove(&ctx->panel);
294 return ret;
295 }
296
297 return 0;
298 }
299
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 104/132] drivers/misc/mei/pci-me.c:116:36: error: 'MEI_ME_PCH15_CFG' undeclared here (not in a function); did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: e3d6e47be1642041264e9adf79c9b7037ac3ab93 [104/132] mei: me: add adler lake point S DID
config: x86_64-allyesconfig (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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout e3d6e47be1642041264e9adf79c9b7037ac3ab93
# 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 >>):
In file included from drivers/misc/mei/pci-me.c:33:
drivers/misc/mei/pci-me.c:114:34: error: 'MEI_ME_PCH15_SPS_CFG' undeclared here (not in a function); did you mean 'MEI_ME_PCH8_SPS_CFG'?
114 | {MEI_PCI_DEVICE(MEI_DEV_ID_EBG, MEI_ME_PCH15_SPS_CFG)},
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/mei/hw-me.h:36:34: note: in definition of macro 'MEI_PCI_DEVICE'
36 | .driver_data = (kernel_ulong_t)(cfg),
| ^~~
>> drivers/misc/mei/pci-me.c:116:36: error: 'MEI_ME_PCH15_CFG' undeclared here (not in a function); did you mean 'MEI_ME_PCH12_CFG'?
116 | {MEI_PCI_DEVICE(MEI_DEV_ID_ADP_S, MEI_ME_PCH15_CFG)},
| ^~~~~~~~~~~~~~~~
drivers/misc/mei/hw-me.h:36:34: note: in definition of macro 'MEI_PCI_DEVICE'
36 | .driver_data = (kernel_ulong_t)(cfg),
| ^~~
vim +116 drivers/misc/mei/pci-me.c
34
35 /* mei_pci_tbl - PCI Device ID Table */
36 static const struct pci_device_id mei_me_pci_tbl[] = {
37 {MEI_PCI_DEVICE(MEI_DEV_ID_82946GZ, MEI_ME_ICH_CFG)},
38 {MEI_PCI_DEVICE(MEI_DEV_ID_82G35, MEI_ME_ICH_CFG)},
39 {MEI_PCI_DEVICE(MEI_DEV_ID_82Q965, MEI_ME_ICH_CFG)},
40 {MEI_PCI_DEVICE(MEI_DEV_ID_82G965, MEI_ME_ICH_CFG)},
41 {MEI_PCI_DEVICE(MEI_DEV_ID_82GM965, MEI_ME_ICH_CFG)},
42 {MEI_PCI_DEVICE(MEI_DEV_ID_82GME965, MEI_ME_ICH_CFG)},
43 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_82Q35, MEI_ME_ICH_CFG)},
44 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_82G33, MEI_ME_ICH_CFG)},
45 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_82Q33, MEI_ME_ICH_CFG)},
46 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_82X38, MEI_ME_ICH_CFG)},
47 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_3200, MEI_ME_ICH_CFG)},
48
49 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_6, MEI_ME_ICH_CFG)},
50 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_7, MEI_ME_ICH_CFG)},
51 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_8, MEI_ME_ICH_CFG)},
52 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_9, MEI_ME_ICH_CFG)},
53 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9_10, MEI_ME_ICH_CFG)},
54 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9M_1, MEI_ME_ICH_CFG)},
55 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9M_2, MEI_ME_ICH_CFG)},
56 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9M_3, MEI_ME_ICH_CFG)},
57 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH9M_4, MEI_ME_ICH_CFG)},
58
59 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH10_1, MEI_ME_ICH10_CFG)},
60 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH10_2, MEI_ME_ICH10_CFG)},
61 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH10_3, MEI_ME_ICH10_CFG)},
62 {MEI_PCI_DEVICE(MEI_DEV_ID_ICH10_4, MEI_ME_ICH10_CFG)},
63
64 {MEI_PCI_DEVICE(MEI_DEV_ID_IBXPK_1, MEI_ME_PCH6_CFG)},
65 {MEI_PCI_DEVICE(MEI_DEV_ID_IBXPK_2, MEI_ME_PCH6_CFG)},
66 {MEI_PCI_DEVICE(MEI_DEV_ID_CPT_1, MEI_ME_PCH_CPT_PBG_CFG)},
67 {MEI_PCI_DEVICE(MEI_DEV_ID_PBG_1, MEI_ME_PCH_CPT_PBG_CFG)},
68 {MEI_PCI_DEVICE(MEI_DEV_ID_PPT_1, MEI_ME_PCH7_CFG)},
69 {MEI_PCI_DEVICE(MEI_DEV_ID_PPT_2, MEI_ME_PCH7_CFG)},
70 {MEI_PCI_DEVICE(MEI_DEV_ID_PPT_3, MEI_ME_PCH7_CFG)},
71 {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_H, MEI_ME_PCH8_SPS_CFG)},
72 {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_W, MEI_ME_PCH8_SPS_CFG)},
73 {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_LP, MEI_ME_PCH8_CFG)},
74 {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_HR, MEI_ME_PCH8_SPS_CFG)},
75 {MEI_PCI_DEVICE(MEI_DEV_ID_WPT_LP, MEI_ME_PCH8_CFG)},
76 {MEI_PCI_DEVICE(MEI_DEV_ID_WPT_LP_2, MEI_ME_PCH8_CFG)},
77
78 {MEI_PCI_DEVICE(MEI_DEV_ID_SPT, MEI_ME_PCH8_CFG)},
79 {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_2, MEI_ME_PCH8_CFG)},
80 {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H, MEI_ME_PCH8_SPS_CFG)},
81 {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H_2, MEI_ME_PCH8_SPS_CFG)},
82 {MEI_PCI_DEVICE(MEI_DEV_ID_LBG, MEI_ME_PCH12_CFG)},
83
84 {MEI_PCI_DEVICE(MEI_DEV_ID_BXT_M, MEI_ME_PCH8_CFG)},
85 {MEI_PCI_DEVICE(MEI_DEV_ID_APL_I, MEI_ME_PCH8_CFG)},
86
87 {MEI_PCI_DEVICE(MEI_DEV_ID_DNV_IE, MEI_ME_PCH8_CFG)},
88
89 {MEI_PCI_DEVICE(MEI_DEV_ID_GLK, MEI_ME_PCH8_CFG)},
90
91 {MEI_PCI_DEVICE(MEI_DEV_ID_KBP, MEI_ME_PCH8_CFG)},
92 {MEI_PCI_DEVICE(MEI_DEV_ID_KBP_2, MEI_ME_PCH8_CFG)},
93
94 {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_LP, MEI_ME_PCH12_CFG)},
95 {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_LP_4, MEI_ME_PCH8_CFG)},
96 {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_H, MEI_ME_PCH12_CFG)},
97 {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_H_4, MEI_ME_PCH8_CFG)},
98
99 {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_LP, MEI_ME_PCH12_CFG)},
100 {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_LP_3, MEI_ME_PCH8_CFG)},
101 {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_V, MEI_ME_PCH12_CFG)},
102 {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_H, MEI_ME_PCH12_CFG)},
103 {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_H_3, MEI_ME_PCH8_CFG)},
104
105 {MEI_PCI_DEVICE(MEI_DEV_ID_ICP_LP, MEI_ME_PCH12_CFG)},
106
107 {MEI_PCI_DEVICE(MEI_DEV_ID_TGP_LP, MEI_ME_PCH12_CFG)},
108
109 {MEI_PCI_DEVICE(MEI_DEV_ID_MCC, MEI_ME_PCH12_CFG)},
110 {MEI_PCI_DEVICE(MEI_DEV_ID_MCC_4, MEI_ME_PCH8_CFG)},
111
112 {MEI_PCI_DEVICE(MEI_DEV_ID_CDF, MEI_ME_PCH8_CFG)},
113
114 {MEI_PCI_DEVICE(MEI_DEV_ID_EBG, MEI_ME_PCH15_SPS_CFG)},
115
> 116 {MEI_PCI_DEVICE(MEI_DEV_ID_ADP_S, MEI_ME_PCH15_CFG)},
117
118 /* required last entry */
119 {0, }
120 };
121
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 42/132] include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: 45102484256d341921bf68bdbee0a16141afd9a9 [42/132] drm/sched: Use completion to wait for sched->thread idle v2.
config: alpha-allyesconfig (attached as .config)
compiler: alpha-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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 45102484256d341921bf68bdbee0a16141afd9a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:31,
from drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c:29:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
98 | struct completion entity_idle;
| ^~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:31,
from drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:28:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
98 | struct completion entity_idle;
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c: In function 'amdgpu_display_crtc_scaling_mode_fixup':
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:691:27: warning: variable 'amdgpu_connector' set but not used [-Wunused-but-set-variable]
691 | struct amdgpu_connector *amdgpu_connector;
| ^~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:28:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:31,
from drivers/gpu/drm/amd/amdgpu/atombios_dp.c:29:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
98 | struct completion entity_idle;
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/atombios_dp.c: In function 'amdgpu_atombios_dp_get_panel_mode':
drivers/gpu/drm/amd/amdgpu/atombios_dp.c:364:36: warning: variable 'dig_connector' set but not used [-Wunused-but-set-variable]
364 | struct amdgpu_connector_atom_dig *dig_connector;
| ^~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/atombios_dp.c: In function 'amdgpu_atombios_dp_link_train':
drivers/gpu/drm/amd/amdgpu/atombios_dp.c:716:34: warning: variable 'dig' set but not used [-Wunused-but-set-variable]
716 | struct amdgpu_encoder_atom_dig *dig;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/atombios_dp.c:29:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:31,
from drivers/gpu/drm/amd/amdgpu/atombios_i2c.c:27:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
98 | struct completion entity_idle;
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/atombios_i2c.c: In function 'amdgpu_atombios_i2c_process_i2c_ch':
drivers/gpu/drm/amd/amdgpu/atombios_i2c.c:79:11: warning: comparison is always false due to limited range of data type [-Wtype-limits]
79 | if (num > ATOM_MAX_HW_I2C_READ) {
| ^
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/atombios_i2c.c:27:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:31,
from drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:34:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
98 | struct completion entity_idle;
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:49:18: warning: no previous prototype for 'amdgpu_gem_prime_get_sg_table' [-Wmissing-prototypes]
49 | struct sg_table *amdgpu_gem_prime_get_sg_table(struct drm_gem_object *obj)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:66:7: warning: no previous prototype for 'amdgpu_gem_prime_vmap' [-Wmissing-prototypes]
66 | void *amdgpu_gem_prime_vmap(struct drm_gem_object *obj)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:86:6: warning: no previous prototype for 'amdgpu_gem_prime_vunmap' [-Wmissing-prototypes]
86 | void amdgpu_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:104:5: warning: no previous prototype for 'amdgpu_gem_prime_mmap' [-Wmissing-prototypes]
104 | int amdgpu_gem_prime_mmap(struct drm_gem_object *obj,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:333:17: warning: no previous prototype for 'amdgpu_gem_prime_export' [-Wmissing-prototypes]
333 | struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:366:1: warning: no previous prototype for 'amdgpu_gem_prime_import_sg_table' [-Wmissing-prototypes]
366 | amdgpu_gem_prime_import_sg_table(struct drm_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:414:24: warning: no previous prototype for 'amdgpu_gem_prime_import' [-Wmissing-prototypes]
414 | struct drm_gem_object *amdgpu_gem_prime_import(struct drm_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c:34:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:31,
from drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c:33:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
98 | struct completion entity_idle;
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c: In function 'amdgpu_bo_list_create':
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c:74:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
74 | if (num_entries > (SIZE_MAX - sizeof(struct amdgpu_bo_list))
| ^
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c:33:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:31,
from drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:25:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
98 | struct completion entity_idle;
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:38:7: warning: no previous prototype for 'amdgpu_xgmi_hive_try_lock' [-Wmissing-prototypes]
38 | void *amdgpu_xgmi_hive_try_lock(struct amdgpu_hive_info *hive)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:25:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:31,
from drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c:25:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
98 | struct completion entity_idle;
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c: In function 'amdgpu_allocate_static_csa':
drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c:40:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
40 | int r;
| ^
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c:25:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:31,
from drivers/gpu/drm/amd/amdgpu/kv_dpm.c:24:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
98 | struct completion entity_idle;
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/kv_dpm.c: In function 'kv_get_acp_boot_level':
drivers/gpu/drm/amd/amdgpu/kv_dpm.c:1617:29: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
1617 | if (table->entries[i].clk >= 0) /* XXX */
| ^~
drivers/gpu/drm/amd/amdgpu/kv_dpm.c: In function 'kv_dpm_powergate_uvd':
drivers/gpu/drm/amd/amdgpu/kv_dpm.c:1678:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1678 | int ret;
| ^~~
drivers/gpu/drm/amd/amdgpu/kv_dpm.c: In function 'kv_dpm_powergate_vce':
drivers/gpu/drm/amd/amdgpu/kv_dpm.c:1706:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1706 | int ret;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/kv_dpm.c:24:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
..
vim +/entity_idle +98 include/drm/gpu_scheduler.h
46
47 /**
48 * struct drm_sched_entity - A wrapper around a job queue (typically
49 * attached to the DRM file_priv).
50 *
51 * @list: used to append this struct to the list of entities in the
52 * runqueue.
53 * @rq: runqueue on which this entity is currently scheduled.
54 * @rq_list: a list of run queues on which jobs from this entity can
55 * be scheduled
56 * @num_rq_list: number of run queues in the rq_list
57 * @rq_lock: lock to modify the runqueue to which this entity belongs.
58 * @job_queue: the list of jobs of this entity.
59 * @fence_seq: a linearly increasing seqno incremented with each
60 * new &drm_sched_fence which is part of the entity.
61 * @fence_context: a unique context for all the fences which belong
62 * to this entity.
63 * The &drm_sched_fence.scheduled uses the
64 * fence_context but &drm_sched_fence.finished uses
65 * fence_context + 1.
66 * @dependency: the dependency fence of the job which is on the top
67 * of the job queue.
68 * @cb: callback for the dependency fence above.
69 * @guilty: points to ctx's guilty.
70 * @fini_status: contains the exit status in case the process was signalled.
71 * @last_scheduled: points to the finished fence of the last scheduled job.
72 * @last_user: last group leader pushing a job into the entity.
73 * @stopped: Marks the enity as removed from rq and destined for termination.
74 * @entity_idle: Signals when enityt is not in use
75 *
76 * Entities will emit jobs in order to their corresponding hardware
77 * ring, and the scheduler will alternate between entities based on
78 * scheduling policy.
79 */
80 struct drm_sched_entity {
81 struct list_head list;
82 struct drm_sched_rq *rq;
83 struct drm_sched_rq **rq_list;
84 unsigned int num_rq_list;
85 spinlock_t rq_lock;
86
87 struct spsc_queue job_queue;
88
89 atomic_t fence_seq;
90 uint64_t fence_context;
91
92 struct dma_fence *dependency;
93 struct dma_fence_cb cb;
94 atomic_t *guilty;
95 struct dma_fence *last_scheduled;
96 struct task_struct *last_user;
97 bool stopped;
> 98 struct completion entity_idle;
99 };
100
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 70/132] arch/powerpc/include/asm/cpu_has_feature.h:12:13: error: use of undeclared identifier 'CPU_FTR_ARCH_31'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: 93badfe8759710113a0c24505cd72fc5d7778db8 [70/132] powerpc: Add POWER10 architected mode
config: powerpc-randconfig-r001-20210320 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 436c6c9c20cc522c92a923440a5fc509c342a7db)
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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 93badfe8759710113a0c24505cd72fc5d7778db8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:21:
In file included from arch/powerpc/include/asm/current.h:13:
In file included from arch/powerpc/include/asm/paca.h:17:
In file included from arch/powerpc/include/asm/lppaca.h:47:
In file included from arch/powerpc/include/asm/mmu.h:357:
In file included from arch/powerpc/include/asm/book3s/64/mmu.h:46:
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:296:
In file included from arch/powerpc/include/asm/book3s/64/radix.h:19:
>> arch/powerpc/include/asm/cpu_has_feature.h:12:13: error: use of undeclared identifier 'CPU_FTR_ARCH_31'
return !!((CPU_FTRS_ALWAYS & feature) ||
^
arch/powerpc/include/asm/cputable.h:569:7: note: expanded from macro 'CPU_FTRS_ALWAYS'
(CPU_FTRS_POSSIBLE & ~CPU_FTR_HVMODE & CPU_FTRS_POWER7 & \
^
arch/powerpc/include/asm/cputable.h:495:55: note: expanded from macro 'CPU_FTRS_POSSIBLE'
CPU_FTRS_POWER9_DD2_1 | CPU_FTRS_POWER9_DD2_2 | CPU_FTRS_POWER10)
^
arch/powerpc/include/asm/cputable.h:476:6: note: expanded from macro 'CPU_FTRS_POWER10'
CPU_FTR_ARCH_31)
^
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:21:
In file included from arch/powerpc/include/asm/current.h:13:
In file included from arch/powerpc/include/asm/paca.h:17:
In file included from arch/powerpc/include/asm/lppaca.h:47:
In file included from arch/powerpc/include/asm/mmu.h:357:
In file included from arch/powerpc/include/asm/book3s/64/mmu.h:46:
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:296:
In file included from arch/powerpc/include/asm/book3s/64/radix.h:19:
arch/powerpc/include/asm/cpu_has_feature.h:13:6: error: use of undeclared identifier 'CPU_FTR_ARCH_31'
(CPU_FTRS_POSSIBLE & cur_cpu_spec->cpu_features & feature));
^
arch/powerpc/include/asm/cputable.h:495:55: note: expanded from macro 'CPU_FTRS_POSSIBLE'
CPU_FTRS_POWER9_DD2_1 | CPU_FTRS_POWER9_DD2_2 | CPU_FTRS_POWER10)
^
arch/powerpc/include/asm/cputable.h:476:6: note: expanded from macro 'CPU_FTRS_POWER10'
CPU_FTR_ARCH_31)
^
In file included from arch/powerpc/kernel/asm-offsets.c:21:
include/linux/mman.h:133:9: warning: division by zero is undefined [-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:111:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
include/linux/mman.h:134:9: warning: division by zero is undefined [-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_SYNC, VM_SYNC );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:111:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
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:9:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:23:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:593:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:141:1: note: expanded from here
__do_inb
^
arch/powerpc/include/asm/io.h:524:53: note: expanded from macro '__do_inb'
#define __do_inb(port) readb((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
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:9:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:24:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:593:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:143:1: note: expanded from here
__do_inw
^
arch/powerpc/include/asm/io.h:525:53: note: expanded from macro '__do_inw'
#define __do_inw(port) readw((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
--
In file included from arch/powerpc/crypto/crct10dif-vpmsum_glue.c:10:
In file included from include/crypto/internal/hash.h:11:
In file included from include/crypto/algapi.h:10:
In file included from include/linux/crypto.h:19:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:21:
In file included from arch/powerpc/include/asm/current.h:13:
In file included from arch/powerpc/include/asm/paca.h:17:
In file included from arch/powerpc/include/asm/lppaca.h:47:
In file included from arch/powerpc/include/asm/mmu.h:357:
In file included from arch/powerpc/include/asm/book3s/64/mmu.h:46:
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:296:
In file included from arch/powerpc/include/asm/book3s/64/radix.h:19:
>> arch/powerpc/include/asm/cpu_has_feature.h:12:13: error: use of undeclared identifier 'CPU_FTR_ARCH_31'
return !!((CPU_FTRS_ALWAYS & feature) ||
^
arch/powerpc/include/asm/cputable.h:569:7: note: expanded from macro 'CPU_FTRS_ALWAYS'
(CPU_FTRS_POSSIBLE & ~CPU_FTR_HVMODE & CPU_FTRS_POWER7 & \
^
arch/powerpc/include/asm/cputable.h:495:55: note: expanded from macro 'CPU_FTRS_POSSIBLE'
CPU_FTRS_POWER9_DD2_1 | CPU_FTRS_POWER9_DD2_2 | CPU_FTRS_POWER10)
^
arch/powerpc/include/asm/cputable.h:476:6: note: expanded from macro 'CPU_FTRS_POWER10'
CPU_FTR_ARCH_31)
^
In file included from arch/powerpc/crypto/crct10dif-vpmsum_glue.c:10:
In file included from include/crypto/internal/hash.h:11:
In file included from include/crypto/algapi.h:10:
In file included from include/linux/crypto.h:19:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:21:
In file included from arch/powerpc/include/asm/current.h:13:
In file included from arch/powerpc/include/asm/paca.h:17:
In file included from arch/powerpc/include/asm/lppaca.h:47:
In file included from arch/powerpc/include/asm/mmu.h:357:
In file included from arch/powerpc/include/asm/book3s/64/mmu.h:46:
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:296:
In file included from arch/powerpc/include/asm/book3s/64/radix.h:19:
arch/powerpc/include/asm/cpu_has_feature.h:13:6: error: use of undeclared identifier 'CPU_FTR_ARCH_31'
(CPU_FTRS_POSSIBLE & cur_cpu_spec->cpu_features & feature));
^
arch/powerpc/include/asm/cputable.h:495:55: note: expanded from macro 'CPU_FTRS_POSSIBLE'
CPU_FTRS_POWER9_DD2_1 | CPU_FTRS_POWER9_DD2_2 | CPU_FTRS_POWER10)
^
arch/powerpc/include/asm/cputable.h:476:6: note: expanded from macro 'CPU_FTRS_POWER10'
CPU_FTR_ARCH_31)
^
In file included from arch/powerpc/crypto/crct10dif-vpmsum_glue.c:10:
In file included from include/crypto/internal/hash.h:11:
In file included from include/crypto/algapi.h:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:23:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:593:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:132:1: note: expanded from here
__do_inb
^
arch/powerpc/include/asm/io.h:524:53: note: expanded from macro '__do_inb'
#define __do_inb(port) readb((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/crypto/crct10dif-vpmsum_glue.c:10:
In file included from include/crypto/internal/hash.h:11:
In file included from include/crypto/algapi.h:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:24:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:593:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:134:1: note: expanded from here
__do_inw
^
arch/powerpc/include/asm/io.h:525:53: note: expanded from macro '__do_inw'
#define __do_inw(port) readw((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/crypto/crct10dif-vpmsum_glue.c:10:
In file included from include/crypto/internal/hash.h:11:
In file included from include/crypto/algapi.h:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:25:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:593:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:136:1: note: expanded from here
__do_inl
^
arch/powerpc/include/asm/io.h:526:53: note: expanded from macro '__do_inl'
#define __do_inl(port) readl((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/crypto/crct10dif-vpmsum_glue.c:10:
In file included from include/crypto/internal/hash.h:11:
In file included from include/crypto/algapi.h:13:
--
In file included from arch/powerpc/kernel/cputable.c:10:
In file included from include/linux/sched.h:12:
In file included from arch/powerpc/include/asm/current.h:13:
In file included from arch/powerpc/include/asm/paca.h:17:
In file included from arch/powerpc/include/asm/lppaca.h:47:
In file included from arch/powerpc/include/asm/mmu.h:357:
In file included from arch/powerpc/include/asm/book3s/64/mmu.h:46:
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:296:
In file included from arch/powerpc/include/asm/book3s/64/radix.h:19:
>> arch/powerpc/include/asm/cpu_has_feature.h:12:13: error: use of undeclared identifier 'CPU_FTR_ARCH_31'
return !!((CPU_FTRS_ALWAYS & feature) ||
^
arch/powerpc/include/asm/cputable.h:569:7: note: expanded from macro 'CPU_FTRS_ALWAYS'
(CPU_FTRS_POSSIBLE & ~CPU_FTR_HVMODE & CPU_FTRS_POWER7 & \
^
arch/powerpc/include/asm/cputable.h:495:55: note: expanded from macro 'CPU_FTRS_POSSIBLE'
CPU_FTRS_POWER9_DD2_1 | CPU_FTRS_POWER9_DD2_2 | CPU_FTRS_POWER10)
^
arch/powerpc/include/asm/cputable.h:476:6: note: expanded from macro 'CPU_FTRS_POWER10'
CPU_FTR_ARCH_31)
^
In file included from arch/powerpc/kernel/cputable.c:10:
In file included from include/linux/sched.h:12:
In file included from arch/powerpc/include/asm/current.h:13:
In file included from arch/powerpc/include/asm/paca.h:17:
In file included from arch/powerpc/include/asm/lppaca.h:47:
In file included from arch/powerpc/include/asm/mmu.h:357:
In file included from arch/powerpc/include/asm/book3s/64/mmu.h:46:
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:296:
In file included from arch/powerpc/include/asm/book3s/64/radix.h:19:
arch/powerpc/include/asm/cpu_has_feature.h:13:6: error: use of undeclared identifier 'CPU_FTR_ARCH_31'
(CPU_FTRS_POSSIBLE & cur_cpu_spec->cpu_features & feature));
^
arch/powerpc/include/asm/cputable.h:495:55: note: expanded from macro 'CPU_FTRS_POSSIBLE'
CPU_FTRS_POWER9_DD2_1 | CPU_FTRS_POWER9_DD2_2 | CPU_FTRS_POWER10)
^
arch/powerpc/include/asm/cputable.h:476:6: note: expanded from macro 'CPU_FTRS_POWER10'
CPU_FTR_ARCH_31)
^
In file included from arch/powerpc/kernel/cputable.c:18:
In file included from arch/powerpc/include/asm/prom.h:21:
In file included from include/linux/of_address.h:7:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:23:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:593:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:63:1: note: expanded from here
__do_inb
^
arch/powerpc/include/asm/io.h:524:53: note: expanded from macro '__do_inb'
#define __do_inb(port) readb((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/cputable.c:18:
In file included from arch/powerpc/include/asm/prom.h:21:
In file included from include/linux/of_address.h:7:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:24:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:593:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:65:1: note: expanded from here
__do_inw
^
arch/powerpc/include/asm/io.h:525:53: note: expanded from macro '__do_inw'
#define __do_inw(port) readw((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/cputable.c:18:
In file included from arch/powerpc/include/asm/prom.h:21:
In file included from include/linux/of_address.h:7:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:25:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:593:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:67:1: note: expanded from here
__do_inl
^
arch/powerpc/include/asm/io.h:526:53: note: expanded from macro '__do_inl'
#define __do_inl(port) readl((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/cputable.c:18:
In file included from arch/powerpc/include/asm/prom.h:21:
In file included from include/linux/of_address.h:7:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:26:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outb, (u8 val, unsigned long port), (val, port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:69:1: note: expanded from here
__do_outb
^
arch/powerpc/include/asm/io.h:521:62: note: expanded from macro '__do_outb'
#define __do_outb(val, port) writeb(val,(PCI_IO_ADDR)_IO_BASE+port);
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/cputable.c:18:
In file included from arch/powerpc/include/asm/prom.h:21:
..
vim +/CPU_FTR_ARCH_31 +12 arch/powerpc/include/asm/cpu_has_feature.h
b92a226e528423 Kevin Hao 2016-07-23 9
b92a226e528423 Kevin Hao 2016-07-23 10 static inline bool early_cpu_has_feature(unsigned long feature)
b92a226e528423 Kevin Hao 2016-07-23 11 {
b92a226e528423 Kevin Hao 2016-07-23 @12 return !!((CPU_FTRS_ALWAYS & feature) ||
b92a226e528423 Kevin Hao 2016-07-23 13 (CPU_FTRS_POSSIBLE & cur_cpu_spec->cpu_features & feature));
b92a226e528423 Kevin Hao 2016-07-23 14 }
b92a226e528423 Kevin Hao 2016-07-23 15
:::::: The code at line 12 was first introduced by commit
:::::: b92a226e528423b8d249dd09bb450d53361fbfcb powerpc: Move cpu_has_feature() to a separate file
:::::: TO: Kevin Hao <haokexin(a)gmail.com>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months