]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: ucsi: huawei_gaokun: make gaokun_ucsi_ops static
authorPengyu Luo <mitltlatltl@gmail.com>
Thu, 5 Mar 2026 14:40:36 +0000 (22:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 14:01:17 +0000 (15:01 +0100)
The gaokun_ucsi_ops structure is only used within its translation unit
and is not referenced from any other file. Add the 'static' qualifier
to avoid unnecessary symbol export.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603050203.KD4RWA00-lkp@intel.com
Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260305144054.27848-1-mitltlatltl@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi_huawei_gaokun.c

index c5965656babadd7d93c45c85e42ce2500c90ce22..ca749fde49bd0cff4c98e57ee49c177181050094 100644 (file)
@@ -193,7 +193,7 @@ static void gaokun_ucsi_connector_status(struct ucsi_connector *con)
        gaokun_set_orientation(con, &uec->ports[idx]);
 }
 
-const struct ucsi_operations gaokun_ucsi_ops = {
+static const struct ucsi_operations gaokun_ucsi_ops = {
        .read_version = gaokun_ucsi_read_version,
        .read_cci = gaokun_ucsi_read_cci,
        .poll_cci = gaokun_ucsi_read_cci,