Skip to contentSkip to conversation

NVMe: compilation error

BUG Witold Baryluk 2 participants 2 messages Feb 3, 2012 – Feb 8, 2012

lore
Share & tools
lore
#0 lore raw

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

Signature · 1 line
Witold Baryluk
#1 lore raw
Quoted 9 lines · Witold Baryluk

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’

Quoted 1 line

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