[drm-msm:msm-next-staging 30/33] drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:106:19: warning: initialized field overwritten
by kernel test robot
tree: https://gitlab.freedesktop.org/drm/msm.git msm-next-staging
head: bb69fca40aad210eaee642db2eb8fcf0b5c8b3cb
commit: 08db51fb4283304468cec04757e726667fb39915 [30/33] drm/msm/dpu: add SM8150 to hw catalog
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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
git checkout 08db51fb4283304468cec04757e726667fb39915
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:106:19: warning: initialized field overwritten [-Woverride-init]
106 | .max_linewidth = 4096,
| ^~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:106:19: note: (near initialization for 'sm8150_dpu_caps.max_linewidth')
In file included from drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:11:
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog_format.h:7:23: warning: 'qcom_compressed_supported_formats' defined but not used [-Wunused-const-variable=]
7 | static const uint32_t qcom_compressed_supported_formats[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +106 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
94
95 static const struct dpu_caps sm8150_dpu_caps = {
96 .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
97 .max_mixer_blendstages = 0xb,
98 .max_linewidth = 4096,
99 .qseed_type = DPU_SSPP_SCALER_QSEED3,
100 .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
101 .ubwc_version = DPU_HW_UBWC_VER_30,
102 .has_src_split = true,
103 .has_dim_layer = true,
104 .has_idle_pc = true,
105 .has_3d_merge = true,
> 106 .max_linewidth = 4096,
107 .pixel_ram_size = DEFAULT_PIXEL_RAM_SIZE,
108 .max_hdeci_exp = MAX_HORZ_DECIMATION,
109 .max_vdeci_exp = MAX_VERT_DECIMATION,
110 };
111
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
arch/mips/alchemy/devboards/db1300.c:(.text.db1300_wm97xx_probe+0x2c): undefined reference to `wm97xx_config_gpio'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0aea6d5c5be33ce94c16f9ab2f64de1f481f424b
commit: ff487d41036035376e47972c7c522490b839ab37 MIPS: Truncate link address into 32bit for 32bit kernel
date: 9 weeks ago
config: mips-randconfig-c023-20200712 (attached as .config)
compiler: mipsel-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>
All errors (new ones prefixed by >>):
mipsel-linux-ld: arch/mips/alchemy/devboards/db1300.o: in function `db1300_wm97xx_probe':
>> arch/mips/alchemy/devboards/db1300.c:(.text.db1300_wm97xx_probe+0x2c): undefined reference to `wm97xx_config_gpio'
>> mipsel-linux-ld: arch/mips/alchemy/devboards/db1300.c:(.text.db1300_wm97xx_probe+0x4c): undefined reference to `wm97xx_config_gpio'
>> mipsel-linux-ld: arch/mips/alchemy/devboards/db1300.c:(.text.db1300_wm97xx_probe+0x74): undefined reference to `wm97xx_register_mach_ops'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[ak:lto-5.7-2 11/29] kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_timer_create'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git lto-5.7-2
head: 8b6fa2174c4f82a1641d894ef53fc8b5a1d4031e
commit: 9a098db5a93b27ae0b3819c498c6b747f9a4a481 [11/29] lto: Use C version for SYSCALL_ALIAS / cond_syscall
config: c6x-allnoconfig (attached as .config)
compiler: c6x-elf-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
git checkout 9a098db5a93b27ae0b3819c498c6b747f9a4a481
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x
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 >>):
kernel/time/posix-stubs.c:25:17: warning: no previous prototype for 'sys_ni_posix_timers' [-Wmissing-prototypes]
25 | asmlinkage long sys_ni_posix_timers(void)
| ^~~~~~~~~~~~~~~~~~~
In file included from kernel/time/posix-stubs.c:9:
>> kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_timer_create'
34 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
| ^~~~
include/linux/linkage.h:32:7: note: in definition of macro 'SYSCALL_ALIAS'
32 | long a(void) __attribute__((alias(__stringify(name))))
| ^
kernel/time/posix-stubs.c:41:1: note: in expansion of macro 'SYS_NI'
41 | SYS_NI(timer_create);
| ^~~~~~
In file included from kernel/time/posix-stubs.c:13:
include/linux/syscalls.h:613:17: note: previous declaration of 'sys_timer_create' was here
613 | asmlinkage long sys_timer_create(clockid_t which_clock,
| ^~~~~~~~~~~~~~~~
In file included from kernel/time/posix-stubs.c:9:
>> kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_timer_gettime'
34 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
| ^~~~
include/linux/linkage.h:32:7: note: in definition of macro 'SYSCALL_ALIAS'
32 | long a(void) __attribute__((alias(__stringify(name))))
| ^
kernel/time/posix-stubs.c:42:1: note: in expansion of macro 'SYS_NI'
42 | SYS_NI(timer_gettime);
| ^~~~~~
In file included from kernel/time/posix-stubs.c:13:
include/linux/syscalls.h:616:17: note: previous declaration of 'sys_timer_gettime' was here
616 | asmlinkage long sys_timer_gettime(timer_t timer_id,
| ^~~~~~~~~~~~~~~~~
In file included from kernel/time/posix-stubs.c:9:
>> kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_timer_getoverrun'
34 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
| ^~~~
include/linux/linkage.h:32:7: note: in definition of macro 'SYSCALL_ALIAS'
32 | long a(void) __attribute__((alias(__stringify(name))))
| ^
kernel/time/posix-stubs.c:43:1: note: in expansion of macro 'SYS_NI'
43 | SYS_NI(timer_getoverrun);
| ^~~~~~
In file included from kernel/time/posix-stubs.c:13:
include/linux/syscalls.h:618:17: note: previous declaration of 'sys_timer_getoverrun' was here
618 | asmlinkage long sys_timer_getoverrun(timer_t timer_id);
| ^~~~~~~~~~~~~~~~~~~~
In file included from kernel/time/posix-stubs.c:9:
>> kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_timer_settime'
34 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
| ^~~~
include/linux/linkage.h:32:7: note: in definition of macro 'SYSCALL_ALIAS'
32 | long a(void) __attribute__((alias(__stringify(name))))
| ^
kernel/time/posix-stubs.c:44:1: note: in expansion of macro 'SYS_NI'
44 | SYS_NI(timer_settime);
| ^~~~~~
In file included from kernel/time/posix-stubs.c:13:
include/linux/syscalls.h:619:17: note: previous declaration of 'sys_timer_settime' was here
619 | asmlinkage long sys_timer_settime(timer_t timer_id, int flags,
| ^~~~~~~~~~~~~~~~~
In file included from kernel/time/posix-stubs.c:9:
>> kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_timer_delete'
34 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
| ^~~~
include/linux/linkage.h:32:7: note: in definition of macro 'SYSCALL_ALIAS'
32 | long a(void) __attribute__((alias(__stringify(name))))
| ^
kernel/time/posix-stubs.c:45:1: note: in expansion of macro 'SYS_NI'
45 | SYS_NI(timer_delete);
| ^~~~~~
In file included from kernel/time/posix-stubs.c:13:
include/linux/syscalls.h:622:17: note: previous declaration of 'sys_timer_delete' was here
622 | asmlinkage long sys_timer_delete(timer_t timer_id);
| ^~~~~~~~~~~~~~~~
In file included from kernel/time/posix-stubs.c:9:
>> kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_clock_adjtime'
34 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
| ^~~~
include/linux/linkage.h:32:7: note: in definition of macro 'SYSCALL_ALIAS'
32 | long a(void) __attribute__((alias(__stringify(name))))
| ^
kernel/time/posix-stubs.c:46:1: note: in expansion of macro 'SYS_NI'
46 | SYS_NI(clock_adjtime);
| ^~~~~~
In file included from kernel/time/posix-stubs.c:13:
include/linux/syscalls.h:930:17: note: previous declaration of 'sys_clock_adjtime' was here
930 | asmlinkage long sys_clock_adjtime(clockid_t which_clock,
| ^~~~~~~~~~~~~~~~~
In file included from kernel/time/posix-stubs.c:9:
>> kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_getitimer'
34 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
| ^~~~
include/linux/linkage.h:32:7: note: in definition of macro 'SYSCALL_ALIAS'
32 | long a(void) __attribute__((alias(__stringify(name))))
| ^
kernel/time/posix-stubs.c:47:1: note: in expansion of macro 'SYS_NI'
47 | SYS_NI(getitimer);
| ^~~~~~
In file included from kernel/time/posix-stubs.c:13:
include/linux/syscalls.h:596:17: note: previous declaration of 'sys_getitimer' was here
596 | asmlinkage long sys_getitimer(int which, struct __kernel_old_itimerval __user *value);
| ^~~~~~~~~~~~~
In file included from kernel/time/posix-stubs.c:9:
>> kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_setitimer'
34 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
| ^~~~
include/linux/linkage.h:32:7: note: in definition of macro 'SYSCALL_ALIAS'
32 | long a(void) __attribute__((alias(__stringify(name))))
| ^
kernel/time/posix-stubs.c:48:1: note: in expansion of macro 'SYS_NI'
48 | SYS_NI(setitimer);
| ^~~~~~
In file included from kernel/time/posix-stubs.c:13:
include/linux/syscalls.h:597:17: note: previous declaration of 'sys_setitimer' was here
597 | asmlinkage long sys_setitimer(int which,
| ^~~~~~~~~~~~~
In file included from kernel/time/posix-stubs.c:9:
>> kernel/time/posix-stubs.c:34:37: error: conflicting types for 'sys_clock_adjtime32'
34 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
| ^~~~
include/linux/linkage.h:32:7: note: in definition of macro 'SYSCALL_ALIAS'
32 | long a(void) __attribute__((alias(__stringify(name))))
| ^
kernel/time/posix-stubs.c:49:1: note: in expansion of macro 'SYS_NI'
49 | SYS_NI(clock_adjtime32);
| ^~~~~~
In file included from kernel/time/posix-stubs.c:13:
include/linux/syscalls.h:932:17: note: previous declaration of 'sys_clock_adjtime32' was here
932 | asmlinkage long sys_clock_adjtime32(clockid_t which_clock,
| ^~~~~~~~~~~~~~~~~~~
kernel/time/posix-stubs.c:73:5: warning: no previous prototype for 'do_clock_gettime' [-Wmissing-prototypes]
73 | int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp)
| ^~~~~~~~~~~~~~~~
vim +/sys_timer_create +34 kernel/time/posix-stubs.c
baa73d9e478ff3 Nicolas Pitre 2016-11-11 32
7303e30ec1d8fb Dominik Brodowski 2018-04-05 33 #ifndef SYS_NI
baa73d9e478ff3 Nicolas Pitre 2016-11-11 @34 #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers)
7303e30ec1d8fb Dominik Brodowski 2018-04-05 35 #endif
7303e30ec1d8fb Dominik Brodowski 2018-04-05 36
:::::: The code at line 34 was first introduced by commit
:::::: baa73d9e478ff32d62f3f9422822b59dd9a95a21 posix-timers: Make them configurable
:::::: TO: Nicolas Pitre <nicolas.pitre(a)linaro.org>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[drm-msm:msm-next-staging 30/33] drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:106:19: warning: initializer overrides prior initialization of this subobject
by kernel test robot
tree: https://gitlab.freedesktop.org/drm/msm.git msm-next-staging
head: bb69fca40aad210eaee642db2eb8fcf0b5c8b3cb
commit: 08db51fb4283304468cec04757e726667fb39915 [30/33] drm/msm/dpu: add SM8150 to hw catalog
config: arm64-randconfig-r003-20200712 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git checkout 08db51fb4283304468cec04757e726667fb39915
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:106:19: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.max_linewidth = 4096,
^~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:98:19: note: previous initialization is here
.max_linewidth = 4096,
^~~~
1 warning generated.
vim +106 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
94
95 static const struct dpu_caps sm8150_dpu_caps = {
96 .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
97 .max_mixer_blendstages = 0xb,
98 .max_linewidth = 4096,
99 .qseed_type = DPU_SSPP_SCALER_QSEED3,
100 .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
101 .ubwc_version = DPU_HW_UBWC_VER_30,
102 .has_src_split = true,
103 .has_dim_layer = true,
104 .has_idle_pc = true,
105 .has_3d_merge = true,
> 106 .max_linewidth = 4096,
107 .pixel_ram_size = DEFAULT_PIXEL_RAM_SIZE,
108 .max_hdeci_exp = MAX_HORZ_DECIMATION,
109 .max_vdeci_exp = MAX_VERT_DECIMATION,
110 };
111
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[arm:cex7 91/91] drivers/net/phy/qsfp.c:1229:3: warning: misleading indentation; statement is not part of the previous 'if'
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head: 2457e1460381f744daae7d22695c7d819518d802
commit: 2457e1460381f744daae7d22695c7d819518d802 [91/91] net: add qsfp support [*experimental*]
config: powerpc-randconfig-r036-20200712 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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
git checkout 2457e1460381f744daae7d22695c7d819518d802
# 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 warnings (new ones prefixed by >>):
>> drivers/net/phy/qsfp.c:1229:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
qsfp_sm_ins_next(qsfp, SFP_MOD_PRESENT, 0);
^
drivers/net/phy/qsfp.c:1222:2: note: previous statement is here
if (!qsfp->gpio_irq[GPIO_INTL])
^
1 warning generated.
vim +/if +1229 drivers/net/phy/qsfp.c
1215
1216 if (qsfp->sm_dev_state == SFP_DEV_DETACHED) {
1217 qsfp_sm_ins_next(qsfp, SFP_MOD_WATTACH, 0);
1218 return;
1219 }
1220
1221 // Start the poller if there is no interrupt support if not running
1222 if (!qsfp->gpio_irq[GPIO_INTL])
1223 queue_delayed_work(system_wq, &qsfp->poll, poll_jiffies);
1224
1225 // ret = sfp_module_insert(qsfp->sfp_bus, &id);
1226 // if (ret < 0)
1227 // qsfp_sm_ins_next(qsfp, SFP_MOD_ERROR, 0);
1228 // else
> 1229 qsfp_sm_ins_next(qsfp, SFP_MOD_PRESENT, 0);
1230 }
1231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[android-goldfish:android-3.18 12862/15632] drivers/char/mem.c:457:8: error: implicit declaration of function 'should_stop_iteration'
by kernel test robot
Hi Tetsuo,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: c8f4639f759e4c04b56d64f5a5d9b583eeb0569e
commit: d8d7791979c3d6045b0904ddf8e17970401a5a80 [12862/15632] /dev/mem: Bail out upon SIGKILL.
config: x86_64-randconfig-a014-20200712 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
git checkout d8d7791979c3d6045b0904ddf8e17970401a5a80
# 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 include/linux/ptrace.h:5:0,
from drivers/char/mem.c:21:
include/linux/sched.h:1067:42: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
drivers/char/mem.c: In function 'read_kmem':
>> drivers/char/mem.c:457:8: error: implicit declaration of function 'should_stop_iteration' [-Werror=implicit-function-declaration]
if (should_stop_iteration()) {
^
cc1: some warnings being treated as errors
vim +/should_stop_iteration +457 drivers/char/mem.c
408
409 #ifdef CONFIG_DEVKMEM
410 /*
411 * This function reads the *virtual* memory as seen by the kernel.
412 */
413 static ssize_t read_kmem(struct file *file, char __user *buf,
414 size_t count, loff_t *ppos)
415 {
416 unsigned long p = *ppos;
417 ssize_t low_count, read, sz;
418 char *kbuf; /* k-addr because vread() takes vmlist_lock rwlock */
419 int err = 0;
420
421 read = 0;
422 if (p < (unsigned long) high_memory) {
423 low_count = count;
424 if (count > (unsigned long)high_memory - p)
425 low_count = (unsigned long)high_memory - p;
426
427 #ifdef __ARCH_HAS_NO_PAGE_ZERO_MAPPED
428 /* we don't have page 0 mapped on sparc and m68k.. */
429 if (p < PAGE_SIZE && low_count > 0) {
430 sz = size_inside_page(p, low_count);
431 if (clear_user(buf, sz))
432 return -EFAULT;
433 buf += sz;
434 p += sz;
435 read += sz;
436 low_count -= sz;
437 count -= sz;
438 }
439 #endif
440 while (low_count > 0) {
441 sz = size_inside_page(p, low_count);
442
443 /*
444 * On ia64 if a page has been mapped somewhere as
445 * uncached, then it must also be accessed uncached
446 * by the kernel or data corruption may occur
447 */
448 kbuf = xlate_dev_kmem_ptr((char *)p);
449
450 if (copy_to_user(buf, kbuf, sz))
451 return -EFAULT;
452 buf += sz;
453 p += sz;
454 read += sz;
455 low_count -= sz;
456 count -= sz;
> 457 if (should_stop_iteration()) {
458 count = 0;
459 break;
460 }
461 }
462 }
463
464 if (count > 0) {
465 kbuf = (char *)__get_free_page(GFP_KERNEL);
466 if (!kbuf)
467 return -ENOMEM;
468 while (count > 0) {
469 sz = size_inside_page(p, count);
470 if (!is_vmalloc_or_module_addr((void *)p)) {
471 err = -ENXIO;
472 break;
473 }
474 sz = vread(kbuf, (char *)p, sz);
475 if (!sz)
476 break;
477 if (copy_to_user(buf, kbuf, sz)) {
478 err = -EFAULT;
479 break;
480 }
481 count -= sz;
482 buf += sz;
483 read += sz;
484 p += sz;
485 if (should_stop_iteration())
486 break;
487 }
488 free_page((unsigned long)kbuf);
489 }
490 *ppos = p;
491 return read ? read : err;
492 }
493
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[zen-kernel-zen-kernel:5.7/muqss 1/17] kernel/sched/MuQSS.c:637:6: warning: no previous prototype for function 'resched_task'
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.7/muqss
head: 83fdcd9083978f28fe1f43bcc3af3a1ee87691e9
commit: cd3b420bc9cd575a1eaf051463cfb1204599e8d9 [1/17] MultiQueue Skiplist Scheduler v0.202
config: powerpc-randconfig-r036-20200712 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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
git checkout cd3b420bc9cd575a1eaf051463cfb1204599e8d9
# 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 error/warnings (new ones prefixed by >>):
>> kernel/sched/MuQSS.c:637:6: warning: no previous prototype for function 'resched_task' [-Wmissing-prototypes]
void resched_task(struct task_struct *p)
^
kernel/sched/MuQSS.c:637:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void resched_task(struct task_struct *p)
^
static
>> kernel/sched/MuQSS.c:2932:15: warning: no previous prototype for function 'nr_active' [-Wmissing-prototypes]
unsigned long nr_active(void)
^
kernel/sched/MuQSS.c:2932:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned long nr_active(void)
^
static
>> kernel/sched/MuQSS.c:6000:6: warning: no previous prototype for function 'resched_cpu' [-Wmissing-prototypes]
void resched_cpu(int cpu)
^
kernel/sched/MuQSS.c:6000:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void resched_cpu(int cpu)
^
static
>> kernel/sched/MuQSS.c:7464:6: warning: no previous prototype for function 'init_idle_bootup_task' [-Wmissing-prototypes]
void init_idle_bootup_task(struct task_struct *idle)
^
kernel/sched/MuQSS.c:7464:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void init_idle_bootup_task(struct task_struct *idle)
^
static
>> kernel/sched/MuQSS.c:7488:20: warning: no previous prototype for function 'sched_create_group' [-Wmissing-prototypes]
struct task_group *sched_create_group(struct task_group *parent)
^
kernel/sched/MuQSS.c:7488:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct task_group *sched_create_group(struct task_group *parent)
^
static
>> kernel/sched/MuQSS.c:7499:6: warning: no previous prototype for function 'sched_online_group' [-Wmissing-prototypes]
void sched_online_group(struct task_group *tg, struct task_group *parent)
^
kernel/sched/MuQSS.c:7499:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_online_group(struct task_group *tg, struct task_group *parent)
^
static
>> kernel/sched/MuQSS.c:7510:6: warning: no previous prototype for function 'sched_destroy_group' [-Wmissing-prototypes]
void sched_destroy_group(struct task_group *tg)
^
kernel/sched/MuQSS.c:7510:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_destroy_group(struct task_group *tg)
^
static
>> kernel/sched/MuQSS.c:7516:6: warning: no previous prototype for function 'sched_offline_group' [-Wmissing-prototypes]
void sched_offline_group(struct task_group *tg)
^
kernel/sched/MuQSS.c:7516:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_offline_group(struct task_group *tg)
^
static
>> kernel/sched/MuQSS.c:7607:20: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.legacy_cftypes = cpu_legacy_files,
^~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:7606:20: note: previous initialization is here
.legacy_cftypes = cpu_files,
^~~~~~~~~
kernel/sched/MuQSS.c:427:20: warning: unused function 'lock_all_rqs' [-Wunused-function]
static inline void lock_all_rqs(void)
^
kernel/sched/MuQSS.c:439:20: warning: unused function 'unlock_all_rqs' [-Wunused-function]
static inline void unlock_all_rqs(void)
^
kernel/sched/MuQSS.c:452:20: warning: unused function 'trylock_rq' [-Wunused-function]
static inline bool trylock_rq(struct rq *this_rq, struct rq *rq)
^
kernel/sched/MuQSS.c:462:20: warning: unused function 'unlock_rq' [-Wunused-function]
static inline void unlock_rq(struct rq *rq)
^
kernel/sched/MuQSS.c:1215:26: warning: unused function 'rq_order' [-Wunused-function]
static inline struct rq *rq_order(struct rq *rq, int cpu)
^
kernel/sched/MuQSS.c:1220:20: warning: unused function 'smt_schedule' [-Wunused-function]
static inline bool smt_schedule(struct task_struct *p, struct rq *rq)
^
kernel/sched/MuQSS.c:1908:19: warning: unused function 'select_best_cpu' [-Wunused-function]
static inline int select_best_cpu(struct task_struct *p)
^
kernel/sched/MuQSS.c:3537:20: warning: unused function 'sched_start_tick' [-Wunused-function]
static inline void sched_start_tick(struct rq *rq, int cpu) {}
^
kernel/sched/MuQSS.c:3538:20: warning: unused function 'sched_tick_start' [-Wunused-function]
static inline void sched_tick_start(int cpu) { }
^
kernel/sched/MuQSS.c:3539:20: warning: unused function 'sched_tick_stop' [-Wunused-function]
static inline void sched_tick_stop(int cpu) { }
^
19 warnings generated.
--
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
this_cpu_write(runqueues.membarrier_state,
^
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
>> kernel/sched/membarrier.c:39:2: error: indirection requires pointer operand ('void' invalid)
this_cpu_write(runqueues.membarrier_state,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:377:11: note: expanded from macro '__pcpu_size_call'
case 1: stem##1(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:103:1: note: expanded from here
this_cpu_write_1
^
include/asm-generic/percpu.h:333:36: note: expanded from macro 'this_cpu_write_1'
#define this_cpu_write_1(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:148:2: note: expanded from macro 'this_cpu_generic_to_op'
raw_cpu_generic_to_op(pcp, val, op); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:72:2: note: expanded from macro 'raw_cpu_generic_to_op'
*raw_cpu_ptr(&(pcp)) op val; \
^~~~~~~~~~~~~~~~~~~~
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
this_cpu_write(runqueues.membarrier_state,
^
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
>> kernel/sched/membarrier.c:39:2: error: indirection requires pointer operand ('void' invalid)
this_cpu_write(runqueues.membarrier_state,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:378:11: note: expanded from macro '__pcpu_size_call'
case 2: stem##2(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:104:1: note: expanded from here
this_cpu_write_2
^
include/asm-generic/percpu.h:336:36: note: expanded from macro 'this_cpu_write_2'
#define this_cpu_write_2(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:148:2: note: expanded from macro 'this_cpu_generic_to_op'
raw_cpu_generic_to_op(pcp, val, op); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:72:2: note: expanded from macro 'raw_cpu_generic_to_op'
*raw_cpu_ptr(&(pcp)) op val; \
^~~~~~~~~~~~~~~~~~~~
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
this_cpu_write(runqueues.membarrier_state,
^
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
>> kernel/sched/membarrier.c:39:2: error: indirection requires pointer operand ('void' invalid)
this_cpu_write(runqueues.membarrier_state,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:379:11: note: expanded from macro '__pcpu_size_call'
case 4: stem##4(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:105:1: note: expanded from here
this_cpu_write_4
^
include/asm-generic/percpu.h:339:36: note: expanded from macro 'this_cpu_write_4'
#define this_cpu_write_4(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:148:2: note: expanded from macro 'this_cpu_generic_to_op'
raw_cpu_generic_to_op(pcp, val, op); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:72:2: note: expanded from macro 'raw_cpu_generic_to_op'
*raw_cpu_ptr(&(pcp)) op val; \
^~~~~~~~~~~~~~~~~~~~
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
this_cpu_write(runqueues.membarrier_state,
^
>> kernel/sched/membarrier.c:39:17: error: use of undeclared identifier 'runqueues'
>> kernel/sched/membarrier.c:39:2: error: indirection requires pointer operand ('void' invalid)
this_cpu_write(runqueues.membarrier_state,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:380:11: note: expanded from macro '__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:106:1: note: expanded from here
this_cpu_write_8
^
include/asm-generic/percpu.h:342:36: note: expanded from macro 'this_cpu_write_8'
#define this_cpu_write_8(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:148:2: note: expanded from macro 'this_cpu_generic_to_op'
raw_cpu_generic_to_op(pcp, val, op); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:72:2: note: expanded from macro 'raw_cpu_generic_to_op'
*raw_cpu_ptr(&(pcp)) op val; \
^~~~~~~~~~~~~~~~~~~~
kernel/sched/membarrier.c:63:17: error: use of undeclared identifier 'runqueues'
this_cpu_write(runqueues.membarrier_state, 0);
^
kernel/sched/membarrier.c:63:17: error: use of undeclared identifier 'runqueues'
kernel/sched/membarrier.c:63:17: error: use of undeclared identifier 'runqueues'
kernel/sched/membarrier.c:63:17: error: use of undeclared identifier 'runqueues'
kernel/sched/membarrier.c:63:2: error: indirection requires pointer operand ('void' invalid)
this_cpu_write(runqueues.membarrier_state, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:377:11: note: expanded from macro '__pcpu_size_call'
case 1: stem##1(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:107:1: note: expanded from here
this_cpu_write_1
^
include/asm-generic/percpu.h:333:36: note: expanded from macro 'this_cpu_write_1'
#define this_cpu_write_1(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:148:2: note: expanded from macro 'this_cpu_generic_to_op'
raw_cpu_generic_to_op(pcp, val, op); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:72:2: note: expanded from macro 'raw_cpu_generic_to_op'
*raw_cpu_ptr(&(pcp)) op val; \
^~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +/resched_task +637 kernel/sched/MuQSS.c
629
630 /*
631 * resched_task - mark a task 'to be rescheduled now'.
632 *
633 * On UP this means the setting of the need_resched flag, on SMP it
634 * might also involve a cross-CPU call to trigger the scheduler on
635 * the target CPU.
636 */
> 637 void resched_task(struct task_struct *p)
638 {
639 int cpu;
640 #ifdef CONFIG_LOCKDEP
641 /* Kernel threads call this when creating workqueues while still
642 * inactive from __kthread_bind_mask, holding only the pi_lock */
643 if (!(p->flags & PF_KTHREAD)) {
644 struct rq *rq = task_rq(p);
645
646 lockdep_assert_held(rq->lock);
647 }
648 #endif
649 if (test_tsk_need_resched(p))
650 return;
651
652 cpu = task_cpu(p);
653 if (cpu == smp_processor_id()) {
654 set_tsk_need_resched(p);
655 set_preempt_need_resched();
656 return;
657 }
658
659 if (set_nr_and_not_polling(p))
660 smp_sched_reschedule(cpu);
661 else
662 trace_sched_wake_idle_without_ipi(cpu);
663 }
664
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[clk:clk-qcom 13/14] drivers/clk/qcom/gcc-ipq8074.c:4610:30: warning: initialized field overwritten
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-qcom
head: b4297844995f380588e6f935a2f98c399129a9b2
commit: f0cfcf1ade201dcfd3365f231efc90e846fa46df [13/14] clk: qcom: ipq8074: Add missing clocks for pcie
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-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
git checkout f0cfcf1ade201dcfd3365f231efc90e846fa46df
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/clk/qcom/gcc-ipq8074.c:4610:30: warning: initialized field overwritten [-Woverride-init]
4610 | [GCC_PCIE0_RCHNG_CLK_SRC] = &pcie0_rchng_clk_src.clkr,
| ^
drivers/clk/qcom/gcc-ipq8074.c:4610:30: note: (near initialization for 'gcc_ipq8074_clks[133]')
drivers/clk/qcom/gcc-ipq8074.c:4611:26: warning: initialized field overwritten [-Woverride-init]
4611 | [GCC_PCIE0_RCHNG_CLK] = &gcc_pcie0_rchng_clk.clkr,
| ^
drivers/clk/qcom/gcc-ipq8074.c:4611:26: note: (near initialization for 'gcc_ipq8074_clks[134]')
drivers/clk/qcom/gcc-ipq8074.c:4612:33: warning: initialized field overwritten [-Woverride-init]
4612 | [GCC_PCIE0_AXI_S_BRIDGE_CLK] = &gcc_pcie0_axi_s_bridge_clk.clkr,
| ^
drivers/clk/qcom/gcc-ipq8074.c:4612:33: note: (near initialization for 'gcc_ipq8074_clks[132]')
vim +4610 drivers/clk/qcom/gcc-ipq8074.c
4384
4385 static struct clk_regmap *gcc_ipq8074_clks[] = {
4386 [GPLL0_MAIN] = &gpll0_main.clkr,
4387 [GPLL0] = &gpll0.clkr,
4388 [GPLL2_MAIN] = &gpll2_main.clkr,
4389 [GPLL2] = &gpll2.clkr,
4390 [GPLL4_MAIN] = &gpll4_main.clkr,
4391 [GPLL4] = &gpll4.clkr,
4392 [GPLL6_MAIN] = &gpll6_main.clkr,
4393 [GPLL6] = &gpll6.clkr,
4394 [UBI32_PLL_MAIN] = &ubi32_pll_main.clkr,
4395 [UBI32_PLL] = &ubi32_pll.clkr,
4396 [NSS_CRYPTO_PLL_MAIN] = &nss_crypto_pll_main.clkr,
4397 [NSS_CRYPTO_PLL] = &nss_crypto_pll.clkr,
4398 [PCNOC_BFDCD_CLK_SRC] = &pcnoc_bfdcd_clk_src.clkr,
4399 [GCC_SLEEP_CLK_SRC] = &gcc_sleep_clk_src.clkr,
4400 [BLSP1_QUP1_I2C_APPS_CLK_SRC] = &blsp1_qup1_i2c_apps_clk_src.clkr,
4401 [BLSP1_QUP1_SPI_APPS_CLK_SRC] = &blsp1_qup1_spi_apps_clk_src.clkr,
4402 [BLSP1_QUP2_I2C_APPS_CLK_SRC] = &blsp1_qup2_i2c_apps_clk_src.clkr,
4403 [BLSP1_QUP2_SPI_APPS_CLK_SRC] = &blsp1_qup2_spi_apps_clk_src.clkr,
4404 [BLSP1_QUP3_I2C_APPS_CLK_SRC] = &blsp1_qup3_i2c_apps_clk_src.clkr,
4405 [BLSP1_QUP3_SPI_APPS_CLK_SRC] = &blsp1_qup3_spi_apps_clk_src.clkr,
4406 [BLSP1_QUP4_I2C_APPS_CLK_SRC] = &blsp1_qup4_i2c_apps_clk_src.clkr,
4407 [BLSP1_QUP4_SPI_APPS_CLK_SRC] = &blsp1_qup4_spi_apps_clk_src.clkr,
4408 [BLSP1_QUP5_I2C_APPS_CLK_SRC] = &blsp1_qup5_i2c_apps_clk_src.clkr,
4409 [BLSP1_QUP5_SPI_APPS_CLK_SRC] = &blsp1_qup5_spi_apps_clk_src.clkr,
4410 [BLSP1_QUP6_I2C_APPS_CLK_SRC] = &blsp1_qup6_i2c_apps_clk_src.clkr,
4411 [BLSP1_QUP6_SPI_APPS_CLK_SRC] = &blsp1_qup6_spi_apps_clk_src.clkr,
4412 [BLSP1_UART1_APPS_CLK_SRC] = &blsp1_uart1_apps_clk_src.clkr,
4413 [BLSP1_UART2_APPS_CLK_SRC] = &blsp1_uart2_apps_clk_src.clkr,
4414 [BLSP1_UART3_APPS_CLK_SRC] = &blsp1_uart3_apps_clk_src.clkr,
4415 [BLSP1_UART4_APPS_CLK_SRC] = &blsp1_uart4_apps_clk_src.clkr,
4416 [BLSP1_UART5_APPS_CLK_SRC] = &blsp1_uart5_apps_clk_src.clkr,
4417 [BLSP1_UART6_APPS_CLK_SRC] = &blsp1_uart6_apps_clk_src.clkr,
4418 [PCIE0_AXI_CLK_SRC] = &pcie0_axi_clk_src.clkr,
4419 [PCIE0_AUX_CLK_SRC] = &pcie0_aux_clk_src.clkr,
4420 [PCIE0_PIPE_CLK_SRC] = &pcie0_pipe_clk_src.clkr,
4421 [PCIE1_AXI_CLK_SRC] = &pcie1_axi_clk_src.clkr,
4422 [PCIE1_AUX_CLK_SRC] = &pcie1_aux_clk_src.clkr,
4423 [PCIE1_PIPE_CLK_SRC] = &pcie1_pipe_clk_src.clkr,
4424 [SDCC1_APPS_CLK_SRC] = &sdcc1_apps_clk_src.clkr,
4425 [SDCC1_ICE_CORE_CLK_SRC] = &sdcc1_ice_core_clk_src.clkr,
4426 [SDCC2_APPS_CLK_SRC] = &sdcc2_apps_clk_src.clkr,
4427 [USB0_MASTER_CLK_SRC] = &usb0_master_clk_src.clkr,
4428 [USB0_AUX_CLK_SRC] = &usb0_aux_clk_src.clkr,
4429 [USB0_MOCK_UTMI_CLK_SRC] = &usb0_mock_utmi_clk_src.clkr,
4430 [USB0_PIPE_CLK_SRC] = &usb0_pipe_clk_src.clkr,
4431 [USB1_MASTER_CLK_SRC] = &usb1_master_clk_src.clkr,
4432 [USB1_AUX_CLK_SRC] = &usb1_aux_clk_src.clkr,
4433 [USB1_MOCK_UTMI_CLK_SRC] = &usb1_mock_utmi_clk_src.clkr,
4434 [USB1_PIPE_CLK_SRC] = &usb1_pipe_clk_src.clkr,
4435 [GCC_XO_CLK_SRC] = &gcc_xo_clk_src.clkr,
4436 [SYSTEM_NOC_BFDCD_CLK_SRC] = &system_noc_bfdcd_clk_src.clkr,
4437 [NSS_CE_CLK_SRC] = &nss_ce_clk_src.clkr,
4438 [NSS_NOC_BFDCD_CLK_SRC] = &nss_noc_bfdcd_clk_src.clkr,
4439 [NSS_CRYPTO_CLK_SRC] = &nss_crypto_clk_src.clkr,
4440 [NSS_UBI0_CLK_SRC] = &nss_ubi0_clk_src.clkr,
4441 [NSS_UBI0_DIV_CLK_SRC] = &nss_ubi0_div_clk_src.clkr,
4442 [NSS_UBI1_CLK_SRC] = &nss_ubi1_clk_src.clkr,
4443 [NSS_UBI1_DIV_CLK_SRC] = &nss_ubi1_div_clk_src.clkr,
4444 [UBI_MPT_CLK_SRC] = &ubi_mpt_clk_src.clkr,
4445 [NSS_IMEM_CLK_SRC] = &nss_imem_clk_src.clkr,
4446 [NSS_PPE_CLK_SRC] = &nss_ppe_clk_src.clkr,
4447 [NSS_PORT1_RX_CLK_SRC] = &nss_port1_rx_clk_src.clkr,
4448 [NSS_PORT1_RX_DIV_CLK_SRC] = &nss_port1_rx_div_clk_src.clkr,
4449 [NSS_PORT1_TX_CLK_SRC] = &nss_port1_tx_clk_src.clkr,
4450 [NSS_PORT1_TX_DIV_CLK_SRC] = &nss_port1_tx_div_clk_src.clkr,
4451 [NSS_PORT2_RX_CLK_SRC] = &nss_port2_rx_clk_src.clkr,
4452 [NSS_PORT2_RX_DIV_CLK_SRC] = &nss_port2_rx_div_clk_src.clkr,
4453 [NSS_PORT2_TX_CLK_SRC] = &nss_port2_tx_clk_src.clkr,
4454 [NSS_PORT2_TX_DIV_CLK_SRC] = &nss_port2_tx_div_clk_src.clkr,
4455 [NSS_PORT3_RX_CLK_SRC] = &nss_port3_rx_clk_src.clkr,
4456 [NSS_PORT3_RX_DIV_CLK_SRC] = &nss_port3_rx_div_clk_src.clkr,
4457 [NSS_PORT3_TX_CLK_SRC] = &nss_port3_tx_clk_src.clkr,
4458 [NSS_PORT3_TX_DIV_CLK_SRC] = &nss_port3_tx_div_clk_src.clkr,
4459 [NSS_PORT4_RX_CLK_SRC] = &nss_port4_rx_clk_src.clkr,
4460 [NSS_PORT4_RX_DIV_CLK_SRC] = &nss_port4_rx_div_clk_src.clkr,
4461 [NSS_PORT4_TX_CLK_SRC] = &nss_port4_tx_clk_src.clkr,
4462 [NSS_PORT4_TX_DIV_CLK_SRC] = &nss_port4_tx_div_clk_src.clkr,
4463 [NSS_PORT5_RX_CLK_SRC] = &nss_port5_rx_clk_src.clkr,
4464 [NSS_PORT5_RX_DIV_CLK_SRC] = &nss_port5_rx_div_clk_src.clkr,
4465 [NSS_PORT5_TX_CLK_SRC] = &nss_port5_tx_clk_src.clkr,
4466 [NSS_PORT5_TX_DIV_CLK_SRC] = &nss_port5_tx_div_clk_src.clkr,
4467 [NSS_PORT6_RX_CLK_SRC] = &nss_port6_rx_clk_src.clkr,
4468 [NSS_PORT6_RX_DIV_CLK_SRC] = &nss_port6_rx_div_clk_src.clkr,
4469 [NSS_PORT6_TX_CLK_SRC] = &nss_port6_tx_clk_src.clkr,
4470 [NSS_PORT6_TX_DIV_CLK_SRC] = &nss_port6_tx_div_clk_src.clkr,
4471 [CRYPTO_CLK_SRC] = &crypto_clk_src.clkr,
4472 [GP1_CLK_SRC] = &gp1_clk_src.clkr,
4473 [GP2_CLK_SRC] = &gp2_clk_src.clkr,
4474 [GP3_CLK_SRC] = &gp3_clk_src.clkr,
4475 [GCC_BLSP1_AHB_CLK] = &gcc_blsp1_ahb_clk.clkr,
4476 [GCC_BLSP1_QUP1_I2C_APPS_CLK] = &gcc_blsp1_qup1_i2c_apps_clk.clkr,
4477 [GCC_BLSP1_QUP1_SPI_APPS_CLK] = &gcc_blsp1_qup1_spi_apps_clk.clkr,
4478 [GCC_BLSP1_QUP2_I2C_APPS_CLK] = &gcc_blsp1_qup2_i2c_apps_clk.clkr,
4479 [GCC_BLSP1_QUP2_SPI_APPS_CLK] = &gcc_blsp1_qup2_spi_apps_clk.clkr,
4480 [GCC_BLSP1_QUP3_I2C_APPS_CLK] = &gcc_blsp1_qup3_i2c_apps_clk.clkr,
4481 [GCC_BLSP1_QUP3_SPI_APPS_CLK] = &gcc_blsp1_qup3_spi_apps_clk.clkr,
4482 [GCC_BLSP1_QUP4_I2C_APPS_CLK] = &gcc_blsp1_qup4_i2c_apps_clk.clkr,
4483 [GCC_BLSP1_QUP4_SPI_APPS_CLK] = &gcc_blsp1_qup4_spi_apps_clk.clkr,
4484 [GCC_BLSP1_QUP5_I2C_APPS_CLK] = &gcc_blsp1_qup5_i2c_apps_clk.clkr,
4485 [GCC_BLSP1_QUP5_SPI_APPS_CLK] = &gcc_blsp1_qup5_spi_apps_clk.clkr,
4486 [GCC_BLSP1_QUP6_I2C_APPS_CLK] = &gcc_blsp1_qup6_i2c_apps_clk.clkr,
4487 [GCC_BLSP1_QUP6_SPI_APPS_CLK] = &gcc_blsp1_qup6_spi_apps_clk.clkr,
4488 [GCC_BLSP1_UART1_APPS_CLK] = &gcc_blsp1_uart1_apps_clk.clkr,
4489 [GCC_BLSP1_UART2_APPS_CLK] = &gcc_blsp1_uart2_apps_clk.clkr,
4490 [GCC_BLSP1_UART3_APPS_CLK] = &gcc_blsp1_uart3_apps_clk.clkr,
4491 [GCC_BLSP1_UART4_APPS_CLK] = &gcc_blsp1_uart4_apps_clk.clkr,
4492 [GCC_BLSP1_UART5_APPS_CLK] = &gcc_blsp1_uart5_apps_clk.clkr,
4493 [GCC_BLSP1_UART6_APPS_CLK] = &gcc_blsp1_uart6_apps_clk.clkr,
4494 [GCC_PRNG_AHB_CLK] = &gcc_prng_ahb_clk.clkr,
4495 [GCC_QPIC_AHB_CLK] = &gcc_qpic_ahb_clk.clkr,
4496 [GCC_QPIC_CLK] = &gcc_qpic_clk.clkr,
4497 [GCC_PCIE0_AHB_CLK] = &gcc_pcie0_ahb_clk.clkr,
4498 [GCC_PCIE0_AUX_CLK] = &gcc_pcie0_aux_clk.clkr,
4499 [GCC_PCIE0_AXI_M_CLK] = &gcc_pcie0_axi_m_clk.clkr,
4500 [GCC_PCIE0_AXI_S_CLK] = &gcc_pcie0_axi_s_clk.clkr,
4501 [GCC_PCIE0_PIPE_CLK] = &gcc_pcie0_pipe_clk.clkr,
4502 [GCC_SYS_NOC_PCIE0_AXI_CLK] = &gcc_sys_noc_pcie0_axi_clk.clkr,
4503 [GCC_PCIE1_AHB_CLK] = &gcc_pcie1_ahb_clk.clkr,
4504 [GCC_PCIE1_AUX_CLK] = &gcc_pcie1_aux_clk.clkr,
4505 [GCC_PCIE1_AXI_M_CLK] = &gcc_pcie1_axi_m_clk.clkr,
4506 [GCC_PCIE1_AXI_S_CLK] = &gcc_pcie1_axi_s_clk.clkr,
4507 [GCC_PCIE1_PIPE_CLK] = &gcc_pcie1_pipe_clk.clkr,
4508 [GCC_SYS_NOC_PCIE1_AXI_CLK] = &gcc_sys_noc_pcie1_axi_clk.clkr,
4509 [GCC_USB0_AUX_CLK] = &gcc_usb0_aux_clk.clkr,
4510 [GCC_SYS_NOC_USB0_AXI_CLK] = &gcc_sys_noc_usb0_axi_clk.clkr,
4511 [GCC_USB0_MASTER_CLK] = &gcc_usb0_master_clk.clkr,
4512 [GCC_USB0_MOCK_UTMI_CLK] = &gcc_usb0_mock_utmi_clk.clkr,
4513 [GCC_USB0_PHY_CFG_AHB_CLK] = &gcc_usb0_phy_cfg_ahb_clk.clkr,
4514 [GCC_USB0_PIPE_CLK] = &gcc_usb0_pipe_clk.clkr,
4515 [GCC_USB0_SLEEP_CLK] = &gcc_usb0_sleep_clk.clkr,
4516 [GCC_USB1_AUX_CLK] = &gcc_usb1_aux_clk.clkr,
4517 [GCC_SYS_NOC_USB1_AXI_CLK] = &gcc_sys_noc_usb1_axi_clk.clkr,
4518 [GCC_USB1_MASTER_CLK] = &gcc_usb1_master_clk.clkr,
4519 [GCC_USB1_MOCK_UTMI_CLK] = &gcc_usb1_mock_utmi_clk.clkr,
4520 [GCC_USB1_PHY_CFG_AHB_CLK] = &gcc_usb1_phy_cfg_ahb_clk.clkr,
4521 [GCC_USB1_PIPE_CLK] = &gcc_usb1_pipe_clk.clkr,
4522 [GCC_USB1_SLEEP_CLK] = &gcc_usb1_sleep_clk.clkr,
4523 [GCC_SDCC1_AHB_CLK] = &gcc_sdcc1_ahb_clk.clkr,
4524 [GCC_SDCC1_APPS_CLK] = &gcc_sdcc1_apps_clk.clkr,
4525 [GCC_SDCC1_ICE_CORE_CLK] = &gcc_sdcc1_ice_core_clk.clkr,
4526 [GCC_SDCC2_AHB_CLK] = &gcc_sdcc2_ahb_clk.clkr,
4527 [GCC_SDCC2_APPS_CLK] = &gcc_sdcc2_apps_clk.clkr,
4528 [GCC_MEM_NOC_NSS_AXI_CLK] = &gcc_mem_noc_nss_axi_clk.clkr,
4529 [GCC_NSS_CE_APB_CLK] = &gcc_nss_ce_apb_clk.clkr,
4530 [GCC_NSS_CE_AXI_CLK] = &gcc_nss_ce_axi_clk.clkr,
4531 [GCC_NSS_CFG_CLK] = &gcc_nss_cfg_clk.clkr,
4532 [GCC_NSS_CRYPTO_CLK] = &gcc_nss_crypto_clk.clkr,
4533 [GCC_NSS_CSR_CLK] = &gcc_nss_csr_clk.clkr,
4534 [GCC_NSS_EDMA_CFG_CLK] = &gcc_nss_edma_cfg_clk.clkr,
4535 [GCC_NSS_EDMA_CLK] = &gcc_nss_edma_clk.clkr,
4536 [GCC_NSS_IMEM_CLK] = &gcc_nss_imem_clk.clkr,
4537 [GCC_NSS_NOC_CLK] = &gcc_nss_noc_clk.clkr,
4538 [GCC_NSS_PPE_BTQ_CLK] = &gcc_nss_ppe_btq_clk.clkr,
4539 [GCC_NSS_PPE_CFG_CLK] = &gcc_nss_ppe_cfg_clk.clkr,
4540 [GCC_NSS_PPE_CLK] = &gcc_nss_ppe_clk.clkr,
4541 [GCC_NSS_PPE_IPE_CLK] = &gcc_nss_ppe_ipe_clk.clkr,
4542 [GCC_NSS_PTP_REF_CLK] = &gcc_nss_ptp_ref_clk.clkr,
4543 [GCC_NSSNOC_CE_APB_CLK] = &gcc_nssnoc_ce_apb_clk.clkr,
4544 [GCC_NSSNOC_CE_AXI_CLK] = &gcc_nssnoc_ce_axi_clk.clkr,
4545 [GCC_NSSNOC_CRYPTO_CLK] = &gcc_nssnoc_crypto_clk.clkr,
4546 [GCC_NSSNOC_PPE_CFG_CLK] = &gcc_nssnoc_ppe_cfg_clk.clkr,
4547 [GCC_NSSNOC_PPE_CLK] = &gcc_nssnoc_ppe_clk.clkr,
4548 [GCC_NSSNOC_QOSGEN_REF_CLK] = &gcc_nssnoc_qosgen_ref_clk.clkr,
4549 [GCC_NSSNOC_SNOC_CLK] = &gcc_nssnoc_snoc_clk.clkr,
4550 [GCC_NSSNOC_TIMEOUT_REF_CLK] = &gcc_nssnoc_timeout_ref_clk.clkr,
4551 [GCC_NSSNOC_UBI0_AHB_CLK] = &gcc_nssnoc_ubi0_ahb_clk.clkr,
4552 [GCC_NSSNOC_UBI1_AHB_CLK] = &gcc_nssnoc_ubi1_ahb_clk.clkr,
4553 [GCC_UBI0_AHB_CLK] = &gcc_ubi0_ahb_clk.clkr,
4554 [GCC_UBI0_AXI_CLK] = &gcc_ubi0_axi_clk.clkr,
4555 [GCC_UBI0_NC_AXI_CLK] = &gcc_ubi0_nc_axi_clk.clkr,
4556 [GCC_UBI0_CORE_CLK] = &gcc_ubi0_core_clk.clkr,
4557 [GCC_UBI0_MPT_CLK] = &gcc_ubi0_mpt_clk.clkr,
4558 [GCC_UBI1_AHB_CLK] = &gcc_ubi1_ahb_clk.clkr,
4559 [GCC_UBI1_AXI_CLK] = &gcc_ubi1_axi_clk.clkr,
4560 [GCC_UBI1_NC_AXI_CLK] = &gcc_ubi1_nc_axi_clk.clkr,
4561 [GCC_UBI1_CORE_CLK] = &gcc_ubi1_core_clk.clkr,
4562 [GCC_UBI1_MPT_CLK] = &gcc_ubi1_mpt_clk.clkr,
4563 [GCC_CMN_12GPLL_AHB_CLK] = &gcc_cmn_12gpll_ahb_clk.clkr,
4564 [GCC_CMN_12GPLL_SYS_CLK] = &gcc_cmn_12gpll_sys_clk.clkr,
4565 [GCC_MDIO_AHB_CLK] = &gcc_mdio_ahb_clk.clkr,
4566 [GCC_UNIPHY0_AHB_CLK] = &gcc_uniphy0_ahb_clk.clkr,
4567 [GCC_UNIPHY0_SYS_CLK] = &gcc_uniphy0_sys_clk.clkr,
4568 [GCC_UNIPHY1_AHB_CLK] = &gcc_uniphy1_ahb_clk.clkr,
4569 [GCC_UNIPHY1_SYS_CLK] = &gcc_uniphy1_sys_clk.clkr,
4570 [GCC_UNIPHY2_AHB_CLK] = &gcc_uniphy2_ahb_clk.clkr,
4571 [GCC_UNIPHY2_SYS_CLK] = &gcc_uniphy2_sys_clk.clkr,
4572 [GCC_NSS_PORT1_RX_CLK] = &gcc_nss_port1_rx_clk.clkr,
4573 [GCC_NSS_PORT1_TX_CLK] = &gcc_nss_port1_tx_clk.clkr,
4574 [GCC_NSS_PORT2_RX_CLK] = &gcc_nss_port2_rx_clk.clkr,
4575 [GCC_NSS_PORT2_TX_CLK] = &gcc_nss_port2_tx_clk.clkr,
4576 [GCC_NSS_PORT3_RX_CLK] = &gcc_nss_port3_rx_clk.clkr,
4577 [GCC_NSS_PORT3_TX_CLK] = &gcc_nss_port3_tx_clk.clkr,
4578 [GCC_NSS_PORT4_RX_CLK] = &gcc_nss_port4_rx_clk.clkr,
4579 [GCC_NSS_PORT4_TX_CLK] = &gcc_nss_port4_tx_clk.clkr,
4580 [GCC_NSS_PORT5_RX_CLK] = &gcc_nss_port5_rx_clk.clkr,
4581 [GCC_NSS_PORT5_TX_CLK] = &gcc_nss_port5_tx_clk.clkr,
4582 [GCC_NSS_PORT6_RX_CLK] = &gcc_nss_port6_rx_clk.clkr,
4583 [GCC_NSS_PORT6_TX_CLK] = &gcc_nss_port6_tx_clk.clkr,
4584 [GCC_PORT1_MAC_CLK] = &gcc_port1_mac_clk.clkr,
4585 [GCC_PORT2_MAC_CLK] = &gcc_port2_mac_clk.clkr,
4586 [GCC_PORT3_MAC_CLK] = &gcc_port3_mac_clk.clkr,
4587 [GCC_PORT4_MAC_CLK] = &gcc_port4_mac_clk.clkr,
4588 [GCC_PORT5_MAC_CLK] = &gcc_port5_mac_clk.clkr,
4589 [GCC_PORT6_MAC_CLK] = &gcc_port6_mac_clk.clkr,
4590 [GCC_UNIPHY0_PORT1_RX_CLK] = &gcc_uniphy0_port1_rx_clk.clkr,
4591 [GCC_UNIPHY0_PORT1_TX_CLK] = &gcc_uniphy0_port1_tx_clk.clkr,
4592 [GCC_UNIPHY0_PORT2_RX_CLK] = &gcc_uniphy0_port2_rx_clk.clkr,
4593 [GCC_UNIPHY0_PORT2_TX_CLK] = &gcc_uniphy0_port2_tx_clk.clkr,
4594 [GCC_UNIPHY0_PORT3_RX_CLK] = &gcc_uniphy0_port3_rx_clk.clkr,
4595 [GCC_UNIPHY0_PORT3_TX_CLK] = &gcc_uniphy0_port3_tx_clk.clkr,
4596 [GCC_UNIPHY0_PORT4_RX_CLK] = &gcc_uniphy0_port4_rx_clk.clkr,
4597 [GCC_UNIPHY0_PORT4_TX_CLK] = &gcc_uniphy0_port4_tx_clk.clkr,
4598 [GCC_UNIPHY0_PORT5_RX_CLK] = &gcc_uniphy0_port5_rx_clk.clkr,
4599 [GCC_UNIPHY0_PORT5_TX_CLK] = &gcc_uniphy0_port5_tx_clk.clkr,
4600 [GCC_UNIPHY1_PORT5_RX_CLK] = &gcc_uniphy1_port5_rx_clk.clkr,
4601 [GCC_UNIPHY1_PORT5_TX_CLK] = &gcc_uniphy1_port5_tx_clk.clkr,
4602 [GCC_UNIPHY2_PORT6_RX_CLK] = &gcc_uniphy2_port6_rx_clk.clkr,
4603 [GCC_UNIPHY2_PORT6_TX_CLK] = &gcc_uniphy2_port6_tx_clk.clkr,
4604 [GCC_CRYPTO_AHB_CLK] = &gcc_crypto_ahb_clk.clkr,
4605 [GCC_CRYPTO_AXI_CLK] = &gcc_crypto_axi_clk.clkr,
4606 [GCC_CRYPTO_CLK] = &gcc_crypto_clk.clkr,
4607 [GCC_GP1_CLK] = &gcc_gp1_clk.clkr,
4608 [GCC_GP2_CLK] = &gcc_gp2_clk.clkr,
4609 [GCC_GP3_CLK] = &gcc_gp3_clk.clkr,
> 4610 [GCC_PCIE0_RCHNG_CLK_SRC] = &pcie0_rchng_clk_src.clkr,
4611 [GCC_PCIE0_RCHNG_CLK] = &gcc_pcie0_rchng_clk.clkr,
4612 [GCC_PCIE0_AXI_S_BRIDGE_CLK] = &gcc_pcie0_axi_s_bridge_clk.clkr,
4613 };
4614
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
drivers/gpu/drm/mediatek/mtk_dpi.c:721:2-9: line 721 is redundant because platform_get_irq() already prints an error (fwd)
by Julia Lawall
---------- Forwarded message ----------
Date: Sun, 12 Jul 2020 11:15:29 +0800
From: kernel test robot <lkp(a)intel.com>
To: kbuild(a)lists.01.org
Cc: lkp(a)intel.com, Julia Lawall <julia.lawall(a)lip6.fr>
Subject: drivers/gpu/drm/mediatek/mtk_dpi.c:721:2-9: line 721 is redundant
because platform_get_irq() already prints an error
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: YueHaibing <yuehaibing(a)huawei.com>
CC: "Greg Kroah-Hartman" <gregkh(a)linuxfoundation.org>
CC: Stephen Boyd <swboyd(a)chromium.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0aea6d5c5be33ce94c16f9ab2f64de1f481f424b
commit: ca7ce5a2710ad2a57bf7d0c4c712590bb69a5e1c coccinelle: platform_get_irq: Fix parse error
date: 10 months ago
:::::: branch date: 9 hours ago
:::::: commit date: 10 months ago
config: arm64-randconfig-c022-20200711 (attached as .config)
compiler: aarch64-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>
Reported-by: Julia Lawall <julia.lawall(a)lip6.fr>
coccinelle warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/mediatek/mtk_dpi.c:721:2-9: line 721 is redundant because platform_get_irq() already prints an error
--
>> drivers/gpu/drm/mediatek/mtk_dsi.c:1159:2-9: line 1159 is redundant because platform_get_irq() already prints an error
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout ca7ce5a2710ad2a57bf7d0c4c712590bb69a5e1c
vim +721 drivers/gpu/drm/mediatek/mtk_dpi.c
d08b5ab972449b0 chunhui dai 2018-10-03 674
9e629c17aa8d7a7 Jie Qiu 2016-01-04 675 static int mtk_dpi_probe(struct platform_device *pdev)
9e629c17aa8d7a7 Jie Qiu 2016-01-04 676 {
9e629c17aa8d7a7 Jie Qiu 2016-01-04 677 struct device *dev = &pdev->dev;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 678 struct mtk_dpi *dpi;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 679 struct resource *mem;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 680 int comp_id;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 681 int ret;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 682
9e629c17aa8d7a7 Jie Qiu 2016-01-04 683 dpi = devm_kzalloc(dev, sizeof(*dpi), GFP_KERNEL);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 684 if (!dpi)
9e629c17aa8d7a7 Jie Qiu 2016-01-04 685 return -ENOMEM;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 686
9e629c17aa8d7a7 Jie Qiu 2016-01-04 687 dpi->dev = dev;
0ace4b993c7a524 chunhui dai 2018-10-03 688 dpi->conf = (struct mtk_dpi_conf *)of_device_get_match_data(dev);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 689
9e629c17aa8d7a7 Jie Qiu 2016-01-04 690 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 691 dpi->regs = devm_ioremap_resource(dev, mem);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 692 if (IS_ERR(dpi->regs)) {
9e629c17aa8d7a7 Jie Qiu 2016-01-04 693 ret = PTR_ERR(dpi->regs);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 694 dev_err(dev, "Failed to ioremap mem resource: %d\n", ret);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 695 return ret;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 696 }
9e629c17aa8d7a7 Jie Qiu 2016-01-04 697
9e629c17aa8d7a7 Jie Qiu 2016-01-04 698 dpi->engine_clk = devm_clk_get(dev, "engine");
9e629c17aa8d7a7 Jie Qiu 2016-01-04 699 if (IS_ERR(dpi->engine_clk)) {
9e629c17aa8d7a7 Jie Qiu 2016-01-04 700 ret = PTR_ERR(dpi->engine_clk);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 701 dev_err(dev, "Failed to get engine clock: %d\n", ret);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 702 return ret;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 703 }
9e629c17aa8d7a7 Jie Qiu 2016-01-04 704
9e629c17aa8d7a7 Jie Qiu 2016-01-04 705 dpi->pixel_clk = devm_clk_get(dev, "pixel");
9e629c17aa8d7a7 Jie Qiu 2016-01-04 706 if (IS_ERR(dpi->pixel_clk)) {
9e629c17aa8d7a7 Jie Qiu 2016-01-04 707 ret = PTR_ERR(dpi->pixel_clk);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 708 dev_err(dev, "Failed to get pixel clock: %d\n", ret);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 709 return ret;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 710 }
9e629c17aa8d7a7 Jie Qiu 2016-01-04 711
9e629c17aa8d7a7 Jie Qiu 2016-01-04 712 dpi->tvd_clk = devm_clk_get(dev, "pll");
9e629c17aa8d7a7 Jie Qiu 2016-01-04 713 if (IS_ERR(dpi->tvd_clk)) {
9e629c17aa8d7a7 Jie Qiu 2016-01-04 714 ret = PTR_ERR(dpi->tvd_clk);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 715 dev_err(dev, "Failed to get tvdpll clock: %d\n", ret);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 716 return ret;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 717 }
9e629c17aa8d7a7 Jie Qiu 2016-01-04 718
9e629c17aa8d7a7 Jie Qiu 2016-01-04 719 dpi->irq = platform_get_irq(pdev, 0);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 720 if (dpi->irq <= 0) {
9e629c17aa8d7a7 Jie Qiu 2016-01-04 @721 dev_err(dev, "Failed to get irq: %d\n", dpi->irq);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 722 return -EINVAL;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 723 }
9e629c17aa8d7a7 Jie Qiu 2016-01-04 724
bcc97daee6b8120 chunhui dai 2018-10-03 725 ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0,
bcc97daee6b8120 chunhui dai 2018-10-03 726 NULL, &dpi->bridge);
bcc97daee6b8120 chunhui dai 2018-10-03 727 if (ret)
bcc97daee6b8120 chunhui dai 2018-10-03 728 return ret;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 729
bcc97daee6b8120 chunhui dai 2018-10-03 730 dev_info(dev, "Found bridge node: %pOF\n", dpi->bridge->of_node);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 731
9e629c17aa8d7a7 Jie Qiu 2016-01-04 732 comp_id = mtk_ddp_comp_get_id(dev->of_node, MTK_DPI);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 733 if (comp_id < 0) {
9e629c17aa8d7a7 Jie Qiu 2016-01-04 734 dev_err(dev, "Failed to identify by alias: %d\n", comp_id);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 735 return comp_id;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 736 }
9e629c17aa8d7a7 Jie Qiu 2016-01-04 737
9e629c17aa8d7a7 Jie Qiu 2016-01-04 738 ret = mtk_ddp_comp_init(dev, dev->of_node, &dpi->ddp_comp, comp_id,
9e629c17aa8d7a7 Jie Qiu 2016-01-04 739 &mtk_dpi_funcs);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 740 if (ret) {
9e629c17aa8d7a7 Jie Qiu 2016-01-04 741 dev_err(dev, "Failed to initialize component: %d\n", ret);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 742 return ret;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 743 }
9e629c17aa8d7a7 Jie Qiu 2016-01-04 744
9e629c17aa8d7a7 Jie Qiu 2016-01-04 745 platform_set_drvdata(pdev, dpi);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 746
9e629c17aa8d7a7 Jie Qiu 2016-01-04 747 ret = component_add(dev, &mtk_dpi_component_ops);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 748 if (ret) {
9e629c17aa8d7a7 Jie Qiu 2016-01-04 749 dev_err(dev, "Failed to add component: %d\n", ret);
9e629c17aa8d7a7 Jie Qiu 2016-01-04 750 return ret;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 751 }
9e629c17aa8d7a7 Jie Qiu 2016-01-04 752
9e629c17aa8d7a7 Jie Qiu 2016-01-04 753 return 0;
9e629c17aa8d7a7 Jie Qiu 2016-01-04 754 }
9e629c17aa8d7a7 Jie Qiu 2016-01-04 755
:::::: The code at line 721 was first introduced by commit
:::::: 9e629c17aa8d7a75b8c1d99ed42892cd8ba7cdc4 drm/mediatek: Add DPI sub driver
:::::: TO: Jie Qiu <jie.qiu(a)mediatek.com>
:::::: CC: Philipp Zabel <p.zabel(a)pengutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months