mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
mpi3mr: fix GCC kernel build
Previously every file that included mpi3mr_app.h but did not use
mpi3mr_mgmt_info reported error: 'mpi3mr_mgmt_info' defined but not
used.
Fixes: 2d1d418e1e ("mpi3mr: 3rd Generation Tri-Mode NVMe/SAS/SATA...")
Reported by: amd64-gcc12 Cirrus-CI job
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
e6b838363f
commit
7a91ccd2fb
2 changed files with 2 additions and 1 deletions
|
|
@ -67,6 +67,8 @@ static struct cdevsw mpi3mr_cdevsw = {
|
|||
.d_name = "mpi3mr",
|
||||
};
|
||||
|
||||
static struct mpi3mr_mgmt_info mpi3mr_mgmt_info;
|
||||
|
||||
static int
|
||||
mpi3mr_open(struct cdev *dev, int flags, int fmt, struct thread *td)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@
|
|||
|
||||
int mpi3mr_app_attach(struct mpi3mr_softc *);
|
||||
void mpi3mr_app_detach(struct mpi3mr_softc *);
|
||||
static struct mpi3mr_mgmt_info mpi3mr_mgmt_info;
|
||||
|
||||
enum mpi3mr_ioctl_adp_state {
|
||||
MPI3MR_IOCTL_ADP_STATE_UNKNOWN = 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue