Skip to contentSkip to conversation

kernel/ptrace.c:788:2: error: implicit declaration of function 'update_tsk_thread_flag'; did you mean 'test_tsk_thread_flag'?

DISCUSSION Dave Martin 2 participants 2 messages May 14, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 201805121101.eJf2poNV%[email protected]

#1 lore raw

Hi folks,

Do you know where I can find the commit test the test robot tried to build? I saw now reference to a tree in the report, only a commit id.

The commit referenced here is not upstream or in -next. AFAIK the affected patch wasn't merged in any maintainer tree so far.

The affected patch here changes the code to make use of a function defined earlier in the same series. I'm wondering whether the robot has picked the patches individually or out of order...

Cheers
---Dave

--8<--

Quoted 36 lines · kbuild test robot

bisected to: aa63d2d0803f9c47bd86bbece367bdf4823d8f33 thread_info: Port core code to use update_thread_flag() helpers commit date: 20 minutes ago
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:

        git checkout aa63d2d0803f9c47bd86bbece367bdf4823d8f33
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

kernel/ptrace.c: In function 'ptrace_resume':

Quoted 1 line
Quoted 1 line

kernel/ptrace.c:788:2: error: implicit declaration of function 'update_tsk_thread_flag'; did you mean 'test_tsk_thread_flag'? [-Werror=implicit-function-declaration]

     update_tsk_thread_flag(child, TIF_SYSCALL_TRACE,
     ^~~~~~~~~~~~~~~~~~~~~~
     test_tsk_thread_flag

cc1: some warnings being treated as errors

vim +788 kernel/ptrace.c

   779	
   780	static int ptrace_resume(struct task_struct *child, long request,
   781				 unsigned long data)
   782	{
   783		bool need_siglock;
   784	
   785		if (!valid_signal(data))
   786			return -EIO;
   787	
Quoted 1 line

788 update_tsk_thread_flag(child, TIF_SYSCALL_TRACE,

   789				       request == PTRACE_SYSCALL);
   790	

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

#2 lore raw

Hi Dave,

CC LKP team. Something went wrong with our robot -- there should be tree/branch information in this report.

Quoted 5 lines · Dave Martin

Hi folks,

Do you know where I can find the commit test the test robot tried to build? I saw now reference to a tree in the report, only a commit id.

It's your patch applied to linus tree:

$ git log aa63d2d0803f9c47bd86bbece367bdf4823d8f33
commit aa63d2d0803f9c47bd86bbece367bdf4823d8f33
Author:     Dave Martin <[email protected]>
AuthorDate: Fri May 11 16:05:00 2018 +0100
Commit:     0day robot <[email protected]>
CommitDate: Sat May 12 10:56:26 2018 +0800

thread_info: Port core code to use update_thread_flag() helpers

This patch ports a couple of relevant bits of the core kernel to use the new update_thread_flag() helpers.

No functional change.

Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Oleg Nesterov <[email protected]>

commit 008464a9360e31b14677457dcd976fbf9dd58e2e

Merge: 036db8bd96374 070b9637dd8fa
Author:     Linus Torvalds <[email protected]>
AuthorDate: Wed May 9 10:49:52 2018 -1000
Commit:     Linus Torvalds <[email protected]>
CommitDate: Wed May 9 10:49:52 2018 -1000

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid

Quoted 7 lines

The commit referenced here is not upstream or in -next. AFAIK the affected patch wasn't merged in any maintainer tree so far.

The affected patch here changes the code to make use of a function defined earlier in the same series. I'm wondering whether the robot has picked the patches individually or out of order...

Thanks,
Fengguang

Quoted 39 lines · kbuild test robot
Quoted 36 lines

bisected to: aa63d2d0803f9c47bd86bbece367bdf4823d8f33 thread_info: Port core code to use update_thread_flag() helpers commit date: 20 minutes ago
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:

        git checkout aa63d2d0803f9c47bd86bbece367bdf4823d8f33
        # save the attached .config to linux build tree
        make ARCH=i386

All errors (new ones prefixed by >>):

kernel/ptrace.c: In function 'ptrace_resume':

Quoted 1 line
Quoted 1 line

kernel/ptrace.c:788:2: error: implicit declaration of function 'update_tsk_thread_flag'; did you mean 'test_tsk_thread_flag'? [-Werror=implicit-function-declaration]

     update_tsk_thread_flag(child, TIF_SYSCALL_TRACE,
     ^~~~~~~~~~~~~~~~~~~~~~
     test_tsk_thread_flag

cc1: some warnings being treated as errors

vim +788 kernel/ptrace.c

   779	
   780	static int ptrace_resume(struct task_struct *child, long request,
   781				 unsigned long data)
   782	{
   783		bool need_siglock;
   784	
   785		if (!valid_signal(data))
   786			return -EIO;
   787	
Quoted 1 line

788 update_tsk_thread_flag(child, TIF_SYSCALL_TRACE,

   789				       request == PTRACE_SYSCALL);
   790	

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation