~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to fs/proc/generic.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
DEFINE_SPINLOCK(proc_subdir_lock);
30
30
 
31
 
static int proc_match(int len, const char *name, struct proc_dir_entry *de)
 
31
static int proc_match(unsigned int len, const char *name, struct proc_dir_entry *de)
32
32
{
33
33
        if (de->namelen != len)
34
34
                return 0;
303
303
{
304
304
        const char              *cp = name, *next;
305
305
        struct proc_dir_entry   *de;
306
 
        int                     len;
 
306
        unsigned int            len;
307
307
 
308
308
        de = *ret;
309
309
        if (!de)
602
602
{
603
603
        struct proc_dir_entry *ent = NULL;
604
604
        const char *fn = name;
605
 
        int len;
 
605
        unsigned int len;
606
606
 
607
607
        /* make sure name is valid */
608
608
        if (!name || !strlen(name)) goto out;
674
674
        }
675
675
        return ent;
676
676
}
 
677
EXPORT_SYMBOL(proc_mkdir_mode);
677
678
 
678
679
struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name,
679
680
                struct proc_dir_entry *parent)
786
787
        struct proc_dir_entry **p;
787
788
        struct proc_dir_entry *de = NULL;
788
789
        const char *fn = name;
789
 
        int len;
 
790
        unsigned int len;
790
791
 
791
792
        spin_lock(&proc_subdir_lock);
792
793
        if (__xlate_proc_name(name, &parent, &fn) != 0) {