My dog is a cross and he does sometimes lick himself but not as much as the walls.a little more information would be nice if you want a good answer.
does he only lick walls, does he lick himself with the same obsessive behavior?
what is the breed? how much exercise does he get?
if you want a good answer you have to ask a good question.