Hi WANG.
Thanks for chasing these annoying warnings - it is
good to keep the warning level low so we keep
attention when new warnings happens!
It is preferable to have the forward declaration unconditional
to keep the #if/#endif count low.
Moving the aty_resume_chip() function down just above
atyfb_pci_resume() would put in in the same #if/#endif
block and you can kill the forward declaration too.
Did you try that out?
I could not spot any obvious reason why it should not work,
but I did not try it out.
Sam
--