Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756491Ab2BHKWZ (ORCPT ); Wed, 8 Feb 2012 05:22:25 -0500 Received: from smtp1-g21.free.fr ([212.27.42.1]:45110 "EHLO smtp1-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753867Ab2BHKWY convert rfc822-to-8bit (ORCPT ); Wed, 8 Feb 2012 05:22:24 -0500 Date: Wed, 8 Feb 2012 11:22:10 +0100 From: Anisse Astier To: Witold Baryluk , Matthew Wilcox , linux-kernel@vger.kernel.org Cc: Linus Torvalds Subject: Re: [BUG] NVMe: compilation error Message-ID: <20120208112210.10f41e68@destiny.ordissimo> In-Reply-To: <20120203142536.GL12978@smp.if.uj.edu.pl> References: <20120203142536.GL12978@smp.if.uj.edu.pl> Organization: Substantiel X-Mailer: Claws Mail 3.7.8 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1301 Lines: 32 On Fri, 3 Feb 2012 15:25:36 +0100, Witold Baryluk 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/