The striker is a target for Arsenal and Tottenham.
Ancelotti said: "He doesn't need anything except the competition for first team places that he has at a club like Real Madrid. It's just a problem of competition.
"I haven't spoken to him, but I don't think that he has a problem. No team has asked about him and if any team does the answer is simple. He's staying."