[freescale-fslc:pr/296 15241/17782] ia64-linux-gcc: error: unrecognized argument in option '-mtune=cortex-a9'
by kernel test robot
tree: https://github.com/Freescale/linux-fslc pr/296
head: bf2acf9f711d9c0ffcee228f6772f4c00be626b8
commit: 5bb09de3044acf91e6f8c712c026d5a4bc53b563 [15241/17782] MLK-24874-1: include: uapi: fmd: fix the UAPI_HEADER_TEST/install failure
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/5bb09de3044acf91e6f8c712c0...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/296
git checkout 5bb09de3044acf91e6f8c712c026d5a4bc53b563
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> ia64-linux-gcc: error: unrecognized argument in option '-mtune=cortex-a9'
ia64-linux-gcc: note: valid arguments to '-mtune=' are: itanium2 mckinley
>> ia64-linux-gcc: error: unrecognized command line option '-march=armv7-a'
>> ia64-linux-gcc: error: unrecognized command line option '-mfpu=neon'
>> ia64-linux-gcc: error: unrecognized command line option '-mfloat-abi=softfp'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GPIO_MXC
Depends on GPIOLIB && HAS_IOMEM && ARCH_MXC
Selected by
- GPIO_MXC_PAD_WAKEUP && GPIOLIB && HAS_IOMEM && IMX_SCU
WARNING: unmet direct dependencies detected for PCIE_MOBIVEIL_HOST
Depends on PCI && PCI_MSI_IRQ_DOMAIN
Selected by
- PCIE_MOBIVEIL_PLAT && PCI && (ARCH_ZYNQMP || COMPILE_TEST && OF
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[intel-linux-intel-lts:5.4/yocto 6697/15287] arch/arm/mach-imx/cpuidle-imx6q.c:65:32: error: 'struct cpuidle_state' has no member named 'disabled'
by kernel test robot
Hi Rafael,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 575024715a7d6dfa738e5db135e10928a32bbd54
commit: 8bfaf7ab474ef5a95f5bd6a8724c4a9f8d0b9611 [6697/15287] cpuidle: Drop disabled field from struct cpuidle_state
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/linux-intel-lts/commit/8bfaf7ab474ef5a95f5bd6a87...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 8bfaf7ab474ef5a95f5bd6a8724c4a9f8d0b9611
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arm/mach-imx/cpuidle-imx6q.c: In function 'imx6q_cpuidle_fec_irqs_used':
>> arch/arm/mach-imx/cpuidle-imx6q.c:65:32: error: 'struct cpuidle_state' has no member named 'disabled'
65 | imx6q_cpuidle_driver.states[1].disabled = true;
| ^
arch/arm/mach-imx/cpuidle-imx6q.c: In function 'imx6q_cpuidle_fec_irqs_unused':
arch/arm/mach-imx/cpuidle-imx6q.c:71:32: error: 'struct cpuidle_state' has no member named 'disabled'
71 | imx6q_cpuidle_driver.states[1].disabled = false;
| ^
vim +65 arch/arm/mach-imx/cpuidle-imx6q.c
12bb344074cfc5 Shawn Guo 2012-12-04 56
29380905565655 Lucas Stach 2016-06-03 57 /*
29380905565655 Lucas Stach 2016-06-03 58 * i.MX6 Q/DL has an erratum (ERR006687) that prevents the FEC from waking the
29380905565655 Lucas Stach 2016-06-03 59 * CPUs when they are in wait(unclocked) state. As the hardware workaround isn't
29380905565655 Lucas Stach 2016-06-03 60 * applicable to all boards, disable the deeper idle state when the workaround
29380905565655 Lucas Stach 2016-06-03 61 * isn't present and the FEC is in use.
29380905565655 Lucas Stach 2016-06-03 62 */
29380905565655 Lucas Stach 2016-06-03 63 void imx6q_cpuidle_fec_irqs_used(void)
29380905565655 Lucas Stach 2016-06-03 64 {
29380905565655 Lucas Stach 2016-06-03 @65 imx6q_cpuidle_driver.states[1].disabled = true;
29380905565655 Lucas Stach 2016-06-03 66 }
2cb9caa4397405 Shawn Guo 2016-06-21 67 EXPORT_SYMBOL_GPL(imx6q_cpuidle_fec_irqs_used);
29380905565655 Lucas Stach 2016-06-03 68
:::::: The code at line 65 was first introduced by commit
:::::: 29380905565655bb797bf670a173bddb8e641da6 ARM: imx6: disable deeper idle states when FEC is active w/o HW workaround
:::::: TO: Lucas Stach <l.stach(a)pengutronix.de>
:::::: CC: Shawn Guo <shawnguo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[freescale-fslc:pr/296 10629/17782] drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_func_flop_reset.c:1266:1: error: no previous prototype for 'gckPPU_SetEVIS'
by kernel test robot
Hi Ella,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/296
head: bf2acf9f711d9c0ffcee228f6772f4c00be626b8
commit: 003e8f969b3267f44e94f0ee4f7167089bb0d800 [10629/17782] MGS-5531 [#imx-1868] Fix VIP Hang isse with HW reet
config: arm-randconfig-r036-20210322 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/003e8f969b3267f44e94f0ee4f...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/296
git checkout 003e8f969b3267f44e94f0ee4f7167089bb0d800
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
cc1: error: arch/arm/mm: No such file or directory [-Werror=missing-include-dirs]
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_func_flop_reset.c:1266:1: error: no previous prototype for 'gckPPU_SetEVIS' [-Werror=missing-prototypes]
1266 | gckPPU_SetEVIS(
| ^~~~~~~~~~~~~~
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_func_flop_reset.c:1590:1: error: no previous prototype for 'gckPPU_SetTempReg' [-Werror=missing-prototypes]
1590 | gckPPU_SetTempReg(
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/gckPPU_SetEVIS +1266 drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_func_flop_reset.c
1264
1265 gceSTATUS
> 1266 gckPPU_SetEVIS(
1267 IN gctUINT32 Start,
1268 IN gctUINT32 End,
1269 IN gctUINT32 Evis,
1270 IN OUT gctUINT32_PTR Inst
1271 )
1272 {
1273 gceSTATUS status = gcvSTATUS_OK;
1274
1275 if (!Inst)
1276 {
1277 gcmkONERROR(gcvSTATUS_INVALID_ARGUMENT);
1278 }
1279
1280 Inst[0] = ((((gctUINT32) (Inst[0])) & ~(((gctUINT32) (((gctUINT32) ((((1 ?
1281 26:23) - (0 ?
1282 26:23) + 1) == 32) ?
1283 ~0U : (~(~0U << ((1 ?
1284 26:23) - (0 ?
1285 26:23) + 1))))))) << (0 ?
1286 26:23))) | (((gctUINT32) ((gctUINT32) (Start) & ((gctUINT32) ((((1 ?
1287 26:23) - (0 ?
1288 26:23) + 1) == 32) ?
1289 ~0U : (~(~0U << ((1 ? 26:23) - (0 ? 26:23) + 1))))))) << (0 ? 26:23)));
1290 Inst[0] = _SETBITS(Inst[0], 30, 27, End);
1291 Inst[1] = _SETBITS(Inst[1], 10, 2, Evis);
1292
1293 return gcvSTATUS_OK;
1294
1295 OnError:
1296 return status;
1297 }
1298
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[peterz-queue:master 14/16] arch/x86/kernel/module.c:485:3: error: implicit declaration of function 'kernel_insn_init'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head: 7895d16159ceaf00aaec3790896a2a5851541ec2
commit: ce0bd4476f7816fe71b962d213bb3b180c66bf30 [14/16] Merge branch 'x86/module'
config: x86_64-rhel-7.6-kselftests (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/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue master
git checkout ce0bd4476f7816fe71b962d213bb3b180c66bf30
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kernel/module.c: In function 'decode_module':
>> arch/x86/kernel/module.c:485:3: error: implicit declaration of function 'kernel_insn_init'; did you mean 'kernfs_init'? [-Werror=implicit-function-declaration]
485 | kernel_insn_init(&insn, text, text_end - text);
| ^~~~~~~~~~~~~~~~
| kernfs_init
In file included from arch/x86/include/asm/bug.h:93,
from include/linux/bug.h:5,
from include/linux/cpumask.h:14,
from arch/x86/include/asm/cpumask.h:5,
from arch/x86/include/asm/msr.h:11,
from arch/x86/include/asm/processor.h:22,
from arch/x86/include/asm/timex.h:5,
from include/linux/timex.h:65,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from include/linux/moduleloader.h:6,
from arch/x86/kernel/module.c:9:
>> arch/x86/kernel/module.c:488:21: error: implicit declaration of function 'insn_complete'; did you mean 'dpm_complete'? [-Werror=implicit-function-declaration]
488 | if (WARN_ON_ONCE(!insn_complete(&insn))) {
| ^~~~~~~~~~~~~
include/asm-generic/bug.h:102:25: note: in definition of macro 'WARN_ON_ONCE'
102 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
cc1: some warnings being treated as errors
vim +485 arch/x86/kernel/module.c
2c8b51426d7dcb Peter Zijlstra 2020-04-08 478
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 479 static int decode_module(struct module *mod, void *text, void *text_end, bool sld_safe)
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 480 {
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 481 bool allow_vmx = sld_safe || !split_lock_enabled();
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 482 struct insn insn;
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 483
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 484 while (text < text_end) {
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 @485 kernel_insn_init(&insn, text, text_end - text);
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 486 insn_get_length(&insn);
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 487
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 @488 if (WARN_ON_ONCE(!insn_complete(&insn))) {
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 489 pr_err("Module text malformed: %s\n", mod->name);
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 490 return -ENOEXEC;
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 491 }
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 492
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 493 if (!allow_vmx && insn_is_vmx(&insn)) {
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 494 pr_err("Module has VMX instructions and is not marked 'sld_safe', boot with: 'split_lock_detect=off': %s\n", mod->name);
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 495 return -ENOEXEC;
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 496 }
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 497
66b8cf79e55c95 Peter Zijlstra 2020-04-07 498 if (insn_is_special_reg(&insn)) {
66b8cf79e55c95 Peter Zijlstra 2020-04-07 499 pr_err("Module writes to CRn, XCRn or DRn, please use the proper accessors: %s\n", mod->name);
66b8cf79e55c95 Peter Zijlstra 2020-04-07 500 return -ENOEXEC;
66b8cf79e55c95 Peter Zijlstra 2020-04-07 501 }
66b8cf79e55c95 Peter Zijlstra 2020-04-07 502
2c8b51426d7dcb Peter Zijlstra 2020-04-08 503 if (insn_is_GDT_modifier(&insn)) {
2c8b51426d7dcb Peter Zijlstra 2020-04-08 504 pr_err("Module tries to modify the GDT, please use the proper accessors: %s\n", mod->name);
2c8b51426d7dcb Peter Zijlstra 2020-04-08 505 return -ENOEXEC;
2c8b51426d7dcb Peter Zijlstra 2020-04-08 506 }
2c8b51426d7dcb Peter Zijlstra 2020-04-08 507
2c8b51426d7dcb Peter Zijlstra 2020-04-08 508 if (insn_is_xRET(&insn)) {
2c8b51426d7dcb Peter Zijlstra 2020-04-08 509 pr_err("Module tries to return to userspace: %s\n", mod->name);
2c8b51426d7dcb Peter Zijlstra 2020-04-08 510 return -ENOEXEC;
2c8b51426d7dcb Peter Zijlstra 2020-04-08 511 }
2c8b51426d7dcb Peter Zijlstra 2020-04-08 512
2c8b51426d7dcb Peter Zijlstra 2020-04-08 513 if (insn_is_XRSTOR(&insn)) {
2c8b51426d7dcb Peter Zijlstra 2020-04-08 514 pr_err("Module tries to muck with register state: %s\n", mod->name);
2c8b51426d7dcb Peter Zijlstra 2020-04-08 515 return -ENOEXEC;
2c8b51426d7dcb Peter Zijlstra 2020-04-08 516 }
2c8b51426d7dcb Peter Zijlstra 2020-04-08 517
2c8b51426d7dcb Peter Zijlstra 2020-04-08 518 if (insn_is_FSGS(&insn)) {
2c8b51426d7dcb Peter Zijlstra 2020-04-08 519 pr_err("Module mucks with FS/GS-base: %s\n", mod->name);
2c8b51426d7dcb Peter Zijlstra 2020-04-08 520 return -ENOEXEC;
2c8b51426d7dcb Peter Zijlstra 2020-04-08 521 }
2c8b51426d7dcb Peter Zijlstra 2020-04-08 522
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 523 text += insn.length;
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 524 }
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 525
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 526 return 0;
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 527 }
5fc97b3a93ac01 Peter Zijlstra 2020-04-02 528
:::::: The code at line 485 was first introduced by commit
:::::: 5fc97b3a93ac0160bfc9e5a3dcada67870d9aa29 x86,module: Detect VMX vs SLD conflicts
:::::: TO: Peter Zijlstra <peterz(a)infradead.org>
:::::: CC: Peter Zijlstra <peterz(a)infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
net/wireless/pmsr.c:164:12: warning: stack frame size of 1208 bytes in function 'pmsr_parse_peer'
by kernel test robot
Hi Johannes,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 84196390620ac0e5070ae36af84c137c6216a7dc
commit: 44f3625bc61653ea3bde9960298faf2f5518fda5 netlink: export policy in extended ACK
date: 5 months ago
config: mips-randconfig-r023-20210322 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 14696baaf4c43fe53f738bc292bbe169eed93d5d)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# 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 44f3625bc61653ea3bde9960298faf2f5518fda5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> net/wireless/pmsr.c:164:12: warning: stack frame size of 1208 bytes in function 'pmsr_parse_peer' [-Wframe-larger-than=]
static int pmsr_parse_peer(struct cfg80211_registered_device *rdev,
^
1 warning generated.
vim +/pmsr_parse_peer +164 net/wireless/pmsr.c
9bb7e0f24e7e7d Johannes Berg 2018-09-10 163
9bb7e0f24e7e7d Johannes Berg 2018-09-10 @164 static int pmsr_parse_peer(struct cfg80211_registered_device *rdev,
9bb7e0f24e7e7d Johannes Berg 2018-09-10 165 struct nlattr *peer,
9bb7e0f24e7e7d Johannes Berg 2018-09-10 166 struct cfg80211_pmsr_request_peer *out,
9bb7e0f24e7e7d Johannes Berg 2018-09-10 167 struct genl_info *info)
9bb7e0f24e7e7d Johannes Berg 2018-09-10 168 {
9bb7e0f24e7e7d Johannes Berg 2018-09-10 169 struct nlattr *tb[NL80211_PMSR_PEER_ATTR_MAX + 1];
9bb7e0f24e7e7d Johannes Berg 2018-09-10 170 struct nlattr *req[NL80211_PMSR_REQ_ATTR_MAX + 1];
9bb7e0f24e7e7d Johannes Berg 2018-09-10 171 struct nlattr *treq;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 172 int err, rem;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 173
9bb7e0f24e7e7d Johannes Berg 2018-09-10 174 /* no validation needed - was already done via nested policy */
8cb081746c031f Johannes Berg 2019-04-26 175 nla_parse_nested_deprecated(tb, NL80211_PMSR_PEER_ATTR_MAX, peer,
8cb081746c031f Johannes Berg 2019-04-26 176 NULL, NULL);
9bb7e0f24e7e7d Johannes Berg 2018-09-10 177
9bb7e0f24e7e7d Johannes Berg 2018-09-10 178 if (!tb[NL80211_PMSR_PEER_ATTR_ADDR] ||
9bb7e0f24e7e7d Johannes Berg 2018-09-10 179 !tb[NL80211_PMSR_PEER_ATTR_CHAN] ||
9bb7e0f24e7e7d Johannes Berg 2018-09-10 180 !tb[NL80211_PMSR_PEER_ATTR_REQ]) {
9bb7e0f24e7e7d Johannes Berg 2018-09-10 181 NL_SET_ERR_MSG_ATTR(info->extack, peer,
9bb7e0f24e7e7d Johannes Berg 2018-09-10 182 "insufficient peer data");
9bb7e0f24e7e7d Johannes Berg 2018-09-10 183 return -EINVAL;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 184 }
9bb7e0f24e7e7d Johannes Berg 2018-09-10 185
9bb7e0f24e7e7d Johannes Berg 2018-09-10 186 memcpy(out->addr, nla_data(tb[NL80211_PMSR_PEER_ATTR_ADDR]), ETH_ALEN);
9bb7e0f24e7e7d Johannes Berg 2018-09-10 187
9bb7e0f24e7e7d Johannes Berg 2018-09-10 188 /* reuse info->attrs */
9bb7e0f24e7e7d Johannes Berg 2018-09-10 189 memset(info->attrs, 0, sizeof(*info->attrs) * (NL80211_ATTR_MAX + 1));
8cb081746c031f Johannes Berg 2019-04-26 190 err = nla_parse_nested_deprecated(info->attrs, NL80211_ATTR_MAX,
9bb7e0f24e7e7d Johannes Berg 2018-09-10 191 tb[NL80211_PMSR_PEER_ATTR_CHAN],
d15da2a2e81367 Johannes Berg 2020-04-30 192 NULL, info->extack);
9bb7e0f24e7e7d Johannes Berg 2018-09-10 193 if (err)
9bb7e0f24e7e7d Johannes Berg 2018-09-10 194 return err;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 195
9bb7e0f24e7e7d Johannes Berg 2018-09-10 196 err = nl80211_parse_chandef(rdev, info, &out->chandef);
9bb7e0f24e7e7d Johannes Berg 2018-09-10 197 if (err)
9bb7e0f24e7e7d Johannes Berg 2018-09-10 198 return err;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 199
9bb7e0f24e7e7d Johannes Berg 2018-09-10 200 /* no validation needed - was already done via nested policy */
8cb081746c031f Johannes Berg 2019-04-26 201 nla_parse_nested_deprecated(req, NL80211_PMSR_REQ_ATTR_MAX,
8cb081746c031f Johannes Berg 2019-04-26 202 tb[NL80211_PMSR_PEER_ATTR_REQ], NULL,
8cb081746c031f Johannes Berg 2019-04-26 203 NULL);
9bb7e0f24e7e7d Johannes Berg 2018-09-10 204
9bb7e0f24e7e7d Johannes Berg 2018-09-10 205 if (!req[NL80211_PMSR_REQ_ATTR_DATA]) {
9bb7e0f24e7e7d Johannes Berg 2018-09-10 206 NL_SET_ERR_MSG_ATTR(info->extack,
9bb7e0f24e7e7d Johannes Berg 2018-09-10 207 tb[NL80211_PMSR_PEER_ATTR_REQ],
9bb7e0f24e7e7d Johannes Berg 2018-09-10 208 "missing request type/data");
9bb7e0f24e7e7d Johannes Berg 2018-09-10 209 return -EINVAL;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 210 }
9bb7e0f24e7e7d Johannes Berg 2018-09-10 211
9bb7e0f24e7e7d Johannes Berg 2018-09-10 212 if (req[NL80211_PMSR_REQ_ATTR_GET_AP_TSF])
9bb7e0f24e7e7d Johannes Berg 2018-09-10 213 out->report_ap_tsf = true;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 214
9bb7e0f24e7e7d Johannes Berg 2018-09-10 215 if (out->report_ap_tsf && !rdev->wiphy.pmsr_capa->report_ap_tsf) {
9bb7e0f24e7e7d Johannes Berg 2018-09-10 216 NL_SET_ERR_MSG_ATTR(info->extack,
9bb7e0f24e7e7d Johannes Berg 2018-09-10 217 req[NL80211_PMSR_REQ_ATTR_GET_AP_TSF],
9bb7e0f24e7e7d Johannes Berg 2018-09-10 218 "reporting AP TSF is not supported");
9bb7e0f24e7e7d Johannes Berg 2018-09-10 219 return -EINVAL;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 220 }
9bb7e0f24e7e7d Johannes Berg 2018-09-10 221
9bb7e0f24e7e7d Johannes Berg 2018-09-10 222 nla_for_each_nested(treq, req[NL80211_PMSR_REQ_ATTR_DATA], rem) {
9bb7e0f24e7e7d Johannes Berg 2018-09-10 223 switch (nla_type(treq)) {
9bb7e0f24e7e7d Johannes Berg 2018-09-10 224 case NL80211_PMSR_TYPE_FTM:
9bb7e0f24e7e7d Johannes Berg 2018-09-10 225 err = pmsr_parse_ftm(rdev, treq, out, info);
9bb7e0f24e7e7d Johannes Berg 2018-09-10 226 break;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 227 default:
9bb7e0f24e7e7d Johannes Berg 2018-09-10 228 NL_SET_ERR_MSG_ATTR(info->extack, treq,
9bb7e0f24e7e7d Johannes Berg 2018-09-10 229 "unsupported measurement type");
9bb7e0f24e7e7d Johannes Berg 2018-09-10 230 err = -EINVAL;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 231 }
9bb7e0f24e7e7d Johannes Berg 2018-09-10 232 }
9bb7e0f24e7e7d Johannes Berg 2018-09-10 233
9bb7e0f24e7e7d Johannes Berg 2018-09-10 234 if (err)
9bb7e0f24e7e7d Johannes Berg 2018-09-10 235 return err;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 236
9bb7e0f24e7e7d Johannes Berg 2018-09-10 237 return 0;
9bb7e0f24e7e7d Johannes Berg 2018-09-10 238 }
9bb7e0f24e7e7d Johannes Berg 2018-09-10 239
:::::: The code at line 164 was first introduced by commit
:::::: 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 cfg80211: add peer measurement with FTM initiator API
:::::: TO: Johannes Berg <johannes.berg(a)intel.com>
:::::: CC: Johannes Berg <johannes.berg(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
ld.lld: error: main.c:(.text+0x53C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: "Steven Rostedt (VMware)" <rostedt(a)goodmis.org>
CC: Ingo Molnar <mingo(a)kernel.org>
CC: "Peter Zijlstra (Intel)" <peterz(a)infradead.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 84196390620ac0e5070ae36af84c137c6216a7dc
commit: d25e37d89dd2f41d7acae0429039d2f0ae8b4a07 tracepoint: Optimize using static_call()
date: 7 months ago
config: riscv-randconfig-r006-20210322 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 14696baaf4c43fe53f738bc292bbe169eed93d5d)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# 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 d25e37d89dd2f41d7acae0429039d2f0ae8b4a07
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0xA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x40): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x4A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x88): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x10A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.init.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x54): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xA8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x104): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x1CA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x264): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x308): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x35A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x3DE): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x45E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x4E2): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x53C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.init.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months