Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Jun 17, 2024
1 parent 9bb4055 commit 862776d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crypto/fipsmodule/rand/snapsafe_detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <fcntl.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/random.h>
#include <unistd.h>

/* Snapsafety state */
Expand All @@ -19,9 +18,9 @@
#define SNAPSAFETY_STATE_NOT_SUPPORTED 0x02

DEFINE_STATIC_ONCE(aws_snapsafe_init)
DEFINE_BSS_GET(const char *, sgc_file_path);
DEFINE_BSS_GET(volatile uint32_t *, sgc_addr);
DEFINE_BSS_GET(int, snapsafety_state);
DEFINE_BSS_GET(const char *, sgc_file_path)
DEFINE_BSS_GET(volatile uint32_t *, sgc_addr)
DEFINE_BSS_GET(int, snapsafety_state)

/* aws_snapsafe_check_kernel_support returns 1 if the special sysgenid device
* file exists and 0 otherwise. */
Expand Down

0 comments on commit 862776d

Please sign in to comment.