Thanks for query,smeelly penis may be due to,
1,Poor local hygiene resulting collection of smegma
giving rise to bad smel.
2,As you are diabetic there is always possibility of infection in urine and foul smell.
Take plenty of water,
Keep proper local hygiene,
Treat infection if it is there.
Ok and bye.