2002-01-08 20:46:26

by Pete Zaitcev

[permalink] [raw]
Subject: extern struct hd_struct *sd; ?

Hi,

does anyone know why is sd external? It is mentioned in sd.h,
together with the macro SD_PARTITION that is needed to access it,
but no drivers make use of it. On the other hand, sd_mod does not
export the symbol sd.

-- Pete


2002-01-08 22:31:07

by Andries E. Brouwer

[permalink] [raw]
Subject: Re: extern struct hd_struct *sd; ?

> 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