Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
135d0821
Commit
135d0821
authored
Dec 10, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc64: Use kprobes_built_in() to avoid ifdefs in fault_64.c
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
936cf251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
arch/sparc/mm/fault_64.c
arch/sparc/mm/fault_64.c
+1
-8
No files found.
arch/sparc/mm/fault_64.c
View file @
135d0821
...
...
@@ -31,13 +31,12 @@
#include <asm/sections.h>
#include <asm/mmu_context.h>
#ifdef CONFIG_KPROBES
static
inline
int
notify_page_fault
(
struct
pt_regs
*
regs
)
{
int
ret
=
0
;
/* kprobe_running() needs smp_processor_id() */
if
(
!
user_mode
(
regs
))
{
if
(
kprobes_built_in
()
&&
!
user_mode
(
regs
))
{
preempt_disable
();
if
(
kprobe_running
()
&&
kprobe_fault_handler
(
regs
,
0
))
ret
=
1
;
...
...
@@ -45,12 +44,6 @@ static inline int notify_page_fault(struct pt_regs *regs)
}
return
ret
;
}
#else
static
inline
int
notify_page_fault
(
struct
pt_regs
*
regs
)
{
return
0
;
}
#endif
static
void
__kprobes
unhandled_fault
(
unsigned
long
address
,
struct
task_struct
*
tsk
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment