Date: Sat, 30 Jan 2016 09:51:00 +0100 From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= <olivier@cochard.me> To: Warner Losh <imp@freebsd.org> Cc: src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org> Subject: Re: svn commit: r295062 - head/sbin/nvmecontrol Message-ID: <CA%2Bq%2BTcoRM6HCsChiL7ZR8vJYPJbkFm8Xi7hei_DUpOEXWmkHRw@mail.gmail.com> In-Reply-To: <201601300618.u0U6Ibm8005064@repo.freebsd.org> References: <201601300618.u0U6Ibm8005064@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 30, 2016 at 7:18 AM, Warner Losh <imp@freebsd.org> wrote: > Author: imp > Date: Sat Jan 30 06:18:37 2016 > New Revision: 295062 > URL: https://svnweb.freebsd.org/changeset/base/295062 > > Log: > Implement power command to list all power modes, find out the power > mode we're in and to set the power mode. > > Added: > head/sbin/nvmecontrol/power.c (contents, props changed) > =E2=80=8BHi Warner, my buildworld is no more happy ;-)=E2=80=8B --- power.o --- /usr/src/sbin/nvmecontrol/power.c:44:16: error: invalid application of 'sizeof' to an incomplete type 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, ^ --- all_subdir_kerberos5 --- --- inquire_cred_by_mech.po --- --- all_subdir_sbin --- /usr/src/sbin/nvmecontrol/power.c:60:14: error: incomplete definition of type 'struct nvme_power_state' mpower =3D nps->mp; ~~~^ /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, ^ /usr/src/sbin/nvmecontrol/power.c:61:9: error: incomplete definition of type 'struct nvme_power_state' if (nps->mps =3D=3D 0) ~~~^ /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, ^ /usr/src/sbin/nvmecontrol/power.c:63:14: error: incomplete definition of type 'struct nvme_power_state' ipower =3D nps->idlp; ~~~^ /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, ^ /usr/src/sbin/nvmecontrol/power.c:64:9: error: incomplete definition of type 'struct nvme_power_state' if (nps->ips =3D=3D 1) ~~~^ /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, ^ /usr/src/sbin/nvmecontrol/power.c:66:14: error: incomplete definition of type 'struct nvme_power_state' apower =3D nps->actp; ~~~^ /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, ^ /usr/src/sbin/nvmecontrol/power.c:67:9: error: incomplete definition of type 'struct nvme_power_state' if (nps->aps =3D=3D 1) ~~~^ /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, ^ /usr/src/sbin/nvmecontrol/power.c:71:12: error: incomplete definition of type 'struct nvme_power_state' nps->nops ? '*' : ' ', nps->enlat / 1000, nps->enlat % 1000, ~~~^ /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, ^ /usr/src/sbin/nvmecontrol/power.c:71:35: error: incomplete definition of type 'struct nvme_power_state' nps->nops ? '*' : ' ', nps->enlat / 1000, nps->enlat % 1000, ~~~^ /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) =3D=3D 256 / NBBY, etc. =E2=80=8B
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bq%2BTcoRM6HCsChiL7ZR8vJYPJbkFm8Xi7hei_DUpOEXWmkHRw>