Smoking banned

Smoking is banned from most public buildings in most states across the U.S. today. What type of market failure is the smoking ban intended to address? Is a ban the correct type of government intervention to address this market failure? Why/why not? What other options might be considered?