History

platform/chrome: cros_ec: Make some symbols static

Fix sparse warning: drivers/platform/chrome/cros_ec_debugfs.c:256:30: warning: symbol 'cros_ec_console_log_fops' was not declared. Should it be static? drivers/platform/chrome/cros_ec_debugfs.c:265:30: warning: symbol 'cros_ec_pdinfo_fops' was not declared. Should it be static? drivers/platform/chrome/cros_ec_lightbar.c:550:24: warning: symbol 'cros_ec_lightbar_attr_group' was not declared. Should it be static? drivers/platform/chrome/cros_ec_sysfs.c:338:24: warning: symbol 'cros_ec_attr_group' was not declared. Should it be static? drivers/platform/chrome/cros_ec_vbc.c:104:24: warning: symbol 'cros_ec_vbc_attr_group' was not declared. Should it be static? drivers/platform/chrome/cros_ec_lpc.c:408:25: warning: symbol 'cros_ec_lpc_pm_ops' was not declared. Should it be static?

YueHaibing committed 7 years ago

Commit 81bc8c01 parent 79e3f1d5 files · +6 −6Browse files

Unified · Split

5 files
  1. drivers/platform/chrome/cros_ec_debugfs.c +2 −2
  2. drivers/platform/chrome/cros_ec_lightbar.c +1 −1
  3. drivers/platform/chrome/cros_ec_lpc.c +1 −1
  4. drivers/platform/chrome/cros_ec_sysfs.c +1 −1
  5. drivers/platform/chrome/cros_ec_vbc.c +1 −1
drivers/platform/chrome/cros_ec_debugfs.c+2−2
@@ -241,7 +241,7 @@ static ssize_t cros_ec_pdinfo_read(struct file *file, · 240 unmodified lines
241241 read_buf, p - read_buf);
242242 }
243243
244−const struct file_operations cros_ec_console_log_fops = {
244+static const struct file_operations cros_ec_console_log_fops = {
245245 .owner = THIS_MODULE,
246246 .open = cros_ec_console_log_open,
247247 .read = cros_ec_console_log_read,
@@ -250,7 +250,7 @@ const struct file_operations cros_ec_console_log_fops = { · 2 unmodified lines
250250 .release = cros_ec_console_log_release,
251251 };
252252
253−const struct file_operations cros_ec_pdinfo_fops = {
253+static const struct file_operations cros_ec_pdinfo_fops = {
254254 .owner = THIS_MODULE,
255255 .open = simple_open,
256256 .read = cros_ec_pdinfo_read,
drivers/platform/chrome/cros_ec_lightbar.c+1−1
@@ -547,7 +547,7 @@ static struct attribute *__lb_cmds_attrs[] = { · 546 unmodified lines
547547 NULL,
548548 };
549549
550−struct attribute_group cros_ec_lightbar_attr_group = {
550+static struct attribute_group cros_ec_lightbar_attr_group = {
551551 .name = "lightbar",
552552 .attrs = __lb_cmds_attrs,
553553 };
drivers/platform/chrome/cros_ec_lpc.c+1−1
@@ -405,7 +405,7 @@ static int cros_ec_lpc_resume(struct device *dev) · 404 unmodified lines
405405 }
406406 #endif
407407
408−const struct dev_pm_ops cros_ec_lpc_pm_ops = {
408+static const struct dev_pm_ops cros_ec_lpc_pm_ops = {
409409 SET_LATE_SYSTEM_SLEEP_PM_OPS(cros_ec_lpc_suspend, cros_ec_lpc_resume)
410410 };
411411
drivers/platform/chrome/cros_ec_sysfs.c+1−1
@@ -335,7 +335,7 @@ static umode_t cros_ec_ctrl_visible(struct kobject *kobj, · 334 unmodified lines
335335 return a->mode;
336336 }
337337
338−struct attribute_group cros_ec_attr_group = {
338+static struct attribute_group cros_ec_attr_group = {
339339 .attrs = __ec_attrs,
340340 .is_visible = cros_ec_ctrl_visible,
341341 };
drivers/platform/chrome/cros_ec_vbc.c+1−1
@@ -101,7 +101,7 @@ static struct bin_attribute *cros_ec_vbc_bin_attrs[] = { · 100 unmodified lines
101101 NULL
102102 };
103103
104−struct attribute_group cros_ec_vbc_attr_group = {
104+static struct attribute_group cros_ec_vbc_attr_group = {
105105 .name = "vbc",
106106 .bin_attrs = cros_ec_vbc_bin_attrs,
107107 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t