* [mmotm:master 319/413] arch/arm64/kernel/armv8_deprecated.c:359:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'aarch32_check_condition'
@ 2017-02-08 10:46 kbuild test robot
2017-02-08 17:26 ` Luis R. Rodriguez
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-02-08 10:46 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 4323 bytes --]
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 0f654f0e7a2b2fc05d4d5896e09e8048d16d5ed9
commit: 2ec49283a1aa37520eed1b3c8106700e56f61713 [319/413] kprobes: move kprobe declarations to asm-generic/kprobes.h
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 2ec49283a1aa37520eed1b3c8106700e56f61713
# save the attached .config to linux build tree
make.cross ARCH=arm64
All errors (new ones prefixed by >>):
>> arch/arm64/kernel/armv8_deprecated.c:359:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'aarch32_check_condition'
static unsigned int __kprobes aarch32_check_condition(u32 opcode, u32 psr)
^~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/armv8_deprecated.c: In function 'swp_handler':
>> arch/arm64/kernel/armv8_deprecated.c:386:10: error: implicit declaration of function 'aarch32_check_condition' [-Werror=implicit-function-declaration]
switch (aarch32_check_condition(instr, regs->pstate)) {
^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +359 arch/arm64/kernel/armv8_deprecated.c
bca8f17f Marc Zyngier 2016-12-01 353 #define ARM_OPCODE_CONDTEST_FAIL 0
bca8f17f Marc Zyngier 2016-12-01 354 #define ARM_OPCODE_CONDTEST_PASS 1
bca8f17f Marc Zyngier 2016-12-01 355 #define ARM_OPCODE_CONDTEST_UNCOND 2
bca8f17f Marc Zyngier 2016-12-01 356
2af3ec08 David A. Long 2016-07-08 357 #define ARM_OPCODE_CONDITION_UNCOND 0xf
2af3ec08 David A. Long 2016-07-08 358
2af3ec08 David A. Long 2016-07-08 @359 static unsigned int __kprobes aarch32_check_condition(u32 opcode, u32 psr)
2af3ec08 David A. Long 2016-07-08 360 {
2af3ec08 David A. Long 2016-07-08 361 u32 cc_bits = opcode >> 28;
2af3ec08 David A. Long 2016-07-08 362
2af3ec08 David A. Long 2016-07-08 363 if (cc_bits != ARM_OPCODE_CONDITION_UNCOND) {
2af3ec08 David A. Long 2016-07-08 364 if ((*aarch32_opcode_cond_checks[cc_bits])(psr))
2af3ec08 David A. Long 2016-07-08 365 return ARM_OPCODE_CONDTEST_PASS;
2af3ec08 David A. Long 2016-07-08 366 else
2af3ec08 David A. Long 2016-07-08 367 return ARM_OPCODE_CONDTEST_FAIL;
2af3ec08 David A. Long 2016-07-08 368 }
2af3ec08 David A. Long 2016-07-08 369 return ARM_OPCODE_CONDTEST_UNCOND;
2af3ec08 David A. Long 2016-07-08 370 }
2af3ec08 David A. Long 2016-07-08 371
bd35a4ad Punit Agrawal 2014-11-18 372 /*
bd35a4ad Punit Agrawal 2014-11-18 373 * swp_handler logs the id of calling process, dissects the instruction, sanity
bd35a4ad Punit Agrawal 2014-11-18 374 * checks the memory location, calls emulate_swpX for the actual operation and
bd35a4ad Punit Agrawal 2014-11-18 375 * deals with fixup/error handling before returning
bd35a4ad Punit Agrawal 2014-11-18 376 */
bd35a4ad Punit Agrawal 2014-11-18 377 static int swp_handler(struct pt_regs *regs, u32 instr)
bd35a4ad Punit Agrawal 2014-11-18 378 {
bd35a4ad Punit Agrawal 2014-11-18 379 u32 destreg, data, type, address = 0;
bd35a4ad Punit Agrawal 2014-11-18 380 int rn, rt2, res = 0;
bd35a4ad Punit Agrawal 2014-11-18 381
bd35a4ad Punit Agrawal 2014-11-18 382 perf_sw_event(PERF_COUNT_SW_EMULATION_FAULTS, 1, regs, regs->pc);
bd35a4ad Punit Agrawal 2014-11-18 383
bd35a4ad Punit Agrawal 2014-11-18 384 type = instr & TYPE_SWPB;
bd35a4ad Punit Agrawal 2014-11-18 385
2af3ec08 David A. Long 2016-07-08 @386 switch (aarch32_check_condition(instr, regs->pstate)) {
bd35a4ad Punit Agrawal 2014-11-18 387 case ARM_OPCODE_CONDTEST_PASS:
bd35a4ad Punit Agrawal 2014-11-18 388 break;
bd35a4ad Punit Agrawal 2014-11-18 389 case ARM_OPCODE_CONDTEST_FAIL:
:::::: The code at line 359 was first introduced by commit
:::::: 2af3ec08b414ceb9c32fad2bb0f87252f3f18de8 arm64: add conditional instruction simulation support
:::::: TO: David A. Long <dave.long@linaro.org>
:::::: CC: Catalin Marinas <catalin.marinas@arm.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 53710 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [mmotm:master 319/413] arch/arm64/kernel/armv8_deprecated.c:359:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'aarch32_check_condition'
2017-02-08 10:46 [mmotm:master 319/413] arch/arm64/kernel/armv8_deprecated.c:359:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'aarch32_check_condition' kbuild test robot
@ 2017-02-08 17:26 ` Luis R. Rodriguez
0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2017-02-08 17:26 UTC (permalink / raw)
To: kbuild test robot
Cc: Luis R. Rodriguez, kbuild-all, Johannes Weiner, Andrew Morton,
Linux Memory Management List
On Wed, Feb 08, 2017 at 06:46:20PM +0800, kbuild test robot wrote:
> tree: git://git.cmpxchg.org/linux-mmotm.git master
> head: 0f654f0e7a2b2fc05d4d5896e09e8048d16d5ed9
> commit: 2ec49283a1aa37520eed1b3c8106700e56f61713 [319/413] kprobes: move kprobe declarations to asm-generic/kprobes.h
> config: arm64-allyesconfig (attached as .config)
> compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 2ec49283a1aa37520eed1b3c8106700e56f61713
> # save the attached .config to linux build tree
> make.cross ARCH=arm64
>
> All errors (new ones prefixed by >>):
>
> >> arch/arm64/kernel/armv8_deprecated.c:359:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'aarch32_check_condition'
This fixes that, will send patch.
--- a/arch/arm64/kernel/armv8_deprecated.c
+++ b/arch/arm64/kernel/armv8_deprecated.c
@@ -19,6 +19,7 @@
#include <asm/sysreg.h>
#include <asm/system_misc.h>
#include <asm/traps.h>
+#include <asm/kprobes.h>
#include <linux/uaccess.h>
#include <asm/cpufeature.h>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-08 17:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-08 10:46 [mmotm:master 319/413] arch/arm64/kernel/armv8_deprecated.c:359:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'aarch32_check_condition' kbuild test robot
2017-02-08 17:26 ` Luis R. Rodriguez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.