2012-02-03 14:30:48

by Witold Baryluk

[permalink] [raw]
Subject: [BUG] NVMe: compilation error

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


Last commit releated to this file is 93c3d65b28bab6da520c2add9cb387a0303f8b2d.

gcc version 4.6.2 (Debian 4.6.2-12)

i386

I additionally use -march=pentium-m

Config file attached.

Regards,
Witek


--
Witold Baryluk


Attachments:
(No filename) (639.00 B)
config-baryluk-43-buggy-nvme.txt.gz (21.84 kB)
Download all attachments

2012-02-08 10:22:25

by Anisse Astier

[permalink] [raw]
Subject: Re: [BUG] NVMe: compilation error

On Fri, 3 Feb 2012 15:25:36 +0100, Witold Baryluk <[email protected]> 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