Skip to content

Commit 6b496a9

Browse files
Tom Rixalexandrebelloni
authored andcommitted
i3c: ast2600: set variable ast2600_i3c_ops storage-class-specifier to static
smatch reports drivers/i3c/master/ast2600-i3c-master.c:121:34: warning: symbol 'ast2600_i3c_ops' was not declared. Should it be static? This variable is only used in its defining file, so it should be static. Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au> Link: https://lore.kernel.org/r/20230429134601.2688558-1-trix@redhat.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 8c6c78e commit 6b496a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i3c/master/ast2600-i3c-master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static void ast2600_i3c_set_dat_ibi(struct dw_i3c_master *i3c,
118118
}
119119
}
120120

121-
const struct dw_i3c_platform_ops ast2600_i3c_ops = {
121+
static const struct dw_i3c_platform_ops ast2600_i3c_ops = {
122122
.init = ast2600_i3c_init,
123123
.set_dat_ibi = ast2600_i3c_set_dat_ibi,
124124
};

0 commit comments

Comments
 (0)