From patchwork Thu Dec 11 06:40:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lim, Siew Hoon" X-Patchwork-Id: 5474301 Return-Path: X-Original-To: patchwork-ltsi-dev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E7936BEEA8 for ; Thu, 11 Dec 2014 06:40:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6AAA720166 for ; Thu, 11 Dec 2014 06:40:57 +0000 (UTC) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F288C200E9 for ; Thu, 11 Dec 2014 06:40:55 +0000 (UTC) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 794219FB; Thu, 11 Dec 2014 06:40:55 +0000 (UTC) X-Original-To: ltsi-dev@lists.linuxfoundation.org Delivered-To: ltsi-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 870899FB for ; Thu, 11 Dec 2014 06:40:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id 4D4921FD47 for ; Thu, 11 Dec 2014 06:40:53 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 10 Dec 2014 22:39:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,691,1406617200"; d="scan'208,217";a="497075800" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by orsmga003.jf.intel.com with ESMTP; 10 Dec 2014 22:37:03 -0800 Received: from pgsmsx106.gar.corp.intel.com ([169.254.9.17]) by PGSMSX104.gar.corp.intel.com ([169.254.3.33]) with mapi id 14.03.0195.001; Thu, 11 Dec 2014 14:40:52 +0800 From: "Lim, Siew Hoon" To: "ltsi-dev@lists.linuxfoundation.org" Thread-Topic: Please fix the compilation error in LTSI 3.10.61 Thread-Index: AdAVDRhKUf0Oi8h7QlOESGepEL1rnQ== Date: Thu, 11 Dec 2014 06:40:51 +0000 Message-ID: Accept-Language: de-LI, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.20.205] MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org Subject: [LTSI-dev] Please fix the compilation error in LTSI 3.10.61 X-BeenThere: ltsi-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "A list to discuss patches, development, and other things related to the LTSI project" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ltsi-dev-bounces@lists.linuxfoundation.org Errors-To: ltsi-dev-bounces@lists.linuxfoundation.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, Please fix the compilation error in LTSI3.10.61. CC [M] drivers/scsi/bfa/bfa_core.o drivers/tty/serial/8250/8250_dw.c: In function 'dw8250_handle_irq': drivers/tty/serial/8250/8250_dw.c:161:25: error: 'd' undeclared (first use in this function) drivers/tty/serial/8250/8250_dw.c:161:25: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [drivers/tty/serial/8250/8250_dw.o] Error 1 make[3]: *** [drivers/tty/serial/8250] Error 2 make[2]: *** [drivers/tty/serial] Error 2 make[1]: *** [drivers/tty] Error 2 make[1]: *** Waiting for unfinished jobs.... cause by commit id: 1e6d1ee7d3aa94cd721ebcd7c87a96bc0330c1ef complaining `d' undeclared. static int dw8250_handle_irq(struct uart_port *p) { unsigned int iir = p->serial_in(p, UART_IIR); if (serial8250_handle_irq(p, iir)) { return 1; } else if ((iir & UART_IIR_BUSY) == UART_IIR_BUSY) { /* Clear the USR */ (void)p->serial_in(p, d->usr_reg); return 1; } return 0; } To fix the compilation error: thanks. ...siewhoon diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index a278d1d..2c05c46 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -153,6 +153,7 @@ static unsigned int dw8250_serial_in32(struct uart_port *p, int offset) static int dw8250_handle_irq(struct uart_port *p) { unsigned int iir = p->serial_in(p, UART_IIR); + struct dw8250_data *d = p->private_data; if (serial8250_handle_irq(p, iir)) { return 1;