From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Tue, 02 Oct 2012 15:55:41 +0800 Subject: [U-Boot] [PATCH 39/71] serial: arm: Implement CONFIG_SERIAL_MULTI into altera_jtag serial driver In-Reply-To: <201210011641.16103.marex@denx.de> References: <1347837696-3192-1-git-send-email-marex@denx.de> <1347837696-3192-40-git-send-email-marex@denx.de> <50698D98.3060605@wytron.com.tw> <201210011641.16103.marex@denx.de> Message-ID: <506A9DFD.4020902@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/01/2012 10:41 PM, Marek Vasut wrote: >> Please include the following headers. >> >> --- a/drivers/serial/altera_jtag_uart.c >> +++ b/drivers/serial/altera_jtag_uart.c >> @@ -25,6 +25,8 @@ >> #include >> #include >> #include >> +#include >> +#include > > > Are you seeing any issues without them? > Dear Marek, The serial.h defines the struct serial_device. And the linux/compiler.h defines the __weak attribute. Without them, it won't compile. I have pulled your latest dm-serial-1 branch, compiled and tested altera_uart and altera_jtag_uart on nios2 board. They work without problem. There is only minor size change. Before.. Configuring for nios2-generic board... text data bss dec hex filename 134782 3206 23173 161161 27589 /home/thomas/tmp/u-boot/u-boot After.. Configuring for nios2-generic board... text data bss dec hex filename 135450 3254 23181 161885 2785d /home/thomas/tmp/u-boot/u-boot Thank you very much. Best regards Thomas Chou