Created attachment 161638 [details] Patch to correct error The g_example_start() example function in g_geom(9) is shown to return 'struct geom *' when it should be 'void'. static struct geom * g_example_start(struct bio *bp) { -->> static void g_example_start(struct bio *bp) { Patch included.
g_example_access() also has incorrect prototype.
A commit references this bug: Author: brueffer Date: Sun Apr 24 08:31:33 UTC 2016 New revision: 298532 URL: https://svnweb.freebsd.org/changeset/base/298532 Log: Correct types for g_example_start() and g_example_access(). PR: 203498 Submitted by: chadf@triularity.org, ae MFC after: 1 week Sponsored by: Essen Hackathon 2016 Changes: head/share/man/man9/g_geom.9
Fixed in HEAD, I'll merge this to the stable branches soon. Thanks!