[freescale-fslc:5.10-2.1.x-imx 5943/15242] drivers/staging/media/imx/hdmirx/cdns-hdmirx.c:1149: warning: "HOTPLUG_DEBOUNCE_MS" redefined
by kernel test robot
Hi Sandor,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc 5.10-2.1.x-imx
head: 3b81a70be1099d44fdafaa6766bf75a2bd9e297e
commit: 917ccba3733c36d1d777cf58bf44081c4148fcb8 [5943/15242] LF-3322: drm: cdns_mhdp: change HDMI hotplug debounce time to 50ms
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.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://github.com/Freescale/linux-fslc/commit/917ccba3733c36d1d777cf58bf...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.10-2.1.x-imx
git checkout 917ccba3733c36d1d777cf58bf44081c4148fcb8
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc SHELL=/bin/bash drivers/net/ drivers/pwm/ drivers/soc/imx/ drivers/staging/fsl_qbman/ drivers/staging/media/imx/ drivers/usb/chipidea/ drivers/video/fbdev/mxc/
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/staging/media/imx/hdmirx/cdns-hdmirx.c: In function 'tmdsmon_fn':
drivers/staging/media/imx/hdmirx/cdns-hdmirx.c:907:58: warning: variable 'events' set but not used [-Wunused-but-set-variable]
907 | uint32_t events;
| ^~~~~~
drivers/staging/media/imx/hdmirx/cdns-hdmirx.c: At top level:
>> drivers/staging/media/imx/hdmirx/cdns-hdmirx.c:1149: warning: "HOTPLUG_DEBOUNCE_MS" redefined
1149 | #define HOTPLUG_DEBOUNCE_MS 200
|
In file included from drivers/staging/media/imx/hdmirx/cdns-mhdp-hdmirx.h:32,
from drivers/staging/media/imx/hdmirx/cdns-hdmirx-phy.h:15,
from drivers/staging/media/imx/hdmirx/cdns-hdmirx.c:16:
include/drm/bridge/cdns-mhdp.h:526: note: this is the location of the previous definition
526 | #define HOTPLUG_DEBOUNCE_MS 50
|
vim +/HOTPLUG_DEBOUNCE_MS +1149 drivers/staging/media/imx/hdmirx/cdns-hdmirx.c
d65a484d43ff3b Sandor Yu 2020-12-09 1148
d65a484d43ff3b Sandor Yu 2020-12-09 @1149 #define HOTPLUG_DEBOUNCE_MS 200
d65a484d43ff3b Sandor Yu 2020-12-09 1150 static irqreturn_t hdp5v_irq_thread(int irq, void *data)
d65a484d43ff3b Sandor Yu 2020-12-09 1151 {
d65a484d43ff3b Sandor Yu 2020-12-09 1152 struct cdns_hdmirx_device *hdmirx = data;
d65a484d43ff3b Sandor Yu 2020-12-09 1153
d65a484d43ff3b Sandor Yu 2020-12-09 1154 dev_dbg(&hdmirx->pdev->dev, "%s hello\n", __func__);
d65a484d43ff3b Sandor Yu 2020-12-09 1155
d65a484d43ff3b Sandor Yu 2020-12-09 1156 disable_irq_nosync(irq);
d65a484d43ff3b Sandor Yu 2020-12-09 1157
d65a484d43ff3b Sandor Yu 2020-12-09 1158 mod_delayed_work(system_wq, &hdmirx->hpd5v_work,
d65a484d43ff3b Sandor Yu 2020-12-09 1159 msecs_to_jiffies(HOTPLUG_DEBOUNCE_MS));
d65a484d43ff3b Sandor Yu 2020-12-09 1160
d65a484d43ff3b Sandor Yu 2020-12-09 1161 return IRQ_HANDLED;
d65a484d43ff3b Sandor Yu 2020-12-09 1162 }
d65a484d43ff3b Sandor Yu 2020-12-09 1163
:::::: The code at line 1149 was first introduced by commit
:::::: d65a484d43ff3b50f62e6b7197421548f0630f83 MLK-24081-06: staging: media: imx: Add hdmi rx driver
:::::: TO: Sandor Yu <Sandor.yu(a)nxp.com>
:::::: CC: Sandor Yu <Sandor.yu(a)nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[ast-bpf:relo_core 9/19] tools/lib/bpf/relo_core.c:1198:5: warning: stack frame size (1288) exceeds limit (1024) in 'bpf_core_apply_relo_insn'
by kernel test robot
Hi Alexei,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git relo_core
head: f17ef55e5e0bac0d11d3186cd1c468b5a1e047d7
commit: 03c354f8c71c2478c421d5552d284e0befb03861 [9/19] bpf: Prepare relo_core.c for kernel duty.
config: hexagon-randconfig-r045-20211115 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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/ast/bpf.git/commit/?id=03...
git remote add ast-bpf https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git
git fetch --no-tags ast-bpf relo_core
git checkout 03c354f8c71c2478c421d5552d284e0befb03861
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
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 >>):
>> tools/lib/bpf/relo_core.c:1198:5: warning: stack frame size (1288) exceeds limit (1024) in 'bpf_core_apply_relo_insn' [-Wframe-larger-than]
int bpf_core_apply_relo_insn(const char *prog_name, struct bpf_insn *insn,
^
1 warning generated.
vim +/bpf_core_apply_relo_insn +1198 tools/lib/bpf/relo_core.c
b0588390dbcedc Alexei Starovoitov 2021-07-20 1147
b0588390dbcedc Alexei Starovoitov 2021-07-20 1148 /*
b0588390dbcedc Alexei Starovoitov 2021-07-20 1149 * CO-RE relocate single instruction.
b0588390dbcedc Alexei Starovoitov 2021-07-20 1150 *
b0588390dbcedc Alexei Starovoitov 2021-07-20 1151 * The outline and important points of the algorithm:
b0588390dbcedc Alexei Starovoitov 2021-07-20 1152 * 1. For given local type, find corresponding candidate target types.
b0588390dbcedc Alexei Starovoitov 2021-07-20 1153 * Candidate type is a type with the same "essential" name, ignoring
b0588390dbcedc Alexei Starovoitov 2021-07-20 1154 * everything after last triple underscore (___). E.g., `sample`,
b0588390dbcedc Alexei Starovoitov 2021-07-20 1155 * `sample___flavor_one`, `sample___flavor_another_one`, are all candidates
b0588390dbcedc Alexei Starovoitov 2021-07-20 1156 * for each other. Names with triple underscore are referred to as
b0588390dbcedc Alexei Starovoitov 2021-07-20 1157 * "flavors" and are useful, among other things, to allow to
b0588390dbcedc Alexei Starovoitov 2021-07-20 1158 * specify/support incompatible variations of the same kernel struct, which
b0588390dbcedc Alexei Starovoitov 2021-07-20 1159 * might differ between different kernel versions and/or build
b0588390dbcedc Alexei Starovoitov 2021-07-20 1160 * configurations.
b0588390dbcedc Alexei Starovoitov 2021-07-20 1161 *
b0588390dbcedc Alexei Starovoitov 2021-07-20 1162 * N.B. Struct "flavors" could be generated by bpftool's BTF-to-C
b0588390dbcedc Alexei Starovoitov 2021-07-20 1163 * converter, when deduplicated BTF of a kernel still contains more than
b0588390dbcedc Alexei Starovoitov 2021-07-20 1164 * one different types with the same name. In that case, ___2, ___3, etc
b0588390dbcedc Alexei Starovoitov 2021-07-20 1165 * are appended starting from second name conflict. But start flavors are
b0588390dbcedc Alexei Starovoitov 2021-07-20 1166 * also useful to be defined "locally", in BPF program, to extract same
b0588390dbcedc Alexei Starovoitov 2021-07-20 1167 * data from incompatible changes between different kernel
b0588390dbcedc Alexei Starovoitov 2021-07-20 1168 * versions/configurations. For instance, to handle field renames between
b0588390dbcedc Alexei Starovoitov 2021-07-20 1169 * kernel versions, one can use two flavors of the struct name with the
b0588390dbcedc Alexei Starovoitov 2021-07-20 1170 * same common name and use conditional relocations to extract that field,
b0588390dbcedc Alexei Starovoitov 2021-07-20 1171 * depending on target kernel version.
b0588390dbcedc Alexei Starovoitov 2021-07-20 1172 * 2. For each candidate type, try to match local specification to this
b0588390dbcedc Alexei Starovoitov 2021-07-20 1173 * candidate target type. Matching involves finding corresponding
b0588390dbcedc Alexei Starovoitov 2021-07-20 1174 * high-level spec accessors, meaning that all named fields should match,
b0588390dbcedc Alexei Starovoitov 2021-07-20 1175 * as well as all array accesses should be within the actual bounds. Also,
b0588390dbcedc Alexei Starovoitov 2021-07-20 1176 * types should be compatible (see bpf_core_fields_are_compat for details).
b0588390dbcedc Alexei Starovoitov 2021-07-20 1177 * 3. It is supported and expected that there might be multiple flavors
b0588390dbcedc Alexei Starovoitov 2021-07-20 1178 * matching the spec. As long as all the specs resolve to the same set of
b0588390dbcedc Alexei Starovoitov 2021-07-20 1179 * offsets across all candidates, there is no error. If there is any
b0588390dbcedc Alexei Starovoitov 2021-07-20 1180 * ambiguity, CO-RE relocation will fail. This is necessary to accomodate
b0588390dbcedc Alexei Starovoitov 2021-07-20 1181 * imprefection of BTF deduplication, which can cause slight duplication of
b0588390dbcedc Alexei Starovoitov 2021-07-20 1182 * the same BTF type, if some directly or indirectly referenced (by
b0588390dbcedc Alexei Starovoitov 2021-07-20 1183 * pointer) type gets resolved to different actual types in different
b0588390dbcedc Alexei Starovoitov 2021-07-20 1184 * object files. If such situation occurs, deduplicated BTF will end up
b0588390dbcedc Alexei Starovoitov 2021-07-20 1185 * with two (or more) structurally identical types, which differ only in
b0588390dbcedc Alexei Starovoitov 2021-07-20 1186 * types they refer to through pointer. This should be OK in most cases and
b0588390dbcedc Alexei Starovoitov 2021-07-20 1187 * is not an error.
b0588390dbcedc Alexei Starovoitov 2021-07-20 1188 * 4. Candidate types search is performed by linearly scanning through all
b0588390dbcedc Alexei Starovoitov 2021-07-20 1189 * types in target BTF. It is anticipated that this is overall more
b0588390dbcedc Alexei Starovoitov 2021-07-20 1190 * efficient memory-wise and not significantly worse (if not better)
b0588390dbcedc Alexei Starovoitov 2021-07-20 1191 * CPU-wise compared to prebuilding a map from all local type names to
b0588390dbcedc Alexei Starovoitov 2021-07-20 1192 * a list of candidate type names. It's also sped up by caching resolved
b0588390dbcedc Alexei Starovoitov 2021-07-20 1193 * list of matching candidates per each local "root" type ID, that has at
b0588390dbcedc Alexei Starovoitov 2021-07-20 1194 * least one bpf_core_relo associated with it. This list is shared
b0588390dbcedc Alexei Starovoitov 2021-07-20 1195 * between multiple relocations for the same type ID and is updated as some
b0588390dbcedc Alexei Starovoitov 2021-07-20 1196 * of the candidates are pruned due to structural incompatibility.
b0588390dbcedc Alexei Starovoitov 2021-07-20 1197 */
b0588390dbcedc Alexei Starovoitov 2021-07-20 @1198 int bpf_core_apply_relo_insn(const char *prog_name, struct bpf_insn *insn,
:::::: The code at line 1198 was first introduced by commit
:::::: b0588390dbcedcd74fab6ffb8afe8d52380fd8b6 libbpf: Split CO-RE logic into relo_core.c.
:::::: TO: Alexei Starovoitov <ast(a)kernel.org>
:::::: CC: Andrii Nakryiko <andrii(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[sashal-stable:pending-5.10 331/511] drivers/block/ataflop.c:2013:15: error: implicit declaration of function '__register_blkdev'; did you mean 'unregister_blkdev'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head: 28d8a1bafb1d3ba5b9e84a0ef9f7505340737187
commit: 780010795b4baf104c7342591ece9396b522d751 [331/511] ataflop: use a separate gendisk for each media format
config: m68k-defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.10
git checkout 780010795b4baf104c7342591ece9396b522d751
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/block/ataflop.c: In function 'atari_floppy_init':
>> drivers/block/ataflop.c:2013:15: error: implicit declaration of function '__register_blkdev'; did you mean 'unregister_blkdev'? [-Werror=implicit-function-declaration]
2013 | ret = __register_blkdev(FLOPPY_MAJOR, "fd", ataflop_probe);
| ^~~~~~~~~~~~~~~~~
| unregister_blkdev
cc1: some warnings being treated as errors
vim +2013 drivers/block/ataflop.c
2002
2003 static int __init atari_floppy_init (void)
2004 {
2005 int i;
2006 int ret;
2007
2008 if (!MACH_IS_ATARI)
2009 /* Amiga, Mac, ... don't have Atari-compatible floppy :-) */
2010 return -ENODEV;
2011
2012 mutex_lock(&ataflop_probe_lock);
> 2013 ret = __register_blkdev(FLOPPY_MAJOR, "fd", ataflop_probe);
2014 if (ret)
2015 goto out_unlock;
2016
2017 for (i = 0; i < FD_MAX_UNITS; i++) {
2018 memset(&unit[i].tag_set, 0, sizeof(unit[i].tag_set));
2019 unit[i].tag_set.ops = &ataflop_mq_ops;
2020 unit[i].tag_set.nr_hw_queues = 1;
2021 unit[i].tag_set.nr_maps = 1;
2022 unit[i].tag_set.queue_depth = 2;
2023 unit[i].tag_set.numa_node = NUMA_NO_NODE;
2024 unit[i].tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
2025 ret = blk_mq_alloc_tag_set(&unit[i].tag_set);
2026 if (ret)
2027 goto err;
2028
2029 ret = ataflop_alloc_disk(i, 0);
2030 if (ret) {
2031 blk_mq_free_tag_set(&unit[i].tag_set);
2032 goto err;
2033 }
2034 }
2035
2036 if (UseTrackbuffer < 0)
2037 /* not set by user -> use default: for now, we turn
2038 track buffering off for all Medusas, though it
2039 could be used with ones that have a counter
2040 card. But the test is too hard :-( */
2041 UseTrackbuffer = !MACH_IS_MEDUSA;
2042
2043 /* initialize variables */
2044 SelectedDrive = -1;
2045 BufferDrive = -1;
2046
2047 DMABuffer = atari_stram_alloc(BUFFER_SIZE+512, "ataflop");
2048 if (!DMABuffer) {
2049 printk(KERN_ERR "atari_floppy_init: cannot get dma buffer\n");
2050 ret = -ENOMEM;
2051 goto err;
2052 }
2053 TrackBuffer = DMABuffer + 512;
2054 PhysDMABuffer = atari_stram_to_phys(DMABuffer);
2055 PhysTrackBuffer = virt_to_phys(TrackBuffer);
2056 BufferDrive = BufferSide = BufferTrack = -1;
2057
2058 for (i = 0; i < FD_MAX_UNITS; i++) {
2059 unit[i].track = -1;
2060 unit[i].flags = 0;
2061 add_disk(unit[i].disk[0]);
2062 }
2063
2064 printk(KERN_INFO "Atari floppy driver: max. %cD, %strack buffering\n",
2065 DriveType == 0 ? 'D' : DriveType == 1 ? 'H' : 'E',
2066 UseTrackbuffer ? "" : "no ");
2067 config_types();
2068
2069 return 0;
2070
2071 err:
2072 while (--i >= 0) {
2073 blk_cleanup_queue(unit[i].disk[0]->queue);
2074 put_disk(unit[i].disk[0]);
2075 blk_mq_free_tag_set(&unit[i].tag_set);
2076 }
2077
2078 unregister_blkdev(FLOPPY_MAJOR, "fd");
2079 out_unlock:
2080 mutex_unlock(&ataflop_probe_lock);
2081 return ret;
2082 }
2083
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[arm-platforms:hack/m1-pmu 8/8] drivers/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer overrides prior initialization of this subobject
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/m1-pmu
head: a905c66ae0b391425e9ad7f261ad7b4c33af2c07
commit: a905c66ae0b391425e9ad7f261ad7b4c33af2c07 [8/8] drivers/perf: Add Apple icestorm/firestorm CPU PMU driver
config: arm64-randconfig-r036-20211114 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms hack/m1-pmu
git checkout a905c66ae0b391425e9ad7f261ad7b4c33af2c07
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[M1_PMU_PERFCTR_UNKNOWN_01] = BIT(7),
^~~~~~
include/vdso/bits.h:7:19: note: expanded from macro 'BIT'
#define BIT(nr) (UL(1) << (nr))
^~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization is here
[0 ... M1_PMU_PERFCTR_LAST] = ANY_BUT_0_1,
^~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:25:23: note: expanded from macro 'ANY_BUT_0_1'
#define ANY_BUT_0_1 GENMASK(9, 2)
^~~~~~~~~~~~~
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:101:32: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[M1_PMU_PERFCTR_CPU_CYCLES] = ANY_BUT_0_1 | BIT(0),
^~~~~~~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:25:23: note: expanded from macro 'ANY_BUT_0_1'
#define ANY_BUT_0_1 GENMASK(9, 2)
^
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^
drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization is here
[0 ... M1_PMU_PERFCTR_LAST] = ANY_BUT_0_1,
^~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:25:23: note: expanded from macro 'ANY_BUT_0_1'
#define ANY_BUT_0_1 GENMASK(9, 2)
^~~~~~~~~~~~~
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:102:34: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[M1_PMU_PERFCTR_INSTRUCTIONS] = BIT(7) | BIT(1),
^~~~~~~~~~~~~~~
include/vdso/bits.h:7:19: note: expanded from macro 'BIT'
#define BIT(nr) (UL(1) << (nr))
^
drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization is here
[0 ... M1_PMU_PERFCTR_LAST] = ANY_BUT_0_1,
^~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:25:23: note: expanded from macro 'ANY_BUT_0_1'
#define ANY_BUT_0_1 GENMASK(9, 2)
^~~~~~~~~~~~~
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:103:32: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[M1_PMU_PERFCTR_UNKNOWN_8d] = ONLY_5_6_7,
^~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:28:22: note: expanded from macro 'ONLY_5_6_7'
#define ONLY_5_6_7 GENMASK(7, 5)
^~~~~~~~~~~~~
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization is here
[0 ... M1_PMU_PERFCTR_LAST] = ANY_BUT_0_1,
^~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:25:23: note: expanded from macro 'ANY_BUT_0_1'
#define ANY_BUT_0_1 GENMASK(9, 2)
^~~~~~~~~~~~~
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:104:32: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[M1_PMU_PERFCTR_UNKNOWN_8e] = ONLY_5_6_7,
^~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:28:22: note: expanded from macro 'ONLY_5_6_7'
#define ONLY_5_6_7 GENMASK(7, 5)
^~~~~~~~~~~~~
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization is here
[0 ... M1_PMU_PERFCTR_LAST] = ANY_BUT_0_1,
^~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:25:23: note: expanded from macro 'ANY_BUT_0_1'
#define ANY_BUT_0_1 GENMASK(9, 2)
^~~~~~~~~~~~~
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:105:32: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[M1_PMU_PERFCTR_UNKNOWN_8f] = ONLY_5_6_7,
^~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:28:22: note: expanded from macro 'ONLY_5_6_7'
#define ONLY_5_6_7 GENMASK(7, 5)
^~~~~~~~~~~~~
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization is here
[0 ... M1_PMU_PERFCTR_LAST] = ANY_BUT_0_1,
^~~~~~~~~~~
drivers/perf/apple_m1_cpu_pmu.c:25:23: note: expanded from macro 'ANY_BUT_0_1'
#define ANY_BUT_0_1 GENMASK(9, 2)
^~~~~~~~~~~~~
include/linux/bits.h:38:2: note: expanded from macro 'GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
vim +100 drivers/perf/apple_m1_cpu_pmu.c
91
92 /*
93 * Per-event affinity table. Most events can be installed on counter
94 * 2-9, but there are a numbre of exceptions. Note that this table
95 * has been created experimentally, and I wouldn't be surprised if more
96 * counters had strange affinities.
97 */
98 static const u16 m1_pmu_event_affinity[M1_PMU_PERFCTR_LAST + 1] = {
99 [0 ... M1_PMU_PERFCTR_LAST] = ANY_BUT_0_1,
> 100 [M1_PMU_PERFCTR_UNKNOWN_01] = BIT(7),
101 [M1_PMU_PERFCTR_CPU_CYCLES] = ANY_BUT_0_1 | BIT(0),
102 [M1_PMU_PERFCTR_INSTRUCTIONS] = BIT(7) | BIT(1),
103 [M1_PMU_PERFCTR_UNKNOWN_8d] = ONLY_5_6_7,
104 [M1_PMU_PERFCTR_UNKNOWN_8e] = ONLY_5_6_7,
105 [M1_PMU_PERFCTR_UNKNOWN_8f] = ONLY_5_6_7,
106 [M1_PMU_PERFCTR_UNKNOWN_90] = ONLY_5_6_7,
107 [M1_PMU_PERFCTR_UNKNOWN_93] = ONLY_5_6_7,
108 [M1_PMU_PERFCTR_UNKNOWN_94] = ONLY_5_6_7,
109 [M1_PMU_PERFCTR_UNKNOWN_95] = ONLY_5_6_7,
110 [M1_PMU_PERFCTR_UNKNOWN_96] = ONLY_5_6_7,
111 [M1_PMU_PERFCTR_UNKNOWN_97] = BIT(7),
112 [M1_PMU_PERFCTR_UNKNOWN_98] = ONLY_5_6_7,
113 [M1_PMU_PERFCTR_UNKNOWN_99] = ONLY_5_6_7,
114 [M1_PMU_PERFCTR_UNKNOWN_9a] = BIT(7),
115 [M1_PMU_PERFCTR_UNKNOWN_9b] = ONLY_5_6_7,
116 [M1_PMU_PERFCTR_UNKNOWN_9c] = ONLY_5_6_7,
117 [M1_PMU_PERFCTR_UNKNOWN_9f] = BIT(7),
118 [M1_PMU_PERFCTR_UNKNOWN_bf] = ONLY_5_6_7,
119 [M1_PMU_PERFCTR_UNKNOWN_c0] = ONLY_5_6_7,
120 [M1_PMU_PERFCTR_UNKNOWN_c1] = ONLY_5_6_7,
121 [M1_PMU_PERFCTR_UNKNOWN_c4] = ONLY_5_6_7,
122 [M1_PMU_PERFCTR_UNKNOWN_c5] = ONLY_5_6_7,
123 [M1_PMU_PERFCTR_UNKNOWN_c6] = ONLY_5_6_7,
124 [M1_PMU_PERFCTR_UNKNOWN_c8] = ONLY_5_6_7,
125 [M1_PMU_PERFCTR_UNKNOWN_ca] = ONLY_5_6_7,
126 [M1_PMU_PERFCTR_UNKNOWN_cb] = ONLY_5_6_7,
127 [M1_PMU_PERFCTR_UNKNOWN_f5] = ONLY_2_4_6,
128 [M1_PMU_PERFCTR_UNKNOWN_f6] = ONLY_2_4_6,
129 [M1_PMU_PERFCTR_UNKNOWN_f7] = ONLY_2_4_6,
130 [M1_PMU_PERFCTR_UNKNOWN_f8] = ONLY_2_TO_7,
131 [M1_PMU_PERFCTR_UNKNOWN_fd] = ONLY_2_4_6,
132 };
133
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/rtc/rtc-ntxec.c:91:53: sparse: sparse: incorrect type in initializer (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c8c109546a19613d323a319d0c921cb1f317e629
commit: 435af89786c674583b188f7322fee5c03894b8b7 rtc: New driver for RTC in Netronix embedded controller
date: 8 months ago
config: riscv-randconfig-s031-20211109 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 435af89786c674583b188f7322fee5c03894b8b7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash block/ drivers/hid/ drivers/i2c/busses/ drivers/message/fusion/ drivers/net/ethernet/ drivers/net/wireless/intel/iwlwifi/ drivers/pci/ drivers/remoteproc/ drivers/rtc/ drivers/staging/rts5208/ drivers/staging/vc04_services/ drivers/vdpa/ drivers/video/fbdev/ net/qrtr/ net/sched/
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/rtc/rtc-ntxec.c:91:53: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int def @@ got restricted __be16 @@
drivers/rtc/rtc-ntxec.c:91:53: sparse: expected unsigned int def
drivers/rtc/rtc-ntxec.c:91:53: sparse: got restricted __be16
drivers/rtc/rtc-ntxec.c:92:51: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int def @@ got restricted __be16 @@
drivers/rtc/rtc-ntxec.c:92:51: sparse: expected unsigned int def
drivers/rtc/rtc-ntxec.c:92:51: sparse: got restricted __be16
drivers/rtc/rtc-ntxec.c:93:52: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int def @@ got restricted __be16 @@
drivers/rtc/rtc-ntxec.c:93:52: sparse: expected unsigned int def
drivers/rtc/rtc-ntxec.c:93:52: sparse: got restricted __be16
drivers/rtc/rtc-ntxec.c:94:50: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int def @@ got restricted __be16 @@
drivers/rtc/rtc-ntxec.c:94:50: sparse: expected unsigned int def
drivers/rtc/rtc-ntxec.c:94:50: sparse: got restricted __be16
drivers/rtc/rtc-ntxec.c:95:51: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int def @@ got restricted __be16 @@
drivers/rtc/rtc-ntxec.c:95:51: sparse: expected unsigned int def
drivers/rtc/rtc-ntxec.c:95:51: sparse: got restricted __be16
drivers/rtc/rtc-ntxec.c:96:53: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int def @@ got restricted __be16 @@
drivers/rtc/rtc-ntxec.c:96:53: sparse: expected unsigned int def
drivers/rtc/rtc-ntxec.c:96:53: sparse: got restricted __be16
drivers/rtc/rtc-ntxec.c:97:53: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int def @@ got restricted __be16 @@
drivers/rtc/rtc-ntxec.c:97:53: sparse: expected unsigned int def
drivers/rtc/rtc-ntxec.c:97:53: sparse: got restricted __be16
drivers/rtc/rtc-ntxec.c: note: in included file:
include/linux/mfd/ntxec.h:31:22: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __be16 @@ got int @@
include/linux/mfd/ntxec.h:31:22: sparse: expected restricted __be16
include/linux/mfd/ntxec.h:31:22: sparse: got int
include/linux/mfd/ntxec.h:31:22: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __be16 @@ got int @@
include/linux/mfd/ntxec.h:31:22: sparse: expected restricted __be16
include/linux/mfd/ntxec.h:31:22: sparse: got int
include/linux/mfd/ntxec.h:31:22: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __be16 @@ got int @@
include/linux/mfd/ntxec.h:31:22: sparse: expected restricted __be16
include/linux/mfd/ntxec.h:31:22: sparse: got int
include/linux/mfd/ntxec.h:31:22: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __be16 @@ got int @@
include/linux/mfd/ntxec.h:31:22: sparse: expected restricted __be16
include/linux/mfd/ntxec.h:31:22: sparse: got int
include/linux/mfd/ntxec.h:31:22: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __be16 @@ got int @@
include/linux/mfd/ntxec.h:31:22: sparse: expected restricted __be16
include/linux/mfd/ntxec.h:31:22: sparse: got int
include/linux/mfd/ntxec.h:31:22: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __be16 @@ got int @@
include/linux/mfd/ntxec.h:31:22: sparse: expected restricted __be16
include/linux/mfd/ntxec.h:31:22: sparse: got int
include/linux/mfd/ntxec.h:31:22: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __be16 @@ got int @@
include/linux/mfd/ntxec.h:31:22: sparse: expected restricted __be16
include/linux/mfd/ntxec.h:31:22: sparse: got int
vim +91 drivers/rtc/rtc-ntxec.c
78
79 static int ntxec_set_time(struct device *dev, struct rtc_time *tm)
80 {
81 struct ntxec_rtc *rtc = dev_get_drvdata(dev);
82
83 /*
84 * To avoid time overflows while we're writing the full date/time,
85 * set the seconds field to zero before doing anything else. For the
86 * next 59 seconds (plus however long it takes until the RTC's next
87 * update of the second field), the seconds field will not overflow
88 * into the other fields.
89 */
90 struct reg_sequence regs[] = {
> 91 { NTXEC_REG_WRITE_SECOND, ntxec_reg8(0) },
92 { NTXEC_REG_WRITE_YEAR, ntxec_reg8(tm->tm_year - 100) },
93 { NTXEC_REG_WRITE_MONTH, ntxec_reg8(tm->tm_mon + 1) },
94 { NTXEC_REG_WRITE_DAY, ntxec_reg8(tm->tm_mday) },
95 { NTXEC_REG_WRITE_HOUR, ntxec_reg8(tm->tm_hour) },
96 { NTXEC_REG_WRITE_MINUTE, ntxec_reg8(tm->tm_min) },
97 { NTXEC_REG_WRITE_SECOND, ntxec_reg8(tm->tm_sec) },
98 };
99
100 return regmap_multi_reg_write(rtc->ec->regmap, regs, ARRAY_SIZE(regs));
101 }
102
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[jpirko-mlxsw:linecards 55/112] drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:366:26: warning: variable 'linecards' set but not used
by kernel test robot
tree: https://github.com/jpirko/linux_mlxsw linecards
head: 7cbf836a1c8105f00dc98c24054feed7640b0dfd
commit: f8f5a8c6910c7716db683cc02eea2fe5e288b74c [55/112] mlxsw: core_linecards: Add line card objects and implement provisioning
config: riscv-buildonly-randconfig-r004-20211115 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/jpirko/linux_mlxsw/commit/f8f5a8c6910c7716db683cc02eea...
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw linecards
git checkout f8f5a8c6910c7716db683cc02eea2fe5e288b74c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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/ethernet/mellanox/mlxsw/core_linecards.c:366:26: warning: variable 'linecards' set but not used [-Wunused-but-set-variable]
struct mlxsw_linecards *linecards;
^
1 warning generated.
vim +/linecards +366 drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
359
360 static int mlxsw_linecard_unprovision(struct devlink_linecard *devlink_linecard,
361 void *priv,
362 struct netlink_ext_ack *extack)
363 {
364 enum mlxsw_reg_mbct_fsm_state fsm_state;
365 struct mlxsw_linecard *linecard = priv;
> 366 struct mlxsw_linecards *linecards;
367 enum mlxsw_reg_mbct_status status;
368 unsigned int ini_wait_retries = 0;
369 struct mlxsw_core *mlxsw_core;
370 int err;
371
372 mutex_lock(&linecard->lock);
373
374 linecards = linecard->linecards;
375 mlxsw_core = linecard->linecards->mlxsw_core;
376
377 query_ini_status:
378 err = mlxsw_linecard_query_status(linecard, &status,
379 &fsm_state, extack);
380 if (err)
381 goto err_out;
382
383 switch (fsm_state) {
384 case MLXSW_REG_MBCT_FSM_STATE_INI_IN_USE:
385 if (ini_wait_retries++ > MLXSW_LINECARD_INI_WAIT_RETRIES) {
386 NL_SET_ERR_MSG_MOD(extack, "Failed to wait for linecard INI to be not used");
387 goto err_out;
388 }
389 mdelay(MLXSW_LINECARD_INI_WAIT_MS);
390 goto query_ini_status;
391 default:
392 break;
393 }
394
395 mlxsw_reg_mbct_pack(linecard->mbct_pl, linecard->slot_index,
396 MLXSW_REG_MBCT_OP_ERASE_INI_IMAGE, 0,
397 false, false, NULL);
398 err = mlxsw_reg_write(mlxsw_core, MLXSW_REG(mbct),
399 linecard->mbct_pl);
400 if (err) {
401 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI");
402 goto err_out;
403 }
404 mlxsw_reg_mbct_unpack(linecard->mbct_pl, NULL, &status, &fsm_state);
405 switch (status) {
406 case MLXSW_REG_MBCT_STATUS_ERASE_COMPLETE:
407 break;
408 default:
409 /* Should not happen, fall-through. */
410 case MLXSW_REG_MBCT_STATUS_ERASE_FAILED:
411 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI");
412 goto fix_fsm_err_out;
413 case MLXSW_REG_MBCT_STATUS_ERROR_INI_IN_USE:
414 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI while being used");
415 goto fix_fsm_err_out;
416 }
417 goto out;
418
419 fix_fsm_err_out:
420 mlxsw_linecard_fix_fsm_state(linecard, fsm_state);
421 err_out:
422 mlxsw_linecard_provision_fail(linecard);
423 out:
424 mutex_unlock(&linecard->lock);
425 return err;
426 }
427
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[sashal-stable:pending-5.14 399/754] drivers/gpu/drm/msm/dsi/dsi_host.c:2503:34: error: 'REG_DSI_TEST_PATTERN_GEN_CTRL' undeclared; did you mean 'REG_DSI_EOT_PACKET_CTRL'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.14
head: e4110877838108b22ddd621970275e5e2c54b178
commit: da2eb9a67dfe8425ea0a74ec43bf569307824509 [399/754] drm/msm/dsi: add support for dsi test pattern generator
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.14
git checkout da2eb9a67dfe8425ea0a74ec43bf569307824509
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/msm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/msm/dsi/dsi_host.c: In function 'msm_dsi_host_video_test_pattern_setup':
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2503:34: error: 'REG_DSI_TEST_PATTERN_GEN_CTRL' undeclared (first use in this function); did you mean 'REG_DSI_EOT_PACKET_CTRL'?
2503 | reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| REG_DSI_EOT_PACKET_CTRL
drivers/gpu/drm/msm/dsi/dsi_host.c:2503:34: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2505:29: error: 'REG_DSI_TEST_PATTERN_GEN_VIDEO_INIT_VAL' undeclared (first use in this function)
2505 | dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_VIDEO_INIT_VAL, 0xff);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2507:29: error: 'REG_DSI_TPG_MAIN_CONTROL' undeclared (first use in this function)
2507 | dsi_write(msm_host, REG_DSI_TPG_MAIN_CONTROL,
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2508:25: error: 'DSI_TPG_MAIN_CONTROL_CHECKERED_RECTANGLE_PATTERN' undeclared (first use in this function)
2508 | DSI_TPG_MAIN_CONTROL_CHECKERED_RECTANGLE_PATTERN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2510:29: error: 'REG_DSI_TPG_VIDEO_CONFIG' undeclared (first use in this function)
2510 | dsi_write(msm_host, REG_DSI_TPG_VIDEO_CONFIG,
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2511:25: error: implicit declaration of function 'DSI_TPG_VIDEO_CONFIG_BPP' [-Werror=implicit-function-declaration]
2511 | DSI_TPG_VIDEO_CONFIG_BPP(VIDEO_CONFIG_24BPP) |
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2511:50: error: 'VIDEO_CONFIG_24BPP' undeclared (first use in this function)
2511 | DSI_TPG_VIDEO_CONFIG_BPP(VIDEO_CONFIG_24BPP) |
| ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2512:25: error: 'DSI_TPG_VIDEO_CONFIG_RGB' undeclared (first use in this function)
2512 | DSI_TPG_VIDEO_CONFIG_RGB);
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2514:16: error: implicit declaration of function 'DSI_TEST_PATTERN_GEN_CTRL_VIDEO_PATTERN_SEL' [-Werror=implicit-function-declaration]
2514 | reg |= DSI_TEST_PATTERN_GEN_CTRL_VIDEO_PATTERN_SEL(VID_MDSS_GENERAL_PATTERN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2514:60: error: 'VID_MDSS_GENERAL_PATTERN' undeclared (first use in this function)
2514 | reg |= DSI_TEST_PATTERN_GEN_CTRL_VIDEO_PATTERN_SEL(VID_MDSS_GENERAL_PATTERN);
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/msm/dsi/dsi_host.c: In function 'msm_dsi_host_cmd_test_pattern_setup':
drivers/gpu/drm/msm/dsi/dsi_host.c:2524:34: error: 'REG_DSI_TEST_PATTERN_GEN_CTRL' undeclared (first use in this function); did you mean 'REG_DSI_EOT_PACKET_CTRL'?
2524 | reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| REG_DSI_EOT_PACKET_CTRL
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2527:29: error: 'REG_DSI_TEST_PATTERN_GEN_CMD_MDP_INIT_VAL0' undeclared (first use in this function)
2527 | dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CMD_MDP_INIT_VAL0, 0xff);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2529:16: error: implicit declaration of function 'DSI_TEST_PATTERN_GEN_CTRL_CMD_MDP_STREAM0_PATTERN_SEL' [-Werror=implicit-function-declaration]
2529 | reg |= DSI_TEST_PATTERN_GEN_CTRL_CMD_MDP_STREAM0_PATTERN_SEL(CMD_MDP_MDSS_GENERAL_PATTERN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2529:70: error: 'CMD_MDP_MDSS_GENERAL_PATTERN' undeclared (first use in this function)
2529 | reg |= DSI_TEST_PATTERN_GEN_CTRL_CMD_MDP_STREAM0_PATTERN_SEL(CMD_MDP_MDSS_GENERAL_PATTERN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2533:29: error: 'REG_DSI_TPG_MAIN_CONTROL2' undeclared (first use in this function)
2533 | dsi_write(msm_host, REG_DSI_TPG_MAIN_CONTROL2,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2534:25: error: 'DSI_TPG_MAIN_CONTROL2_CMD_MDP0_CHECKERED_RECTANGLE_PATTERN' undeclared (first use in this function)
2534 | DSI_TPG_MAIN_CONTROL2_CMD_MDP0_CHECKERED_RECTANGLE_PATTERN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/msm/dsi/dsi_host.c: In function 'msm_dsi_host_test_pattern_en':
drivers/gpu/drm/msm/dsi/dsi_host.c:2550:34: error: 'REG_DSI_TEST_PATTERN_GEN_CTRL' undeclared (first use in this function); did you mean 'REG_DSI_EOT_PACKET_CTRL'?
2550 | reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| REG_DSI_EOT_PACKET_CTRL
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2552:67: error: 'DSI_TEST_PATTERN_GEN_CTRL_EN' undeclared (first use in this function)
2552 | dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL, (reg | DSI_TEST_PATTERN_GEN_CTRL_EN));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2556:37: error: 'REG_DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER' undeclared (first use in this function)
2556 | dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2557:33: error: 'DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER_SW_TRIGGER' undeclared (first use in this function)
2557 | DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER_SW_TRIGGER);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +2503 drivers/gpu/drm/msm/dsi/dsi_host.c
2498
2499 static void msm_dsi_host_video_test_pattern_setup(struct msm_dsi_host *msm_host)
2500 {
2501 u32 reg;
2502
> 2503 reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
2504
> 2505 dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_VIDEO_INIT_VAL, 0xff);
2506 /* draw checkered rectangle pattern */
> 2507 dsi_write(msm_host, REG_DSI_TPG_MAIN_CONTROL,
> 2508 DSI_TPG_MAIN_CONTROL_CHECKERED_RECTANGLE_PATTERN);
2509 /* use 24-bit RGB test pttern */
> 2510 dsi_write(msm_host, REG_DSI_TPG_VIDEO_CONFIG,
> 2511 DSI_TPG_VIDEO_CONFIG_BPP(VIDEO_CONFIG_24BPP) |
> 2512 DSI_TPG_VIDEO_CONFIG_RGB);
2513
> 2514 reg |= DSI_TEST_PATTERN_GEN_CTRL_VIDEO_PATTERN_SEL(VID_MDSS_GENERAL_PATTERN);
2515 dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL, reg);
2516
2517 DBG("Video test pattern setup done\n");
2518 }
2519
2520 static void msm_dsi_host_cmd_test_pattern_setup(struct msm_dsi_host *msm_host)
2521 {
2522 u32 reg;
2523
2524 reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
2525
2526 /* initial value for test pattern */
> 2527 dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CMD_MDP_INIT_VAL0, 0xff);
2528
> 2529 reg |= DSI_TEST_PATTERN_GEN_CTRL_CMD_MDP_STREAM0_PATTERN_SEL(CMD_MDP_MDSS_GENERAL_PATTERN);
2530
2531 dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL, reg);
2532 /* draw checkered rectangle pattern */
> 2533 dsi_write(msm_host, REG_DSI_TPG_MAIN_CONTROL2,
> 2534 DSI_TPG_MAIN_CONTROL2_CMD_MDP0_CHECKERED_RECTANGLE_PATTERN);
2535
2536 DBG("Cmd test pattern setup done\n");
2537 }
2538
2539 void msm_dsi_host_test_pattern_en(struct mipi_dsi_host *host)
2540 {
2541 struct msm_dsi_host *msm_host = to_msm_dsi_host(host);
2542 bool is_video_mode = !!(msm_host->mode_flags & MIPI_DSI_MODE_VIDEO);
2543 u32 reg;
2544
2545 if (is_video_mode)
2546 msm_dsi_host_video_test_pattern_setup(msm_host);
2547 else
2548 msm_dsi_host_cmd_test_pattern_setup(msm_host);
2549
2550 reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
2551 /* enable the test pattern generator */
> 2552 dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL, (reg | DSI_TEST_PATTERN_GEN_CTRL_EN));
2553
2554 /* for command mode need to trigger one frame from tpg */
2555 if (!is_video_mode)
> 2556 dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER,
> 2557 DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER_SW_TRIGGER);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
【Amazon】個人情報を更新してください。
by Amazon.co.jp
誰かがあなたのアカウントにログインしました。
時間:Nov 15, 2021 00:32 AM Hong Kong Time
モデル:Google Chrome macOS (デスクトップ)
アドレス:Yau Tsim Mong, Hong Kong
ログインしている場合は、このメッセージを無視してかまいません。それ以外の場合は、セキュリティ上の理由から、Amazonアカウントを確認してください。
アカウントを引き続き使用するには、24時間以内に情報を更新することをお勧めします。そうしないと、アカウントが完全にロックされます。
確認用アカウント
© 1996-2021 Amazon. Inc. or its affiliates. All rights reserved. Amazon, Amazon.co.jp, Amazon Prime, Prime およびAmazon.co.jp のロゴは Amazon.com, Inc.またはその関連会社の商標です。 Amazon.com, 410 Terry Avenue N., Seattle, WA 98109-5210
10 months, 1 week