mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-04 20:19:47 +08:00 
			
		
		
		
	macintosh/via-pmu: Make some symbols static
The sparse tool complains as follows: drivers/macintosh/via-pmu.c:183:5: warning: symbol 'pmu_cur_battery' was not declared. Should it be static? drivers/macintosh/via-pmu.c:190:5: warning: symbol '__fake_sleep' was not declared. Should it be static? These symbols are not used outside of via-pmu.c, so this commit marks them static. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210407125803.4138837-1-yukuai3@huawei.com
This commit is contained in:
		
							parent
							
								
									4204ecd598
								
							
						
					
					
						commit
						95d1439233
					
				| @ -180,14 +180,14 @@ static struct proc_dir_entry *proc_pmu_options; | |||||||
| static int option_server_mode; | static int option_server_mode; | ||||||
| 
 | 
 | ||||||
| int pmu_battery_count; | int pmu_battery_count; | ||||||
| int pmu_cur_battery; | static int pmu_cur_battery; | ||||||
| unsigned int pmu_power_flags = PMU_PWR_AC_PRESENT; | unsigned int pmu_power_flags = PMU_PWR_AC_PRESENT; | ||||||
| struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES]; | struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES]; | ||||||
| static int query_batt_timer = BATTERY_POLLING_COUNT; | static int query_batt_timer = BATTERY_POLLING_COUNT; | ||||||
| static struct adb_request batt_req; | static struct adb_request batt_req; | ||||||
| static struct proc_dir_entry *proc_pmu_batt[PMU_MAX_BATTERIES]; | static struct proc_dir_entry *proc_pmu_batt[PMU_MAX_BATTERIES]; | ||||||
| 
 | 
 | ||||||
| int __fake_sleep; | static int __fake_sleep; | ||||||
| int asleep; | int asleep; | ||||||
| 
 | 
 | ||||||
| #ifdef CONFIG_ADB | #ifdef CONFIG_ADB | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Yu Kuai
						Yu Kuai