>The "extern" was only an escape for the case that the compiler cannot
>inline the function. Due to the fact, that current gcc has "static
>inline" it is better to use this, because with "static inline" we do
>not need to keep a global symbol just for the case the compiler is not
>capable to inline the function in some place.
The versions in the .c file are there so that the "ops" structure can point to
them. The ones in the .h file are purely an optimisation to allow you to
short-circuit the ops struct if you know only one driver is involved.
Changing this stuff to "static inline" still offends my sense of aesthetics
somewhat, but I guess it's okay if you have checked that it still does the
right thing in the CONFIG_PARPORT_OTHER case.
p.
--==_Exmh_-625210863P
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: Exmh version 2.1.1 10/15/1999 (debian)
iD8DBQE7YyljVTLPJe9CT30RAnS9AKCrjl0qukvdt9pbsdfQMfvH77PMrgCeOTMj
1TSq0ueN00Hh4Pgu6BrmiY8=
=tYN+
-----END PGP SIGNATURE-----
--==_Exmh_-625210863P--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/