Skip to contentSkip to conversation

Some functions aren't static and could be (damn C language!).

Xen-changelog [email protected] 1 participant 1 message Feb 8, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 8 lines · BitKeeper Bot

ChangeSet 1.1550.1.180, 2005/02/08 15:43:01+00:00, [email protected]

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.

Quoted 10 lines

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.

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