@@ -1846,7 +1846,7 @@ const struct dentry_operations pid_dentry_operations =
18461846 * by stat.
18471847 */
18481848bool proc_fill_cache (struct file * file , struct dir_context * ctx ,
1849- const char * name , int len ,
1849+ const char * name , unsigned int len ,
18501850 instantiate_t instantiate , struct task_struct * task , const void * ptr )
18511851{
18521852 struct dentry * child , * dir = file -> f_path .dentry ;
@@ -3222,7 +3222,7 @@ int proc_pid_readdir(struct file *file, struct dir_context *ctx)
32223222 iter .task ;
32233223 iter .tgid += 1 , iter = next_tgid (ns , iter )) {
32243224 char name [10 + 1 ];
3225- int len ;
3225+ unsigned int len ;
32263226
32273227 cond_resched ();
32283228 if (!has_pid_permissions (ns , iter .task , HIDEPID_INVISIBLE ))
@@ -3549,7 +3549,7 @@ static int proc_task_readdir(struct file *file, struct dir_context *ctx)
35493549 task ;
35503550 task = next_tid (task ), ctx -> pos ++ ) {
35513551 char name [10 + 1 ];
3552- int len ;
3552+ unsigned int len ;
35533553 tid = task_pid_nr_ns (task , ns );
35543554 len = snprintf (name , sizeof (name ), "%u" , tid );
35553555 if (!proc_fill_cache (file , ctx , name , len ,
0 commit comments