Fill cracks and holes with appropriate material (e.g. plaster). An excellent painter is knowledgeable in selecting the right material for their job.