aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPei Xiao <xiaopei01@kylinos.cn>2024-12-27 16:54:50 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-27 13:06:53 +0100
commitda31486bf2348078b6542eeed152caca74154bd5 (patch)
tree7f76b67f9893fcaf3ff46b9ce6e48275c0301f78
parentxhci: Add missing capability definition bits (diff)
downloadwireguard-linux-da31486bf2348078b6542eeed152caca74154bd5.tar.xz
wireguard-linux-da31486bf2348078b6542eeed152caca74154bd5.zip
usb: typec: ucsi: make yoga_c630_ucsi_ops be static
sparse warnings: drivers/usb/typec/ucsi/ucsi_yoga_c630.c:101:30: sparse: sparse: symbol 'yoga_c630_ucsi_ops' was not declared. Should it be static? Add static to fix sparse warnings. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202412102033.J4vZNaaR-lkp@intel.com/ Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn> Link: https://lore.kernel.org/r/cefe3bc20b2ddaee2a0924ba32243f035e92a025.1735289530.git.xiaopei01@kylinos.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/typec/ucsi/ucsi_yoga_c630.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/ucsi/ucsi_yoga_c630.c b/drivers/usb/typec/ucsi/ucsi_yoga_c630.c
index f3a5e24ea84d..4cae85c0dc12 100644
--- a/drivers/usb/typec/ucsi/ucsi_yoga_c630.c
+++ b/drivers/usb/typec/ucsi/ucsi_yoga_c630.c
@@ -71,7 +71,7 @@ static int yoga_c630_ucsi_async_control(struct ucsi *ucsi, u64 command)
return yoga_c630_ec_ucsi_write(uec->ec, (u8*)&command);
}
-const struct ucsi_operations yoga_c630_ucsi_ops = {
+static const struct ucsi_operations yoga_c630_ucsi_ops = {
.read_version = yoga_c630_ucsi_read_version,
.read_cci = yoga_c630_ucsi_read_cci,
.read_message_in = yoga_c630_ucsi_read_message_in,