The rules vary from jurisdiction to jurisdiction. It is advisable to disclose known foundation problems prospective buyers. With proper disclosures, the decision typically resides with the purchaser as to whether they choose to proceed. Consider getting a repair cost from a contractor so you have the information available to prospective purchasers. That way if they want to negotiate a lower price, you have the information necessary to make a decision.