Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98740
b: refs/heads/master
c: ca31e14
h: refs/heads/master
v: v3
  • Loading branch information
Eduard - Gabriel Munteanu authored and Linus Torvalds committed Jul 5, 2008
1 parent 4abc2e5 commit 4596332
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84df87b7ebdcbbc0f59df9526f4e63fda70647d3
refs/heads/master: ca31e146d5c2fe51498e619eb3a64782d02e310a
10 changes: 2 additions & 8 deletions trunk/include/linux/debug_locks.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef __LINUX_DEBUG_LOCKING_H
#define __LINUX_DEBUG_LOCKING_H

#include <linux/kernel.h>

struct task_struct;

extern int debug_locks;
Expand All @@ -11,14 +13,6 @@ extern int debug_locks_silent;
*/
extern int debug_locks_off(void);

/*
* In the debug case we carry the caller's instruction pointer into
* other functions, but we dont want the function argument overhead
* in the nondebug case - hence these macros:
*/
#define _RET_IP_ (unsigned long)__builtin_return_address(0)
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })

#define DEBUG_LOCKS_WARN_ON(c) \
({ \
int __ret = 0; \
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ extern const char linux_proc_banner[];
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))

#define _RET_IP_ (unsigned long)__builtin_return_address(0)
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })

#ifdef CONFIG_LBD
# include <asm/div64.h>
# define sector_div(a, b) do_div(a, b)
Expand Down

0 comments on commit 4596332

Please sign in to comment.