extern struct hd_struct *sd; ?
Quoted 1 line
does anyone know why is sd external?
Because it was used in both sd.c and sd_ioctl.c.
What is sd_ioctl.c? See any kernel older than 2.3.27. Today there is no need for this external declaration, I think.
Andries