All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Baptiste Tredez <jean-baptiste.tredez@basystemes.fr>
To: xenomai@xenomai.org
Subject: [Xenomai] rt_imx_uart compilation
Date: Mon, 25 Jan 2016 17:44:48 +0100	[thread overview]
Message-ID: <56A65100.8000207@basystemes.fr> (raw)

Hello,

I tried to compile linux kernel 3.18.12 with xenomai 2.6.4 and rtserial 
enabled on arm imx6. The compilation failed with :
   CC [M]  drivers/xenomai/serial/rt_imx_uart.o
drivers/xenomai/serial/rt_imx_uart.c:39:27: fatal error: 
mach/hardware.h: No such file or directory
  #include <mach/hardware.h>
                            ^

I can see in the file :
#include <mach/hardware.h>
#include <mach/imx-uart.h>

The requested file seem to be in arch/arm/mach-imx/hardware.h and 
imx-uart.h in arch/arm/include/debug/imx-uart.h so i tried to correct 
the path with :
#include <../mach-imx/hardware.h>
#include <debug/imx-uart.h>

The compilation failed with :

   CC [M]  drivers/xenomai/serial/rt_imx_uart.o
drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_probe':
drivers/xenomai/serial/rt_imx_uart.c:1465:21: error: dereferencing 
pointer to incomplete type
   if (pdata && (pdata->flags & IMXUART_HAVE_RTSCTS))
                      ^
drivers/xenomai/serial/rt_imx_uart.c:1465:31: error: 
'IMXUART_HAVE_RTSCTS' undeclared (first use in this function)
   if (pdata && (pdata->flags & IMXUART_HAVE_RTSCTS))
                                ^
drivers/xenomai/serial/rt_imx_uart.c:1465:31: note: each undeclared 
identifier is reported only once for each function it appears in
drivers/xenomai/serial/rt_imx_uart.c:1467:21: error: dereferencing 
pointer to incomplete type
   if (pdata && (pdata->flags & IMXUART_USE_DCEDTE))
                      ^
drivers/xenomai/serial/rt_imx_uart.c:1467:31: error: 
'IMXUART_USE_DCEDTE' undeclared (first use in this function)
   if (pdata && (pdata->flags & IMXUART_USE_DCEDTE))
                                ^
drivers/xenomai/serial/rt_imx_uart.c:1469:20: error: dereferencing 
pointer to incomplete type
   if (pdata && pdata->init) {
                     ^
drivers/xenomai/serial/rt_imx_uart.c:1470:14: error: dereferencing 
pointer to incomplete type
    err = pdata->init(pdev);
               ^
drivers/xenomai/serial/rt_imx_uart.c:1489:20: error: dereferencing 
pointer to incomplete type
   if (pdata && pdata->exit)
                     ^
drivers/xenomai/serial/rt_imx_uart.c:1490:8: error: dereferencing 
pointer to incomplete type
    pdata->exit(pdev);
         ^
drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_remove':
drivers/xenomai/serial/rt_imx_uart.c:1520:20: error: dereferencing 
pointer to incomplete type
   if (pdata && pdata->exit)
                     ^
drivers/xenomai/serial/rt_imx_uart.c:1521:8: error: dereferencing 
pointer to incomplete type
    pdata->exit(pdev);
         ^

Do you have an idea ?


Jean-Baptiste Trédez


             reply	other threads:[~2016-01-25 16:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25 16:44 Jean-Baptiste Tredez [this message]
2016-01-25 19:14 ` [Xenomai] rt_imx_uart compilation Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56A65100.8000207@basystemes.fr \
    --to=jean-baptiste.tredez@basystemes.fr \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.