[freescale-fslc:5.10-2.1.x-imx 8498/15242] xtensa-linux-ld: drivers/soc/imx/soc-imx8m.o:undefined reference to `__arm_smccc_smc'
by kernel test robot
tree: https://github.com/Freescale/linux-fslc 5.10-2.1.x-imx
head: 3b81a70be1099d44fdafaa6766bf75a2bd9e297e
commit: 6375d33dce9af7567e197f84b698fb268888eada [8498/15242] soc: imx8m: change to use platform driver
config: xtensa-randconfig-r026-20211031 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/6375d33dce9af7567e197f84b6...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.10-2.1.x-imx
git checkout 6375d33dce9af7567e197f84b698fb268888eada
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash
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 >>):
>> xtensa-linux-ld: drivers/soc/imx/soc-imx8m.o:(.text+0x70): undefined reference to `__arm_smccc_smc'
xtensa-linux-ld: drivers/soc/imx/soc-imx8m.o: in function `imx8_soc_info':
soc-imx8m.c:(.text+0x196): undefined reference to `__arm_smccc_smc'
xtensa-linux-ld: drivers/soc/imx/soc-imx8m.o:(.text+0x74): undefined reference to `__arm_smccc_smc'
xtensa-linux-ld: drivers/soc/imx/soc-imx8m.o: in function `imx8_soc_info':
soc-imx8m.c:(.text+0x1b2): undefined reference to `__arm_smccc_smc'
xtensa-linux-ld: drivers/soc/imx/soc-imx8m.o: in function `imx_src_is_m4_enabled':
soc-imx8m.c:(.text+0x240): undefined reference to `__arm_smccc_smc'
xtensa-linux-ld: drivers/soc/imx/soc-imx8m.o:soc-imx8m.c:(.text+0x26a): more undefined references to `__arm_smccc_smc' follow
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_scalemode_store':
mxc_mma8451.c:(.text+0x3e4): undefined reference to `input_event'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `report_abs':
mxc_mma8451.c:(.text+0x4c4): undefined reference to `input_event'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_scalemode_store':
mxc_mma8451.c:(.text+0x3e8): undefined reference to `input_event'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `report_abs':
mxc_mma8451.c:(.text+0x4d4): undefined reference to `input_event'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_scalemode_store':
mxc_mma8451.c:(.text+0x3ec): undefined reference to `input_event'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o:mxc_mma8451.c:(.text+0x4e4): more undefined references to `input_event' follow
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_dev_poll':
mxc_mma8451.c:(.text+0x57c): undefined reference to `input_allocate_polled_device'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_probe':
mxc_mma8451.c:(.text+0x6b6): undefined reference to `input_allocate_polled_device'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_dev_poll':
mxc_mma8451.c:(.text+0x580): undefined reference to `input_set_abs_params'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_probe':
mxc_mma8451.c:(.text+0x6f6): undefined reference to `input_set_abs_params'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_dev_poll':
mxc_mma8451.c:(.text+0x584): undefined reference to `input_set_abs_params'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_probe':
mxc_mma8451.c:(.text+0x70a): undefined reference to `input_set_abs_params'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_dev_poll':
mxc_mma8451.c:(.text+0x588): undefined reference to `input_set_abs_params'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o:mxc_mma8451.c:(.text+0x71f): more undefined references to `input_set_abs_params' follow
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_dev_poll':
mxc_mma8451.c:(.text+0x58c): undefined reference to `input_register_polled_device'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_probe':
mxc_mma8451.c:(.text+0x72a): undefined reference to `input_register_polled_device'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_dev_poll':
mxc_mma8451.c:(.text+0x598): undefined reference to `input_free_polled_device'
xtensa-linux-ld: drivers/hwmon/mxc_mma8451.o: in function `mma8451_probe':
mxc_mma8451.c:(.text+0x772): undefined reference to `input_free_polled_device'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for INPUT_POLLDEV
Depends on !UML && INPUT
Selected by
- MXC_MMA8451 && HWMON && I2C
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[android-common:android13-5.10 11992/15386] kernel/module.c:4792:6: warning: no previous prototype for function 'android_debug_for_each_module'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android13-5.10
head: 222b9a06da78e7094deb914beffb51b10f497007
commit: 0bb433e0140efece0a1ce8124283cb68fda33a3f [11992/15386] ANDROID: debug_symbols: Add android_debug_for_each_module
config: i386-randconfig-r005-20211109 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3798ad5fa845771846599f3c088016e3aef800c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android13-5.10
git checkout 0bb433e0140efece0a1ce8124283cb68fda33a3f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 warnings (new ones prefixed by >>):
>> kernel/module.c:4792:6: warning: no previous prototype for function 'android_debug_for_each_module' [-Wmissing-prototypes]
void android_debug_for_each_module(int (*fn)(const char *mod_name, void *mod_addr, void *data),
^
kernel/module.c:4792:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void android_debug_for_each_module(int (*fn)(const char *mod_name, void *mod_addr, void *data),
^
static
1 warning generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on NET && WIRELESS && (CFG80211_WEXT || WIRELESS_EXT
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for SND_VMASTER
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for SND_PCM_IEC958
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_SOC_CONFIGS
WARNING: unmet direct dependencies detected for SND_JACK
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV
Depends on SOUND && !UML && SND && SND_JACK
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for SND_PCM_ELD
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on NET && WIRELESS && PROC_FS && WEXT_CORE
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for SND_INTEL_NHLT
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS && ACPI
vim +/android_debug_for_each_module +4792 kernel/module.c
4790
4791 #ifdef CONFIG_ANDROID_DEBUG_SYMBOLS
> 4792 void android_debug_for_each_module(int (*fn)(const char *mod_name, void *mod_addr, void *data),
4793 void *data)
4794 {
4795 struct module *module;
4796
4797 preempt_disable();
4798 list_for_each_entry_rcu(module, &modules, list) {
4799 if (fn(module->name, module->core_layout.base, data))
4800 goto out;
4801 }
4802 out:
4803 preempt_enable();
4804 }
4805 EXPORT_SYMBOL_GPL(android_debug_for_each_module);
4806 #endif
4807
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[kbuild] Re: [PATCH v1] ACPICA: Avoid evaluating methods too early during system resume
by Dan Carpenter
Hi "Rafael,
url: https://github.com/0day-ci/linux/commits/Rafael-J-Wysocki/ACPICA-Avoid-ev...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: i386-randconfig-m021-20210928 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/acpi/acpica/hwsleep.c:228 acpi_hw_legacy_wake_prep() error: uninitialized symbol 'status'.
vim +/status +228 drivers/acpi/acpica/hwsleep.c
3f6f49c7854c929 drivers/acpi/acpica/hwsleep.c Len Brown 2012-07-26 180 acpi_status acpi_hw_legacy_wake_prep(u8 sleep_state)
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 181 {
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 182 acpi_status status;
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 183 struct acpi_bit_register_info *sleep_type_reg_info;
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 184 struct acpi_bit_register_info *sleep_enable_reg_info;
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 185 u32 pm1a_control;
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 186 u32 pm1b_control;
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 187
2feec47d4c5f80b drivers/acpi/acpica/hwsleep.c Bob Moore 2012-02-14 188 ACPI_FUNCTION_TRACE(hw_legacy_wake_prep);
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 189
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 190 /*
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 191 * Set SLP_TYPE and SLP_EN to state S0.
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 192 * This is unclear from the ACPI Spec, but it is required
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 193 * by some machines.
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 194 */
5fe36d7853aa294 drivers/acpi/acpica/hwsleep.c Rafael J. Wysocki 2021-09-28 195 if (acpi_gbl_sleep_type_a_s0 != ACPI_SLEEP_TYPE_INVALID) {
4be44fcd3bf648b drivers/acpi/hardware/hwsleep.c Len Brown 2005-08-05 196 sleep_type_reg_info =
82d79b86646504a drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 197 acpi_hw_get_bit_register_info(ACPI_BITREG_SLEEP_TYPE);
4be44fcd3bf648b drivers/acpi/hardware/hwsleep.c Len Brown 2005-08-05 198 sleep_enable_reg_info =
4be44fcd3bf648b drivers/acpi/hardware/hwsleep.c Len Brown 2005-08-05 199 acpi_hw_get_bit_register_info(ACPI_BITREG_SLEEP_ENABLE);
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 200
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 201 /* Get current value of PM1A control */
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 202
d30dc9abb4aacfd drivers/acpi/hardware/hwsleep.c Alexey Starikovskiy 2007-09-30 203 status = acpi_hw_register_read(ACPI_REGISTER_PM1_CONTROL,
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 204 &pm1a_control);
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 205 if (ACPI_SUCCESS(status)) {
52fc0b026e99b5d drivers/acpi/hardware/hwsleep.c Bob Moore 2006-10-02 206
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 207 /* Clear the SLP_EN and SLP_TYP fields */
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 208
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 209 pm1a_control &= ~(sleep_type_reg_info->access_bit_mask |
4be44fcd3bf648b drivers/acpi/hardware/hwsleep.c Len Brown 2005-08-05 210 sleep_enable_reg_info->
4be44fcd3bf648b drivers/acpi/hardware/hwsleep.c Len Brown 2005-08-05 211 access_bit_mask);
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 212 pm1b_control = pm1a_control;
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 213
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 214 /* Insert the SLP_TYP bits */
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 215
5fe36d7853aa294 drivers/acpi/acpica/hwsleep.c Rafael J. Wysocki 2021-09-28 216 pm1a_control |= (acpi_gbl_sleep_type_a_s0 <<
d4913dc6d0c680a drivers/acpi/acpica/hwsleep.c Bob Moore 2009-03-06 217 sleep_type_reg_info->bit_position);
5fe36d7853aa294 drivers/acpi/acpica/hwsleep.c Rafael J. Wysocki 2021-09-28 218 pm1b_control |= (acpi_gbl_sleep_type_b_s0 <<
d4913dc6d0c680a drivers/acpi/acpica/hwsleep.c Bob Moore 2009-03-06 219 sleep_type_reg_info->bit_position);
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 220
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 221 /* Write the control registers and ignore any errors */
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 222
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 223 (void)acpi_hw_write_pm1_control(pm1a_control,
32c9ef994d91352 drivers/acpi/acpica/hwsleep.c Bob Moore 2009-02-18 224 pm1b_control);
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 225 }
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 226 }
"status" not initialized on else path.
^1da177e4c3f415 drivers/acpi/hardware/hwsleep.c Linus Torvalds 2005-04-16 227
c95d47a868f35cd drivers/acpi/hardware/hwsleep.c Rafael J. Wysocki 2008-01-08 @228 return_ACPI_STATUS(status);
c95d47a868f35cd drivers/acpi/hardware/hwsleep.c Rafael J. Wysocki 2008-01-08 229 }
---
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
10 months, 2 weeks
[leon-rdma:devlink 4/16] drivers/net/ethernet/marvell/prestera/prestera_devlink.c:425:6: error: unused variable 'err'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git devlink
head: 75088f5c533815580092fd7dca787c06e75ba7ba
commit: 3c73f365d81cf18adf846a4ef36e605ad52acd0a [4/16] devlink: Clean registration of devlink port
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commi...
git remote add leon-rdma https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
git fetch --no-tags leon-rdma devlink
git checkout 3c73f365d81cf18adf846a4ef36e605ad52acd0a
# 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 >>):
drivers/net/ethernet/marvell/prestera/prestera_devlink.c: In function 'prestera_devlink_port_register':
>> drivers/net/ethernet/marvell/prestera/prestera_devlink.c:425:6: error: unused variable 'err' [-Werror=unused-variable]
425 | int err;
| ^~~
cc1: all warnings being treated as errors
--
drivers/net/ethernet/intel/ice/ice_devlink.c: In function 'ice_devlink_create_pf_port':
>> drivers/net/ethernet/intel/ice/ice_devlink.c:501:17: error: variable 'dev' set but not used [-Werror=unused-but-set-variable]
501 | struct device *dev;
| ^~~
drivers/net/ethernet/intel/ice/ice_devlink.c: In function 'ice_devlink_create_vf_port':
drivers/net/ethernet/intel/ice/ice_devlink.c:550:17: error: variable 'dev' set but not used [-Werror=unused-but-set-variable]
550 | struct device *dev;
| ^~~
cc1: all warnings being treated as errors
vim +/err +425 drivers/net/ethernet/marvell/prestera/prestera_devlink.c
34dd1710f5a3c9 Vadym Kochan 2020-09-16 419
34dd1710f5a3c9 Vadym Kochan 2020-09-16 420 int prestera_devlink_port_register(struct prestera_port *port)
34dd1710f5a3c9 Vadym Kochan 2020-09-16 421 {
34dd1710f5a3c9 Vadym Kochan 2020-09-16 422 struct prestera_switch *sw = port->sw;
34dd1710f5a3c9 Vadym Kochan 2020-09-16 423 struct devlink *dl = priv_to_devlink(sw);
34dd1710f5a3c9 Vadym Kochan 2020-09-16 424 struct devlink_port_attrs attrs = {};
34dd1710f5a3c9 Vadym Kochan 2020-09-16 @425 int err;
34dd1710f5a3c9 Vadym Kochan 2020-09-16 426
34dd1710f5a3c9 Vadym Kochan 2020-09-16 427 attrs.flavour = DEVLINK_PORT_FLAVOUR_PHYSICAL;
34dd1710f5a3c9 Vadym Kochan 2020-09-16 428 attrs.phys.port_number = port->fp_id;
34dd1710f5a3c9 Vadym Kochan 2020-09-16 429 attrs.switch_id.id_len = sizeof(sw->id);
34dd1710f5a3c9 Vadym Kochan 2020-09-16 430 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len);
34dd1710f5a3c9 Vadym Kochan 2020-09-16 431
34dd1710f5a3c9 Vadym Kochan 2020-09-16 432 devlink_port_attrs_set(&port->dl_port, &attrs);
34dd1710f5a3c9 Vadym Kochan 2020-09-16 433
3c73f365d81cf1 Leon Romanovsky 2021-11-03 434 devlink_port_register(dl, &port->dl_port, port->fp_id);
34dd1710f5a3c9 Vadym Kochan 2020-09-16 435 return 0;
34dd1710f5a3c9 Vadym Kochan 2020-09-16 436 }
34dd1710f5a3c9 Vadym Kochan 2020-09-16 437
:::::: The code at line 425 was first introduced by commit
:::::: 34dd1710f5a3c9a7dc78e1ff6de69a19d407db25 net: marvell: prestera: Add basic devlink support
:::::: TO: Vadym Kochan <vadym.kochan(a)plvision.eu>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[linux-next:master 13424/13596] drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 73e5c18006f5e1f7d35d1e996609eaff6536ae5e
commit: a1f7f47b5ea7bf5467cc7eaab87f9c547e7a9495 [13424/13596] drm/amd/display: To support sending TPS3 pattern when restoring link
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 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 a1f7f47b5ea7bf5467cc7eaab87f9c547e7a9495
# 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 >>):
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:742:14: error: no previous prototype for 'get_highest_allowed_voltage_level' [-Werror=missing-prototypes]
742 | unsigned int get_highest_allowed_voltage_level(uint32_t chip_family, uint32_t hw_internal_rev, uint32_t pci_revision_id)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:32:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/clk_mgr.c:31:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr.c:37:6: error: no previous prototype for 'rv1_init_clocks' [-Werror=missing-prototypes]
37 | void rv1_init_clocks(struct clk_mgr *clk_mgr)
| ^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c:102:5: error: no previous prototype for 'rv1_vbios_smu_send_msg_with_param' [-Werror=missing-prototypes]
102 | int rv1_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr, unsigned int msg_id, unsigned int param)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c:123:5: error: no previous prototype for 'rv1_vbios_smu_set_dispclk' [-Werror=missing-prototypes]
123 | int rv1_vbios_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_dispclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c:146:5: error: no previous prototype for 'rv1_vbios_smu_set_dprefclk' [-Werror=missing-prototypes]
146 | int rv1_vbios_smu_set_dprefclk(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:412:6: error: no previous prototype for 'dcn2_enable_pme_wa' [-Werror=missing-prototypes]
412 | void dcn2_enable_pme_wa(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c:77:6: error: no previous prototype for 'dcn201_update_clocks_vbios' [-Werror=missing-prototypes]
77 | void dcn201_update_clocks_vbios(struct clk_mgr *clk_mgr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c: In function 'dcn201_update_clocks':
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c:132:7: error: variable 'enter_display_off' set but not used [-Werror=unused-but-set-variable]
132 | bool enter_display_off = false;
| ^~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c:36:
At top level:
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:129:29: error: 'UVD0_BASE' defined but not used [-Werror=unused-const-variable=]
129 | static const struct IP_BASE UVD0_BASE ={ { { { 0x00007800, 0x00007E00, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:123:29: error: 'UMC0_BASE' defined but not used [-Werror=unused-const-variable=]
123 | static const struct IP_BASE UMC0_BASE ={ { { { 0x00014000, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:117:29: error: 'THM_BASE' defined but not used [-Werror=unused-const-variable=]
117 | static const struct IP_BASE THM_BASE ={ { { { 0x00016600, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:111:29: error: 'SMUIO_BASE' defined but not used [-Werror=unused-const-variable=]
111 | static const struct IP_BASE SMUIO_BASE ={ { { { 0x00016800, 0x00016A00, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:105:29: error: 'OSSSYS_BASE' defined but not used [-Werror=unused-const-variable=]
105 | static const struct IP_BASE OSSSYS_BASE ={ { { { 0x000010A0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:99:29: error: 'NBIO_BASE' defined but not used [-Werror=unused-const-variable=]
99 | static const struct IP_BASE NBIO_BASE ={ { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:93:29: error: 'MP1_BASE' defined but not used [-Werror=unused-const-variable=]
93 | static const struct IP_BASE MP1_BASE ={ { { { 0x00016000, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:87:29: error: 'MP0_BASE' defined but not used [-Werror=unused-const-variable=]
87 | static const struct IP_BASE MP0_BASE ={ { { { 0x00016000, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:81:29: error: 'MMHUB_BASE' defined but not used [-Werror=unused-const-variable=]
81 | static const struct IP_BASE MMHUB_BASE ={ { { { 0x0001A000, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:75:29: error: 'HDP_BASE' defined but not used [-Werror=unused-const-variable=]
75 | static const struct IP_BASE HDP_BASE ={ { { { 0x00000F20, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:69:29: error: 'GC_BASE' defined but not used [-Werror=unused-const-variable=]
69 | static const struct IP_BASE GC_BASE ={ { { { 0x00001260, 0x0000A000, 0, 0, 0 } },
| ^~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:63:29: error: 'FUSE_BASE' defined but not used [-Werror=unused-const-variable=]
63 | static const struct IP_BASE FUSE_BASE ={ { { { 0x00017400, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:57:29: error: 'DMU_BASE' defined but not used [-Werror=unused-const-variable=]
57 | static const struct IP_BASE DMU_BASE ={ { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:51:29: error: 'DF_BASE' defined but not used [-Werror=unused-const-variable=]
51 | static const struct IP_BASE DF_BASE ={ { { { 0x00007000, 0, 0, 0, 0 } },
| ^~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:45:29: error: 'CLK_BASE' defined but not used [-Werror=unused-const-variable=]
45 | static const struct IP_BASE CLK_BASE ={ { { { 0x00016C00, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:39:29: error: 'ATHUB_BASE' defined but not used [-Werror=unused-const-variable=]
39 | static const struct IP_BASE ATHUB_BASE ={ { { { 0x00000C00, 0, 0, 0, 0 } },
| ^~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:59:5: error: no previous prototype for 'rn_get_active_display_cnt_wa' [-Werror=missing-prototypes]
59 | int rn_get_active_display_cnt_wa(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:91:6: error: no previous prototype for 'rn_set_low_power_state' [-Werror=missing-prototypes]
91 | void rn_set_low_power_state(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:125:6: error: no previous prototype for 'rn_update_clocks' [-Werror=missing-prototypes]
125 | void rn_update_clocks(struct clk_mgr *clk_mgr_base,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:441:6: error: no previous prototype for 'rn_get_clk_states' [-Werror=missing-prototypes]
441 | void rn_get_clk_states(struct clk_mgr *clk_mgr_base, struct clk_states *s)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:451:6: error: no previous prototype for 'rn_enable_pme_wa' [-Werror=missing-prototypes]
451 | void rn_enable_pme_wa(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:458:6: error: no previous prototype for 'rn_init_clocks' [-Werror=missing-prototypes]
458 | void rn_init_clocks(struct clk_mgr *clk_mgr)
| ^~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_dpp_dscl.c:554:6: error: no previous prototype for 'dpp1_dscl_set_scaler_auto_scale' [-Werror=missing-prototypes]
554 | void dpp1_dscl_set_scaler_auto_scale(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_dpp_dscl.c:28:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:89:5: error: no previous prototype for 'rn_vbios_smu_send_msg_with_param' [-Werror=missing-prototypes]
89 | int rn_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr, unsigned int msg_id, unsigned int param)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:110:5: error: no previous prototype for 'rn_vbios_smu_get_smu_version' [-Werror=missing-prototypes]
110 | int rn_vbios_smu_get_smu_version(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:119:5: error: no previous prototype for 'rn_vbios_smu_set_dispclk' [-Werror=missing-prototypes]
119 | int rn_vbios_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_dispclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:146:5: error: no previous prototype for 'rn_vbios_smu_set_dprefclk' [-Werror=missing-prototypes]
146 | int rn_vbios_smu_set_dprefclk(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:160:5: error: no previous prototype for 'rn_vbios_smu_set_hard_min_dcfclk' [-Werror=missing-prototypes]
160 | int rn_vbios_smu_set_hard_min_dcfclk(struct clk_mgr_internal *clk_mgr, int requested_dcfclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:175:5: error: no previous prototype for 'rn_vbios_smu_set_min_deep_sleep_dcfclk' [-Werror=missing-prototypes]
175 | int rn_vbios_smu_set_min_deep_sleep_dcfclk(struct clk_mgr_internal *clk_mgr, int requested_min_ds_dcfclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:190:6: error: no previous prototype for 'rn_vbios_smu_set_phyclk' [-Werror=missing-prototypes]
190 | void rn_vbios_smu_set_phyclk(struct clk_mgr_internal *clk_mgr, int requested_phyclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:198:5: error: no previous prototype for 'rn_vbios_smu_set_dppclk' [-Werror=missing-prototypes]
198 | int rn_vbios_smu_set_dppclk(struct clk_mgr_internal *clk_mgr, int requested_dpp_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:214:6: error: no previous prototype for 'rn_vbios_smu_set_dcn_low_power_state' [-Werror=missing-prototypes]
214 | void rn_vbios_smu_set_dcn_low_power_state(struct clk_mgr_internal *clk_mgr, enum dcn_pwr_state state)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:229:6: error: no previous prototype for 'rn_vbios_smu_enable_48mhz_tmdp_refclk_pwrdwn' [-Werror=missing-prototypes]
229 | void rn_vbios_smu_enable_48mhz_tmdp_refclk_pwrdwn(struct clk_mgr_internal *clk_mgr, bool enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:237:6: error: no previous prototype for 'rn_vbios_smu_enable_pme_wa' [-Werror=missing-prototypes]
237 | void rn_vbios_smu_enable_pme_wa(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:245:5: error: no previous prototype for 'rn_vbios_smu_is_periodic_retraining_disabled' [-Werror=missing-prototypes]
245 | int rn_vbios_smu_is_periodic_retraining_disabled(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_init.c:143:6: error: no previous prototype for 'dcn21_hw_sequencer_construct' [-Werror=missing-prototypes]
143 | void dcn21_hw_sequencer_construct(struct dc *dc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_init.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn301/vg_clk_mgr.c:92:6: error: no previous prototype for 'vg_update_clocks' [-Werror=missing-prototypes]
92 | void vg_update_clocks(struct clk_mgr *clk_mgr_base,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn301/vg_clk_mgr.c:371:6: error: no previous prototype for 'vg_get_clk_states' [-Werror=missing-prototypes]
371 | void vg_get_clk_states(struct clk_mgr *clk_mgr_base, struct clk_states *s)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn301/vg_clk_mgr.c:389:6: error: no previous prototype for 'vg_init_clocks' [-Werror=missing-prototypes]
389 | void vg_init_clocks(struct clk_mgr *clk_mgr)
| ^~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn301/vg_clk_mgr.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
..
vim +/DP_SINK_DEVICE_STR_ID_2 +121 drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h
119
> 120 static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
> 121 static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
122
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[dhowells-fs:fscache-rewrite-indexing-2 50/64] fs/cachefiles/io.c:483 __cachefiles_prepare_write() error: uninitialized symbol 'ret'.
by Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-rewrite-indexing-2
head: 90bb44e5d6dcd202b7443fbe2dd1f71cd408b942
commit: 0cdb319c9ee8e62be3f3c395eabfd746515a8c9b [50/64] cachefiles: Implement the I/O routines
config: powerpc-randconfig-m031-20211101 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
fs/cachefiles/io.c:483 __cachefiles_prepare_write() error: uninitialized symbol 'ret'.
vim +/ret +483 fs/cachefiles/io.c
0cdb319c9ee8e6 David Howells 2021-10-21 424 static int __cachefiles_prepare_write(struct netfs_cache_resources *cres,
0cdb319c9ee8e6 David Howells 2021-10-21 425 loff_t *_start, size_t *_len, loff_t i_size,
0cdb319c9ee8e6 David Howells 2021-10-21 426 bool no_space_allocated_yet)
0cdb319c9ee8e6 David Howells 2021-10-21 427 {
0cdb319c9ee8e6 David Howells 2021-10-21 428 struct cachefiles_object *object = cachefiles_cres_object(cres);
0cdb319c9ee8e6 David Howells 2021-10-21 429 struct cachefiles_cache *cache = object->volume->cache;
0cdb319c9ee8e6 David Howells 2021-10-21 430 struct file *file = cachefiles_cres_file(cres);
0cdb319c9ee8e6 David Howells 2021-10-21 431 loff_t start = *_start, pos;
0cdb319c9ee8e6 David Howells 2021-10-21 432 size_t len = *_len, down;
0cdb319c9ee8e6 David Howells 2021-10-21 433 int ret;
^^^^^^^^
0cdb319c9ee8e6 David Howells 2021-10-21 434
0cdb319c9ee8e6 David Howells 2021-10-21 435 /* Round to DIO size */
0cdb319c9ee8e6 David Howells 2021-10-21 436 down = start - round_down(start, PAGE_SIZE);
0cdb319c9ee8e6 David Howells 2021-10-21 437 *_start = start - down;
0cdb319c9ee8e6 David Howells 2021-10-21 438 *_len = round_up(down + len, PAGE_SIZE);
0cdb319c9ee8e6 David Howells 2021-10-21 439
0cdb319c9ee8e6 David Howells 2021-10-21 440 /* We need to work out whether there's sufficient disk space to perform
0cdb319c9ee8e6 David Howells 2021-10-21 441 * the write - but we can skip that check if we have space already
0cdb319c9ee8e6 David Howells 2021-10-21 442 * allocated.
0cdb319c9ee8e6 David Howells 2021-10-21 443 */
0cdb319c9ee8e6 David Howells 2021-10-21 444 if (no_space_allocated_yet)
0cdb319c9ee8e6 David Howells 2021-10-21 445 goto check_space;
0cdb319c9ee8e6 David Howells 2021-10-21 446
0cdb319c9ee8e6 David Howells 2021-10-21 447 pos = cachefiles_inject_read_error();
0cdb319c9ee8e6 David Howells 2021-10-21 448 if (pos == 0)
0cdb319c9ee8e6 David Howells 2021-10-21 449 pos = vfs_llseek(file, *_start, SEEK_DATA);
0cdb319c9ee8e6 David Howells 2021-10-21 450 if (pos < 0 && pos >= (loff_t)-MAX_ERRNO) {
0cdb319c9ee8e6 David Howells 2021-10-21 451 if (pos == -ENXIO)
0cdb319c9ee8e6 David Howells 2021-10-21 452 goto check_space; /* Unallocated tail */
0cdb319c9ee8e6 David Howells 2021-10-21 453 trace_cachefiles_io_error(object, file_inode(file), pos,
0cdb319c9ee8e6 David Howells 2021-10-21 454 cachefiles_trace_seek_error);
0cdb319c9ee8e6 David Howells 2021-10-21 455 return pos;
0cdb319c9ee8e6 David Howells 2021-10-21 456 }
0cdb319c9ee8e6 David Howells 2021-10-21 457 if ((u64)pos >= (u64)*_start + *_len)
0cdb319c9ee8e6 David Howells 2021-10-21 458 goto check_space; /* Unallocated region */
0cdb319c9ee8e6 David Howells 2021-10-21 459
0cdb319c9ee8e6 David Howells 2021-10-21 460 /* We have a block that's at least partially filled - if we're low on
0cdb319c9ee8e6 David Howells 2021-10-21 461 * space, we need to see if it's fully allocated. If it's not, we may
0cdb319c9ee8e6 David Howells 2021-10-21 462 * want to cull it.
0cdb319c9ee8e6 David Howells 2021-10-21 463 */
0cdb319c9ee8e6 David Howells 2021-10-21 464 if (cachefiles_has_space(cache, 0, *_len / PAGE_SIZE) == 0)
0cdb319c9ee8e6 David Howells 2021-10-21 465 return 0; /* Enough space to simply overwrite the whole block */
0cdb319c9ee8e6 David Howells 2021-10-21 466
0cdb319c9ee8e6 David Howells 2021-10-21 467 pos = cachefiles_inject_read_error();
0cdb319c9ee8e6 David Howells 2021-10-21 468 if (pos == 0)
0cdb319c9ee8e6 David Howells 2021-10-21 469 pos = vfs_llseek(file, *_start, SEEK_HOLE);
0cdb319c9ee8e6 David Howells 2021-10-21 470 if (pos < 0 && pos >= (loff_t)-MAX_ERRNO) {
0cdb319c9ee8e6 David Howells 2021-10-21 471 trace_cachefiles_io_error(object, file_inode(file), pos,
0cdb319c9ee8e6 David Howells 2021-10-21 472 cachefiles_trace_seek_error);
0cdb319c9ee8e6 David Howells 2021-10-21 473 return pos;
0cdb319c9ee8e6 David Howells 2021-10-21 474 }
0cdb319c9ee8e6 David Howells 2021-10-21 475 if ((u64)pos >= (u64)*_start + *_len)
0cdb319c9ee8e6 David Howells 2021-10-21 476 return 0; /* Fully allocated */
0cdb319c9ee8e6 David Howells 2021-10-21 477
0cdb319c9ee8e6 David Howells 2021-10-21 478 /* Partially allocated, but insufficient space: cull. */
0cdb319c9ee8e6 David Howells 2021-10-21 479 pos = cachefiles_inject_remove_error();
0cdb319c9ee8e6 David Howells 2021-10-21 480 if (pos == 0)
0cdb319c9ee8e6 David Howells 2021-10-21 481 ret = vfs_fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
0cdb319c9ee8e6 David Howells 2021-10-21 482 *_start, *_len);
"ret" not set on else path.
0cdb319c9ee8e6 David Howells 2021-10-21 @483 if (ret < 0) {
0cdb319c9ee8e6 David Howells 2021-10-21 484 trace_cachefiles_io_error(object, file_inode(file), ret,
0cdb319c9ee8e6 David Howells 2021-10-21 485 cachefiles_trace_fallocate_error);
0cdb319c9ee8e6 David Howells 2021-10-21 486 cachefiles_io_error_obj(object,
0cdb319c9ee8e6 David Howells 2021-10-21 487 "CacheFiles: fallocate failed (%d)\n", ret);
0cdb319c9ee8e6 David Howells 2021-10-21 488 ret = -EIO;
0cdb319c9ee8e6 David Howells 2021-10-21 489 }
0cdb319c9ee8e6 David Howells 2021-10-21 490
0cdb319c9ee8e6 David Howells 2021-10-21 491 return ret;
0cdb319c9ee8e6 David Howells 2021-10-21 492
0cdb319c9ee8e6 David Howells 2021-10-21 493 check_space:
0cdb319c9ee8e6 David Howells 2021-10-21 494 return cachefiles_has_space(cache, 0, *_len / PAGE_SIZE);
0cdb319c9ee8e6 David Howells 2021-10-21 495 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
{standard input}:5923: Error: pcrel offset for branch to .LS002D too far (0x32)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: e78b1b545c6cfe9f87fc577128e00026fff230ba drm/nouveau/kms/nv50: workaround EFI GOP window channel format differences
date: 3 months ago
config: csky-randconfig-r004-20211002 (attached as .config)
compiler: csky-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e78b1b545c6cfe9f87fc577128e00026fff230ba
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash
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/nouveau/dispnv50/disp.c: In function 'nv50_mstm_cleanup':
drivers/gpu/drm/nouveau/dispnv50/disp.c:1389:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1389 | int ret;
| ^~~
drivers/gpu/drm/nouveau/dispnv50/disp.c: In function 'nv50_mstm_prepare':
drivers/gpu/drm/nouveau/dispnv50/disp.c:1413:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1413 | int ret;
| ^~~
drivers/gpu/drm/nouveau/dispnv50/disp.c: At top level:
drivers/gpu/drm/nouveau/dispnv50/disp.c:2660:1: warning: no previous prototype for 'nv50_display_create' [-Wmissing-prototypes]
2660 | nv50_display_create(struct drm_device *dev)
| ^~~~~~~~~~~~~~~~~~~
{standard input}: Assembler messages:
>> {standard input}:5923: Error: pcrel offset for branch to .LS002D too far (0x32)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
Re: [PATCH] iwlwifi: mvm: retry init flow if failed
by kernel test robot
Hi Luca,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on kvalo-wireless-drivers-next/master]
[also build test ERROR on kvalo-wireless-drivers/master v5.15 next-20211110]
[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/Luca-Coelho/iwlwifi-mvm-retry-in...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-ne... master
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/71e548532c8247fa57b9e952895bba060...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Luca-Coelho/iwlwifi-mvm-retry-init-flow-if-failed/20211110-013343
git checkout 71e548532c8247fa57b9e952895bba06002eddb0
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
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/net/wireless/intel/iwlwifi/iwl-drv.c: In function '_iwl_op_mode_start':
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1342:13: error: invalid storage class for function '_iwl_op_mode_stop'
1342 | static void _iwl_op_mode_stop(struct iwl_drv *drv)
| ^~~~~~~~~~~~~~~~~
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1342:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
1342 | static void _iwl_op_mode_stop(struct iwl_drv *drv)
| ^~~~~~
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1362:13: error: invalid storage class for function 'iwl_req_fw_callback'
1362 | static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1756:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
1756 | int iwl_opmode_register(const char *name, const struct iwl_op_mode_ops *ops)
| ^~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1780:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
1780 | void iwl_opmode_deregister(const char *name)
| ^~~~
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1802:19: error: invalid storage class for function 'iwl_drv_init'
1802 | static int __init iwl_drv_init(void)
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1802:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
1802 | static int __init iwl_drv_init(void)
| ^~~~~~
In file included from arch/arc/include/asm/smp.h:12,
from arch/arc/include/asm/cmpxchg.h:13,
from arch/arc/include/asm/atomic.h:13,
from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:188,
from include/linux/bitops.h:33,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/swait.h:5,
from include/linux/completion.h:12,
from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:7:
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1828:13: error: initializer element is not constant
1828 | module_init(iwl_drv_init);
| ^~~~~~~~~~~~
include/linux/init.h:250:55: note: in definition of macro '____define_initcall'
250 | __attribute__((__section__(__sec))) = fn;
| ^~
include/linux/init.h:260:9: note: in expansion of macro '__unique_initcall'
260 | __unique_initcall(fn, id, __sec, __initcall_id(fn))
| ^~~~~~~~~~~~~~~~~
include/linux/init.h:262:35: note: in expansion of macro '___define_initcall'
262 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id)
| ^~~~~~~~~~~~~~~~~~
include/linux/init.h:291:41: note: in expansion of macro '__define_initcall'
291 | #define device_initcall(fn) __define_initcall(fn, 6)
| ^~~~~~~~~~~~~~~~~
include/linux/init.h:296:24: note: in expansion of macro 'device_initcall'
296 | #define __initcall(fn) device_initcall(fn)
| ^~~~~~~~~~~~~~~
include/linux/module.h:88:25: note: in expansion of macro '__initcall'
88 | #define module_init(x) __initcall(x);
| ^~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1828:1: note: in expansion of macro 'module_init'
1828 | module_init(iwl_drv_init);
| ^~~~~~~~~~~
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1830:20: error: invalid storage class for function 'iwl_drv_exit'
1830 | static void __exit iwl_drv_exit(void)
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1830:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
1830 | static void __exit iwl_drv_exit(void)
| ^~~~~~
In file included from arch/arc/include/asm/smp.h:12,
from arch/arc/include/asm/cmpxchg.h:13,
from arch/arc/include/asm/atomic.h:13,
from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:188,
from include/linux/bitops.h:33,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/swait.h:5,
from include/linux/completion.h:12,
from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:7:
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1838:13: error: initializer element is not constant
1838 | module_exit(iwl_drv_exit);
| ^~~~~~~~~~~~
include/linux/init.h:299:57: note: in definition of macro '__exitcall'
299 | static exitcall_t __exitcall_##fn __exit_call = fn
| ^~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1838:1: note: in expansion of macro 'module_exit'
1838 | module_exit(iwl_drv_exit);
| ^~~~~~~~~~~
In file included from include/linux/module.h:22,
from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:10:
>> include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_debug'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:436:35: note: in expansion of macro '__param_check'
436 | #define param_check_uint(name, p) __param_check(name, p, unsigned int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_uint'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1841:1: note: in expansion of macro 'module_param_named'
1841 | module_param_named(debug, iwlwifi_mod_params.debug_level, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:409:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~
include/linux/moduleparam.h:436:35: note: in expansion of macro '__param_check'
436 | #define param_check_uint(name, p) __param_check(name, p, unsigned int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_uint'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1841:1: note: in expansion of macro 'module_param_named'
1841 | module_param_named(debug, iwlwifi_mod_params.debug_level, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1841:1: note: in expansion of macro 'module_param_named'
1841 | module_param_named(debug, iwlwifi_mod_params.debug_level, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:151:50: error: initializer element is not constant
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1841:1: note: in expansion of macro 'module_param_named'
1841 | module_param_named(debug, iwlwifi_mod_params.debug_level, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: note: (near initialization for '__param_debug.<anonymous>.arg')
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1841:1: note: in expansion of macro 'module_param_named'
1841 | module_param_named(debug, iwlwifi_mod_params.debug_level, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_swcrypto'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:429:34: note: in expansion of macro '__param_check'
429 | #define param_check_int(name, p) __param_check(name, p, int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_int'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1845:1: note: in expansion of macro 'module_param_named'
1845 | module_param_named(swcrypto, iwlwifi_mod_params.swcrypto, int, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1845:1: note: in expansion of macro 'module_param_named'
1845 | module_param_named(swcrypto, iwlwifi_mod_params.swcrypto, int, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:151:50: error: initializer element is not constant
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1845:1: note: in expansion of macro 'module_param_named'
1845 | module_param_named(swcrypto, iwlwifi_mod_params.swcrypto, int, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: note: (near initialization for '__param_swcrypto.<anonymous>.arg')
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1845:1: note: in expansion of macro 'module_param_named'
1845 | module_param_named(swcrypto, iwlwifi_mod_params.swcrypto, int, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_11n_disable'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:436:35: note: in expansion of macro '__param_check'
436 | #define param_check_uint(name, p) __param_check(name, p, unsigned int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_uint'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1847:1: note: in expansion of macro 'module_param_named'
1847 | module_param_named(11n_disable, iwlwifi_mod_params.disable_11n, uint, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1847:1: note: in expansion of macro 'module_param_named'
1847 | module_param_named(11n_disable, iwlwifi_mod_params.disable_11n, uint, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:151:50: error: initializer element is not constant
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1847:1: note: in expansion of macro 'module_param_named'
1847 | module_param_named(11n_disable, iwlwifi_mod_params.disable_11n, uint, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: note: (near initialization for '__param_11n_disable.<anonymous>.arg')
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1847:1: note: in expansion of macro 'module_param_named'
1847 | module_param_named(11n_disable, iwlwifi_mod_params.disable_11n, uint, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_amsdu_size'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:429:34: note: in expansion of macro '__param_check'
429 | #define param_check_int(name, p) __param_check(name, p, int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_int'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1850:1: note: in expansion of macro 'module_param_named'
1850 | module_param_named(amsdu_size, iwlwifi_mod_params.amsdu_size, int, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1850:1: note: in expansion of macro 'module_param_named'
1850 | module_param_named(amsdu_size, iwlwifi_mod_params.amsdu_size, int, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:151:50: error: initializer element is not constant
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1850:1: note: in expansion of macro 'module_param_named'
1850 | module_param_named(amsdu_size, iwlwifi_mod_params.amsdu_size, int, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: note: (near initialization for '__param_amsdu_size.<anonymous>.arg')
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1850:1: note: in expansion of macro 'module_param_named'
1850 | module_param_named(amsdu_size, iwlwifi_mod_params.amsdu_size, int, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_fw_restart'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:468:35: note: in expansion of macro '__param_check'
468 | #define param_check_bool(name, p) __param_check(name, p, bool)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_bool'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1854:1: note: in expansion of macro 'module_param_named'
1854 | module_param_named(fw_restart, iwlwifi_mod_params.fw_restart, bool, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1854:1: note: in expansion of macro 'module_param_named'
1854 | module_param_named(fw_restart, iwlwifi_mod_params.fw_restart, bool, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:151:50: error: initializer element is not constant
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1854:1: note: in expansion of macro 'module_param_named'
1854 | module_param_named(fw_restart, iwlwifi_mod_params.fw_restart, bool, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: note: (near initialization for '__param_fw_restart.<anonymous>.arg')
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1854:1: note: in expansion of macro 'module_param_named'
1854 | module_param_named(fw_restart, iwlwifi_mod_params.fw_restart, bool, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_nvm_file'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:462:36: note: in expansion of macro '__param_check'
462 | #define param_check_charp(name, p) __param_check(name, p, char *)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_charp'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1857:1: note: in expansion of macro 'module_param_named'
1857 | module_param_named(nvm_file, iwlwifi_mod_params.nvm_file, charp, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1857:1: note: in expansion of macro 'module_param_named'
1857 | module_param_named(nvm_file, iwlwifi_mod_params.nvm_file, charp, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:151:50: error: initializer element is not constant
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1857:1: note: in expansion of macro 'module_param_named'
1857 | module_param_named(nvm_file, iwlwifi_mod_params.nvm_file, charp, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: note: (near initialization for '__param_nvm_file.<anonymous>.arg')
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1857:1: note: in expansion of macro 'module_param_named'
1857 | module_param_named(nvm_file, iwlwifi_mod_params.nvm_file, charp, 0444);
| ^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_uapsd_disable'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:436:35: note: in expansion of macro '__param_check'
436 | #define param_check_uint(name, p) __param_check(name, p, unsigned int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_uint'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1860:1: note: in expansion of macro 'module_param_named'
1860 | module_param_named(uapsd_disable, iwlwifi_mod_params.uapsd_disable, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1860:1: note: in expansion of macro 'module_param_named'
1860 | module_param_named(uapsd_disable, iwlwifi_mod_params.uapsd_disable, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: error: initializer element is not constant
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1860:1: note: in expansion of macro 'module_param_named'
1860 | module_param_named(uapsd_disable, iwlwifi_mod_params.uapsd_disable, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: note: (near initialization for '__param_uapsd_disable.<anonymous>.arg')
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1860:1: note: in expansion of macro 'module_param_named'
1860 | module_param_named(uapsd_disable, iwlwifi_mod_params.uapsd_disable, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_enable_ini'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:468:35: note: in expansion of macro '__param_check'
468 | #define param_check_bool(name, p) __param_check(name, p, bool)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_bool'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1863:1: note: in expansion of macro 'module_param_named'
1863 | module_param_named(enable_ini, iwlwifi_mod_params.enable_ini,
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1863:1: note: in expansion of macro 'module_param_named'
1863 | module_param_named(enable_ini, iwlwifi_mod_params.enable_ini,
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: error: initializer element is not constant
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1863:1: note: in expansion of macro 'module_param_named'
1863 | module_param_named(enable_ini, iwlwifi_mod_params.enable_ini,
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:50: note: (near initialization for '__param_enable_ini.<anonymous>.arg')
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^
include/linux/moduleparam.h:294:61: note: in definition of macro '__module_param_call'
294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
| ^~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1863:1: note: in expansion of macro 'module_param_named'
1863 | module_param_named(enable_ini, iwlwifi_mod_params.enable_ini,
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_bt_coex_active'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:468:35: note: in expansion of macro '__param_check'
468 | #define param_check_bool(name, p) __param_check(name, p, bool)
vim +/_iwl_op_mode_stop +1342 drivers/net/wireless/intel/iwlwifi/iwl-drv.c
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1341
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 @1342 static void _iwl_op_mode_stop(struct iwl_drv *drv)
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1343 {
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1344 /* op_mode can be NULL if its start failed */
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1345 if (drv->op_mode) {
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1346 iwl_op_mode_stop(drv->op_mode);
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1347 drv->op_mode = NULL;
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1348
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1349 #ifdef CONFIG_IWLWIFI_DEBUGFS
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1350 debugfs_remove_recursive(drv->dbgfs_op_mode);
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1351 drv->dbgfs_op_mode = NULL;
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1352 #endif
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1353 }
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1354 }
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1355
7d4ced86997f69 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Lee Jones 2020-09-10 1356 /*
1c8e11e117c28e drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2012-07-16 1357 * iwl_req_fw_callback - callback when firmware was loaded
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1358 *
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1359 * If loaded successfully, copies the firmware into buffers
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1360 * for the card to fetch (via DMA).
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1361 */
1c8e11e117c28e drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2012-07-16 @1362 static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1363 {
965974a631756a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-06 1364 struct iwl_drv *drv = context;
965974a631756a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-06 1365 struct iwl_fw *fw = &drv->fw;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1366 struct iwl_ucode_header *ucode;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1367 struct iwlwifi_opmode_table *op;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1368 int err;
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1369 struct iwl_firmware_pieces *pieces;
0c4881ced8d2e3 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2016-12-13 1370 const unsigned int api_max = drv->trans->cfg->ucode_api_max;
0c4881ced8d2e3 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2016-12-13 1371 const unsigned int api_min = drv->trans->cfg->ucode_api_min;
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1372 size_t trigger_tlv_sz[FW_DBG_TRIGGER_MAX];
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1373 u32 api_ver;
6dfa8d019cd21d drivers/net/wireless/iwlwifi/iwl-drv.c David Spinadel 2012-03-10 1374 int i;
d4b10483223cf1 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-12 1375 bool load_module = false;
e6eb8ca9e486a8 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben-Ami 2015-08-30 1376 bool usniffer_images = false;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1377
66140adc22aacd drivers/net/wireless/iwlwifi/iwl-drv.c Luciano Coelho 2013-08-12 1378 fw->ucode_capa.max_probe_length = IWL_DEFAULT_MAX_PROBE_LENGTH;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1379 fw->ucode_capa.standard_phy_calibration_size =
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1380 IWL_DEFAULT_STANDARD_PHY_CALIBRATE_TBL_SIZE;
762533ba9c0306 drivers/net/wireless/iwlwifi/iwl-drv.c David Spinadel 2014-06-05 1381 fw->ucode_capa.n_scan_channels = IWL_DEFAULT_SCAN_CHANNELS;
be9ae34ead42f8 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Nathan Errera 2020-10-08 1382 fw->ucode_capa.num_stations = IWL_MVM_STATION_COUNT_MAX;
971377e67074a0 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Shahar S Matityahu 2019-01-01 1383 /* dump all fw memory areas by default */
971377e67074a0 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Shahar S Matityahu 2019-01-01 1384 fw->dbg.dump_mask = 0xffffffff;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1385
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1386 pieces = kzalloc(sizeof(*pieces), GFP_KERNEL);
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1387 if (!pieces)
53d515ec677a19 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2017-02-28 1388 goto out_free_fw;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1389
9d9b21d1b61647 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Emmanuel Grumbach 2016-03-24 1390 if (!ucode_raw)
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1391 goto try_again;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1392
2953c393a0a469 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Shahar S Matityahu 2019-03-04 1393 IWL_DEBUG_FW_INFO(drv, "Loaded firmware file '%s' (%zd bytes).\n",
965974a631756a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-06 1394 drv->firmware_name, ucode_raw->size);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1395
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1396 /* Make sure that we got at least the API version number */
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1397 if (ucode_raw->size < 4) {
965974a631756a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-06 1398 IWL_ERR(drv, "File size way too small!\n");
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1399 goto try_again;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1400 }
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1401
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1402 /* Data from ucode file: header followed by uCode images */
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1403 ucode = (struct iwl_ucode_header *)ucode_raw->data;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1404
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1405 if (ucode->ver)
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1406 err = iwl_parse_v1_v2_firmware(drv, ucode_raw, pieces);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1407 else
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1408 err = iwl_parse_tlv_firmware(drv, ucode_raw, pieces,
e6eb8ca9e486a8 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben-Ami 2015-08-30 1409 &fw->ucode_capa, &usniffer_images);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1410
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1411 if (err)
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1412 goto try_again;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1413
f0d8f38cd909e0 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2016-04-25 1414 if (fw_has_api(&drv->fw.ucode_capa, IWL_UCODE_TLV_API_NEW_VERSION))
7e1223b50089ab drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-02-03 1415 api_ver = drv->fw.ucode_ver;
f0d8f38cd909e0 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2016-04-25 1416 else
f0d8f38cd909e0 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2016-04-25 1417 api_ver = IWL_UCODE_API(drv->fw.ucode_ver);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1418
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1419 /*
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1420 * api_ver should match the api version forming part of the
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1421 * firmware filename ... but we don't check for that and only rely
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1422 * on the API version read from firmware header from here on forward
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1423 */
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1424 if (api_ver < api_min || api_ver > api_max) {
965974a631756a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-06 1425 IWL_ERR(drv,
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1426 "Driver unable to support your firmware API. "
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1427 "Driver supports v%u, firmware is v%u.\n",
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1428 api_max, api_ver);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1429 goto try_again;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1430 }
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1431
4db2c9aeb28762 drivers/net/wireless/iwlwifi/iwl-drv.c David Spinadel 2012-03-10 1432 /*
4db2c9aeb28762 drivers/net/wireless/iwlwifi/iwl-drv.c David Spinadel 2012-03-10 1433 * In mvm uCode there is no difference between data and instructions
4db2c9aeb28762 drivers/net/wireless/iwlwifi/iwl-drv.c David Spinadel 2012-03-10 1434 * sections.
4db2c9aeb28762 drivers/net/wireless/iwlwifi/iwl-drv.c David Spinadel 2012-03-10 1435 */
0c4881ced8d2e3 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2016-12-13 1436 if (fw->type == IWL_FW_DVM && validate_sec_sizes(drv, pieces,
0c4881ced8d2e3 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2016-12-13 1437 drv->trans->cfg))
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1438 goto try_again;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1439
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1440 /* Allocate ucode buffers for card's bus-master loading ... */
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1441
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1442 /* Runtime instructions and 2 copies of data:
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1443 * 1) unmodified from disk
1e37f79945b0b8 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Christoph Böhmwalder 2017-09-23 1444 * 2) backup cache for save/restore during power-downs
1e37f79945b0b8 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Christoph Böhmwalder 2017-09-23 1445 */
6dfa8d019cd21d drivers/net/wireless/iwlwifi/iwl-drv.c David Spinadel 2012-03-10 1446 for (i = 0; i < IWL_UCODE_TYPE_MAX; i++)
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1447 if (iwl_alloc_ucode(drv, pieces, i))
75813bde1f671a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-05-16 1448 goto out_free_fw;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1449
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1450 if (pieces->dbg_dest_tlv_init) {
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1451 size_t dbg_dest_size = sizeof(*drv->fw.dbg.dest_tlv) +
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1452 sizeof(drv->fw.dbg.dest_tlv->reg_ops[0]) *
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1453 drv->fw.dbg.n_dest_reg;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1454
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1455 drv->fw.dbg.dest_tlv = kmalloc(dbg_dest_size, GFP_KERNEL);
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1456
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1457 if (!drv->fw.dbg.dest_tlv)
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1458 goto out_free_fw;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1459
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1460 if (*pieces->dbg_dest_ver == 0) {
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1461 memcpy(drv->fw.dbg.dest_tlv, pieces->dbg_dest_tlv_v1,
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1462 dbg_dest_size);
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1463 } else {
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1464 struct iwl_fw_dbg_dest_tlv_v1 *dest_tlv =
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1465 drv->fw.dbg.dest_tlv;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1466
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1467 dest_tlv->version = pieces->dbg_dest_tlv->version;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1468 dest_tlv->monitor_mode =
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1469 pieces->dbg_dest_tlv->monitor_mode;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1470 dest_tlv->size_power =
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1471 pieces->dbg_dest_tlv->size_power;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1472 dest_tlv->wrap_count =
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1473 pieces->dbg_dest_tlv->wrap_count;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1474 dest_tlv->write_ptr_reg =
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1475 pieces->dbg_dest_tlv->write_ptr_reg;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1476 dest_tlv->base_shift =
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1477 pieces->dbg_dest_tlv->base_shift;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1478 memcpy(dest_tlv->reg_ops,
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1479 pieces->dbg_dest_tlv->reg_ops,
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1480 sizeof(drv->fw.dbg.dest_tlv->reg_ops[0]) *
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1481 drv->fw.dbg.n_dest_reg);
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1482
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1483 /* In version 1 of the destination tlv, which is
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1484 * relevant for internal buffer exclusively,
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1485 * the base address is part of given with the length
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1486 * of the buffer, and the size shift is give instead of
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1487 * end shift. We now store these values in base_reg,
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1488 * and end shift, and when dumping the data we'll
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1489 * manipulate it for extracting both the length and
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1490 * base address */
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1491 dest_tlv->base_reg = pieces->dbg_dest_tlv->cfg_reg;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1492 dest_tlv->end_shift =
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1493 pieces->dbg_dest_tlv->size_shift;
fd527eb5d22936 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben Ami 2017-08-16 1494 }
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1495 }
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1496
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1497 for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.conf_tlv); i++) {
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1498 if (pieces->dbg_conf_tlv[i]) {
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1499 drv->fw.dbg.conf_tlv[i] =
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1500 kmemdup(pieces->dbg_conf_tlv[i],
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1501 pieces->dbg_conf_tlv_len[i],
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1502 GFP_KERNEL);
a176e114ace4cc drivers/net/wireless/intel/iwlwifi/iwl-drv.c Chris Rorvick 2020-04-17 1503 if (!drv->fw.dbg.conf_tlv[i])
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1504 goto out_free_fw;
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1505 }
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1506 }
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1507
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1508 memset(&trigger_tlv_sz, 0xff, sizeof(trigger_tlv_sz));
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1509
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1510 trigger_tlv_sz[FW_DBG_TRIGGER_MISSED_BEACONS] =
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1511 sizeof(struct iwl_fw_dbg_trigger_missed_bcon);
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1512 trigger_tlv_sz[FW_DBG_TRIGGER_CHANNEL_SWITCH] = 0;
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1513 trigger_tlv_sz[FW_DBG_TRIGGER_FW_NOTIF] =
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1514 sizeof(struct iwl_fw_dbg_trigger_cmd);
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1515 trigger_tlv_sz[FW_DBG_TRIGGER_MLME] =
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1516 sizeof(struct iwl_fw_dbg_trigger_mlme);
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1517 trigger_tlv_sz[FW_DBG_TRIGGER_STATS] =
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1518 sizeof(struct iwl_fw_dbg_trigger_stats);
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1519 trigger_tlv_sz[FW_DBG_TRIGGER_RSSI] =
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1520 sizeof(struct iwl_fw_dbg_trigger_low_rssi);
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1521 trigger_tlv_sz[FW_DBG_TRIGGER_TXQ_TIMERS] =
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1522 sizeof(struct iwl_fw_dbg_trigger_txq_timer);
874c174eb9950a drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-25 1523 trigger_tlv_sz[FW_DBG_TRIGGER_TIME_EVENT] =
874c174eb9950a drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-25 1524 sizeof(struct iwl_fw_dbg_trigger_time_event);
4203263d8302be drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-04-15 1525 trigger_tlv_sz[FW_DBG_TRIGGER_BA] =
4203263d8302be drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-04-15 1526 sizeof(struct iwl_fw_dbg_trigger_ba);
1e8f1329aa6767 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben-Ami 2015-08-23 1527 trigger_tlv_sz[FW_DBG_TRIGGER_TDLS] =
1e8f1329aa6767 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben-Ami 2015-08-23 1528 sizeof(struct iwl_fw_dbg_trigger_tdls);
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1529
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1530 for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.trigger_tlv); i++) {
d2709ad723ff2a drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-01-29 1531 if (pieces->dbg_trigger_tlv[i]) {
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1532 /*
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1533 * If the trigger isn't long enough, WARN and exit.
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1534 * Someone is trying to debug something and he won't
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1535 * be able to catch the bug he is trying to chase.
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1536 * We'd better be noisy to be sure he knows what's
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1537 * going on.
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1538 */
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1539 if (WARN_ON(pieces->dbg_trigger_tlv_len[i] <
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1540 (trigger_tlv_sz[i] +
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1541 sizeof(struct iwl_fw_dbg_trigger_tlv))))
2841a2d3a1b4b4 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-03-19 1542 goto out_free_fw;
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1543 drv->fw.dbg.trigger_tlv_len[i] =
d2709ad723ff2a drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-01-29 1544 pieces->dbg_trigger_tlv_len[i];
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1545 drv->fw.dbg.trigger_tlv[i] =
d2709ad723ff2a drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-01-29 1546 kmemdup(pieces->dbg_trigger_tlv[i],
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1547 drv->fw.dbg.trigger_tlv_len[i],
d2709ad723ff2a drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2015-01-29 1548 GFP_KERNEL);
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1549 if (!drv->fw.dbg.trigger_tlv[i])
a6017b9030f280 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben-Ami 2016-03-14 1550 goto out_free_fw;
a6017b9030f280 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben-Ami 2016-03-14 1551 }
a6017b9030f280 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben-Ami 2016-03-14 1552 }
a6017b9030f280 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Golan Ben-Ami 2016-03-14 1553
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1554 /* Now that we can no longer fail, copy information */
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1555
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1556 drv->fw.dbg.mem_tlv = pieces->dbg_mem_tlv;
2ed1e019108252 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-10-20 1557 pieces->dbg_mem_tlv = NULL;
17b809c9b22e34 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2018-06-11 1558 drv->fw.dbg.n_mem_tlv = pieces->n_mem_tlv;
2ed1e019108252 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-10-20 1559
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1560 /*
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1561 * The (size - 16) / 12 formula is based on the information recorded
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1562 * for each event, which is of mode 1 (including timestamp) for all
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1563 * new microcodes that include this information.
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1564 */
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1565 fw->init_evtlog_ptr = pieces->init_evtlog_ptr;
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1566 if (pieces->init_evtlog_size)
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1567 fw->init_evtlog_size = (pieces->init_evtlog_size - 16)/12;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1568 else
0692fe41b36159 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-06 1569 fw->init_evtlog_size =
286ca8eb4d0a97 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2019-07-12 1570 drv->trans->trans_cfg->base_params->max_event_log_size;
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1571 fw->init_errlog_ptr = pieces->init_errlog_ptr;
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1572 fw->inst_evtlog_ptr = pieces->inst_evtlog_ptr;
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1573 if (pieces->inst_evtlog_size)
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1574 fw->inst_evtlog_size = (pieces->inst_evtlog_size - 16)/12;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1575 else
0692fe41b36159 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-06 1576 fw->inst_evtlog_size =
286ca8eb4d0a97 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2019-07-12 1577 drv->trans->trans_cfg->base_params->max_event_log_size;
490fefebb6db4c drivers/net/wireless/iwlwifi/iwl-drv.c Liad Kaufman 2014-09-16 1578 fw->inst_errlog_ptr = pieces->inst_errlog_ptr;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1579
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1580 /*
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1581 * figure out the offset of chain noise reset and gain commands
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1582 * base on the size of standard phy calibration commands table size
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1583 */
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1584 if (fw->ucode_capa.standard_phy_calibration_size >
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1585 IWL_MAX_PHY_CALIBRATE_TBL_SIZE)
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1586 fw->ucode_capa.standard_phy_calibration_size =
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1587 IWL_MAX_STANDARD_PHY_CALIBRATE_TBL_SIZE;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1588
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1589 /* We have our copies now, allow OS release its copies */
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1590 release_firmware(ucode_raw);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1591
ff1ffb850b7ac6 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-06 1592 mutex_lock(&iwlwifi_opmode_table_mtx);
ca221c9b946cd4 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-04-28 1593 switch (fw->type) {
ca221c9b946cd4 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-04-28 1594 case IWL_FW_DVM:
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1595 op = &iwlwifi_opmode_table[DVM_OP_MODE];
ca221c9b946cd4 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-04-28 1596 break;
ca221c9b946cd4 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-04-28 1597 default:
ca221c9b946cd4 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-04-28 1598 WARN(1, "Invalid fw type %d\n", fw->type);
10a0472d1850a9 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Gustavo A. R. Silva 2020-11-20 1599 fallthrough;
ca221c9b946cd4 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-04-28 1600 case IWL_FW_MVM:
ca221c9b946cd4 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-04-28 1601 op = &iwlwifi_opmode_table[MVM_OP_MODE];
ca221c9b946cd4 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-04-28 1602 break;
ca221c9b946cd4 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-04-28 1603 }
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1604
2b2719c7b5bbe3 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-03-26 1605 IWL_INFO(drv, "loaded firmware version %s op_mode %s\n",
2b2719c7b5bbe3 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-03-26 1606 drv->fw.fw_version, op->name);
2b2719c7b5bbe3 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-03-26 1607
c03fe6d3b31c75 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Shahar S Matityahu 2019-07-08 1608 iwl_dbg_tlv_load_bin(drv->trans->dev, drv->trans);
c03fe6d3b31c75 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Shahar S Matityahu 2019-07-08 1609
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1610 /* add this device to the list of devices using this op_mode */
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1611 list_add_tail(&drv->list, &op->drv);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1612
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1613 if (op->ops) {
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1614 drv->op_mode = _iwl_op_mode_start(drv, op);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1615
daf67ce8cffd14 drivers/net/wireless/iwlwifi/iwl-drv.c Dan Carpenter 2012-06-14 1616 if (!drv->op_mode) {
daf67ce8cffd14 drivers/net/wireless/iwlwifi/iwl-drv.c Dan Carpenter 2012-06-14 1617 mutex_unlock(&iwlwifi_opmode_table_mtx);
f69a23b795d6ee drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-05 1618 goto out_unbind;
daf67ce8cffd14 drivers/net/wireless/iwlwifi/iwl-drv.c Dan Carpenter 2012-06-14 1619 }
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1620 } else {
d4b10483223cf1 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-12 1621 load_module = true;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1622 }
ff1ffb850b7ac6 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-06 1623 mutex_unlock(&iwlwifi_opmode_table_mtx);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1624
f69a23b795d6ee drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-05 1625 /*
f69a23b795d6ee drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-05 1626 * Complete the firmware request last so that
f69a23b795d6ee drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-05 1627 * a driver unbind (stop) doesn't run while we
f69a23b795d6ee drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-05 1628 * are doing the start() above.
f69a23b795d6ee drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-05 1629 */
f69a23b795d6ee drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-05 1630 complete(&drv->request_firmware_complete);
d4b10483223cf1 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-12 1631
d4b10483223cf1 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-12 1632 /*
d4b10483223cf1 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-12 1633 * Load the module last so we don't block anything
d4b10483223cf1 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-12 1634 * else from proceeding if the module fails to load
d4b10483223cf1 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-12 1635 * or hangs loading.
d4b10483223cf1 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-12 1636 */
1618b2b02a3a0e drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-04-04 1637 if (load_module) {
06a1e85e66bac2 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2017-02-28 1638 request_module("%s", op->name);
8edf3fd6eb0649 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-05-28 1639 #ifdef CONFIG_IWLWIFI_OPMODE_MODULAR
1618b2b02a3a0e drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-04-04 1640 if (err)
1618b2b02a3a0e drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-04-04 1641 IWL_ERR(drv,
1618b2b02a3a0e drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-04-04 1642 "failed to load module %s (error %d), is dynamic loading enabled?\n",
1618b2b02a3a0e drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-04-04 1643 op->name, err);
8edf3fd6eb0649 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-05-28 1644 #endif
1618b2b02a3a0e drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-04-04 1645 }
2ed1e019108252 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-10-20 1646 goto free;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1647
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1648 try_again:
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1649 /* try next, if any */
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1650 release_firmware(ucode_raw);
965974a631756a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-06 1651 if (iwl_request_firmware(drv, false))
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1652 goto out_unbind;
2ed1e019108252 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-10-20 1653 goto free;
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1654
75813bde1f671a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-05-16 1655 out_free_fw:
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1656 release_firmware(ucode_raw);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1657 out_unbind:
965974a631756a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-06 1658 complete(&drv->request_firmware_complete);
93faaeea4f2873 drivers/net/wireless/iwlwifi/iwl-drv.c Emmanuel Grumbach 2012-03-22 1659 device_release_driver(drv->trans->dev);
2ed1e019108252 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-10-20 1660 free:
53d515ec677a19 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2017-02-28 1661 if (pieces) {
eef187a7b8a144 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2016-10-25 1662 for (i = 0; i < ARRAY_SIZE(pieces->img); i++)
eef187a7b8a144 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Sara Sharon 2016-10-25 1663 kfree(pieces->img[i].sec);
2ed1e019108252 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-10-20 1664 kfree(pieces->dbg_mem_tlv);
2ed1e019108252 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2016-10-20 1665 kfree(pieces);
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1666 }
53d515ec677a19 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2017-02-28 1667 }
15854ef94f54ae drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-03-05 1668
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[chrome-os:chromeos-5.4 12/12] arch/x86/include/asm/kvm_host.h:1628:32: error: 'APIC_DM_FIXED' undeclared
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 0769575e1b1930cc8a6eb33f51e316ab8d586908
commit: 0769575e1b1930cc8a6eb33f51e316ab8d586908 [12/12] Revert "FIXUP: BACKPORT: FROMLIST: x86/kvm: Add definitions for virtual suspend time injection"
config: um-i386_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 0769575e1b1930cc8a6eb33f51e316ab8d586908
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash kernel/time/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:27:19: note: previous definition of 'pgd_none' was here
27 | static inline int pgd_none(pgd_t pgd) { return 0; }
| ^~~~~~~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:23:19: error: conflicting types for 'pgd_bad'
23 | static inline int pgd_bad(pgd_t pgd) { return 0; }
| ^~~~~~~
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:28:19: note: previous definition of 'pgd_bad' was here
28 | static inline int pgd_bad(pgd_t pgd) { return 0; }
| ^~~~~~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:24:19: error: conflicting types for 'pgd_present'
24 | static inline int pgd_present(pgd_t pgd) { return 1; }
| ^~~~~~~~~~~
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:29:19: note: previous definition of 'pgd_present' was here
29 | static inline int pgd_present(pgd_t pgd) { return 1; }
| ^~~~~~~~~~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:25:20: error: conflicting types for 'pgd_clear'
25 | static inline void pgd_clear(pgd_t *pgd) { }
| ^~~~~~~~~
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:30:20: note: previous definition of 'pgd_clear' was here
30 | static inline void pgd_clear(pgd_t *pgd) { }
| ^~~~~~~~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:26: warning: "p4d_ERROR" redefined
26 | #define p4d_ERROR(p4d) (pgd_ERROR((p4d).pgd))
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:40: note: this is the location of the previous definition
40 | #define p4d_ERROR(p4d) do { } while (0)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:28: warning: "pgd_populate" redefined
28 | #define pgd_populate(mm, pgd, p4d) do { } while (0)
|
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:33: note: this is the location of the previous definition
33 | #define pgd_populate(mm, pgd, pud) do { } while (0)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
>> include/asm-generic/pgtable-nop4d.h:29: warning: "pgd_populate_safe" redefined
29 | #define pgd_populate_safe(mm, pgd, p4d) do { } while (0)
|
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:34: note: this is the location of the previous definition
34 | #define pgd_populate_safe(mm, pgd, pud) do { } while (0)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:34: warning: "set_pgd" redefined
34 | #define set_pgd(pgdptr, pgdval) set_p4d((p4d_t *)(pgdptr), (p4d_t) { pgdval })
|
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:39: note: this is the location of the previous definition
39 | #define set_pgd(pgdptr, pgdval) set_pud((pud_t *)(pgdptr), (pud_t) { pgdval })
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d.h:36:39: error: expected ')' before '*' token
36 | static inline p4d_t *p4d_offset(pgd_t *pgd, unsigned long address)
| ^
include/asm-generic/5level-fixup.h:21:34: note: in definition of macro 'p4d_offset'
21 | #define p4d_offset(pgd, start) (pgd)
| ^~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:41: warning: "p4d_val" redefined
41 | #define p4d_val(x) (pgd_val((x).pgd))
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:42: note: this is the location of the previous definition
42 | #define p4d_val(p4d) pgd_val(p4d)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:42: warning: "__p4d" redefined
42 | #define __p4d(x) ((p4d_t) { __pgd(x) })
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:48: note: this is the location of the previous definition
48 | #define __p4d(x) __pgd(x)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:44: warning: "pgd_page" redefined
44 | #define pgd_page(pgd) (p4d_page((p4d_t){ pgd }))
|
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:49: note: this is the location of the previous definition
49 | #define pgd_page(pgd) (pud_page((pud_t){ pgd }))
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:45: warning: "pgd_page_vaddr" redefined
45 | #define pgd_page_vaddr(pgd) (p4d_page_vaddr((p4d_t){ pgd }))
--
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:50: note: this is the location of the previous definition
50 | #define pgd_page_vaddr(pgd) (pud_page_vaddr((pud_t){ pgd }))
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
include/asm-generic/pgtable-nop4d.h:53: warning: "__p4d_free_tlb" redefined
53 | #define __p4d_free_tlb(tlb, x, a) do { } while (0)
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:54: note: this is the location of the previous definition
54 | #define __p4d_free_tlb(tlb, x, addr) do { } while (0)
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_types.h: In function 'native_make_pud':
arch/x86/include/asm/pgtable_types.h:351:20: error: 'pud_t' {aka 'struct <anonymous>'} has no member named 'p4d'; did you mean 'pgd'?
351 | return (pud_t) { .p4d.pgd = native_make_pgd(val) };
| ^~~
| pgd
arch/x86/include/asm/pgtable_types.h:351:30: error: incompatible types when initializing type 'long unsigned int' using type 'pgd_t' {aka 'struct <anonymous>'}
351 | return (pud_t) { .p4d.pgd = native_make_pgd(val) };
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h: In function 'native_pud_val':
arch/x86/include/asm/pgtable_types.h:356:28: error: 'pud_t' {aka 'struct <anonymous>'} has no member named 'p4d'; did you mean 'pgd'?
356 | return native_pgd_val(pud.p4d.pgd);
| ^~~
| pgd
arch/x86/include/asm/pgtable_types.h:354:45: warning: parameter 'pud' set but not used [-Wunused-but-set-parameter]
354 | static inline pudval_t native_pud_val(pud_t pud)
| ~~~~~~^~~
arch/x86/include/asm/pgtable_types.h: At top level:
arch/x86/include/asm/pgtable_types.h:361:34: error: conflicting types for 'pmd_t'
361 | typedef struct { pmdval_t pmd; } pmd_t;
| ^~~~~
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
arch/um/include/asm/page.h:38:39: note: previous declaration of 'pmd_t' was here
38 | typedef struct { unsigned long pmd; } pmd_t;
| ^~~~~
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_types.h:515: warning: "pgprot_writecombine" redefined
515 | #define pgprot_writecombine pgprot_writecombine
|
In file included from arch/um/include/asm/pgtable.h:363,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable.h:505: note: this is the location of the previous definition
505 | #define pgprot_writecombine pgprot_noncached
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_types.h:518: warning: "pgprot_writethrough" redefined
518 | #define pgprot_writethrough pgprot_writethrough
|
In file included from arch/um/include/asm/pgtable.h:363,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable.h:509: note: this is the location of the previous definition
509 | #define pgprot_writethrough pgprot_noncached
|
In file included from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/kvm_host.h:474:29: error: 'INTEL_PMC_MAX_GENERIC' undeclared here (not in a function)
474 | struct kvm_pmc gp_counters[INTEL_PMC_MAX_GENERIC];
| ^~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/kvm_host.h:475:32: error: 'INTEL_PMC_MAX_FIXED' undeclared here (not in a function)
475 | struct kvm_pmc fixed_counters[INTEL_PMC_MAX_FIXED];
| ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/kvm_host.h: In function 'kvm_irq_is_postable':
>> arch/x86/include/asm/kvm_host.h:1628:32: error: 'APIC_DM_FIXED' undeclared (first use in this function)
1628 | return (irq->delivery_mode == APIC_DM_FIXED ||
| ^~~~~~~~~~~~~
arch/x86/include/asm/kvm_host.h:1628:32: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/include/asm/kvm_host.h:1629:25: error: 'APIC_DM_LOWEST' undeclared (first use in this function)
1629 | irq->delivery_mode == APIC_DM_LOWEST);
| ^~~~~~~~~~~~~~
arch/x86/include/asm/kvm_host.h: In function 'kvm_cpu_get_apicid':
arch/x86/include/asm/kvm_host.h:1652:9: error: 'BAD_APICID' undeclared (first use in this function)
1652 | return BAD_APICID;
| ^~~~~~~~~~
In file included from include/vdso/const.h:5,
from include/linux/const.h:4,
from include/uapi/linux/kernel.h:6,
from include/linux/cache.h:5,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
include/linux/kvm_host.h: In function 'kvm_is_error_hva':
arch/x86/include/asm/page_32_types.h:17:32: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
17 | #define __PAGE_OFFSET_BASE _AC(CONFIG_PAGE_OFFSET, UL)
| ^~~~~~~~~~~~~~~~~~
include/uapi/linux/const.h:20:20: note: in definition of macro '__AC'
20 | #define __AC(X,Y) (X##Y)
| ^
arch/x86/include/asm/page_32_types.h:17:28: note: in expansion of macro '_AC'
17 | #define __PAGE_OFFSET_BASE _AC(CONFIG_PAGE_OFFSET, UL)
| ^~~
arch/x86/include/asm/page_32_types.h:18:24: note: in expansion of macro '__PAGE_OFFSET_BASE'
18 | #define __PAGE_OFFSET __PAGE_OFFSET_BASE
| ^~~~~~~~~~~~~~~~~~
arch/x86/include/asm/page_types.h:36:38: note: in expansion of macro '__PAGE_OFFSET'
36 | #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
| ^~~~~~~~~~~~~
include/linux/kvm_host.h:127:17: note: in expansion of macro 'PAGE_OFFSET'
127 | return addr >= PAGE_OFFSET;
| ^~~~~~~~~~~
vim +/APIC_DM_FIXED +1628 arch/x86/include/asm/kvm_host.h
f5132b01386b5a Gleb Natapov 2011-11-10 1618
8feb4a04dc7560 Feng Wu 2015-09-18 1619 bool kvm_intr_is_single_vcpu(struct kvm *kvm, struct kvm_lapic_irq *irq,
8feb4a04dc7560 Feng Wu 2015-09-18 1620 struct kvm_vcpu **dest_vcpu);
8feb4a04dc7560 Feng Wu 2015-09-18 1621
3713131345fbea Radim Krčmář 2016-07-12 1622 void kvm_set_msi_irq(struct kvm *kvm, struct kvm_kernel_irq_routing_entry *e,
d84f1e0755ba1e Feng Wu 2015-09-18 1623 struct kvm_lapic_irq *irq);
197a4f4b063e4e Paolo Bonzini 2015-11-04 1624
fdcf756213756c Alexander Graf 2019-09-05 1625 static inline bool kvm_irq_is_postable(struct kvm_lapic_irq *irq)
fdcf756213756c Alexander Graf 2019-09-05 1626 {
fdcf756213756c Alexander Graf 2019-09-05 1627 /* We can only post Fixed and LowPrio IRQs */
4cbb69b45cad0f Suravee Suthikulpanit 2020-04-07 @1628 return (irq->delivery_mode == APIC_DM_FIXED ||
4cbb69b45cad0f Suravee Suthikulpanit 2020-04-07 @1629 irq->delivery_mode == APIC_DM_LOWEST);
fdcf756213756c Alexander Graf 2019-09-05 1630 }
fdcf756213756c Alexander Graf 2019-09-05 1631
:::::: The code at line 1628 was first introduced by commit
:::::: 4cbb69b45cad0f7c85726fa0cd5b309da0d5bee7 KVM: x86: Fixes posted interrupt check for IRQs delivery modes
:::::: TO: Suravee Suthikulpanit <suravee.suthikulpanit(a)amd.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks