Re: [BUG] NVMe: compilation error

From: Anisse Astier
Date: Wed Feb 08 2012 - 05:22:22 EST


On Fri, 3 Feb 2012 15:25:36 +0100, Witold Baryluk <baryluk@xxxxxxxxxxxxxxxx> wrote :

> Hi,
>
> when doing compiling I got
>
> CC [M] drivers/block/nvme.o
> drivers/block/nvme.c: In function ânvme_configure_admin_queueâ:
> drivers/block/nvme.c:999:2: error: implicit declaration of function âwriteqâ [-Werror=implicit-function-declaration]
> drivers/block/nvme.c:1003:2: error: implicit declaration of function âreadqâ [-Werror=implicit-function-declaration]
> cc1: some warnings being treated as errors

I'm having the same problem, my build is broken(3.3-rc2+), and I don't
use -Werror (gcc (Debian 4.4.5-8) 4.4.5):

CC [M] drivers/block/nvme.o
drivers/block/nvme.c: In function ânvme_configure_admin_queueâ:
drivers/block/nvme.c:999: error: implicit declaration of function âwriteqâ
drivers/block/nvme.c:1003: error: implicit declaration of function âreadqâ


>From a quick look at the code, writeq/readq are only defined for 64bits
builds, everywhere else it keeps being redefined (static definitons).

Regards,

Anisse
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/