mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	proc: more "const char *" pointers
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									849d20a128
								
							
						
					
					
						commit
						cedbccab8b
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -105,7 +105,7 @@
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct pid_entry {
 | 
					struct pid_entry {
 | 
				
			||||||
	char *name;
 | 
						const char *name;
 | 
				
			||||||
	int len;
 | 
						int len;
 | 
				
			||||||
	umode_t mode;
 | 
						umode_t mode;
 | 
				
			||||||
	const struct inode_operations *iop;
 | 
						const struct inode_operations *iop;
 | 
				
			||||||
| 
						 | 
					@ -418,8 +418,8 @@ static int proc_oom_score(struct task_struct *task, char *buffer)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct limit_names {
 | 
					struct limit_names {
 | 
				
			||||||
	char *name;
 | 
						const char *name;
 | 
				
			||||||
	char *unit;
 | 
						const char *unit;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct limit_names lnames[RLIM_NLIMITS] = {
 | 
					static const struct limit_names lnames[RLIM_NLIMITS] = {
 | 
				
			||||||
| 
						 | 
					@ -2056,7 +2056,7 @@ static int show_timer(struct seq_file *m, void *v)
 | 
				
			||||||
	struct k_itimer *timer;
 | 
						struct k_itimer *timer;
 | 
				
			||||||
	struct timers_private *tp = m->private;
 | 
						struct timers_private *tp = m->private;
 | 
				
			||||||
	int notify;
 | 
						int notify;
 | 
				
			||||||
	static char *nstr[] = {
 | 
						static const char * const nstr[] = {
 | 
				
			||||||
		[SIGEV_SIGNAL] = "signal",
 | 
							[SIGEV_SIGNAL] = "signal",
 | 
				
			||||||
		[SIGEV_NONE] = "none",
 | 
							[SIGEV_NONE] = "none",
 | 
				
			||||||
		[SIGEV_THREAD] = "thread",
 | 
							[SIGEV_THREAD] = "thread",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue