[linux-next:master 8253/11103] drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1055: undefined reference to `iwl_so_trans_cfg'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 07f7e57c63aaa2afb4ea31edef05e08699a63a00
commit: 930be4e76f262ede9927fb7d1ca525736cdc3669 [8253/11103] iwlwifi: add support for SnJ with Jf devices
config: i386-randconfig-r026-20210212 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# 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 930be4e76f262ede9927fb7d1ca525736cdc3669
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
ld: drivers/net/wireless/intel/iwlwifi/pcie/drv.o: in function `iwl_pci_probe':
>> drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1055: undefined reference to `iwl_so_trans_cfg'
vim +1055 drivers/net/wireless/intel/iwlwifi/pcie/drv.c
990
991 static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
992 {
993 const struct iwl_cfg_trans_params *trans =
994 (struct iwl_cfg_trans_params *)(ent->driver_data);
995 const struct iwl_cfg *cfg_7265d __maybe_unused = NULL;
996 struct iwl_trans *iwl_trans;
997 struct iwl_trans_pcie *trans_pcie;
998 int i, ret;
999 /*
1000 * This is needed for backwards compatibility with the old
1001 * tables, so we don't need to change all the config structs
1002 * at the same time. The cfg is used to compare with the old
1003 * full cfg structs.
1004 */
1005 const struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data);
1006
1007 /* make sure trans is the first element in iwl_cfg */
1008 BUILD_BUG_ON(offsetof(struct iwl_cfg, trans));
1009
1010 iwl_trans = iwl_trans_pcie_alloc(pdev, ent, trans);
1011 if (IS_ERR(iwl_trans))
1012 return PTR_ERR(iwl_trans);
1013
1014 trans_pcie = IWL_TRANS_GET_PCIE_TRANS(iwl_trans);
1015
1016 iwl_trans->hw_rf_id = iwl_read32(iwl_trans, CSR_HW_RF_ID);
1017
1018 for (i = 0; i < ARRAY_SIZE(iwl_dev_info_table); i++) {
1019 const struct iwl_dev_info *dev_info = &iwl_dev_info_table[i];
1020 if ((dev_info->device == (u16)IWL_CFG_ANY ||
1021 dev_info->device == pdev->device) &&
1022 (dev_info->subdevice == (u16)IWL_CFG_ANY ||
1023 dev_info->subdevice == pdev->subsystem_device) &&
1024 (dev_info->mac_type == (u16)IWL_CFG_ANY ||
1025 dev_info->mac_type ==
1026 CSR_HW_REV_TYPE(iwl_trans->hw_rev)) &&
1027 (dev_info->mac_step == (u8)IWL_CFG_ANY ||
1028 dev_info->mac_step ==
1029 CSR_HW_REV_STEP(iwl_trans->hw_rev)) &&
1030 (dev_info->rf_type == (u16)IWL_CFG_ANY ||
1031 dev_info->rf_type ==
1032 CSR_HW_RFID_TYPE(iwl_trans->hw_rf_id)) &&
1033 (dev_info->rf_id == (u8)IWL_CFG_ANY ||
1034 dev_info->rf_id ==
1035 IWL_SUBDEVICE_RF_ID(pdev->subsystem_device)) &&
1036 (dev_info->no_160 == (u8)IWL_CFG_ANY ||
1037 dev_info->no_160 ==
1038 IWL_SUBDEVICE_NO_160(pdev->subsystem_device)) &&
1039 (dev_info->cores == (u8)IWL_CFG_ANY ||
1040 dev_info->cores ==
1041 IWL_SUBDEVICE_CORES(pdev->subsystem_device))) {
1042 iwl_trans->cfg = dev_info->cfg;
1043 iwl_trans->name = dev_info->name;
1044 }
1045 }
1046
1047 /*
1048 * Workaround for problematic SnJ device: sometimes when
1049 * certain RF modules are connected to SnJ, the device ID
1050 * changes to QnJ's ID. So we are using QnJ's trans_cfg until
1051 * here. But if we detect that the MAC type is actually SnJ,
1052 * we should switch to it here to avoid problems later.
1053 */
1054 if (CSR_HW_REV_TYPE(iwl_trans->hw_rev) == IWL_CFG_MAC_TYPE_SNJ)
> 1055 iwl_trans->trans_cfg = &iwl_so_trans_cfg;
1056
---
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 v6 2/3] drm/amd/display: Add freesync video modes based on preferred modes
by kernel test robot
Hi Aurabindo,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20210211]
[also build test ERROR on v5.11-rc7]
[cannot apply to drm-intel/for-linux-next drm-tip/drm-tip tegra-drm/drm/tegra/for-next linus/master drm-exynos/exynos-drm-next drm/drm-next v5.11-rc7 v5.11-rc6 v5.11-rc5]
[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/Aurabindo-Pillai/Freesync-video-...
base: 671176b0016c80b3943cb5387312c886aba3308d
config: ia64-allmodconfig (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/0day-ci/linux/commit/1f1eda26f52f0550c11969b7df5465916...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Aurabindo-Pillai/Freesync-video-mode-optimization/20210213-091059
git checkout 1f1eda26f52f0550c11969b7df546591683bda0f
# 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>
Note: the linux-review/Aurabindo-Pillai/Freesync-video-mode-optimization/20210213-091059 HEAD 93e6ddbee724ff17e78a905f919aae4aa280c67b builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_connector_add_freesync_modes':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7066:8: error: 'amdgpu_exp_freesync_vid_mode' undeclared (first use in this function); did you mean 'amdgpu_freesync_vid_mode'?
7066 | if (!(amdgpu_exp_freesync_vid_mode && edid))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| amdgpu_freesync_vid_mode
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7066:8: note: each undeclared identifier is reported only once for each function it appears in
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7062:38: warning: unused variable 'range' [-Wunused-variable]
7062 | struct detailed_data_monitor_range *range;
| ^~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7061:29: warning: unused variable 'data' [-Wunused-variable]
7061 | struct detailed_non_pixel *data;
| ^~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7060:26: warning: unused variable 'timing' [-Wunused-variable]
7060 | struct detailed_timing *timing;
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7059:10: warning: unused variable 'i' [-Wunused-variable]
7059 | uint8_t i;
| ^
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_commit_cursors':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7805:44: warning: variable 'new_plane_state' set but not used [-Wunused-but-set-variable]
7805 | struct drm_plane_state *old_plane_state, *new_plane_state;
| ^~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
vim +7066 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
7055
7056 static void amdgpu_dm_connector_add_freesync_modes(struct drm_connector *connector,
7057 struct edid *edid)
7058 {
7059 uint8_t i;
7060 struct detailed_timing *timing;
7061 struct detailed_non_pixel *data;
7062 struct detailed_data_monitor_range *range;
7063 struct amdgpu_dm_connector *amdgpu_dm_connector =
7064 to_amdgpu_dm_connector(connector);
7065
> 7066 if (!(amdgpu_exp_freesync_vid_mode && edid))
7067 return;
7068
7069 if (amdgpu_dm_connector->max_vfreq - amdgpu_dm_connector->min_vfreq > 10)
7070 amdgpu_dm_connector->num_modes +=
7071 add_fs_modes(amdgpu_dm_connector);
7072 }
7073
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [RFC PATCH 07/12] gpio: amd-fch: add oftree probing support
by kernel test robot
Hi "Enrico,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/master]
[also build test ERROR on linux/master linus/master v5.11-rc7]
[cannot apply to robh/for-next driver-core/driver-core-testing gpio/for-next next-20210212]
[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/Enrico-Weigelt-metux-IT-consult/...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git a7e0bdf1b07ea6169930ec42b0bdb17e1c1e3bb0
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/9c66f4ee396f30c7810edddaa4663aa1f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Enrico-Weigelt-metux-IT-consult/of-base-improve-error-message-in-of_phandle_iterator_next/20210209-080546
git checkout 9c66f4ee396f30c7810edddaa4663aa1f0fbf2b7
# 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/platform/x86/pcengines-apuv2.c:72:16: error: initializing 'const char **' with an expression of type 'const char *const [7]' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
.gpio_names = apu2_gpio_names,
^~~~~~~~~~~~~~~
1 error generated.
vim +72 drivers/platform/x86/pcengines-apuv2.c
f8eb0235f65989 Enrico Weigelt, metux IT consult 2019-02-14 68
f8eb0235f65989 Enrico Weigelt, metux IT consult 2019-02-14 69 static const struct amd_fch_gpio_pdata board_apu2 = {
f8eb0235f65989 Enrico Weigelt, metux IT consult 2019-02-14 70 .gpio_num = ARRAY_SIZE(apu2_gpio_regs),
f8eb0235f65989 Enrico Weigelt, metux IT consult 2019-02-14 71 .gpio_reg = apu2_gpio_regs,
f8eb0235f65989 Enrico Weigelt, metux IT consult 2019-02-14 @72 .gpio_names = apu2_gpio_names,
f8eb0235f65989 Enrico Weigelt, metux IT consult 2019-02-14 73 };
f8eb0235f65989 Enrico Weigelt, metux IT consult 2019-02-14 74
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [Intel-gfx] [PATCH 1/2] drm/i915: FPGA_DBG is display-specific
by kernel test robot
Hi Matt,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip v5.11-rc7 next-20210212]
[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/Matt-Roper/drm-i915-FPGA_DBG-is-...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a013-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/e432ad4f289f57cc4b71e03726084f83f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matt-Roper/drm-i915-FPGA_DBG-is-display-specific/20210213-052120
git checkout e432ad4f289f57cc4b71e03726084f83f8109ac8
# 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/gpu/drm/i915/intel_uncore.c:1921:6: error: no member named 'has_fpga_dbg' in 'struct intel_device_info'
if (HAS_FPGA_DBG_UNCLAIMED(i915))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_drv.h:1706:65: note: expanded from macro 'HAS_FPGA_DBG_UNCLAIMED'
#define HAS_FPGA_DBG_UNCLAIMED(dev_priv) (INTEL_INFO(dev_priv)->has_fpga_dbg)
~~~~~~~~~~~~~~~~~~~~ ^
In file included from drivers/gpu/drm/i915/intel_uncore.c:2252:
>> drivers/gpu/drm/i915/selftests/intel_uncore.c:265:7: error: no member named 'has_fpga_dbg' in 'struct intel_device_info'
if (!HAS_FPGA_DBG_UNCLAIMED(gt->i915) &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_drv.h:1706:65: note: expanded from macro 'HAS_FPGA_DBG_UNCLAIMED'
#define HAS_FPGA_DBG_UNCLAIMED(dev_priv) (INTEL_INFO(dev_priv)->has_fpga_dbg)
~~~~~~~~~~~~~~~~~~~~ ^
2 errors generated.
vim +1921 drivers/gpu/drm/i915/intel_uncore.c
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1894
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1895 int intel_uncore_init_mmio(struct intel_uncore *uncore)
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1896 {
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1897 struct drm_i915_private *i915 = uncore->i915;
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1898 int ret;
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1899
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1900 ret = uncore_mmio_setup(uncore);
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1901 if (ret)
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1902 return ret;
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1903
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1904 if (INTEL_GEN(i915) > 5 && !intel_vgpu_active(i915))
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1905 uncore->flags |= UNCORE_HAS_FORCEWAKE;
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1906
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1907 if (!intel_uncore_has_forcewake(uncore)) {
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1908 uncore_raw_init(uncore);
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1909 } else {
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1910 ret = uncore_forcewake_init(uncore);
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1911 if (ret)
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1912 goto out_mmio_cleanup;
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1913 }
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1914
ccb2aceaaa5f92 Daniele Ceraolo Spurio 2019-06-19 1915 /* make sure fw funcs are set if and only if we have fw*/
ccb2aceaaa5f92 Daniele Ceraolo Spurio 2019-06-19 1916 GEM_BUG_ON(intel_uncore_has_forcewake(uncore) != !!uncore->funcs.force_wake_get);
ccb2aceaaa5f92 Daniele Ceraolo Spurio 2019-06-19 1917 GEM_BUG_ON(intel_uncore_has_forcewake(uncore) != !!uncore->funcs.force_wake_put);
ccb2aceaaa5f92 Daniele Ceraolo Spurio 2019-06-19 1918 GEM_BUG_ON(intel_uncore_has_forcewake(uncore) != !!uncore->funcs.read_fw_domains);
ccb2aceaaa5f92 Daniele Ceraolo Spurio 2019-06-19 1919 GEM_BUG_ON(intel_uncore_has_forcewake(uncore) != !!uncore->funcs.write_fw_domains);
ccb2aceaaa5f92 Daniele Ceraolo Spurio 2019-06-19 1920
2cf7bf6f2f2067 Daniele Ceraolo Spurio 2019-03-25 @1921 if (HAS_FPGA_DBG_UNCLAIMED(i915))
2cf7bf6f2f2067 Daniele Ceraolo Spurio 2019-03-25 1922 uncore->flags |= UNCORE_HAS_FPGA_DBG_UNCLAIMED;
2cf7bf6f2f2067 Daniele Ceraolo Spurio 2019-03-25 1923
2cf7bf6f2f2067 Daniele Ceraolo Spurio 2019-03-25 1924 if (IS_VALLEYVIEW(i915) || IS_CHERRYVIEW(i915))
2cf7bf6f2f2067 Daniele Ceraolo Spurio 2019-03-25 1925 uncore->flags |= UNCORE_HAS_DBG_UNCLAIMED;
2cf7bf6f2f2067 Daniele Ceraolo Spurio 2019-03-25 1926
2cf7bf6f2f2067 Daniele Ceraolo Spurio 2019-03-25 1927 if (IS_GEN_RANGE(i915, 6, 7))
2cf7bf6f2f2067 Daniele Ceraolo Spurio 2019-03-25 1928 uncore->flags |= UNCORE_HAS_FIFO;
2cf7bf6f2f2067 Daniele Ceraolo Spurio 2019-03-25 1929
2e81bc61d4e3ee Daniele Ceraolo Spurio 2019-06-19 1930 /* clear out unclaimed reg detection bit */
0a9b26306d6a10 Daniele Ceraolo Spurio 2019-08-09 1931 if (intel_uncore_unclaimed_mmio(uncore))
d0208cfa5f1547 Wambui Karuga 2020-01-07 1932 drm_dbg(&i915->drm, "unclaimed mmio detected on uncore init, clearing\n");
25286aaca9cee1 Daniele Ceraolo Spurio 2019-03-19 1933
25286aaca9cee1 Daniele Ceraolo Spurio 2019-03-19 1934 return 0;
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1935
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1936 out_mmio_cleanup:
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1937 uncore_mmio_cleanup(uncore);
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1938
f833cdb06bf7ce Daniele Ceraolo Spurio 2019-06-19 1939 return ret;
0b27448141bbe9 Ben Widawsky 2013-10-04 1940 }
0b27448141bbe9 Ben Widawsky 2013-10-04 1941
---
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 v2 2/4] usb: typec: tps6598x: Add trace event for status register
by kernel test robot
Hi "Guido,
I love your patch! Perhaps something to improve:
[auto build test WARNING on usb/usb-testing]
[also build test WARNING on v5.11-rc7 next-20210211]
[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/Guido-G-nther/usb-typec-tps6598x...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: openrisc-randconfig-s032-20210209 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://github.com/0day-ci/linux/commit/ba45e1d5e1fd25b6aed8724106e6c7d5a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Guido-G-nther/usb-typec-tps6598x-Add-IRQ-flag-and-register-tracing/20210212-200855
git checkout ba45e1d5e1fd25b6aed8724106e6c7d5adef7a20
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/usb/typec/tps6598x.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, drivers/usb/typec/tps6598x_trace.h):
>> drivers/usb/typec/./tps6598x_trace.h:157:1: sparse: sparse: too long token expansion
vim +157 drivers/usb/typec/./tps6598x_trace.h
c90c0282e4ce33 Guido Günther 2021-02-12 156
ba45e1d5e1fd25 Guido Günther 2021-02-12 @157 TRACE_EVENT(tps6598x_status,
ba45e1d5e1fd25 Guido Günther 2021-02-12 158 TP_PROTO(u32 status),
ba45e1d5e1fd25 Guido Günther 2021-02-12 159 TP_ARGS(status),
ba45e1d5e1fd25 Guido Günther 2021-02-12 160
ba45e1d5e1fd25 Guido Günther 2021-02-12 161 TP_STRUCT__entry(
ba45e1d5e1fd25 Guido Günther 2021-02-12 162 __field(u32, status)
ba45e1d5e1fd25 Guido Günther 2021-02-12 163 ),
ba45e1d5e1fd25 Guido Günther 2021-02-12 164
ba45e1d5e1fd25 Guido Günther 2021-02-12 165 TP_fast_assign(
ba45e1d5e1fd25 Guido Günther 2021-02-12 166 __entry->status = status;
ba45e1d5e1fd25 Guido Günther 2021-02-12 167 ),
ba45e1d5e1fd25 Guido Günther 2021-02-12 168
ba45e1d5e1fd25 Guido Günther 2021-02-12 169 TP_printk("conn: %s, pp_5v0: %s, pp_hv: %s, pp_ext: %s, pp_cable: %s, "
ba45e1d5e1fd25 Guido Günther 2021-02-12 170 "pwr-src: %s, vbus: %s, usb-host: %s, legacy: %s, flags: %s",
ba45e1d5e1fd25 Guido Günther 2021-02-12 171 show_status_conn_state(__entry->status),
ba45e1d5e1fd25 Guido Günther 2021-02-12 172 show_status_pp_switch_state(TPS_STATUS_PP_5V0_SWITCH(__entry->status)),
ba45e1d5e1fd25 Guido Günther 2021-02-12 173 show_status_pp_switch_state(TPS_STATUS_PP_HV_SWITCH(__entry->status)),
ba45e1d5e1fd25 Guido Günther 2021-02-12 174 show_status_pp_switch_state(TPS_STATUS_PP_EXT_SWITCH(__entry->status)),
ba45e1d5e1fd25 Guido Günther 2021-02-12 175 show_status_pp_switch_state(TPS_STATUS_PP_CABLE_SWITCH(__entry->status)),
ba45e1d5e1fd25 Guido Günther 2021-02-12 176 show_status_power_sources(__entry->status),
ba45e1d5e1fd25 Guido Günther 2021-02-12 177 show_status_vbus_status(__entry->status),
ba45e1d5e1fd25 Guido Günther 2021-02-12 178 show_status_usb_host_present(__entry->status),
ba45e1d5e1fd25 Guido Günther 2021-02-12 179 show_status_legacy(__entry->status),
ba45e1d5e1fd25 Guido Günther 2021-02-12 180 show_status_flags(__entry->status)
ba45e1d5e1fd25 Guido Günther 2021-02-12 181 )
ba45e1d5e1fd25 Guido Günther 2021-02-12 182 );
ba45e1d5e1fd25 Guido Günther 2021-02-12 183
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
1 year, 7 months
Re: [PATCH 2/3] drm/ttm: remove swap LRU
by kernel test robot
Hi "Christian,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next tegra-drm/drm/tegra/for-next linus/master drm-exynos/exynos-drm-next drm/drm-next 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/Christian-K-nig/drm-ttm-move-swa...
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-s021-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://github.com/0day-ci/linux/commit/d37e3072dc32c7f8466e8b9983bb3667e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christian-K-nig/drm-ttm-move-swapout-logic-around/20210210-232812
git checkout d37e3072dc32c7f8466e8b9983bb3667e733fd61
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/gpu/drm/ttm/ttm_device.c:42:1: sparse: sparse: symbol 'ttm_global_mutex' was not declared. Should it be static?
drivers/gpu/drm/ttm/ttm_device.c:43:10: sparse: sparse: symbol 'ttm_glob_use_count' was not declared. Should it be static?
>> drivers/gpu/drm/ttm/ttm_device.c:125:6: sparse: sparse: context imbalance in 'ttm_device_swapout' - wrong count at exit
vim +/ttm_device_swapout +125 drivers/gpu/drm/ttm/ttm_device.c
d37e3072dc32c7 Christian König 2021-02-10 124
d37e3072dc32c7 Christian König 2021-02-10 @125 long ttm_device_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx,
d37e3072dc32c7 Christian König 2021-02-10 126 gfp_t gfp_flags)
d37e3072dc32c7 Christian König 2021-02-10 127 {
d37e3072dc32c7 Christian König 2021-02-10 128 struct ttm_global *glob = &ttm_glob;
d37e3072dc32c7 Christian König 2021-02-10 129 struct ttm_resource_manager *man;
22b09b650f7486 Christian König 2021-02-10 130 struct ttm_buffer_object *bo;
d37e3072dc32c7 Christian König 2021-02-10 131 unsigned i, j;
22b09b650f7486 Christian König 2021-02-10 132 int ret;
22b09b650f7486 Christian König 2021-02-10 133
22b09b650f7486 Christian König 2021-02-10 134 spin_lock(&glob->lru_lock);
d37e3072dc32c7 Christian König 2021-02-10 135 for (i = TTM_PL_SYSTEM; i < TTM_NUM_MEM_TYPES; ++i) {
d37e3072dc32c7 Christian König 2021-02-10 136 man = ttm_manager_type(bdev, i);
d37e3072dc32c7 Christian König 2021-02-10 137 if (!man || !man->use_tt)
d37e3072dc32c7 Christian König 2021-02-10 138 continue;
d37e3072dc32c7 Christian König 2021-02-10 139
d37e3072dc32c7 Christian König 2021-02-10 140 for (j = 0; j < TTM_MAX_BO_PRIORITY; ++j) {
d37e3072dc32c7 Christian König 2021-02-10 141 list_for_each_entry(bo, &man->lru[j], lru) {
d37e3072dc32c7 Christian König 2021-02-10 142 long num_pages = bo->ttm->num_pages;
d37e3072dc32c7 Christian König 2021-02-10 143
d37e3072dc32c7 Christian König 2021-02-10 144 if (!bo->ttm ||
d37e3072dc32c7 Christian König 2021-02-10 145 bo->ttm->page_flags & TTM_PAGE_FLAG_SG ||
d37e3072dc32c7 Christian König 2021-02-10 146 bo->ttm->page_flags & TTM_PAGE_FLAG_SWAPPED)
d37e3072dc32c7 Christian König 2021-02-10 147 continue;
22b09b650f7486 Christian König 2021-02-10 148
22b09b650f7486 Christian König 2021-02-10 149 ret = ttm_bo_swapout(bo, ctx, gfp_flags);
22b09b650f7486 Christian König 2021-02-10 150 /* ttm_bo_swapout has dropped the lru_lock */
22b09b650f7486 Christian König 2021-02-10 151 if (!ret)
22b09b650f7486 Christian König 2021-02-10 152 return num_pages;
22b09b650f7486 Christian König 2021-02-10 153 if (ret != -EBUSY)
22b09b650f7486 Christian König 2021-02-10 154 return ret;
22b09b650f7486 Christian König 2021-02-10 155 }
22b09b650f7486 Christian König 2021-02-10 156 }
d37e3072dc32c7 Christian König 2021-02-10 157 }
22b09b650f7486 Christian König 2021-02-10 158 spin_unlock(&glob->lru_lock);
22b09b650f7486 Christian König 2021-02-10 159 return 0;
22b09b650f7486 Christian König 2021-02-10 160 }
d37e3072dc32c7 Christian König 2021-02-10 161 EXPORT_SYMBOL(ttm_device_swapout);
22b09b650f7486 Christian König 2021-02-10 162
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[djwong-xfs:reserve-rt-metadata-space 180/219] fs/xfs/libxfs/xfs_inode_buf.c:477:27: sparse: sparse: dubious: x & !y
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git reserve-rt-metadata-space
head: 1cc2dc6cc907783eca0a0665605e0a9e7e8d9bfd
commit: b24243a5282075e311566babe1af7e60e1669f64 [180/219] xfs: enforce metadata inode flag
config: h8300-randconfig-s031-20210209 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs reserve-rt-metadata-space
git checkout b24243a5282075e311566babe1af7e60e1669f64
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> fs/xfs/libxfs/xfs_inode_buf.c:477:27: sparse: sparse: dubious: x & !y
vim +477 fs/xfs/libxfs/xfs_inode_buf.c
339e1a3fcdd199 Eric Sandeen 2018-09-29 423
b24243a5282075 Darrick J. Wong 2021-01-05 424 /*
b24243a5282075 Darrick J. Wong 2021-01-05 425 * Validate all the picky requirements we have for a file that claims to be
b24243a5282075 Darrick J. Wong 2021-01-05 426 * filesystem metadata.
b24243a5282075 Darrick J. Wong 2021-01-05 427 */
b24243a5282075 Darrick J. Wong 2021-01-05 428 xfs_failaddr_t
b24243a5282075 Darrick J. Wong 2021-01-05 429 xfs_dinode_verify_metaflag(
b24243a5282075 Darrick J. Wong 2021-01-05 430 struct xfs_mount *mp,
b24243a5282075 Darrick J. Wong 2021-01-05 431 struct xfs_dinode *dip,
b24243a5282075 Darrick J. Wong 2021-01-05 432 uint16_t mode,
b24243a5282075 Darrick J. Wong 2021-01-05 433 uint16_t flags,
b24243a5282075 Darrick J. Wong 2021-01-05 434 uint64_t flags2)
b24243a5282075 Darrick J. Wong 2021-01-05 435 {
b24243a5282075 Darrick J. Wong 2021-01-05 436 if (!xfs_sb_version_hasmetadir(&mp->m_sb))
b24243a5282075 Darrick J. Wong 2021-01-05 437 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 438
b24243a5282075 Darrick J. Wong 2021-01-05 439 /* V5 filesystem only */
b24243a5282075 Darrick J. Wong 2021-01-05 440 if (dip->di_version < 3)
b24243a5282075 Darrick J. Wong 2021-01-05 441 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 442
b24243a5282075 Darrick J. Wong 2021-01-05 443 /* V3 inode fields that are always zero */
b24243a5282075 Darrick J. Wong 2021-01-05 444 if (dip->di_flushiter || dip->di_onlink)
b24243a5282075 Darrick J. Wong 2021-01-05 445 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 446
b24243a5282075 Darrick J. Wong 2021-01-05 447 /* Metadata files can only be directories or regular files */
b24243a5282075 Darrick J. Wong 2021-01-05 448 if (!S_ISDIR(mode) && !S_ISREG(mode))
b24243a5282075 Darrick J. Wong 2021-01-05 449 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 450
b24243a5282075 Darrick J. Wong 2021-01-05 451 /* They must have zero access permissions */
b24243a5282075 Darrick J. Wong 2021-01-05 452 if (mode & 0777)
b24243a5282075 Darrick J. Wong 2021-01-05 453 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 454
b24243a5282075 Darrick J. Wong 2021-01-05 455 /* DMAPI event and state masks are zero */
b24243a5282075 Darrick J. Wong 2021-01-05 456 if (dip->di_dmevmask || dip->di_dmstate)
b24243a5282075 Darrick J. Wong 2021-01-05 457 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 458
b24243a5282075 Darrick J. Wong 2021-01-05 459 /* User, group, and project IDs must be zero */
b24243a5282075 Darrick J. Wong 2021-01-05 460 if (dip->di_uid || dip->di_gid ||
b24243a5282075 Darrick J. Wong 2021-01-05 461 dip->di_projid_lo || dip->di_projid_hi)
b24243a5282075 Darrick J. Wong 2021-01-05 462 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 463
b24243a5282075 Darrick J. Wong 2021-01-05 464 /* Immutable, sync, noatime, nodump, and nodefrag flags must be set */
b24243a5282075 Darrick J. Wong 2021-01-05 465 if (!(flags & XFS_DIFLAG_IMMUTABLE))
b24243a5282075 Darrick J. Wong 2021-01-05 466 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 467 if (!(flags & XFS_DIFLAG_SYNC))
b24243a5282075 Darrick J. Wong 2021-01-05 468 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 469 if (!(flags & XFS_DIFLAG_NOATIME))
b24243a5282075 Darrick J. Wong 2021-01-05 470 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 471 if (!(flags & XFS_DIFLAG_NODUMP))
b24243a5282075 Darrick J. Wong 2021-01-05 472 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 473 if (!(flags & XFS_DIFLAG_NODEFRAG))
b24243a5282075 Darrick J. Wong 2021-01-05 474 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 475
b24243a5282075 Darrick J. Wong 2021-01-05 476 /* Directories must have nosymlinks flags set */
b24243a5282075 Darrick J. Wong 2021-01-05 @477 if (S_ISDIR(mode) & !(flags & XFS_DIFLAG_NOSYMLINKS))
b24243a5282075 Darrick J. Wong 2021-01-05 478 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 479
b24243a5282075 Darrick J. Wong 2021-01-05 480 /* dax flags2 must not be set */
b24243a5282075 Darrick J. Wong 2021-01-05 481 if (flags2 & XFS_DIFLAG2_DAX)
b24243a5282075 Darrick J. Wong 2021-01-05 482 return __this_address;
b24243a5282075 Darrick J. Wong 2021-01-05 483
b24243a5282075 Darrick J. Wong 2021-01-05 484 return NULL;
b24243a5282075 Darrick J. Wong 2021-01-05 485 }
b24243a5282075 Darrick J. Wong 2021-01-05 486
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
1 year, 7 months
Re: [PATCH v3 2/3] misc/pvpanic: probe multiple instances
by kernel test robot
Hi Mihai,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linux/master]
[also build test ERROR on soc/for-next linus/master v5.11-rc7]
[cannot apply to char-misc/char-misc-testing next-20210211]
[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/Mihai-Carabas/misc-pvpanic-split...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2ab38c17aac10bf55ab3efde4c4db3893d8691d2
config: x86_64-randconfig-r012-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/70eed71fbb1f23b28a401213c2dac3c27...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mihai-Carabas/misc-pvpanic-split-up-generic-and-platform-dependent-code/20210213-043307
git checkout 70eed71fbb1f23b28a401213c2dac3c27fcae323
# 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/misc/pvpanic/pvpanic.c:62:5: warning: no previous prototype for function 'pvpanic_probe' [-Wmissing-prototypes]
int pvpanic_probe(void __iomem *pbase)
^
drivers/misc/pvpanic/pvpanic.c:62:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int pvpanic_probe(void __iomem *pbase)
^
static
>> drivers/misc/pvpanic/pvpanic.c:87:3: error: void function 'pvpanic_remove' should not return a value [-Wreturn-type]
return -EINVAL;
^ ~~~~~~~
drivers/misc/pvpanic/pvpanic.c:82:6: warning: no previous prototype for function 'pvpanic_remove' [-Wmissing-prototypes]
void pvpanic_remove(void __iomem *pbase)
^
drivers/misc/pvpanic/pvpanic.c:82:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void pvpanic_remove(void __iomem *pbase)
^
static
2 warnings and 1 error generated.
vim +/pvpanic_remove +87 drivers/misc/pvpanic/pvpanic.c
61
> 62 int pvpanic_probe(void __iomem *pbase)
63 {
64 struct pvpanic_instance *pi;
65
66 if(!pbase)
67 return -EINVAL;
68
69 pi = kmalloc(sizeof(*pi), GFP_ATOMIC);
70 if (!pi)
71 return -ENOMEM;
72
73 pi->base = pbase;
74 spin_lock(&pvpanic_lock);
75 list_add(&pi->list, &pvpanic_list);
76 spin_unlock(&pvpanic_lock);
77
78 return 0;
79 }
80 EXPORT_SYMBOL_GPL(pvpanic_probe);
81
82 void pvpanic_remove(void __iomem *pbase)
83 {
84 struct pvpanic_instance *pi_cur, *pi_next;
85
86 if(!pbase)
> 87 return -EINVAL;
88
89 spin_lock(&pvpanic_lock);
90 list_for_each_entry_safe(pi_cur, pi_next, &pvpanic_list, list) {
91 if (pi_cur->base == pbase) {
92 list_del(&pi_cur->list);
93 kfree(pi_cur);
94 break;
95 }
96 }
97 spin_unlock(&pvpanic_lock);
98 }
99 EXPORT_SYMBOL_GPL(pvpanic_remove);
100
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months