Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758386Ab3FMPvk (ORCPT ); Thu, 13 Jun 2013 11:51:40 -0400 Received: from mxout1.idt.com ([157.165.5.25]:48112 "EHLO mxout1.idt.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757257Ab3FMPvj (ORCPT ); Thu, 13 Jun 2013 11:51:39 -0400 From: "Bounine, Alexandre" To: Ralf Baechle , Matt Porter , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] RAPIDIO: Fix idt_gen2.c build Thread-Topic: [PATCH] RAPIDIO: Fix idt_gen2.c build Thread-Index: AQHOaE0Shbtjgbiyn0epBaetwfLi2pkzyu8w Date: Thu, 13 Jun 2013 15:51:19 +0000 Message-ID: <8D983423E7EDF846BB3056827B8CC5D14BC37BC9@corpmail1.na.ads.idt.com> References: <20130613154231.GA27745@linux-mips.org> In-Reply-To: <20130613154231.GA27745@linux-mips.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [157.165.140.29] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id r5DFpkPH030593 Content-Length: 1707 Lines: 45 Looks good to me. > -----Original Message----- > From: Ralf Baechle [mailto:ralf@linux-mips.org] > Sent: Thursday, June 13, 2013 11:43 AM > To: Matt Porter; Bounine, Alexandre; linux-kernel@vger.kernel.org > Subject: [PATCH] RAPIDIO: Fix idt_gen2.c build > > idt_gen2.c relies that one of the header files used will include > which will define the required symbol PAGE_SIZE. On MIPS > for example will not be included implicitly which will > result in the following build error: > > CC drivers/rapidio/switches/idt_gen2.o > drivers/rapidio/switches/idt_gen2.c: In function ‘idtg2_show_errlog’: > drivers/rapidio/switches/idt_gen2.c:379:30: error: ‘PAGE_SIZE’ > undeclared (first use in this function) > drivers/rapidio/switches/idt_gen2.c:379:30: note: each undeclared > identifier is reported only once for each function it appears in > > Signed-off-by: Ralf Baechle > --- > > If you're ok with this patch I can put it into my next pull request for > Linux. Thanks! > > > drivers/rapidio/switches/idt_gen2.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/rapidio/switches/idt_gen2.c > b/drivers/rapidio/switches/idt_gen2.c > index 809b7a3..5d3b0f0 100644 > --- a/drivers/rapidio/switches/idt_gen2.c > +++ b/drivers/rapidio/switches/idt_gen2.c > @@ -15,6 +15,8 @@ > #include > #include > #include > + > +#include > #include "../rio.h" > > #define LOCAL_RTE_CONF_DESTID_SEL 0x010070 ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?