Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: cstyle fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com>
grom72 committed Jan 17, 2025
1 parent df0472c commit cb97f8c
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/benchmarks/pmem_flush.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2016-2020, Intel Corporation */
/* Copyright 2025 Hewlett Packard Enterprise Development LP */

/*
* pmem_flush.cpp -- benchmark implementation for pmem_persist and pmem_msync
@@ -357,7 +358,7 @@ pmem_flush_init(struct benchmark *bench, struct benchmark_args *args)
return -1;
}

uint64_t (*func_mode)(struct pmem_bench * pmb, uint64_t index);
uint64_t (*func_mode)(struct pmem_bench *pmb, uint64_t index);

auto *pmb = (struct pmem_bench *)malloc(sizeof(struct pmem_bench));
assert(pmb != nullptr);
3 changes: 2 additions & 1 deletion src/benchmarks/pmembench.cpp
Original file line number Diff line number Diff line change
@@ -1464,7 +1464,8 @@ pmembench_run(struct pmembench *pb, struct benchmark *bench)
/*
* pmembench_free_benchmarks -- release all benchmarks
*/
static void __attribute__((destructor)) pmembench_free_benchmarks(void)
static void __attribute__((destructor))
pmembench_free_benchmarks(void)
{
while (!PMDK_LIST_EMPTY(&benchmarks.head)) {
struct benchmark *bench = PMDK_LIST_FIRST(&benchmarks.head);
1 change: 1 addition & 0 deletions src/test/ctl_prefault/ctl_prefault.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2018-2023, Intel Corporation */
/* Copyright 2025 Hewlett Packard Enterprise Development LP */

/*
* ctl_prefault.c -- tests for the ctl entry points: prefault

0 comments on commit cb97f8c

Please sign in to comment.