WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] implicit declaration of function `printk'

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] implicit declaration of function `printk'
From: "Cui Zheng" <cuizheng@xxxxxxxxxx>
Date: Thu, 10 Aug 2006 09:37:07 -0600
Delivery-date: Thu, 10 Aug 2006 08:37:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi List,

I was trying to use minios to implement network frontend driver. When I added
gnttab.c, the fowllowing messages appear:

[ -e include/xen ] || ln -sf ../../../xen/include/public include/xen
# [ -e xenbus/xenstored.h ] || ln -sf ../../../tools/xenstore/xenstored.h
xenbus/xenstored.h
gcc -fno-builtin -Wall -Werror -Iinclude/ -Wredundant-decls -Wno-format
-Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline -m32 -march=i686
-g  -c gnttab.c -o gnttab.o
gnttab.c: In function `gnttab_end_access':
gnttab.c:90: warning: implicit declaration of function `printk'
gnttab.c:93: warning: implicit declaration of function `synch_cmpxchg'
gnttab.c: In function `gnttab_alloc_and_grant':
gnttab.c:135: warning: implicit declaration of function `virt_to_mfn'
gnttab.c: In function `gnttabop_error':
gnttab.c:146: warning: implicit declaration of function `ARRAY_SIZE'
gnttab.c: In function `init_gnttab':
gnttab.c:165: warning: implicit declaration of function `set_xen_guest_handle'
gnttab.c:168: warning: implicit declaration of function `map_frames'
gnttab.c:168: warning: assignment makes pointer from integer without a cast
make: *** [gnttab.o] Error 1

The code is the same as the posted. Could someone give some help?
Thanks a lot!

-zheng



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] implicit declaration of function `printk', Cui Zheng <=