Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752949Ab2JAUYa (ORCPT ); Mon, 1 Oct 2012 16:24:30 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:47883 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281Ab2JAUY3 (ORCPT ); Mon, 1 Oct 2012 16:24:29 -0400 Message-ID: <1349123064.29081.0.camel@maxim-laptop> Subject: Re: [PATCH 2/2] memstick: add support for legacy memorysticks From: Maxim Levitsky To: Geert Uytterhoeven Cc: Andrew Morton , Alex Dubov , linux-kernel@vger.kernel.org, Tejun Heo , Linux-Next Date: Mon, 01 Oct 2012 22:24:24 +0200 In-Reply-To: References: <1348652941-31899-1-git-send-email-maximlevitsky@gmail.com> <1348652941-31899-3-git-send-email-maximlevitsky@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2117 Lines: 59 On Sat, 2012-09-29 at 19:20 +0200, Geert Uytterhoeven wrote: > On Wed, Sep 26, 2012 at 11:49 AM, Maxim Levitsky > wrote: > > --- /dev/null > > +++ b/drivers/memstick/core/ms_block.c > > > +#define pr_fmt(fmt) DRIVER_NAME ": " fmt > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include "ms_block.h" > > http://kisskb.ellerman.id.au/kisskb/buildresult/7280352/ > arch/m68k/include/asm/hardirq.h:23:20: error: expected ')' before 'DRIVER_NAME' > make[4]: *** [drivers/memstick/core/ms_block.o] Error 1 > > The reason for this is that pr_fmt() references DRIVER_NAME and is defined > before the first include, while DRIVER_NAME is only defined in ms_block.h, > which is the last included file. If any subsequent include file uses pr_fmt() > (e.g. the call to pr_crit() in arch/m68k/include/asm/hardirq.h), this > causes a build > failure. > > I suggest moving the DRIVER_NAME define to ms_block.c. > Cfr. memstick.c and mspro_block.c, who already have their own definition. > > 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 Completely agree! I was somewhat busy lately, so I didn't address this yet. I'll send a patch tomorrow. Best regards, Maxim Levitsky -- 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/