On Thu, Jun 09, 2016 at 01:50:43AM +0000, Simon J. Gerraty wrote: > Author: sjg > Date: Thu Jun 9 01:50:43 2016 > New Revision: 301713 > URL: https://svnweb.freebsd.org/changeset/base/301713 > > Log: > Add a prototype for random_harvest_queue to dev/random/random_harvestq.h > This fixes a warning that occurs in a number of files that use the > random_harvest_queue function. > > Differential Revision: https://reviews.freebsd.org/D4229 > Submitted by: ste...@juniper.net > Reviewed by: markm > Approved by: so > > Modified: > head/sys/dev/random/random_harvestq.h > > Modified: head/sys/dev/random/random_harvestq.h > ============================================================================== > --- head/sys/dev/random/random_harvestq.h Thu Jun 9 01:31:09 2016 > (r301712) > +++ head/sys/dev/random/random_harvestq.h Thu Jun 9 01:50:43 2016 > (r301713) > @@ -43,7 +43,9 @@ struct harvest_event { > uint8_t he_source; /* origin of the entropy */ > } __packed; > > -void read_rate_increment(u_int); > +void random_harvest_queue(const void *, u_int, u_int, > + enum random_entropy_source); > +void read_rate_increment(u_int); > > #define RANDOM_HARVESTQ_BOOT_ENTROPY_FILE "/boot/entropy" >
This breaks sparc64. cc1: warnings being treated as errors In file included from /usr/src/sys/modules/random_other/../../dev/random/other_algorithm.c:62: /usr/src/sys/dev/random/random_harvestq.h:47: warning: redundant redeclaration of 'random_harvest_queue' [-Wredundant-decls] /usr/src/sys/sys/random.h:99: warning: previous declaration of 'random_harvest_queue' was here Glen
signature.asc
Description: PGP signature