Skip to content

Commit

Permalink
Merge pull request #841 from mmichal10/static-functions
Browse files Browse the repository at this point in the history
Fix missing 'static' identifier
  • Loading branch information
robertbaldyga committed Sep 27, 2024
2 parents 34778d4 + e42df07 commit c978848
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/ocf_composite_volume.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct ocf_composite_volume {
unsigned max_io_size;
};

void ocf_composite_forward_io(ocf_volume_t cvolume,
static void ocf_composite_forward_io(ocf_volume_t cvolume,
ocf_forward_token_t token, int dir, uint64_t addr,
uint64_t bytes, uint64_t offset)
{
Expand Down Expand Up @@ -74,7 +74,7 @@ void ocf_composite_forward_io(ocf_volume_t cvolume,
ocf_forward_end(token, 0);
}

void ocf_composite_forward_flush(ocf_volume_t cvolume,
static void ocf_composite_forward_flush(ocf_volume_t cvolume,
ocf_forward_token_t token)
{
struct ocf_composite_volume *composite = ocf_volume_get_priv(cvolume);
Expand All @@ -87,7 +87,7 @@ void ocf_composite_forward_flush(ocf_volume_t cvolume,
ocf_forward_end(token, 0);
}

void ocf_composite_forward_discard(ocf_volume_t cvolume,
static void ocf_composite_forward_discard(ocf_volume_t cvolume,
ocf_forward_token_t token, uint64_t addr, uint64_t bytes)
{
struct ocf_composite_volume *composite = ocf_volume_get_priv(cvolume);
Expand Down Expand Up @@ -132,7 +132,7 @@ void ocf_composite_forward_discard(ocf_volume_t cvolume,
ocf_forward_end(token, 0);
}

void ocf_composite_forward_write_zeros(ocf_volume_t cvolume,
static void ocf_composite_forward_write_zeros(ocf_volume_t cvolume,
ocf_forward_token_t token, uint64_t addr, uint64_t bytes)
{
struct ocf_composite_volume *composite = ocf_volume_get_priv(cvolume);
Expand Down Expand Up @@ -177,7 +177,7 @@ void ocf_composite_forward_write_zeros(ocf_volume_t cvolume,
ocf_forward_end(token, 0);
}

void ocf_composite_forward_metadata(ocf_volume_t cvolume,
static void ocf_composite_forward_metadata(ocf_volume_t cvolume,
ocf_forward_token_t token, int dir, uint64_t addr,
uint64_t bytes, uint64_t offset)
{
Expand Down Expand Up @@ -224,7 +224,7 @@ void ocf_composite_forward_metadata(ocf_volume_t cvolume,
ocf_forward_end(token, 0);
}

void ocf_composite_forward_io_simple(ocf_volume_t cvolume,
static void ocf_composite_forward_io_simple(ocf_volume_t cvolume,
ocf_forward_token_t token, int dir,
uint64_t addr, uint64_t bytes)
{
Expand Down
2 changes: 1 addition & 1 deletion src/ocf_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "engine/cache_engine.h"
#include "ocf_def_priv.h"

int _ocf_queue_create(ocf_cache_t cache, ocf_queue_t *queue,
static int _ocf_queue_create(ocf_cache_t cache, ocf_queue_t *queue,
const struct ocf_queue_ops *ops)
{
ocf_queue_t tmp_queue;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils_cleaner.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ static void _ocf_cleaner_fire_error(struct ocf_request *master,
_ocf_cleaner_dealloc_req(req);
}

uint32_t ocf_cleaner_populate_req(struct ocf_request *req, uint32_t curr,
static uint32_t ocf_cleaner_populate_req(struct ocf_request *req, uint32_t curr,
const struct ocf_cleaner_attribs *attribs)
{
uint32_t count = attribs->count;
Expand Down

0 comments on commit c978848

Please sign in to comment.