static int pagesize;
static int *signature_page;
-struct swap_header_v1 {
+static struct swap_header_v1 {
char bootbits[1024]; /* Space for disklabel etc. */
unsigned int version;
unsigned int last_page;
unsigned int badpages[1];
} *p;
-static void init_signature_page()
+static inline void init_signature_page(void)
{
pagesize = getpagesize();
p = (struct swap_header_v1 *) signature_page;
}
-static void write_signature(char *sig)
+static inline void write_signature(char *sig)
{
char *sp = (char *) signature_page;
#define MAX_BADPAGES ((pagesize-1024-128*sizeof(int)-10)/sizeof(int))
-static void bit_set(unsigned int *addr, unsigned int nr)
+static inline void bit_set(unsigned int *addr, unsigned int nr)
{
unsigned int r, m;
bit_set(signature_page, page);
}
-static void page_bad(int page)
+static inline void page_bad(int page)
{
if (version == 0)
bit_test_and_clear(signature_page, page);