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-devel

[Xen-devel] Re: [Xen-changelog] Some functions aren't static and could b

To: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [Xen-changelog] Some functions aren't static and could be (damn C language!).
From: ultraptr@xxxxxxxxxxx
Date: Tue, 8 Feb 2005 09:15:10 -0800
Cc: xen-changelog@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 08 Feb 2005 22:25:46 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <E1CyXq2-0006Zf-3I@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1CyXq2-0006Zf-3I@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Tue, Feb 08, 2005 at 03:43:01PM +0000, BitKeeper Bot wrote:
> ChangeSet 1.1550.1.180, 2005/02/08 15:43:01+00:00, iap10@xxxxxxxxxxxxxxxxxxxxx
> 
>       Some functions aren't static and could be (damn C language!).
>       
>       I tried turning on -Wmissing-prototypes: unfortunately gives warnings
>       for functions used in asm, which means introducing gratuitous prototypes
>       for them.  Not sure it's worth it.
>       
>       1) keyhandler.c: keypress_softirq() and do_task_queues() can be static.
>       2) physdev.c: pcidev_dom0_hidden() can be static.
>       3) resource.c/resource.h: check_region is deprecated (racy): remove.
>       4) sched_bvt.c: lots of things can be static.
>       5) pci/compat.c: not required for Xen.
>       
>       Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx> (authored)
>       Signed-off-by: ian.pratt@xxxxxxxxxxxx
> 
> 

gah, that is not C language problem. that's lame.
you forced compiler to check prototypes so do add them. just add prototypes
even in the same .c file if you don't want to pollute your include files.
but if function is used anywhere outside file scope it is proper to describe it
in include file.

or don't use -Wmissing-prototypes.




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: [Xen-changelog] Some functions aren't static and could be (damn C language!)., ultraptr <=