Peel, wash and cut the potatoes into large pieces. Peel the pumpkin, remove the seeds and also cut into pieces.
Cook the potatoes and pumpkin meat together in a little salted water until soft. When both are soft, pour off the cooking water, but collect it. Now mash the potatoes and pumpkin and add some of the cooking water again if necessary. Stir in the olive oil and season with the spices.