Barcelona forward Lionel Messi has been declared fit for Sunday's La Liga game with Osasuna following an injury scare.