Message ID | 20231127102523.28003-30-jgross@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Mini-OS: hide mini-os internal symbols | expand |
Juergen Gross, le lun. 27 nov. 2023 11:25:20 +0100, a ecrit: > Add the needed instances of EXPORT_SYMBOL() to tpmfront.c. > > Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> > --- > V3: > - new patch > --- > tpmfront.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tpmfront.c b/tpmfront.c > index f4864d61..83768d07 100644 > --- a/tpmfront.c > +++ b/tpmfront.c > @@ -338,6 +338,8 @@ error: > shutdown_tpmfront(dev); > return NULL; > } > +EXPORT_SYMBOL(init_tpmfront); > + > void shutdown_tpmfront(struct tpmfront_dev* dev) > { > char* err; > @@ -402,6 +404,7 @@ void shutdown_tpmfront(struct tpmfront_dev* dev) > } > free(dev); > } > +EXPORT_SYMBOL(shutdown_tpmfront); > > int tpmfront_send(struct tpmfront_dev* dev, const uint8_t* msg, size_t length) > { > @@ -528,6 +531,7 @@ int tpmfront_cmd(struct tpmfront_dev* dev, uint8_t* req, size_t reqlen, uint8_t* > > return 0; > } > +EXPORT_SYMBOL(tpmfront_cmd); > > int tpmfront_set_locality(struct tpmfront_dev* dev, int locality) > { > @@ -536,6 +540,7 @@ int tpmfront_set_locality(struct tpmfront_dev* dev, int locality) > dev->page->locality = locality; > return 0; > } > +EXPORT_SYMBOL(tpmfront_set_locality); > > #ifdef HAVE_LIBC > #include <errno.h> > @@ -663,5 +668,6 @@ int tpmfront_open(struct tpmfront_dev *dev) > > return dev->fd; > } > +EXPORT_SYMBOL(tpmfront_open); > > #endif > -- > 2.35.3 >
diff --git a/tpmfront.c b/tpmfront.c index f4864d61..83768d07 100644 --- a/tpmfront.c +++ b/tpmfront.c @@ -338,6 +338,8 @@ error: shutdown_tpmfront(dev); return NULL; } +EXPORT_SYMBOL(init_tpmfront); + void shutdown_tpmfront(struct tpmfront_dev* dev) { char* err; @@ -402,6 +404,7 @@ void shutdown_tpmfront(struct tpmfront_dev* dev) } free(dev); } +EXPORT_SYMBOL(shutdown_tpmfront); int tpmfront_send(struct tpmfront_dev* dev, const uint8_t* msg, size_t length) { @@ -528,6 +531,7 @@ int tpmfront_cmd(struct tpmfront_dev* dev, uint8_t* req, size_t reqlen, uint8_t* return 0; } +EXPORT_SYMBOL(tpmfront_cmd); int tpmfront_set_locality(struct tpmfront_dev* dev, int locality) { @@ -536,6 +540,7 @@ int tpmfront_set_locality(struct tpmfront_dev* dev, int locality) dev->page->locality = locality; return 0; } +EXPORT_SYMBOL(tpmfront_set_locality); #ifdef HAVE_LIBC #include <errno.h> @@ -663,5 +668,6 @@ int tpmfront_open(struct tpmfront_dev *dev) return dev->fd; } +EXPORT_SYMBOL(tpmfront_open); #endif
Add the needed instances of EXPORT_SYMBOL() to tpmfront.c. Signed-off-by: Juergen Gross <jgross@suse.com> --- V3: - new patch --- tpmfront.c | 6 ++++++ 1 file changed, 6 insertions(+)