Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936087Ab3DKSEe (ORCPT ); Thu, 11 Apr 2013 14:04:34 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:37955 "EHLO mail-ie0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936017Ab3DKSEc (ORCPT ); Thu, 11 Apr 2013 14:04:32 -0400 MIME-Version: 1.0 In-Reply-To: <20130410152229.GC17541@sepie.suse.cz> References: <1365585879-5321-1-git-send-email-geert@linux-m68k.org> <51653C5D.4060408@suse.cz> <20130410122611.GB17541@sepie.suse.cz> <20130410152229.GC17541@sepie.suse.cz> Date: Thu, 11 Apr 2013 20:04:31 +0200 X-Google-Sender-Auth: Wt6x1Sj64GFUklafxMunedF_Yyw Message-ID: Subject: Re: [PATCH/RFC] m68k: Add -ffreestanding to KBUILD_CFLAGS From: Geert Uytterhoeven To: Michal Marek Cc: linux-m68k , Linux-Arch , linux-kbuild , "linux-kernel@vger.kernel.org" , Andi Kleen Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1220 Lines: 32 On Wed, Apr 10, 2013 at 5:22 PM, Michal Marek wrote: > Subject: [PATCH] m68k: Remove inline strlen() implementation > > GCC can replace a strncat() call with constant second argument into a > strlen + store, which results in a link error: > > ERROR: "strlen" [net/ipv4/ip_tunnel.ko] undefined! > > The inline function is a simple for loop in C. Other architectures > either use an asm optimized variant, or use the generic function from > lib/string.c. > > Reported-by: Geert Uytterhoeven > Signed-off-by: Michal Marek Thanks, this one works. Let me do some measurements... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- 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/