[android-common:android12-5.10 3/5] drivers/dma-buf/heaps/page_pool.c:242:5: warning: no previous prototype for function 'dmabuf_page_pool_init_shrinker'
by kernel test robot
Hi John,
First bad commit (maybe != root cause):
tree: https://android.googlesource.com/kernel/common android12-5.10
head: d50b67ac7551b81ae82e70c6f2811073ba3575ba
commit: 23762f02e172f146ccd160e36ed43483f2304aaf [3/5] ANDROID: dma-buf: system_heap: Add pagepool support to system heap
config: arm64-randconfig-r025-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 23762f02e172f146ccd160e36ed43483f2304aaf
# 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/dma-buf/heaps/page_pool.c:242:5: warning: no previous prototype for function 'dmabuf_page_pool_init_shrinker' [-Wmissing-prototypes]
int dmabuf_page_pool_init_shrinker(void)
^
drivers/dma-buf/heaps/page_pool.c:242:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dmabuf_page_pool_init_shrinker(void)
^
static
1 warning generated.
vim +/dmabuf_page_pool_init_shrinker +242 drivers/dma-buf/heaps/page_pool.c
e7dac4c3231c0e John Stultz 2020-10-02 241
e7dac4c3231c0e John Stultz 2020-10-02 @242 int dmabuf_page_pool_init_shrinker(void)
:::::: The code at line 242 was first introduced by commit
:::::: e7dac4c3231c0e8adeef8dbb732b2cde7c162b14 ANDROID: dma-buf: heaps: Add a shrinker controlled page pool
:::::: TO: John Stultz <john.stultz(a)linaro.org>
:::::: CC: Hridya Valsaraju <hridya(a)google.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[gustavoars-linux:testing/drm/radeon/si_dpm 8321/8744] arch/mips/kernel/setup.c:47:39: error: conflicting types for '__appended_dtb'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/drm/radeon/si_dpm
head: ec57589a61c44bedeaac6c8f39c7c7425fcf8249
commit: b83ba0b9df56f8404ccc6ebcc7050fb8294f0f20 [8321/8744] MIPS: of: Introduce helper function to get DTB
config: mips-randconfig-r021-20210209 (attached as .config)
compiler: mipsel-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/gustavoars/linux.git/comm...
git remote add gustavoars-linux https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git
git fetch --no-tags gustavoars-linux testing/drm/radeon/si_dpm
git checkout b83ba0b9df56f8404ccc6ebcc7050fb8294f0f20
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/mips/kernel/setup.c:47:39: error: conflicting types for '__appended_dtb'
47 | const char __section(".appended_dtb") __appended_dtb[0x100000];
| ^~~~~~~~~~~~~~
In file included from arch/mips/kernel/setup.c:34:
arch/mips/include/asm/bootinfo.h:118:13: note: previous declaration of '__appended_dtb' was here
118 | extern char __appended_dtb[];
| ^~~~~~~~~~~~~~
vim +/__appended_dtb +47 arch/mips/kernel/setup.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 45
87db537da4cd1b Aaro Koskinen 2015-09-11 46 #ifdef CONFIG_MIPS_ELF_APPENDED_DTB
33def8498fdde1 Joe Perches 2020-10-21 @47 const char __section(".appended_dtb") __appended_dtb[0x100000];
87db537da4cd1b Aaro Koskinen 2015-09-11 48 #endif /* CONFIG_MIPS_ELF_APPENDED_DTB */
87db537da4cd1b Aaro Koskinen 2015-09-11 49
:::::: The code at line 47 was first introduced by commit
:::::: 33def8498fdde180023444b08e12b72a9efed41d treewide: Convert macro and uses of __section(foo) to __section("foo")
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH v3 1/3] drm/mediatek: mtk_dpi: Add check for max clock rate in mode_valid
by kernel test robot
Hi Jitao,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on pza/reset/next linux/master linus/master v5.11-rc7 next-20210125]
[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/Jitao-Shi/Add-check-for-max-cloc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm64-randconfig-r023-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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://github.com/0day-ci/linux/commit/7036ee290c5a384eeaa0b45d739a8b024...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jitao-Shi/Add-check-for-max-clock-rate-in-mode_valid/20210208-094340
git checkout 7036ee290c5a384eeaa0b45d739a8b024235671d
# 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 errors (new ones prefixed by >>):
>> drivers/gpu/drm/mediatek/mtk_dpi.c:574:16: error: incompatible function pointer types initializing 'enum drm_mode_status (*)(struct drm_bridge *, const struct drm_display_info *, const struct drm_display_mode *)' with an expression of type 'enum drm_mode_status (struct drm_bridge *, const struct drm_display_mode *)' [-Werror,-Wincompatible-function-pointer-types]
.mode_valid = mtk_dpi_bridge_mode_valid,
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +574 drivers/gpu/drm/mediatek/mtk_dpi.c
570
571 static const struct drm_bridge_funcs mtk_dpi_bridge_funcs = {
572 .attach = mtk_dpi_bridge_attach,
573 .mode_set = mtk_dpi_bridge_mode_set,
> 574 .mode_valid = mtk_dpi_bridge_mode_valid,
575 .disable = mtk_dpi_bridge_disable,
576 .enable = mtk_dpi_bridge_enable,
577 };
578
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH] IOCTL support for dell-wmi-sysman driver
by kernel test robot
Hi KSR",
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.11-rc7 next-20210125]
[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/Prasanth-KSR/IOCTL-support-for-d...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 61556703b610a104de324e4f061dc6cf7b218b46
config: x86_64-randconfig-a015-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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/00141bcb2495c75a902d3070e149760b1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Prasanth-KSR/IOCTL-support-for-dell-wmi-sysman-driver/20210209-223343
git checkout 00141bcb2495c75a902d3070e149760b1050322e
# 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/platform/x86/dell-wmi-sysman/sysman.c:310:5: warning: no previous prototype for function 'validate_acpi_type' [-Wmissing-prototypes]
int validate_acpi_type(union acpi_object *obj, const char *guid_string)
^
drivers/platform/x86/dell-wmi-sysman/sysman.c:310:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int validate_acpi_type(union acpi_object *obj, const char *guid_string)
^
static
1 warning generated.
--
>> drivers/platform/x86/dell-wmi-sysman/biosattr-interface.c:218:5: warning: no previous prototype for function 'run_sysman_call' [-Wmissing-prototypes]
int run_sysman_call(struct dell_wmi_sysman_buffer *buf)
^
drivers/platform/x86/dell-wmi-sysman/biosattr-interface.c:218:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int run_sysman_call(struct dell_wmi_sysman_buffer *buf)
^
static
1 warning generated.
vim +/validate_acpi_type +310 drivers/platform/x86/dell-wmi-sysman/sysman.c
309
> 310 int validate_acpi_type(union acpi_object *obj, const char *guid_string)
311 {
312 u32 acpi_type;
313
314 if (strcmp(guid_string, DELL_WMI_BIOS_INTEGER_ATTRIBUTE_GUID) == 0)
315 acpi_type = ACPI_TYPE_INTEGER;
316 else
317 acpi_type = ACPI_TYPE_STRING;
318
319 if (obj->package.elements[CURRENT_VAL].type != acpi_type)
320 return -EIO;
321
322 return 0;
323 }
324
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[gustavoars-linux:testing/staging/rtl8188eu 1/2] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:3113:30: warning: array subscript 4 is above array bounds of {aka 'struct
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/staging/rtl8188eu
head: 25e1a76c1c41a6d6f103b572f4f50ba30787f9ab
commit: 78d593615c6f1cd10232a34899af93d5d2696c30 [1/2] Makefile: Enable -Warray-bounds
config: microblaze-randconfig-r005-20210209 (attached as .config)
compiler: microblaze-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/gustavoars/linux.git/comm...
git remote add gustavoars-linux https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git
git fetch --no-tags gustavoars-linux testing/staging/rtl8188eu
git checkout 78d593615c6f1cd10232a34899af93d5d2696c30
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
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/powerplay/hwmgr/vega10_hwmgr.c: In function 'vega10_get_pp_table_entry_callback_func':
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:3113:30: warning: array subscript 4 is above array bounds of 'ATOM_Vega10_GFXCLK_Dependency_Record[1]' {aka 'struct _ATOM_Vega10_GFXCLK_Dependency_Record[1]'} [-Warray-bounds]
3113 | gfxclk_dep_table->entries[4].ulClk;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
vim +3113 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3023
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3024 static int vega10_get_pp_table_entry_callback_func(struct pp_hwmgr *hwmgr,
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3025 void *state, struct pp_power_state *power_state,
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3026 void *pp_table, uint32_t classification_flag)
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3027 {
ebc1c9c1be5b49 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Rex Zhu 2017-06-19 3028 ATOM_Vega10_GFXCLK_Dependency_Record_V2 *patom_record_V2;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3029 struct vega10_power_state *vega10_power_state =
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3030 cast_phw_vega10_power_state(&(power_state->hardware));
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3031 struct vega10_performance_level *performance_level;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3032 ATOM_Vega10_State *state_entry = (ATOM_Vega10_State *)state;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3033 ATOM_Vega10_POWERPLAYTABLE *powerplay_table =
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3034 (ATOM_Vega10_POWERPLAYTABLE *)pp_table;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3035 ATOM_Vega10_SOCCLK_Dependency_Table *socclk_dep_table =
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3036 (ATOM_Vega10_SOCCLK_Dependency_Table *)
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3037 (((unsigned long)powerplay_table) +
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3038 le16_to_cpu(powerplay_table->usSocclkDependencyTableOffset));
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3039 ATOM_Vega10_GFXCLK_Dependency_Table *gfxclk_dep_table =
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3040 (ATOM_Vega10_GFXCLK_Dependency_Table *)
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3041 (((unsigned long)powerplay_table) +
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3042 le16_to_cpu(powerplay_table->usGfxclkDependencyTableOffset));
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3043 ATOM_Vega10_MCLK_Dependency_Table *mclk_dep_table =
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3044 (ATOM_Vega10_MCLK_Dependency_Table *)
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3045 (((unsigned long)powerplay_table) +
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3046 le16_to_cpu(powerplay_table->usMclkDependencyTableOffset));
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3047
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3048
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3049 /* The following fields are not initialized here:
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3050 * id orderedList allStatesList
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3051 */
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3052 power_state->classification.ui_label =
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3053 (le16_to_cpu(state_entry->usClassification) &
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3054 ATOM_PPLIB_CLASSIFICATION_UI_MASK) >>
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3055 ATOM_PPLIB_CLASSIFICATION_UI_SHIFT;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3056 power_state->classification.flags = classification_flag;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3057 /* NOTE: There is a classification2 flag in BIOS
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3058 * that is not being used right now
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3059 */
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3060 power_state->classification.temporary_state = false;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3061 power_state->classification.to_be_deleted = false;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3062
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3063 power_state->validation.disallowOnDC =
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3064 ((le32_to_cpu(state_entry->ulCapsAndSettings) &
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3065 ATOM_Vega10_DISALLOW_ON_DC) != 0);
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3066
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3067 power_state->display.disableFrameModulation = false;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3068 power_state->display.limitRefreshrate = false;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3069 power_state->display.enableVariBright =
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3070 ((le32_to_cpu(state_entry->ulCapsAndSettings) &
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3071 ATOM_Vega10_ENABLE_VARIBRIGHT) != 0);
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3072
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3073 power_state->validation.supportedPowerLevels = 0;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3074 power_state->uvd_clocks.VCLK = 0;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3075 power_state->uvd_clocks.DCLK = 0;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3076 power_state->temperatures.min = 0;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3077 power_state->temperatures.max = 0;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3078
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3079 performance_level = &(vega10_power_state->performance_levels
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3080 [vega10_power_state->performance_level_count++]);
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3081
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3082 PP_ASSERT_WITH_CODE(
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3083 (vega10_power_state->performance_level_count <
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3084 NUM_GFXCLK_DPM_LEVELS),
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3085 "Performance levels exceeds SMC limit!",
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3086 return -1);
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3087
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3088 PP_ASSERT_WITH_CODE(
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3089 (vega10_power_state->performance_level_count <=
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3090 hwmgr->platform_descriptor.
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3091 hardwareActivityPerformanceLevels),
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3092 "Performance levels exceeds Driver limit!",
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3093 return -1);
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3094
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3095 /* Performance levels are arranged from low to high. */
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3096 performance_level->soc_clock = socclk_dep_table->entries
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3097 [state_entry->ucSocClockIndexLow].ulClk;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3098 performance_level->gfx_clock = gfxclk_dep_table->entries
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3099 [state_entry->ucGfxClockIndexLow].ulClk;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3100 performance_level->mem_clock = mclk_dep_table->entries
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3101 [state_entry->ucMemClockIndexLow].ulMemClk;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3102
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3103 performance_level = &(vega10_power_state->performance_levels
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3104 [vega10_power_state->performance_level_count++]);
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3105 performance_level->soc_clock = socclk_dep_table->entries
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3106 [state_entry->ucSocClockIndexHigh].ulClk;
ebc1c9c1be5b49 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Rex Zhu 2017-06-19 3107 if (gfxclk_dep_table->ucRevId == 0) {
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3108 /* under vega10 pp one vf mode, the gfx clk dpm need be lower
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3109 * to level-4 due to the limited 110w-power
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3110 */
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3111 if (hwmgr->pp_one_vf && (state_entry->ucGfxClockIndexHigh > 0))
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3112 performance_level->gfx_clock =
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 @3113 gfxclk_dep_table->entries[4].ulClk;
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3114 else
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3115 performance_level->gfx_clock = gfxclk_dep_table->entries
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3116 [state_entry->ucGfxClockIndexHigh].ulClk;
ebc1c9c1be5b49 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Rex Zhu 2017-06-19 3117 } else if (gfxclk_dep_table->ucRevId == 1) {
ebc1c9c1be5b49 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Rex Zhu 2017-06-19 3118 patom_record_V2 = (ATOM_Vega10_GFXCLK_Dependency_Record_V2 *)gfxclk_dep_table->entries;
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3119 if (hwmgr->pp_one_vf && (state_entry->ucGfxClockIndexHigh > 0))
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3120 performance_level->gfx_clock = patom_record_V2[4].ulClk;
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3121 else
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3122 performance_level->gfx_clock =
c9ffa427db34e6 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Yintian Tao 2019-10-30 3123 patom_record_V2[state_entry->ucGfxClockIndexHigh].ulClk;
ebc1c9c1be5b49 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Rex Zhu 2017-06-19 3124 }
ebc1c9c1be5b49 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Rex Zhu 2017-06-19 3125
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3126 performance_level->mem_clock = mclk_dep_table->entries
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3127 [state_entry->ucMemClockIndexHigh].ulMemClk;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3128 return 0;
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3129 }
f83a9991648bb4 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c Eric Huang 2017-03-06 3130
:::::: The code at line 3113 was first introduced by commit
:::::: c9ffa427db34e6896523f0ef0c172a0bbb77c9ad drm/amd/powerplay: enable pp one vf mode for vega10
:::::: TO: Yintian Tao <yttao(a)amd.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[bcache:nvdimm-meta 10/13] drivers/md/bcache/journal.c:1034:3: warning: argument 1 null where non-null expected
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git nvdimm-meta
head: 33041d6ea183e8b2677af33ff7bd08b872c7a62d
commit: 6f1570dcb4e7c91cae320b058be6aff3576e4858 [10/13] bcache: initialize bcache journal for NVDIMM meta device
config: parisc-randconfig-r011-20210209 (attached as .config)
compiler: hppa-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/colyli/linux-bcache.git/c...
git remote add bcache https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git
git fetch --no-tags bcache nvdimm-meta
git checkout 6f1570dcb4e7c91cae320b058be6aff3576e4858
# 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 >>):
drivers/md/bcache/journal.c: In function 'find_journal_nvm_base':
drivers/md/bcache/journal.c:997:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
997 | if (cur->kaddr == (void *)ca->sb.d[0]) {
| ^
drivers/md/bcache/journal.c: In function '__bch_journal_nvdimm_init':
drivers/md/bcache/journal.c:1058:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1058 | (u64)(journal_nvm_base + (ca->sb.bucket_size * i));
| ^
In function 'get_nvdimm_journal_space',
inlined from '__bch_journal_nvdimm_init' at drivers/md/bcache/journal.c:1045:21,
inlined from 'bch_journal_init' at drivers/md/bcache/journal.c:1076:9:
>> drivers/md/bcache/journal.c:1034:3: warning: argument 1 null where non-null expected [-Wnonnull]
1034 | memset(ret, 0, (1 << order) * PAGE_SIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/string.h:21,
from include/linux/uuid.h:12,
from include/linux/mod_devicetable.h:13,
from arch/parisc/include/asm/hardware.h:5,
from arch/parisc/include/asm/processor.h:16,
from arch/parisc/include/asm/spinlock.h:7,
from arch/parisc/include/asm/atomic.h:22,
from include/linux/atomic.h:7,
from arch/parisc/include/asm/bitops.h:13,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/highmem.h:5,
from include/linux/bio.h:8,
from drivers/md/bcache/bcache.h:182,
from drivers/md/bcache/journal.c:8:
drivers/md/bcache/journal.c: In function 'bch_journal_init':
arch/parisc/include/asm/string.h:24:14: note: in a call to function 'memset' declared here
24 | extern void *memset(void *, int, size_t);
| ^~~~~~
vim +1034 drivers/md/bcache/journal.c
1017
1018 static void *get_nvdimm_journal_space(struct cache *ca)
1019 {
1020 struct bch_extent *allocated_list = NULL;
1021 void *ret = NULL;
1022
1023 allocated_list = bch_get_allocated_pages(ca->sb.set_uuid);
1024 if (allocated_list) {
1025 ret = find_journal_nvm_base(allocated_list, ca);
1026 bch_release_nvm_extent_list(allocated_list);
1027 }
1028
1029 if (!ret) {
1030 int order = ilog2(ca->sb.bucket_size * ca->sb.njournal_buckets /
1031 PAGE_SECTORS);
1032
1033 ret = bch_nvm_alloc_pages(order, ca->sb.set_uuid);
> 1034 memset(ret, 0, (1 << order) * PAGE_SIZE);
1035 }
1036
1037 return ret;
1038 }
1039
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[gustavoars-linux:testing/uapi/nfsd/nfsfh 1/2] drivers/media/pci/ngene/ngene-core.c:388:2: warning: 'memcpy' offset [12, 16] from the object at 'com' is out of the bounds of referenced subobject 'config' with type 'unsigned char' at offset 10
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/uapi/nfsd/nfsfh
head: d28670226e028e65b0de5e6744c5df188fc2728b
commit: 5c976c3f03be89378ca672c1a3c7ce7048d90606 [1/2] Makefile: Enable -Warray-bounds
config: riscv-randconfig-r004-20210209 (attached as .config)
compiler: riscv64-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/gustavoars/linux.git/comm...
git remote add gustavoars-linux https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git
git fetch --no-tags gustavoars-linux testing/uapi/nfsd/nfsfh
git checkout 5c976c3f03be89378ca672c1a3c7ce7048d90606
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 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/media/pci/ngene/ngene-core.c: In function 'ngene_command_config_free_buf':
>> drivers/media/pci/ngene/ngene-core.c:388:2: warning: 'memcpy' offset [12, 16] from the object at 'com' is out of the bounds of referenced subobject 'config' with type 'unsigned char' at offset 10 [-Warray-bounds]
388 | memcpy(&com.cmd.ConfigureBuffers.config, config, 6);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +388 drivers/media/pci/ngene/ngene-core.c
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 381
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 382 static int ngene_command_config_free_buf(struct ngene *dev, u8 *config)
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 383 {
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 384 struct ngene_command com;
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 385
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 386 com.cmd.hdr.Opcode = CMD_CONFIGURE_FREE_BUFFER;
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 387 com.cmd.hdr.Length = 6;
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 @388 memcpy(&com.cmd.ConfigureBuffers.config, config, 6);
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 389 com.in_len = 6;
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 390 com.out_len = 0;
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 391
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 392 if (ngene_command(dev, &com) < 0)
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 393 return -EIO;
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 394
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 395 return 0;
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 396 }
dae52d009fc950 drivers/media/dvb/ngene/ngene-core.c Matthias Benesch 2009-12-18 397
:::::: The code at line 388 was first introduced by commit
:::::: dae52d009fc950b5c209260d50fcc000f5becd3c V4L/DVB: ngene: Initial check-in
:::::: TO: Matthias Benesch <twoof7(a)freenet.de>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months