Changeset View
Changeset View
Standalone View
Standalone View
stand/libsa/geli/gelidev.c
Show All 31 Lines | |||||
#include <uuid.h> | #include <uuid.h> | ||||
#include <sys/disk.h> | #include <sys/disk.h> | ||||
#include "disk.h" | #include "disk.h" | ||||
#include "geliboot.h" | #include "geliboot.h" | ||||
#include "geliboot_internal.h" | #include "geliboot_internal.h" | ||||
static int geli_dev_init(void); | static int geli_dev_init(void); | ||||
static int geli_dev_strategy(void *, int, daddr_t, size_t, char *, size_t *); | static int geli_dev_strategy(void *, int, daddr_t, size_t, char *, size_t *); | ||||
static int geli_dev_open(struct open_file *f, ...); | static int geli_dev_open(struct open_file *f); | ||||
static int geli_dev_close(struct open_file *f); | static int geli_dev_close(struct open_file *f); | ||||
static int geli_dev_ioctl(struct open_file *, u_long, void *); | static int geli_dev_ioctl(struct open_file *, u_long, void *); | ||||
static int geli_dev_print(int); | static int geli_dev_print(int); | ||||
static void geli_dev_cleanup(void); | static void geli_dev_cleanup(void); | ||||
/* | /* | ||||
* geli_devsw is static because it never appears in any arch's global devsw | * geli_devsw is static because it never appears in any arch's global devsw | ||||
* array. Instead, when devopen() opens a DEVT_DISK device, it then calls | * array. Instead, when devopen() opens a DEVT_DISK device, it then calls | ||||
▲ Show 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
out: | out: | ||||
if (iobuf != buf) | if (iobuf != buf) | ||||
free(iobuf); | free(iobuf); | ||||
return (rc); | return (rc); | ||||
} | } | ||||
static int | static int | ||||
geli_dev_open(struct open_file *f, ...) | geli_dev_open(struct open_file *f __unused) | ||||
tsoome: and __unused here? | |||||
{ | { | ||||
/* | /* | ||||
* Since geli_devsw never gets referenced in any arch's global devsw | * Since geli_devsw never gets referenced in any arch's global devsw | ||||
* table, this function should never get called. | * table, this function should never get called. | ||||
*/ | */ | ||||
panic("%s: should never be called", __func__); | panic("%s: should never be called", __func__); | ||||
return (ENXIO); | return (ENXIO); | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |
and __unused here?