[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Assembler compiler errors


Here is some more information containing my compiler flags.
I have also provided some information from my source code where the
warnings occur.  However I don't think that it is the warnings that
are the cause of the problem.
The /tmp/ccBpVJBg.s file is a temporary file created by the compiler.

gcc_cris -mlinux -DCRISMMU -muclibc=/home/markh/axis/devboard_lx/eroot
-I/home/markh/axis/devboard_lx/eroot/include/uC-libc -I../../src/include
-Wall -O2 -o0  -Wall  -D__KERNEL__ sm.c
sm.c:2535:43: warning: #warning COD should be adapted to endianess
In file included from sm.c:18:
/home/markh/axis/devboard_lx/eroot/include/uC-libc/asm/uaccess.h: In
function `strnlen_user':
warning: unused variable `tmp2'
sm.c: At top level:
sm.c:73: warning: initialization from incompatible pointer type
sm.c: In function `sm_send':
sm.c:2117: warning: assignment from incompatible pointer type
sm.c: In function `cleanup_module':
sm.c:4109: warning: assignment makes pointer from integer without a cast
sm.c:4111: warning: passing arg 1 of `dev_close' from incompatible pointer
/tmp/ccBpVJBg.s: Assembler messages:
/tmp/ccBpVJBg.s:471: Error: Bad expression
/tmp/ccBpVJBg.s:471: Error: Illegal operands
/tmp/ccBpVJBg.s:472: Error: Illegal operands

69:static struct packet_type sm_packet_type =
71:  0,     /* ntohs(LDISC_BT_PROTO) */
72:  NULL,
73:  sm_input,
     /* definition of sm_input
        static int sm_input(struct sk_buff *skb, struct device *netdev,
                    struct packet_type *ptype);
74:  NULL,
75:  NULL

2115:  if (NULL != lower_netdev)
2116:  {
     // skb is of type sk_buff *
     // lower_netdev is of type static struct device *
2117:    skb->dev = lower_netdev;

4107:  struct device * lower_dev;

4109:  lower_dev = dev_get("bt0");
4110:  if (NULL != lower_dev)
4111:    dev_close(lower_dev);

Mark H