diff options
author | Warner Losh <imp@FreeBSD.org> | 2017-12-22 16:59:50 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2017-12-22 16:59:50 +0000 |
commit | 56f3600c8b722ead4e74371bfe8b4afdfc7714e7 (patch) | |
tree | fb6196728c57cc270485b8331f07a2be19347f29 | |
parent | f1ab57eead4f8db3e01f618b95b7163d375da02b (diff) | |
download | src-56f3600c8b722ead4e74371bfe8b4afdfc7714e7.tar.gz src-56f3600c8b722ead4e74371bfe8b4afdfc7714e7.zip |
PC Card PNP tables are terminated by a NULL sentinel. This shouldn't
be recorded in the linker hints, so subtract one to omit it.
Notes
Notes:
svn path=/head/; revision=327084
-rw-r--r-- | sys/dev/pccard/pccardvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pccard/pccardvar.h b/sys/dev/pccard/pccardvar.h index c26da6f3bd15..ab2fdd2dccda 100644 --- a/sys/dev/pccard/pccardvar.h +++ b/sys/dev/pccard/pccardvar.h @@ -95,7 +95,7 @@ struct pccard_product { */ #define PCCARD_PNP_DESCR "D:#;V32:manufacturer;V32:product;Z:cisvendor;Z:cisproduct;" #define PCCARD_PNP_INFO(t) \ - MODULE_PNP_INFO(PCCARD_PNP_DESCR, pccard, t, t, sizeof(t[0]), sizeof(t) / sizeof(t[0])); \ + MODULE_PNP_INFO(PCCARD_PNP_DESCR, pccard, t, t, sizeof(t[0]), sizeof(t) / sizeof(t[0]) - 1); \ typedef int (*pccard_product_match_fn) (device_t dev, const struct pccard_product *ent, int vpfmatch); |