From 7dfd7d778cbf34900c819125cfa5d3d4cafad87b Mon Sep 17 00:00:00 2001 From: Richard Acayan Date: Mon, 5 Jun 2023 18:07:40 -0400 Subject: [PATCH] fastrpc: hexagonrpcd: hexagonfs: mapped: set functions to static These functions are only referenced in the same compilation unit to define file operations. Set these functions to static so they don't get exported directly for no reason. --- fastrpc/hexagonrpcd/hexagonfs_mapped.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastrpc/hexagonrpcd/hexagonfs_mapped.c b/fastrpc/hexagonrpcd/hexagonfs_mapped.c index 44ca779..5600a46 100644 --- a/fastrpc/hexagonrpcd/hexagonfs_mapped.c +++ b/fastrpc/hexagonrpcd/hexagonfs_mapped.c @@ -126,7 +126,7 @@ err: return ret; } -ssize_t mapped_read(struct hexagonfs_fd *fd, size_t size, void *out) +static ssize_t mapped_read(struct hexagonfs_fd *fd, size_t size, void *out) { struct mapped_ctx *ctx = fd->data; ssize_t ret; @@ -138,7 +138,7 @@ ssize_t mapped_read(struct hexagonfs_fd *fd, size_t size, void *out) return ret; } -int mapped_readdir(struct hexagonfs_fd *fd, size_t size, char *out) +static int mapped_readdir(struct hexagonfs_fd *fd, size_t size, char *out) { struct mapped_ctx *ctx = fd->data; struct dirent *ent;