svn commit: r301713 - head/sys/dev/random

Glen Barber gjb at FreeBSD.org
Thu Jun 9 13:01:11 UTC 2016


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:	stevek at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20160609/364f5bd5/attachment.sig>


More information about the svn-src-all mailing list