Skip to content

Commit ebd9b67

Browse files
JasonYanHwgregkh
authored andcommitted
coresight: cti: Make some symbols static
Fix the following sparse warning: drivers/hwtracing/coresight/coresight-cti.c:22:1: warning: symbol 'ect_net' was not declared. Should it be static? drivers/hwtracing/coresight/coresight-cti.c:625:32: warning: symbol 'cti_ops_ect' was not declared. Should it be static? drivers/hwtracing/coresight/coresight-cti.c:630:28: warning: symbol 'cti_ops' was not declared. Should it be static? Reported-by: Hulk Robot <[email protected]> Signed-off-by: Jason Yan <[email protected]> Signed-off-by: Mathieu Poirier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 41e8c72 commit ebd9b67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/hwtracing/coresight/coresight-cti.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
/* net of CTI devices connected via CTM */
22-
LIST_HEAD(ect_net);
22+
static LIST_HEAD(ect_net);
2323

2424
/* protect the list */
2525
static DEFINE_MUTEX(ect_mutex);
@@ -622,12 +622,12 @@ int cti_disable(struct coresight_device *csdev)
622622
return cti_disable_hw(drvdata);
623623
}
624624

625-
const struct coresight_ops_ect cti_ops_ect = {
625+
static const struct coresight_ops_ect cti_ops_ect = {
626626
.enable = cti_enable,
627627
.disable = cti_disable,
628628
};
629629

630-
const struct coresight_ops cti_ops = {
630+
static const struct coresight_ops cti_ops = {
631631
.ect_ops = &cti_ops_ect,
632632
};
633633

0 commit comments

Comments
 (0)