If a subfloor is squeaking when walked on, what should you do to fix the problem?

If a subfloor is squeaking when walked on, what should you do to fix the problem?