From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [PATCH 2/2] memstick: add support for legacy memorysticks Date: Sat, 29 Sep 2012 19:20:41 +0200 Message-ID: References: <1348652941-31899-1-git-send-email-maximlevitsky@gmail.com> <1348652941-31899-3-git-send-email-maximlevitsky@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1348652941-31899-3-git-send-email-maximlevitsky@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: Maxim Levitsky Cc: Andrew Morton , Alex Dubov , linux-kernel@vger.kernel.org, Tejun Heo , Linux-Next List-Id: linux-next.vger.kernel.org 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