Skip to content

Commit 02839a3

Browse files
arndbjannau
authored andcommitted
drm: apple: mark local functions static
With linux-6.8, the kernel warns about functions that have no extern declaration, so mark both of these static. Fixes: 2d782b0 ("gpu: drm: apple: Add sound mode parsing") Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 58623cc commit 02839a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/apple/parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ int parse_epic_service_init(struct dcp_parse_ctx *handle, const char **name,
680680
return ret;
681681
}
682682

683-
int parse_sample_rate_bit(struct dcp_parse_ctx *handle, unsigned int *ratebit)
683+
static int parse_sample_rate_bit(struct dcp_parse_ctx *handle, unsigned int *ratebit)
684684
{
685685
s64 rate;
686686
int ret = parse_int(handle, &rate);
@@ -701,7 +701,7 @@ int parse_sample_rate_bit(struct dcp_parse_ctx *handle, unsigned int *ratebit)
701701
return 0;
702702
}
703703

704-
int parse_sample_fmtbit(struct dcp_parse_ctx *handle, u64 *fmtbit)
704+
static int parse_sample_fmtbit(struct dcp_parse_ctx *handle, u64 *fmtbit)
705705
{
706706
s64 sample_size;
707707
int ret = parse_int(handle, &sample_size);

0 commit comments

Comments
 (0)