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:
Ed Maste 2023-06-19 09:23:45 -04:00
parent e6b838363f
commit 7a91ccd2fb
2 changed files with 2 additions and 1 deletions

View file

@ -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)
{

View file

@ -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,