svn commit: r301023 - head/sys/boot/geli

Xin Li delphij at delphij.net
Tue May 31 06:32:00 UTC 2016



On 5/30/16 23:24, Garrett Cooper wrote:
> Author: ngie
> Date: Tue May 31 06:24:09 2016
> New Revision: 301023
> URL: https://svnweb.freebsd.org/changeset/base/301023
> 
> Log:
>   Add missing libc includes to fix -Wimplicit-function-declaration warnings
>   
>   MFC after: 2 weeks
>   Reported by: clang
>   Sponsored by: EMC / Isilon Storage Division
> 
> Modified:
>   head/sys/boot/geli/geliboot_crypto.c
> 
> Modified: head/sys/boot/geli/geliboot_crypto.c
> ==============================================================================
> --- head/sys/boot/geli/geliboot_crypto.c	Tue May 31 06:00:18 2016	(r301022)
> +++ head/sys/boot/geli/geliboot_crypto.c	Tue May 31 06:24:09 2016	(r301023)
> @@ -27,6 +27,10 @@
>   * $FreeBSD$
>   */
>  
> +#include <stdio.h>
> +#include <string.h>
> +#include <strings.h>
> +
>  #include "geliboot.h"

This is wrong, you shouldn't use standard C library in freestanding
environment.

It seems that libstand.h is explicitly excluded, why? (in geliboot.h,
allanjude cc'ed):

%%%
/* AES-XTS implementation */
#define _STAND
#define STAND_H /* We don't want stand.h in {gpt,zfs,gptzfs}boot */
#include <opencrypto/xform_enc.h>

%%%

Cheers,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20160530/205acad5/attachment.sig>


More information about the svn-src-all mailing list