[-mm patch] kernel/lockdep_proc.c: make 2 functions static



On Wed, May 30, 2007 at 11:58:23PM -0700, Andrew Morton wrote:
...
Changes since 2.6.22-rc2-mm1:
...
+lockstat-human-readability-tweaks.patch
...
lockstat-via-lockdep
...

This patch makes two needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

kernel/lockdep_proc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-2.6.22-rc3-mm1/kernel/lockdep_proc.c.old 2007-06-05 22:07:30.000000000 +0200
+++ linux-2.6.22-rc3-mm1/kernel/lockdep_proc.c 2007-06-05 22:07:57.000000000 +0200
@@ -364,7 +364,7 @@
/*
* sort on absolute number of contentions
*/
-int lock_stat_cmp(const void *l, const void *r)
+static int lock_stat_cmp(const void *l, const void *r)
{
const struct lock_stat_data *dl = l, *dr = r;
unsigned long nl, nr;
@@ -567,8 +567,8 @@
return res;
}

-ssize_t lock_stat_write(struct file *file, const char __user *buf,
- size_t count, loff_t *ppos)
+static ssize_t lock_stat_write(struct file *file, const char __user *buf,
+ size_t count, loff_t *ppos)
{
struct lock_class *class;
char c;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH 11/12] vmscan: Write out dirty pages in batch
    ... It also makes the next patch ... window and will choke just as much on random IO patterns. ... there is a list_sort() function that could be used to sort ... within the mapping would result in all the pages on each mapping ...
    (Linux-Kernel)
  • Re: Feature request: sorting a list slice
    ... having an explicit start/stop argument to reverse() and sort() ... slices of large lists. ... The user can't patch this as an extension on the fly, ...
    (comp.lang.python)
  • Re: [PATCH 11/12] vmscan: Write out dirty pages in batch
    ... It also makes the next patch ... there is a list_sort() function that could be used to sort ... within the mapping would result in all the pages on each mapping ... maybe "the sort queue is the submission queue" wasn't a good idea. ...
    (Linux-Kernel)
  • Re: [PATCH] fiemap: fix problem with setting FIEMAP_EXTENT_LAST
    ... Officially we shouldn't do this sort of thing in a -stable/-rc4 patch. ... @inode - the inode to map ... Or would you be more confident if we ran with version 1 for now? ...
    (Linux-Kernel)
  • Re: SAVING GRACE (why?)
    ... or the self gratifying sex. ... not a patch on that show, ... I thought it was my TV or rather my DVR that muddied the sound. ... excuse for that sort of stuff nowadays. ...
    (rec.arts.mystery)