cpufreq/intel_pstate: Add static declarations to internal functions
Fixes warnings reported by kbuild test robot sparse warnings: (new ones prefixed by >>) drivers/cpufreq/intel_pstate.c:729:6: sparse: symbol 'copy_pid_params' was not declared. Should it be static? drivers/cpufreq/intel_pstate.c:739:6: sparse: symbol 'copy_cpu_funcs' was not declared. Should it be static? Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
		
					parent
					
						
							
								45cac118ff
							
						
					
				
			
			
				commit
				
					
						e0a261a207
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -761,7 +761,7 @@ static int intel_pstate_msrs_not_valid(void)
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void copy_pid_params(struct pstate_adjust_policy *policy)
 | 
					static void copy_pid_params(struct pstate_adjust_policy *policy)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	pid_params.sample_rate_ms = policy->sample_rate_ms;
 | 
						pid_params.sample_rate_ms = policy->sample_rate_ms;
 | 
				
			||||||
	pid_params.p_gain_pct = policy->p_gain_pct;
 | 
						pid_params.p_gain_pct = policy->p_gain_pct;
 | 
				
			||||||
| 
						 | 
					@ -771,7 +771,7 @@ void copy_pid_params(struct pstate_adjust_policy *policy)
 | 
				
			||||||
	pid_params.setpoint = policy->setpoint;
 | 
						pid_params.setpoint = policy->setpoint;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void copy_cpu_funcs(struct pstate_funcs *funcs)
 | 
					static void copy_cpu_funcs(struct pstate_funcs *funcs)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	pstate_funcs.get_max   = funcs->get_max;
 | 
						pstate_funcs.get_max   = funcs->get_max;
 | 
				
			||||||
	pstate_funcs.get_min   = funcs->get_min;
 | 
						pstate_funcs.get_min   = funcs->get_min;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue