[morimoto-linux:sound/2021-05-19-v1 106/107] sound/soc/sh/rcar/debugfs.c:68:17: warning: variable 'root' set but not used
by kernel test robot
tree: https://github.com/morimoto/linux sound/2021-05-19-v1
head: d9ea427068846f93ab97650cad49c16c901ee98e
commit: 414cf7fa2902ffed9742c0e71908061b5199fc1c [106/107] ASoC: rsnd: add debugfs support
config: ia64-randconfig-r002-20210519 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/morimoto/linux/commit/414cf7fa2902ffed9742c0e71908061b...
git remote add morimoto-linux https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux sound/2021-05-19-v1
git checkout 414cf7fa2902ffed9742c0e71908061b5199fc1c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/debugfs.h:15,
from sound/soc/sh/rcar/debugfs.c:14:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:127:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
sound/soc/sh/rcar/debugfs.c: In function 'rsnd_debugfs_probe':
>> sound/soc/sh/rcar/debugfs.c:68:17: warning: variable 'root' set but not used [-Wunused-but-set-variable]
68 | struct dentry *root, *dir;
| ^~~~
vim +/root +68 sound/soc/sh/rcar/debugfs.c
63
64 int rsnd_debugfs_probe(struct snd_soc_component *component)
65 {
66 struct rsnd_priv *priv = dev_get_drvdata(component->dev);
67 struct rsnd_dai *rdai;
> 68 struct dentry *root, *dir;
69 char name[64];
70 int i;
71
72 /* Gen1 is not supported */
73 if (rsnd_is_gen1(priv))
74 return 0;
75
76 for_each_rsnd_dai(rdai, priv, i) {
77 /*
78 * created debugfs will be automatically
79 * removed, nothing to do for _remove.
80 * see
81 * soc_cleanup_component_debugfs()
82 */
83 snprintf(name, sizeof(name), "rdai%d", i);
84 root = debugfs_create_dir(name, component->debugfs_root);
85
86 debugfs_create_file("playback", 0444, dir, &rdai->playback, &rsnd_debugfs_fops); \
87 debugfs_create_file("capture", 0444, dir, &rdai->capture , &rsnd_debugfs_fops); \
88 }
89
90 return 0;
91 }
92
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[media-next:master 180/181] drivers/staging/media/hantro/hantro_drv.c:165:3: error: label 'err_cancel_job' used but not defined
by kernel test robot
tree: git://linuxtv.org/mchehab/media-next.git master
head: c4fb2697f420b3c752230d8060801681bc486c04
commit: 9454974c75ddbe0ec82c1bb3f0b5d6f3ce65b8fd [180/181] media: hantro: use pm_runtime_resume_and_get()
config: ia64-randconfig-r002-20210519 (attached as .config)
compiler: ia64-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 remote add media-next git://linuxtv.org/mchehab/media-next.git
git fetch --no-tags media-next master
git checkout 9454974c75ddbe0ec82c1bb3f0b5d6f3ce65b8fd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 >>):
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/poll.h:10,
from include/media/videobuf2-core.h:17,
from include/media/videobuf2-v4l2.h:16,
from include/media/v4l2-mem2mem.h:16,
from drivers/staging/media/hantro/hantro_drv.c:23:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:127:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
drivers/staging/media/hantro/hantro_drv.c: In function 'device_run':
>> drivers/staging/media/hantro/hantro_drv.c:165:3: error: label 'err_cancel_job' used but not defined
165 | goto err_cancel_job;
| ^~~~
>> drivers/staging/media/hantro/hantro_drv.c:157:32: warning: variable 'dst' set but not used [-Wunused-but-set-variable]
157 | struct vb2_v4l2_buffer *src, *dst;
| ^~~
>> drivers/staging/media/hantro/hantro_drv.c:157:26: warning: variable 'src' set but not used [-Wunused-but-set-variable]
157 | struct vb2_v4l2_buffer *src, *dst;
| ^~~
drivers/staging/media/hantro/hantro_drv.c: At top level:
>> drivers/staging/media/hantro/hantro_drv.c:168:2: warning: data definition has no type or storage class
168 | ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks);
| ^~~
>> drivers/staging/media/hantro/hantro_drv.c:168:2: error: type defaults to 'int' in declaration of 'ret' [-Werror=implicit-int]
>> drivers/staging/media/hantro/hantro_drv.c:168:24: error: 'ctx' undeclared here (not in a function)
168 | ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks);
| ^~~
>> drivers/staging/media/hantro/hantro_drv.c:169:2: error: expected identifier or '(' before 'if'
169 | if (ret)
| ^~
drivers/staging/media/hantro/hantro_drv.c:172:2: warning: data definition has no type or storage class
172 | v4l2_m2m_buf_copy_metadata(src, dst, true);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/media/hantro/hantro_drv.c:172:2: error: type defaults to 'int' in declaration of 'v4l2_m2m_buf_copy_metadata' [-Werror=implicit-int]
>> drivers/staging/media/hantro/hantro_drv.c:172:2: warning: parameter names (without types) in function declaration
>> drivers/staging/media/hantro/hantro_drv.c:172:2: error: conflicting types for 'v4l2_m2m_buf_copy_metadata'
In file included from drivers/staging/media/hantro/hantro_drv.c:23:
include/media/v4l2-mem2mem.h:830:6: note: previous declaration of 'v4l2_m2m_buf_copy_metadata' was here
830 | void v4l2_m2m_buf_copy_metadata(const struct vb2_v4l2_buffer *out_vb,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/media/hantro/hantro_drv.c:174:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token
174 | ctx->codec_ops->run(ctx);
| ^~
>> drivers/staging/media/hantro/hantro_drv.c:175:2: error: expected identifier or '(' before 'return'
175 | return;
| ^~~~~~
>> drivers/staging/media/hantro/hantro_drv.c:177:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
177 | err_cancel_job:
| ^
>> drivers/staging/media/hantro/hantro_drv.c:179:1: error: expected identifier or '(' before '}' token
179 | }
| ^
drivers/staging/media/hantro/hantro_drv.c:483:34: warning: 'of_hantro_match' defined but not used [-Wunused-const-variable=]
483 | static const struct of_device_id of_hantro_match[] = {
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/err_cancel_job +165 drivers/staging/media/hantro/hantro_drv.c
932a9317ac492d drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-07-25 153
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 154 static void device_run(void *priv)
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 155 {
a29add8c9bb29d drivers/staging/media/hantro/hantro_drv.c Philipp Zabel 2019-06-12 156 struct hantro_ctx *ctx = priv;
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 @157 struct vb2_v4l2_buffer *src, *dst;
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 158 int ret;
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 159
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 160 src = hantro_get_src_buf(ctx);
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 161 dst = hantro_get_dst_buf(ctx);
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 162
9454974c75ddbe drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-26 163 ret = pm_runtime_resume_and_get(ctx->dev->dev);
9454974c75ddbe drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-26 164 if (ret < 0)
892bb6ecead9b8 drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-28 @165 goto err_cancel_job;
892bb6ecead9b8 drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-28 166 }
892bb6ecead9b8 drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-28 167
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 @168 ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks);
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 @169 if (ret)
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 170 goto err_cancel_job;
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 171
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 @172 v4l2_m2m_buf_copy_metadata(src, dst, true);
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 173
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 @174 ctx->codec_ops->run(ctx);
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 @175 return;
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 176
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 @177 err_cancel_job:
892bb6ecead9b8 drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-28 178 hantro_job_finish_no_pm(ctx->dev, ctx, VB2_BUF_STATE_ERROR);
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 @179 }
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 180
:::::: The code at line 165 was first introduced by commit
:::::: 892bb6ecead9b834ba7ad1d07513e9eba1baa3a4 media: hantro: do a PM resume earlier
:::::: TO: Mauro Carvalho Chehab <mchehab+huawei(a)kernel.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[hch-misc:nvme-ioctl 15/15] drivers/nvme/host/core.c:1946:23: error: implicit declaration of function 'nvme_find_path'
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git nvme-ioctl
head: 35c6dd73314831078d08613ffface7a97333169c
commit: 35c6dd73314831078d08613ffface7a97333169c [15/15] nvme: remove nvme_{get,put}_ns_from_disk
config: x86_64-randconfig-a003-20210519 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8e93d10633d751a3e9169bf9fa68326925ffa097)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc nvme-ioctl
git checkout 35c6dd73314831078d08613ffface7a97333169c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/nvme/host/core.c:1946:23: error: implicit declaration of function 'nvme_find_path' [-Werror,-Wimplicit-function-declaration]
struct nvme_ns *ns = nvme_find_path(head);
^
>> drivers/nvme/host/core.c:1946:18: warning: incompatible integer to pointer conversion initializing 'struct nvme_ns *' with an expression of type 'int' [-Wint-conversion]
struct nvme_ns *ns = nvme_find_path(head);
^ ~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +/nvme_find_path +1946 drivers/nvme/host/core.c
1940
1941 static int nvme_send_ns_head_pr_command(struct block_device *bdev,
1942 struct nvme_command *c, u8 data[16])
1943 {
1944 struct nvme_ns_head *head = bdev->bd_disk->private_data;
1945 int srcu_idx = srcu_read_lock(&head->srcu);
> 1946 struct nvme_ns *ns = nvme_find_path(head);
1947 int ret = -EWOULDBLOCK;
1948
1949 if (ns) {
1950 c->common.nsid = cpu_to_le32(ns->head->ns_id);
1951 ret = nvme_submit_sync_cmd(ns->queue, c, data, 16);
1952 }
1953 srcu_read_unlock(&head->srcu, srcu_idx);
1954 return ret;
1955 }
1956
1957 static int nvme_send_ns_pr_command(struct nvme_ns *ns, struct nvme_command *c,
1958 u8 data[16])
1959 {
1960 c->common.nsid = cpu_to_le32(ns->head->ns_id);
1961 return nvme_submit_sync_cmd(ns->queue, c, data, 16);
1962 }
1963
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[hch-misc:nvme-ioctl 14/15] drivers/nvme/host/zns.c:247:5: warning: incompatible integer to pointer conversion assigning to 'struct nvme_ns *' from 'int'
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git nvme-ioctl
head: 35c6dd73314831078d08613ffface7a97333169c
commit: 24d2cd71eb775d0009fa934171170f86bbe1c56d [14/15] nvme: split nvme_report_zones
config: arm64-randconfig-r002-20210519 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8e93d10633d751a3e9169bf9fa68326925ffa097)
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 remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc nvme-ioctl
git checkout 24d2cd71eb775d0009fa934171170f86bbe1c56d
# 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/nvme/host/zns.c:247:7: error: implicit declaration of function 'nvme_find_path' [-Werror,-Wimplicit-function-declaration]
ns = nvme_find_path(head);
^
>> drivers/nvme/host/zns.c:247:5: warning: incompatible integer to pointer conversion assigning to 'struct nvme_ns *' from 'int' [-Wint-conversion]
ns = nvme_find_path(head);
^ ~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +247 drivers/nvme/host/zns.c
238
239 int nvme_ns_head_report_zones(struct gendisk *disk, sector_t sector,
240 unsigned int nr_zones, report_zones_cb cb, void *data)
241 {
242 struct nvme_ns_head *head = disk->private_data;
243 struct nvme_ns *ns;
244 int srcu_idx, ret = -EWOULDBLOCK;
245
246 srcu_idx = srcu_read_lock(&head->srcu);
> 247 ns = nvme_find_path(head);
248 if (ns)
249 ret = nvme_ns_report_zones(ns, sector, nr_zones, cb, data);
250 srcu_read_unlock(&head->srcu, srcu_idx);
251 return ret;
252 }
253
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-next:master 1446/3829] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3728:7: error: implicit declaration of function 'register_outbox_irq_handlers'; did you mean 'register_hpd_handlers'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9f24705effef8c3b9eca00d70594ef7e0364a6da
commit: 81927e2808be5adace93c2012d45d6938d3a7aa0 [1446/3829] drm/amd/display: Support for DMUB AUX
config: arc-allyesconfig (attached as .config)
compiler: arceb-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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 81927e2808be5adace93c2012d45d6938d3a7aa0
# 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>
Note: the linux-next/master HEAD 9f24705effef8c3b9eca00d70594ef7e0364a6da builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_initialize_drm_device':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3728:7: error: implicit declaration of function 'register_outbox_irq_handlers'; did you mean 'register_hpd_handlers'? [-Werror=implicit-function-declaration]
3728 | if (register_outbox_irq_handlers(dm->adev)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| register_hpd_handlers
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'validate_overlay':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9983:26: warning: variable 'old_plane_state' set but not used [-Wunused-but-set-variable]
9983 | struct drm_plane_state *old_plane_state, *new_plane_state;
| ^~~~~~~~~~~~~~~
At top level:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:633:13: warning: 'dm_dmub_outbox1_low_irq' defined but not used [-Wunused-function]
633 | static void dm_dmub_outbox1_low_irq(void *interrupt_params)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/perf_event.h:25,
from include/linux/trace_events.h:10,
from include/trace/trace_events.h:21,
from include/trace/define_trace.h:102,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_trace.h:645,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:39:
arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +3728 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
3634
3635
3636 /*
3637 * In this architecture, the association
3638 * connector -> encoder -> crtc
3639 * id not really requried. The crtc and connector will hold the
3640 * display_index as an abstraction to use with DAL component
3641 *
3642 * Returns 0 on success
3643 */
3644 static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
3645 {
3646 struct amdgpu_display_manager *dm = &adev->dm;
3647 int32_t i;
3648 struct amdgpu_dm_connector *aconnector = NULL;
3649 struct amdgpu_encoder *aencoder = NULL;
3650 struct amdgpu_mode_info *mode_info = &adev->mode_info;
3651 uint32_t link_cnt;
3652 int32_t primary_planes;
3653 enum dc_connection_type new_connection_type = dc_connection_none;
3654 const struct dc_plane_cap *plane;
3655
3656 dm->display_indexes_num = dm->dc->caps.max_streams;
3657 /* Update the actual used number of crtc */
3658 adev->mode_info.num_crtc = adev->dm.display_indexes_num;
3659
3660 link_cnt = dm->dc->caps.max_links;
3661 if (amdgpu_dm_mode_config_init(dm->adev)) {
3662 DRM_ERROR("DM: Failed to initialize mode config\n");
3663 return -EINVAL;
3664 }
3665
3666 /* There is one primary plane per CRTC */
3667 primary_planes = dm->dc->caps.max_streams;
3668 ASSERT(primary_planes <= AMDGPU_MAX_PLANES);
3669
3670 /*
3671 * Initialize primary planes, implicit planes for legacy IOCTLS.
3672 * Order is reversed to match iteration order in atomic check.
3673 */
3674 for (i = (primary_planes - 1); i >= 0; i--) {
3675 plane = &dm->dc->caps.planes[i];
3676
3677 if (initialize_plane(dm, mode_info, i,
3678 DRM_PLANE_TYPE_PRIMARY, plane)) {
3679 DRM_ERROR("KMS: Failed to initialize primary plane\n");
3680 goto fail;
3681 }
3682 }
3683
3684 /*
3685 * Initialize overlay planes, index starting after primary planes.
3686 * These planes have a higher DRM index than the primary planes since
3687 * they should be considered as having a higher z-order.
3688 * Order is reversed to match iteration order in atomic check.
3689 *
3690 * Only support DCN for now, and only expose one so we don't encourage
3691 * userspace to use up all the pipes.
3692 */
3693 for (i = 0; i < dm->dc->caps.max_planes; ++i) {
3694 struct dc_plane_cap *plane = &dm->dc->caps.planes[i];
3695
3696 if (plane->type != DC_PLANE_TYPE_DCN_UNIVERSAL)
3697 continue;
3698
3699 if (!plane->blends_with_above || !plane->blends_with_below)
3700 continue;
3701
3702 if (!plane->pixel_format_support.argb8888)
3703 continue;
3704
3705 if (initialize_plane(dm, NULL, primary_planes + i,
3706 DRM_PLANE_TYPE_OVERLAY, plane)) {
3707 DRM_ERROR("KMS: Failed to initialize overlay plane\n");
3708 goto fail;
3709 }
3710
3711 /* Only create one overlay plane. */
3712 break;
3713 }
3714
3715 for (i = 0; i < dm->dc->caps.max_streams; i++)
3716 if (amdgpu_dm_crtc_init(dm, mode_info->planes[i], i)) {
3717 DRM_ERROR("KMS: Failed to initialize crtc\n");
3718 goto fail;
3719 }
3720
3721 /* Use Outbox interrupt */
3722 switch (adev->asic_type) {
3723 #if defined(CONFIG_DRM_AMD_DC_DCN3_0)
3724 case CHIP_SIENNA_CICHLID:
3725 case CHIP_NAVY_FLOUNDER:
3726 #endif
3727 case CHIP_RENOIR:
> 3728 if (register_outbox_irq_handlers(dm->adev)) {
3729 DRM_ERROR("DM: Failed to initialize IRQ\n");
3730 goto fail;
3731 }
3732 break;
3733 default:
3734 DRM_DEBUG_KMS("Unsupported ASIC type for outbox: 0x%X\n", adev->asic_type);
3735 }
3736
3737 /* loops over all connectors on the board */
3738 for (i = 0; i < link_cnt; i++) {
3739 struct dc_link *link = NULL;
3740
3741 if (i > AMDGPU_DM_MAX_DISPLAY_INDEX) {
3742 DRM_ERROR(
3743 "KMS: Cannot support more than %d display indexes\n",
3744 AMDGPU_DM_MAX_DISPLAY_INDEX);
3745 continue;
3746 }
3747
3748 aconnector = kzalloc(sizeof(*aconnector), GFP_KERNEL);
3749 if (!aconnector)
3750 goto fail;
3751
3752 aencoder = kzalloc(sizeof(*aencoder), GFP_KERNEL);
3753 if (!aencoder)
3754 goto fail;
3755
3756 if (amdgpu_dm_encoder_init(dm->ddev, aencoder, i)) {
3757 DRM_ERROR("KMS: Failed to initialize encoder\n");
3758 goto fail;
3759 }
3760
3761 if (amdgpu_dm_connector_init(dm, aconnector, i, aencoder)) {
3762 DRM_ERROR("KMS: Failed to initialize connector\n");
3763 goto fail;
3764 }
3765
3766 link = dc_get_link_at_index(dm->dc, i);
3767
3768 if (!dc_link_detect_sink(link, &new_connection_type))
3769 DRM_ERROR("KMS: Failed to detect connector\n");
3770
3771 if (aconnector->base.force && new_connection_type == dc_connection_none) {
3772 emulated_link_detect(link);
3773 amdgpu_dm_update_connector_after_detect(aconnector);
3774
3775 } else if (dc_link_detect(link, DETECT_REASON_BOOT)) {
3776 amdgpu_dm_update_connector_after_detect(aconnector);
3777 register_backlight_device(dm, link);
3778 if (amdgpu_dc_feature_mask & DC_PSR_MASK)
3779 amdgpu_dm_set_psr_caps(link);
3780 }
3781
3782
3783 }
3784
3785 /* Software is initialized. Now we can register interrupt handlers. */
3786 switch (adev->asic_type) {
3787 #if defined(CONFIG_DRM_AMD_DC_SI)
3788 case CHIP_TAHITI:
3789 case CHIP_PITCAIRN:
3790 case CHIP_VERDE:
3791 case CHIP_OLAND:
3792 if (dce60_register_irq_handlers(dm->adev)) {
3793 DRM_ERROR("DM: Failed to initialize IRQ\n");
3794 goto fail;
3795 }
3796 break;
3797 #endif
3798 case CHIP_BONAIRE:
3799 case CHIP_HAWAII:
3800 case CHIP_KAVERI:
3801 case CHIP_KABINI:
3802 case CHIP_MULLINS:
3803 case CHIP_TONGA:
3804 case CHIP_FIJI:
3805 case CHIP_CARRIZO:
3806 case CHIP_STONEY:
3807 case CHIP_POLARIS11:
3808 case CHIP_POLARIS10:
3809 case CHIP_POLARIS12:
3810 case CHIP_VEGAM:
3811 case CHIP_VEGA10:
3812 case CHIP_VEGA12:
3813 case CHIP_VEGA20:
3814 if (dce110_register_irq_handlers(dm->adev)) {
3815 DRM_ERROR("DM: Failed to initialize IRQ\n");
3816 goto fail;
3817 }
3818 break;
3819 #if defined(CONFIG_DRM_AMD_DC_DCN)
3820 case CHIP_RAVEN:
3821 case CHIP_NAVI12:
3822 case CHIP_NAVI10:
3823 case CHIP_NAVI14:
3824 case CHIP_RENOIR:
3825 case CHIP_SIENNA_CICHLID:
3826 case CHIP_NAVY_FLOUNDER:
3827 case CHIP_DIMGREY_CAVEFISH:
3828 case CHIP_VANGOGH:
3829 if (dcn10_register_irq_handlers(dm->adev)) {
3830 DRM_ERROR("DM: Failed to initialize IRQ\n");
3831 goto fail;
3832 }
3833 break;
3834 #endif
3835 default:
3836 DRM_ERROR("Unsupported ASIC type: 0x%X\n", adev->asic_type);
3837 goto fail;
3838 }
3839
3840 return 0;
3841 fail:
3842 kfree(aencoder);
3843 kfree(aconnector);
3844
3845 return -EINVAL;
3846 }
3847
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
arch/parisc/kernel/sys_parisc.c:415:17: warning: no previous prototype for 'parisc_compat_signalfd4'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ac91e6c6033ebc12c5c1e4aa171b81a662bd70f
commit: 44a4c9e443674e6cd3368d3e642dfe9c429d5525 parisc: Add wrapper syscalls to fix O_NONBLOCK flag usage
date: 7 months ago
config: parisc-randconfig-r001-20210519 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/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 44a4c9e443674e6cd3368d3e642dfe9c429d5525
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/parisc/kernel/sys_parisc.c:228:15: warning: no previous prototype for 'arch_mmap_rnd' [-Wmissing-prototypes]
228 | unsigned long arch_mmap_rnd(void)
| ^~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:256:26: warning: no previous prototype for 'sys_mmap2' [-Wmissing-prototypes]
256 | asmlinkage unsigned long sys_mmap2(unsigned long addr, unsigned long len,
| ^~~~~~~~~
arch/parisc/kernel/sys_parisc.c:266:26: warning: no previous prototype for 'sys_mmap' [-Wmissing-prototypes]
266 | asmlinkage unsigned long sys_mmap(unsigned long addr, unsigned long len,
| ^~~~~~~~
arch/parisc/kernel/sys_parisc.c:281:17: warning: no previous prototype for 'parisc_truncate64' [-Wmissing-prototypes]
281 | asmlinkage long parisc_truncate64(const char __user * path,
| ^~~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:287:17: warning: no previous prototype for 'parisc_ftruncate64' [-Wmissing-prototypes]
287 | asmlinkage long parisc_ftruncate64(unsigned int fd,
| ^~~~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:295:17: warning: no previous prototype for 'sys_truncate64' [-Wmissing-prototypes]
295 | asmlinkage long sys_truncate64(const char __user * path, unsigned long length)
| ^~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:299:17: warning: no previous prototype for 'sys_ftruncate64' [-Wmissing-prototypes]
299 | asmlinkage long sys_ftruncate64(unsigned int fd, unsigned long length)
| ^~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:303:17: warning: no previous prototype for 'sys_fcntl64' [-Wmissing-prototypes]
303 | asmlinkage long sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg)
| ^~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:322:20: warning: no previous prototype for 'parisc_pread64' [-Wmissing-prototypes]
322 | asmlinkage ssize_t parisc_pread64(unsigned int fd, char __user *buf, size_t count,
| ^~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:328:20: warning: no previous prototype for 'parisc_pwrite64' [-Wmissing-prototypes]
328 | asmlinkage ssize_t parisc_pwrite64(unsigned int fd, const char __user *buf,
| ^~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:334:20: warning: no previous prototype for 'parisc_readahead' [-Wmissing-prototypes]
334 | asmlinkage ssize_t parisc_readahead(int fd, unsigned int high, unsigned int low,
| ^~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:340:17: warning: no previous prototype for 'parisc_fadvise64_64' [-Wmissing-prototypes]
340 | asmlinkage long parisc_fadvise64_64(int fd,
| ^~~~~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:348:17: warning: no previous prototype for 'parisc_sync_file_range' [-Wmissing-prototypes]
348 | asmlinkage long parisc_sync_file_range(int fd,
| ^~~~~~~~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:356:17: warning: no previous prototype for 'parisc_fallocate' [-Wmissing-prototypes]
356 | asmlinkage long parisc_fallocate(int fd, int mode, u32 offhi, u32 offlo,
| ^~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:363:6: warning: no previous prototype for 'parisc_personality' [-Wmissing-prototypes]
363 | long parisc_personality(unsigned long personality)
| ^~~~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:401:17: warning: no previous prototype for 'parisc_timerfd_create' [-Wmissing-prototypes]
401 | asmlinkage long parisc_timerfd_create(int clockid, int flags)
| ^~~~~~~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:407:17: warning: no previous prototype for 'parisc_signalfd4' [-Wmissing-prototypes]
407 | asmlinkage long parisc_signalfd4(int ufd, sigset_t __user *user_mask,
| ^~~~~~~~~~~~~~~~
>> arch/parisc/kernel/sys_parisc.c:415:17: warning: no previous prototype for 'parisc_compat_signalfd4' [-Wmissing-prototypes]
415 | asmlinkage long parisc_compat_signalfd4(int ufd,
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:424:17: warning: no previous prototype for 'parisc_eventfd2' [-Wmissing-prototypes]
424 | asmlinkage long parisc_eventfd2(unsigned int count, int flags)
| ^~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:430:17: warning: no previous prototype for 'parisc_userfaultfd' [-Wmissing-prototypes]
430 | asmlinkage long parisc_userfaultfd(int flags)
| ^~~~~~~~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:436:17: warning: no previous prototype for 'parisc_pipe2' [-Wmissing-prototypes]
436 | asmlinkage long parisc_pipe2(int __user *fildes, int flags)
| ^~~~~~~~~~~~
arch/parisc/kernel/sys_parisc.c:442:17: warning: no previous prototype for 'parisc_inotify_init1' [-Wmissing-prototypes]
442 | asmlinkage long parisc_inotify_init1(int flags)
| ^~~~~~~~~~~~~~~~~~~~
vim +/parisc_compat_signalfd4 +415 arch/parisc/kernel/sys_parisc.c
362
> 363 long parisc_personality(unsigned long personality)
364 {
365 long err;
366
367 if (personality(current->personality) == PER_LINUX32
368 && personality(personality) == PER_LINUX)
369 personality = (personality & ~PER_MASK) | PER_LINUX32;
370
371 err = sys_personality(personality);
372 if (personality(err) == PER_LINUX32)
373 err = (err & ~PER_MASK) | PER_LINUX;
374
375 return err;
376 }
377
378 /*
379 * Up to kernel v5.9 we defined O_NONBLOCK as 000200004,
380 * since then O_NONBLOCK is defined as 000200000.
381 *
382 * The following wrapper functions mask out the old
383 * O_NDELAY bit from calls which use O_NONBLOCK.
384 *
385 * XXX: Remove those in year 2022 (or later)?
386 */
387
388 #define O_NONBLOCK_OLD 000200004
389 #define O_NONBLOCK_MASK_OUT (O_NONBLOCK_OLD & ~O_NONBLOCK)
390
391 static int FIX_O_NONBLOCK(int flags)
392 {
393 if (flags & O_NONBLOCK_MASK_OUT) {
394 struct task_struct *tsk = current;
395 pr_warn_once("%s(%d) uses a deprecated O_NONBLOCK value.\n",
396 tsk->comm, tsk->pid);
397 }
398 return flags & ~O_NONBLOCK_MASK_OUT;
399 }
400
401 asmlinkage long parisc_timerfd_create(int clockid, int flags)
402 {
403 flags = FIX_O_NONBLOCK(flags);
404 return sys_timerfd_create(clockid, flags);
405 }
406
407 asmlinkage long parisc_signalfd4(int ufd, sigset_t __user *user_mask,
408 size_t sizemask, int flags)
409 {
410 flags = FIX_O_NONBLOCK(flags);
411 return sys_signalfd4(ufd, user_mask, sizemask, flags);
412 }
413
414 #ifdef CONFIG_COMPAT
> 415 asmlinkage long parisc_compat_signalfd4(int ufd,
416 compat_sigset_t __user *user_mask,
417 compat_size_t sizemask, int flags)
418 {
419 flags = FIX_O_NONBLOCK(flags);
420 return compat_sys_signalfd4(ufd, user_mask, sizemask, flags);
421 }
422 #endif
423
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[morimoto-linux:sound/2021-05-19-v1 106/107] sound/soc/sh/rcar/debugfs.c:86:41: warning: variable 'dir' is uninitialized when used here
by kernel test robot
tree: https://github.com/morimoto/linux sound/2021-05-19-v1
head: d9ea427068846f93ab97650cad49c16c901ee98e
commit: 414cf7fa2902ffed9742c0e71908061b5199fc1c [106/107] ASoC: rsnd: add debugfs support
config: powerpc-randconfig-r003-20210519 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8e93d10633d751a3e9169bf9fa68326925ffa097)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/morimoto/linux/commit/414cf7fa2902ffed9742c0e71908061b...
git remote add morimoto-linux https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux sound/2021-05-19-v1
git checkout 414cf7fa2902ffed9742c0e71908061b5199fc1c
# 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 >>):
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:166:1: note: expanded from here
__do_insb
^
arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from sound/soc/sh/rcar/debugfs.c:15:
In file included from sound/soc/sh/rcar/rsnd.h:13:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:168:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from sound/soc/sh/rcar/debugfs.c:15:
In file included from sound/soc/sh/rcar/rsnd.h:13:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:170:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from sound/soc/sh/rcar/debugfs.c:15:
In file included from sound/soc/sh/rcar/rsnd.h:13:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:172:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from sound/soc/sh/rcar/debugfs.c:15:
In file included from sound/soc/sh/rcar/rsnd.h:13:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:174:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from sound/soc/sh/rcar/debugfs.c:15:
In file included from sound/soc/sh/rcar/rsnd.h:13:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:176:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> sound/soc/sh/rcar/debugfs.c:86:41: warning: variable 'dir' is uninitialized when used here [-Wuninitialized]
debugfs_create_file("playback", 0444, dir, &rdai->playback, &rsnd_debugfs_fops); \
^~~
sound/soc/sh/rcar/debugfs.c:68:27: note: initialize the variable 'dir' to silence this warning
struct dentry *root, *dir;
^
= NULL
13 warnings generated.
vim +/dir +86 sound/soc/sh/rcar/debugfs.c
63
64 int rsnd_debugfs_probe(struct snd_soc_component *component)
65 {
66 struct rsnd_priv *priv = dev_get_drvdata(component->dev);
67 struct rsnd_dai *rdai;
68 struct dentry *root, *dir;
69 char name[64];
70 int i;
71
72 /* Gen1 is not supported */
73 if (rsnd_is_gen1(priv))
74 return 0;
75
76 for_each_rsnd_dai(rdai, priv, i) {
77 /*
78 * created debugfs will be automatically
79 * removed, nothing to do for _remove.
80 * see
81 * soc_cleanup_component_debugfs()
82 */
83 snprintf(name, sizeof(name), "rdai%d", i);
84 root = debugfs_create_dir(name, component->debugfs_root);
85
> 86 debugfs_create_file("playback", 0444, dir, &rdai->playback, &rsnd_debugfs_fops); \
87 debugfs_create_file("capture", 0444, dir, &rdai->capture , &rsnd_debugfs_fops); \
88 }
89
90 return 0;
91 }
92
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months