[radeon-alex:amd-staging-drm-next 576/598] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:5: warning: no previous prototype for function 'vangogh_set_default_dpm_tables'
by kernel test robot
Hi Xiaojian,
FYI, the error/warning still remains.
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head: 11e500d2892a2b18e438c12e1e992b241aaf1c8b
commit: 53501c771afda638485683d189a2b2e2ad776d38 [576/598] drm/amd/pm: add the fine grain tuning function for vangogh
config: x86_64-randconfig-a004-20201115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ace9653c11c6308401dcda2e8b26bf97e6e66e30)
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 radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout 53501c771afda638485683d189a2b2e2ad776d38
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:5: warning: no previous prototype for function 'vangogh_set_default_dpm_tables' [-Wmissing-prototypes]
int vangogh_set_default_dpm_tables(struct smu_context *smu)
^
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int vangogh_set_default_dpm_tables(struct smu_context *smu)
^
static
1 warning generated.
vim +/vangogh_set_default_dpm_tables +764 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c
763
> 764 int vangogh_set_default_dpm_tables(struct smu_context *smu)
765 {
766 struct smu_table_context *smu_table = &smu->smu_table;
767
768 return smu_cmn_update_table(smu, SMU_TABLE_DPMCLOCKS, 0, smu_table->clocks_table, false);
769 }
770
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[radeon-alex:amd-staging-drm-next 576/598] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:5: warning: no previous prototype for function 'vangogh_set_default_dpm_tables'
by kernel test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head: 11e500d2892a2b18e438c12e1e992b241aaf1c8b
commit: 53501c771afda638485683d189a2b2e2ad776d38 [576/598] drm/amd/pm: add the fine grain tuning function for vangogh
config: arm64-randconfig-r034-20201115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ace9653c11c6308401dcda2e8b26bf97e6e66e30)
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 radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout 53501c771afda638485683d189a2b2e2ad776d38
# 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/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:5: warning: no previous prototype for function 'vangogh_set_default_dpm_tables' [-Wmissing-prototypes]
int vangogh_set_default_dpm_tables(struct smu_context *smu)
^
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int vangogh_set_default_dpm_tables(struct smu_context *smu)
^
static
1 warning generated.
vim +/vangogh_set_default_dpm_tables +764 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c
763
> 764 int vangogh_set_default_dpm_tables(struct smu_context *smu)
765 {
766 struct smu_table_context *smu_table = &smu->smu_table;
767
768 return smu_cmn_update_table(smu, SMU_TABLE_DPMCLOCKS, 0, smu_table->clocks_table, false);
769 }
770
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH] Fix warning for static const char * array in audio_manager_module.c
by kernel test robot
Hi Emmanouil,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v5.10-rc4 next-20201116]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Emmanouil-Perselis/Fix-warning-f...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 0d79a48440f559ac939d1be2089757c5e4ab16c7
config: x86_64-randconfig-a006-20201115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ace9653c11c6308401dcda2e8b26bf97e6e66e30)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/69022592162daaee87b29588cd562da44...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Emmanouil-Perselis/Fix-warning-for-static-const-char-array-in-audio_manager_module-c/20201117-044852
git checkout 69022592162daaee87b29588cd562da4439f0517
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/staging/greybus/audio_manager_module.c:162:3: error: initializer element is not a compile-time constant
name_string,
^~~~~~~~~~~
>> drivers/staging/greybus/audio_manager_module.c:180:46: error: passing 'const char *const [7]' to parameter of type 'char **' discards qualifiers in nested pointer types [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
kobject_uevent_env(&module->kobj, KOBJ_ADD, envp);
^~~~
include/linux/kobject.h:241:10: note: passing argument to parameter 'envp' here
char *envp[]);
^
2 errors generated.
vim +162 drivers/staging/greybus/audio_manager_module.c
8db00736d365b7 Svetlin Ankov 2016-01-13 151
8db00736d365b7 Svetlin Ankov 2016-01-13 152 static void send_add_uevent(struct gb_audio_manager_module *module)
8db00736d365b7 Svetlin Ankov 2016-01-13 153 {
8db00736d365b7 Svetlin Ankov 2016-01-13 154 char name_string[128];
8db00736d365b7 Svetlin Ankov 2016-01-13 155 char vid_string[64];
8db00736d365b7 Svetlin Ankov 2016-01-13 156 char pid_string[64];
d0af1bd5f6f449 Pankaj Bharadiya 2016-10-16 157 char intf_id_string[64];
a9234bfd6cec44 Vaibhav Agarwal 2016-03-30 158 char ip_devices_string[64];
a9234bfd6cec44 Vaibhav Agarwal 2016-03-30 159 char op_devices_string[64];
8db00736d365b7 Svetlin Ankov 2016-01-13 160
69022592162daa Emmanouil Perselis 2020-11-16 161 static const char * const envp[] = {
8db00736d365b7 Svetlin Ankov 2016-01-13 @162 name_string,
8db00736d365b7 Svetlin Ankov 2016-01-13 163 vid_string,
8db00736d365b7 Svetlin Ankov 2016-01-13 164 pid_string,
d0af1bd5f6f449 Pankaj Bharadiya 2016-10-16 165 intf_id_string,
a9234bfd6cec44 Vaibhav Agarwal 2016-03-30 166 ip_devices_string,
a9234bfd6cec44 Vaibhav Agarwal 2016-03-30 167 op_devices_string,
8db00736d365b7 Svetlin Ankov 2016-01-13 168 NULL
8db00736d365b7 Svetlin Ankov 2016-01-13 169 };
8db00736d365b7 Svetlin Ankov 2016-01-13 170
8db00736d365b7 Svetlin Ankov 2016-01-13 171 snprintf(name_string, 128, "NAME=%s", module->desc.name);
8db00736d365b7 Svetlin Ankov 2016-01-13 172 snprintf(vid_string, 64, "VID=%d", module->desc.vid);
8db00736d365b7 Svetlin Ankov 2016-01-13 173 snprintf(pid_string, 64, "PID=%d", module->desc.pid);
d0af1bd5f6f449 Pankaj Bharadiya 2016-10-16 174 snprintf(intf_id_string, 64, "INTF_ID=%d", module->desc.intf_id);
a9234bfd6cec44 Vaibhav Agarwal 2016-03-30 175 snprintf(ip_devices_string, 64, "I/P DEVICES=0x%X",
a9234bfd6cec44 Vaibhav Agarwal 2016-03-30 176 module->desc.ip_devices);
a9234bfd6cec44 Vaibhav Agarwal 2016-03-30 177 snprintf(op_devices_string, 64, "O/P DEVICES=0x%X",
a9234bfd6cec44 Vaibhav Agarwal 2016-03-30 178 module->desc.op_devices);
8db00736d365b7 Svetlin Ankov 2016-01-13 179
8db00736d365b7 Svetlin Ankov 2016-01-13 @180 kobject_uevent_env(&module->kobj, KOBJ_ADD, envp);
8db00736d365b7 Svetlin Ankov 2016-01-13 181 }
8db00736d365b7 Svetlin Ankov 2016-01-13 182
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[phy-linux-phy:next 23/32] phy-tegra194-p2u.c:undefined reference to `devm_platform_ioremap_resource_byname'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git next
head: 50c0133cd154090446bc19e466df57502f422644
commit: 9ab4212b0a363a1edc5a52f70843dc2a5cda200d [23/32] phy: tegra: convert to devm_platform_ioremap_resource(_byname)
config: s390-randconfig-r006-20201116 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git/commit/...
git remote add phy-linux-phy https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git
git fetch --no-tags phy-linux-phy next
git checkout 9ab4212b0a363a1edc5a52f70843dc2a5cda200d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390-linux-ld: drivers/irqchip/irq-renesas-irqc.o: in function `irqc_probe':
irq-renesas-irqc.c:(.text+0x296): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/irqchip/irq-imx-irqsteer.o: in function `imx_irqsteer_probe':
irq-imx-irqsteer.c:(.text+0x4e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/irqchip/irq-imx-intmux.o: in function `imx_intmux_probe':
irq-imx-intmux.c:(.text+0x2c0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/broadcom/phy-bcm63xx-usbh.o: in function `bcm63xx_usbh_phy_probe':
phy-bcm63xx-usbh.c:(.init.text+0x14a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/hisilicon/phy-hisi-inno-usb2.o: in function `hisi_inno_phy_probe':
phy-hisi-inno-usb2.c:(.text+0x4e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/marvell/phy-mmp3-usb.o:phy-mmp3-usb.c:(.text+0x4e): more undefined references to `devm_platform_ioremap_resource' follow
s390-linux-ld: drivers/phy/tegra/phy-tegra194-p2u.o: in function `tegra_p2u_probe':
>> phy-tegra194-p2u.c:(.text+0xc8): undefined reference to `devm_platform_ioremap_resource_byname'
s390-linux-ld: drivers/phy/xilinx/phy-zynqmp.o: in function `xpsgtr_probe':
phy-zynqmp.c:(.text+0x488): undefined reference to `devm_platform_ioremap_resource_byname'
s390-linux-ld: phy-zynqmp.c:(.text+0x4d0): undefined reference to `devm_platform_ioremap_resource_byname'
s390-linux-ld: drivers/char/ipmi/bt-bmc.o: in function `bt_bmc_probe':
bt-bmc.c:(.text.unlikely+0x8e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/soc/mediatek/mtk-scpsys.o: in function `scpsys_probe':
mtk-scpsys.c:(.text+0x514): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/mediatek/mtk-mmsys.o: in function `mtk_mmsys_probe':
mtk-mmsys.c:(.text+0x7c0): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-ath79.o: in function `ath79_reset_probe':
reset-ath79.c:(.text+0xde): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-lpc18xx.o: in function `lpc18xx_rgu_probe':
reset-lpc18xx.c:(.text+0x308): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson.o: in function `meson_reset_probe':
reset-meson.c:(.text+0x60): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-simple.o:reset-simple.c:(.text+0x1ac): more undefined references to `devm_ioremap_resource' follow
s390-linux-ld: drivers/char/hw_random/exynos-trng.o: in function `exynos_trng_probe':
exynos-trng.c:(.text+0x134): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/meson-rng.o: in function `meson_rng_probe':
meson-rng.c:(.text+0x9c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/mtk-rng.o: in function `mtk_rng_probe':
mtk-rng.c:(.text+0x96): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0x1c6): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `arc_rimi_exit':
arc-rimi.c:(.exit.text+0x3a): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `arcrimi_found':
arc-rimi.c:(.init.text+0x1e4): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.init.text+0x2d0): undefined reference to `iounmap'
s390-linux-ld: arc-rimi.c:(.init.text+0x45a): undefined reference to `iounmap'
s390-linux-ld: arc-rimi.c:(.init.text+0x5c4): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.init.text+0x6ae): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `check_mirror':
arc-rimi.c:(.text.unlikely+0x5a): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.text.unlikely+0x88): undefined reference to `iounmap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map':
cistpl.c:(.text+0xe8e): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0xf50): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0xf8c): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0xfa4): undefined reference to `ioremap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem':
cistpl.c:(.text+0x1aa6): undefined reference to `iounmap'
s390-linux-ld: drivers/input/keyboard/sh_keysc.o: in function `sh_keysc_remove':
sh_keysc.c:(.text+0x114): undefined reference to `iounmap'
s390-linux-ld: drivers/input/keyboard/sh_keysc.o: in function `sh_keysc_probe':
sh_keysc.c:(.text+0x744): undefined reference to `ioremap'
s390-linux-ld: sh_keysc.c:(.text+0x7ca): undefined reference to `iounmap'
s390-linux-ld: drivers/media/rc/meson-ir.o: in function `meson_ir_probe':
meson-ir.c:(.text+0x258): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/img-ir/img-ir-core.o: in function `img_ir_probe':
img-ir-core.c:(.text+0x21a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/power/reset/ocelot-reset.o: in function `ocelot_reset_probe':
ocelot-reset.c:(.text+0x60): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/thermal/tango_thermal.o: in function `tango_thermal_probe':
tango_thermal.c:(.text+0x60): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/thermal/zx2967_thermal.o: in function `zx2967_thermal_probe':
zx2967_thermal.c:(.text+0xd0): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/atmel-sha.o:atmel-sha.c:(.text+0x3176): more undefined references to `devm_ioremap_resource' follow
s390-linux-ld: drivers/crypto/mediatek/mtk-platform.o: in function `mtk_crypto_probe':
mtk-platform.c:(.text+0x7ee): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/crypto/qcom-rng.o: in function `qcom_rng_probe':
qcom-rng.c:(.text+0xe8): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x22e): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x380): undefined reference to `iounmap'
s390-linux-ld: drivers/remoteproc/ingenic_rproc.o: in function `ingenic_rproc_probe':
ingenic_rproc.c:(.text+0x308): undefined reference to `devm_ioremap_resource'
s390-linux-ld: ingenic_rproc.c:(.text+0x380): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/memory/brcmstb_dpfe.o: in function `brcmstb_dpfe_probe':
brcmstb_dpfe.c:(.text+0x27c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: brcmstb_dpfe.c:(.text+0x2e6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: brcmstb_dpfe.c:(.text+0x33e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/memory/renesas-rpc-if.o:renesas-rpc-if.c:(.text+0x9de): more undefined references to `devm_ioremap_resource' follow
s390-linux-ld: drivers/iio/adc/stm32-dfsdm-core.o: in function `stm32_dfsdm_probe':
stm32-dfsdm-core.c:(.text+0x360): undefined reference to `devm_platform_get_and_ioremap_resource'
s390-linux-ld: drivers/iio/dac/stm32-dac-core.o: in function `stm32_dac_probe':
stm32-dac-core.c:(.text+0x116): undefined reference to `devm_ioremap_resource'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH v2 1/3] soc: qcom: Add tracepoints to mdt loader
by kernel test robot
Hi Rishabh,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/perf/core]
[also build test WARNING on linux/master linus/master v5.10-rc4 next-20201116]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Rishabh-Bhatnagar/Add-events-to-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 306e3e91edf1c6739a55312edd110d298ff498dd
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-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/0day-ci/linux/commit/437cc5c0ceb1f4b36564b99d7289af089...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Rishabh-Bhatnagar/Add-events-to-trace-remoteproc-lifecycle/20201117-054729
git checkout 437cc5c0ceb1f4b36564b99d7289af089576fdd0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/trace/define_trace.h:102,
from include/trace/events/mdt_loader.h:38,
from drivers/soc/qcom/mdt_loader.c:21:
include/trace/events/mdt_loader.h: In function 'trace_raw_output_qcom_mdt_load_segment':
>> include/trace/events/mdt_loader.h:33:12: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
33 | TP_printk("firmware:%s region start=%pa size=%zx",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:367:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
367 | trace_seq_printf(s, print); \
| ^~~~~
include/trace/trace_events.h:80:9: note: in expansion of macro 'PARAMS'
80 | PARAMS(print)); \
| ^~~~~~
include/trace/events/mdt_loader.h:15:1: note: in expansion of macro 'TRACE_EVENT'
15 | TRACE_EVENT(qcom_mdt_load_segment,
| ^~~~~~~~~~~
include/trace/events/mdt_loader.h:33:2: note: in expansion of macro 'TP_printk'
33 | TP_printk("firmware:%s region start=%pa size=%zx",
| ^~~~~~~~~
In file included from include/trace/trace_events.h:401,
from include/trace/define_trace.h:102,
from include/trace/events/mdt_loader.h:38,
from drivers/soc/qcom/mdt_loader.c:21:
include/trace/events/mdt_loader.h:33:39: note: format string is defined here
33 | TP_printk("firmware:%s region start=%pa size=%zx",
| ~^
| |
| void *
| %d
vim +33 include/trace/events/mdt_loader.h
16
17 TP_PROTO(phys_addr_t region_start, size_t region_size, const char *fw),
18
19 TP_ARGS(region_start, region_size, fw),
20
21 TP_STRUCT__entry(
22 __field(phys_addr_t, region_start)
23 __field(size_t, region_size)
24 __string(fw, fw)
25 ),
26
27 TP_fast_assign(
28 __entry->region_start = region_start;
29 __entry->region_size = region_size;
30 __assign_str(fw, fw);
31 ),
32
> 33 TP_printk("firmware:%s region start=%pa size=%zx",
34 __get_str(fw), __entry->region_start, __entry->region_size)
35 );
36
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[android-common:android-4.19-stable 15791/19505] sound/soc/soc-dapm.c:3833:1: warning: the frame size of 2072 bytes is larger than 2048 bytes
by kernel test robot
Hi Greg,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android-4.19-stable
head: 4a1753307d32ac3ef2c202f215a5cec80373fed1
commit: b8539473ea414eaa4ef28791fa308a6ab8c5d67c [15791/19505] ANDROID: GKI: workqueue.h: add Android ABI padding to some structures
config: x86_64-randconfig-a001-20201116 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-4.19-stable
git checkout b8539473ea414eaa4ef28791fa308a6ab8c5d67c
# 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 warnings (new ones prefixed by >>):
sound/soc/soc-dapm.c: In function 'pop_dbg':
sound/soc/soc-dapm.c:174:2: warning: function 'pop_dbg' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
174 | vsnprintf(buf, PAGE_SIZE, fmt, args);
| ^~~~~~~~~
sound/soc/soc-dapm.c: In function 'snd_soc_dai_link_event':
>> sound/soc/soc-dapm.c:3833:1: warning: the frame size of 2072 bytes is larger than 2048 bytes [-Wframe-larger-than=]
3833 | }
| ^
vim +3833 sound/soc/soc-dapm.c
4ba1327ab8ce179 Mark Brown 2008-05-13 3697
c74184ed30ecce2 Mark Brown 2012-04-04 3698 static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
c74184ed30ecce2 Mark Brown 2012-04-04 3699 struct snd_kcontrol *kcontrol, int event)
c74184ed30ecce2 Mark Brown 2012-04-04 3700 {
c74184ed30ecce2 Mark Brown 2012-04-04 3701 struct snd_soc_dapm_path *source_p, *sink_p;
c74184ed30ecce2 Mark Brown 2012-04-04 3702 struct snd_soc_dai *source, *sink;
249dc49576fc953 Charles Keepax 2018-08-15 3703 struct snd_soc_pcm_runtime *rtd = w->priv;
c66150824b8a809 Nikesh Oswal 2015-02-02 3704 const struct snd_soc_pcm_stream *config = w->params + w->params_select;
c74184ed30ecce2 Mark Brown 2012-04-04 3705 struct snd_pcm_substream substream;
9747cec21e2d55e Mark Brown 2012-04-26 3706 struct snd_pcm_hw_params *params = NULL;
8053f21675b073b Nicolin Chen 2016-07-26 3707 struct snd_pcm_runtime *runtime = NULL;
3ba66feb59810e2 Takashi Iwai 2018-07-25 3708 unsigned int fmt;
0376916b7b2cff6 Charles Keepax 2018-09-06 3709 int ret = 0;
c74184ed30ecce2 Mark Brown 2012-04-04 3710
bf4edea863c435c Takashi Iwai 2013-11-07 3711 if (WARN_ON(!config) ||
a3423b02cf745c1 Lars-Peter Clausen 2015-08-11 3712 WARN_ON(list_empty(&w->edges[SND_SOC_DAPM_DIR_OUT]) ||
a3423b02cf745c1 Lars-Peter Clausen 2015-08-11 3713 list_empty(&w->edges[SND_SOC_DAPM_DIR_IN])))
bf4edea863c435c Takashi Iwai 2013-11-07 3714 return -EINVAL;
c74184ed30ecce2 Mark Brown 2012-04-04 3715
c74184ed30ecce2 Mark Brown 2012-04-04 3716 /* We only support a single source and sink, pick the first */
a3423b02cf745c1 Lars-Peter Clausen 2015-08-11 3717 source_p = list_first_entry(&w->edges[SND_SOC_DAPM_DIR_OUT],
a3423b02cf745c1 Lars-Peter Clausen 2015-08-11 3718 struct snd_soc_dapm_path,
a3423b02cf745c1 Lars-Peter Clausen 2015-08-11 3719 list_node[SND_SOC_DAPM_DIR_OUT]);
a3423b02cf745c1 Lars-Peter Clausen 2015-08-11 3720 sink_p = list_first_entry(&w->edges[SND_SOC_DAPM_DIR_IN],
a3423b02cf745c1 Lars-Peter Clausen 2015-08-11 3721 struct snd_soc_dapm_path,
a3423b02cf745c1 Lars-Peter Clausen 2015-08-11 3722 list_node[SND_SOC_DAPM_DIR_IN]);
c74184ed30ecce2 Mark Brown 2012-04-04 3723
c74184ed30ecce2 Mark Brown 2012-04-04 3724 source = source_p->source->priv;
c74184ed30ecce2 Mark Brown 2012-04-04 3725 sink = sink_p->sink->priv;
c74184ed30ecce2 Mark Brown 2012-04-04 3726
c74184ed30ecce2 Mark Brown 2012-04-04 3727 /* Be a little careful as we don't want to overflow the mask array */
c74184ed30ecce2 Mark Brown 2012-04-04 3728 if (config->formats) {
c74184ed30ecce2 Mark Brown 2012-04-04 3729 fmt = ffs(config->formats) - 1;
c74184ed30ecce2 Mark Brown 2012-04-04 3730 } else {
30a6a1a4eed170b Liam Girdwood 2012-11-19 3731 dev_warn(w->dapm->dev, "ASoC: Invalid format %llx specified\n",
c74184ed30ecce2 Mark Brown 2012-04-04 3732 config->formats);
c74184ed30ecce2 Mark Brown 2012-04-04 3733 fmt = 0;
c74184ed30ecce2 Mark Brown 2012-04-04 3734 }
c74184ed30ecce2 Mark Brown 2012-04-04 3735
c74184ed30ecce2 Mark Brown 2012-04-04 3736 /* Currently very limited parameter selection */
9747cec21e2d55e Mark Brown 2012-04-26 3737 params = kzalloc(sizeof(*params), GFP_KERNEL);
9747cec21e2d55e Mark Brown 2012-04-26 3738 if (!params) {
9747cec21e2d55e Mark Brown 2012-04-26 3739 ret = -ENOMEM;
9747cec21e2d55e Mark Brown 2012-04-26 3740 goto out;
9747cec21e2d55e Mark Brown 2012-04-26 3741 }
9747cec21e2d55e Mark Brown 2012-04-26 3742 snd_mask_set(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT), fmt);
c74184ed30ecce2 Mark Brown 2012-04-04 3743
9747cec21e2d55e Mark Brown 2012-04-26 3744 hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->min =
c74184ed30ecce2 Mark Brown 2012-04-04 3745 config->rate_min;
9747cec21e2d55e Mark Brown 2012-04-26 3746 hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->max =
c74184ed30ecce2 Mark Brown 2012-04-04 3747 config->rate_max;
c74184ed30ecce2 Mark Brown 2012-04-04 3748
9747cec21e2d55e Mark Brown 2012-04-26 3749 hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS)->min
c74184ed30ecce2 Mark Brown 2012-04-04 3750 = config->channels_min;
9747cec21e2d55e Mark Brown 2012-04-26 3751 hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS)->max
c74184ed30ecce2 Mark Brown 2012-04-04 3752 = config->channels_max;
c74184ed30ecce2 Mark Brown 2012-04-04 3753
c74184ed30ecce2 Mark Brown 2012-04-04 3754 memset(&substream, 0, sizeof(substream));
c74184ed30ecce2 Mark Brown 2012-04-04 3755
8053f21675b073b Nicolin Chen 2016-07-26 3756 /* Allocate a dummy snd_pcm_runtime for startup() and other ops() */
8053f21675b073b Nicolin Chen 2016-07-26 3757 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL);
8053f21675b073b Nicolin Chen 2016-07-26 3758 if (!runtime) {
8053f21675b073b Nicolin Chen 2016-07-26 3759 ret = -ENOMEM;
8053f21675b073b Nicolin Chen 2016-07-26 3760 goto out;
8053f21675b073b Nicolin Chen 2016-07-26 3761 }
8053f21675b073b Nicolin Chen 2016-07-26 3762 substream.runtime = runtime;
249dc49576fc953 Charles Keepax 2018-08-15 3763 substream.private_data = rtd;
8053f21675b073b Nicolin Chen 2016-07-26 3764
c74184ed30ecce2 Mark Brown 2012-04-04 3765 switch (event) {
c74184ed30ecce2 Mark Brown 2012-04-04 3766 case SND_SOC_DAPM_PRE_PMU:
c74184ed30ecce2 Mark Brown 2012-04-04 3767 substream.stream = SNDRV_PCM_STREAM_CAPTURE;
9900a4226c785db Kuninori Morimoto 2017-09-25 3768 if (source->driver->ops->startup) {
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3769 ret = source->driver->ops->startup(&substream, source);
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3770 if (ret < 0) {
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3771 dev_err(source->dev,
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3772 "ASoC: startup() failed: %d\n", ret);
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3773 goto out;
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3774 }
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3775 source->active++;
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3776 }
93e6958a3674d2f Benoit Cousson 2014-07-08 3777 ret = soc_dai_hw_params(&substream, params, source);
93e6958a3674d2f Benoit Cousson 2014-07-08 3778 if (ret < 0)
9747cec21e2d55e Mark Brown 2012-04-26 3779 goto out;
c74184ed30ecce2 Mark Brown 2012-04-04 3780
c74184ed30ecce2 Mark Brown 2012-04-04 3781 substream.stream = SNDRV_PCM_STREAM_PLAYBACK;
9900a4226c785db Kuninori Morimoto 2017-09-25 3782 if (sink->driver->ops->startup) {
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3783 ret = sink->driver->ops->startup(&substream, sink);
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3784 if (ret < 0) {
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3785 dev_err(sink->dev,
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3786 "ASoC: startup() failed: %d\n", ret);
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3787 goto out;
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3788 }
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3789 sink->active++;
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3790 }
93e6958a3674d2f Benoit Cousson 2014-07-08 3791 ret = soc_dai_hw_params(&substream, params, sink);
93e6958a3674d2f Benoit Cousson 2014-07-08 3792 if (ret < 0)
9747cec21e2d55e Mark Brown 2012-04-26 3793 goto out;
c74184ed30ecce2 Mark Brown 2012-04-04 3794 break;
c74184ed30ecce2 Mark Brown 2012-04-04 3795
c74184ed30ecce2 Mark Brown 2012-04-04 3796 case SND_SOC_DAPM_POST_PMU:
da18396f949ecaa Mark Brown 2013-02-06 3797 ret = snd_soc_dai_digital_mute(sink, 0,
da18396f949ecaa Mark Brown 2013-02-06 3798 SNDRV_PCM_STREAM_PLAYBACK);
c74184ed30ecce2 Mark Brown 2012-04-04 3799 if (ret != 0 && ret != -ENOTSUPP)
30a6a1a4eed170b Liam Girdwood 2012-11-19 3800 dev_warn(sink->dev, "ASoC: Failed to unmute: %d\n", ret);
9747cec21e2d55e Mark Brown 2012-04-26 3801 ret = 0;
c74184ed30ecce2 Mark Brown 2012-04-04 3802 break;
c74184ed30ecce2 Mark Brown 2012-04-04 3803
c74184ed30ecce2 Mark Brown 2012-04-04 3804 case SND_SOC_DAPM_PRE_PMD:
da18396f949ecaa Mark Brown 2013-02-06 3805 ret = snd_soc_dai_digital_mute(sink, 1,
da18396f949ecaa Mark Brown 2013-02-06 3806 SNDRV_PCM_STREAM_PLAYBACK);
c74184ed30ecce2 Mark Brown 2012-04-04 3807 if (ret != 0 && ret != -ENOTSUPP)
30a6a1a4eed170b Liam Girdwood 2012-11-19 3808 dev_warn(sink->dev, "ASoC: Failed to mute: %d\n", ret);
9747cec21e2d55e Mark Brown 2012-04-26 3809 ret = 0;
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3810
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3811 source->active--;
9900a4226c785db Kuninori Morimoto 2017-09-25 3812 if (source->driver->ops->shutdown) {
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3813 substream.stream = SNDRV_PCM_STREAM_CAPTURE;
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3814 source->driver->ops->shutdown(&substream, source);
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3815 }
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3816
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3817 sink->active--;
9900a4226c785db Kuninori Morimoto 2017-09-25 3818 if (sink->driver->ops->shutdown) {
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3819 substream.stream = SNDRV_PCM_STREAM_PLAYBACK;
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3820 sink->driver->ops->shutdown(&substream, sink);
9b8ef9f6b3fcccc Jeeja KP 2015-10-20 3821 }
c74184ed30ecce2 Mark Brown 2012-04-04 3822 break;
c74184ed30ecce2 Mark Brown 2012-04-04 3823
c74184ed30ecce2 Mark Brown 2012-04-04 3824 default:
a6ed0608bd289b4 Takashi Iwai 2013-11-06 3825 WARN(1, "Unknown event %d\n", event);
75881df3fd7708f Sudip Mukherjee 2015-09-10 3826 ret = -EINVAL;
c74184ed30ecce2 Mark Brown 2012-04-04 3827 }
c74184ed30ecce2 Mark Brown 2012-04-04 3828
9747cec21e2d55e Mark Brown 2012-04-26 3829 out:
8053f21675b073b Nicolin Chen 2016-07-26 3830 kfree(runtime);
9747cec21e2d55e Mark Brown 2012-04-26 3831 kfree(params);
9747cec21e2d55e Mark Brown 2012-04-26 3832 return ret;
c74184ed30ecce2 Mark Brown 2012-04-04 @3833 }
c74184ed30ecce2 Mark Brown 2012-04-04 3834
:::::: The code at line 3833 was first introduced by commit
:::::: c74184ed30ecce2a5e9ae9aa22cb5e3942e0c7c7 ASoC: core: Support transparent CODEC<->CODEC DAI links
:::::: TO: Mark Brown <broonie(a)opensource.wolfsonmicro.com>
:::::: CC: Mark Brown <broonie(a)opensource.wolfsonmicro.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months