From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265101AbUGNRZT (ORCPT ); Wed, 14 Jul 2004 13:25:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265099AbUGNRZT (ORCPT ); Wed, 14 Jul 2004 13:25:19 -0400 Received: from mion.elka.pw.edu.pl ([194.29.160.35]:23758 "EHLO mion.elka.pw.edu.pl") by vger.kernel.org with ESMTP id S265098AbUGNRZK (ORCPT ); Wed, 14 Jul 2004 13:25:10 -0400 From: Bartlomiej Zolnierkiewicz To: Adrian Bunk , Jeff Garzik Subject: Re: [PATCH][2.6.8-rc1-mm1] drivers/scsi/sg.c gcc341 inlining fix Date: Wed, 14 Jul 2004 19:31:12 +0200 User-Agent: KMail/1.5.3 Cc: Mikael Pettersson , akpm@osdl.org, dgilbert@interlog.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org References: <200407141216.i6ECGHxg008332@harpo.it.uu.se> <40F562FC.50806@pobox.com> <20040714165419.GF7308@fs.tum.de> In-Reply-To: <20040714165419.GF7308@fs.tum.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407141931.12249.bzolnier@elka.pw.edu.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org FYI 'inlining fix' was just merged as part of viro's sparse cleanups I still would like somebody to comment on idea of converting sg.c to use standard inlines from ... On Wednesday 14 of July 2004 18:54, Adrian Bunk wrote: > On Wed, Jul 14, 2004 at 12:44:44PM -0400, Jeff Garzik wrote: > > Adrian Bunk wrote: > > >On Wed, Jul 14, 2004 at 11:52:46AM -0400, Jeff Garzik wrote: > > >>... > > >>If gcc is insisting that prototypes for inlines no longer work, we have > > >>a lot of code churn on our hands ;-( Grumble. > > > > > >I've counted at about 30 files with such problems in a full i386 > > >2.6.7-mm7 compile. > > > > > >I've already sent patches for some of them (e.g. the dmascc.c one), and > > >they are usually pretty straightforward. > > > > This is not a problem with the kernel. > > > > All these files have been functioning just fine for years, with properly > > prototyped static inline functions. > > Add -Winline to the compile flags, and name one gcc version that is able > to inline them all in sg.c ... > > > Though there is a the claim that '#define inline always_inline' is > > leading to all this breakage. > > gcc 3.4 is just complaining louder that it can't inline something it was > told to inline. > > > Jeff > > cu > Adrian