From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25084 invoked by alias); 27 Jun 2005 14:34:18 -0000 Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org Received: (qmail 25049 invoked by uid 22791); 27 Jun 2005 14:34:10 -0000 Received: from otoro.itis.ethz.ch (HELO otoro.itis.ethz.ch) (129.132.24.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 27 Jun 2005 14:34:10 +0000 Received: from localhost (localhost [127.0.0.1]) by otoro.itis.ethz.ch (Postfix) with ESMTP id 4E22A5B383; Mon, 27 Jun 2005 16:34:08 +0200 (MEST) Received: from otoro.itis.ethz.ch ([127.0.0.1]) by localhost (otoro [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05040-03-8; Mon, 27 Jun 2005 16:34:07 +0200 (MEST) Received: from cadpad (itis-speag-094-dhcp.itis.ethz.ch [129.132.24.94]) by otoro.itis.ethz.ch (Postfix) with SMTP id 94D8B5B380; Mon, 27 Jun 2005 16:34:07 +0200 (MEST) Message-ID: <009501c57b25$461ba370$5e188481@cadpad> Reply-To: "oliver munz @ s p e a g" From: "oliver munz @ s p e a g" To: "Andrew Lunn" , References: <007a01c57b16$39a30890$5e188481@cadpad> <20050627130201.GD11071@lunn.ch> <20050627134055.GG11071@lunn.ch> Subject: Re: why use the SA1110-USB-driver a static /dev/usbs... definition ??? Date: Mon, 27 Jun 2005 14:34:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Antivirus: avast! (VPS 0526-0, 27.06.2005), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: by amavisd-new at itis.ethz.ch X-SW-Source: 2005-06/txt/msg00012.txt.bz2 Hi Andrew You are right. I use an "arm-elf-gcc (GCC) 3.4.4"... I will try Your patch, when the driver is doing something. If I understand the use of "static" in the USB-driver, then its only a matter of being not visible outside of the USB-driver. If the symbol will be in the library is controlled by the cdl-headers and compiler optimation is not usefull... Thanks Oli ----- Original Message ----- From: "Andrew Lunn" To: "Andrew Lunn" Cc: "oliver munz @ s p e a g" ; Sent: Monday, June 27, 2005 3:40 PM Subject: Re: why use the SA1110-USB-driver a static /dev/usbs... definition ??? >> What version of gcc are you using? Something newish? > > My guess would be something like 3.4 or higher. > > http://www.gnu.org/software/gcc/gcc-3.4/changes.html > > I says that "Unreferenced static variables and functions are removed" > > This fits your problem description. > > Please could you try the attached patch. > > Thanks > Andrew > >