Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2016 10:44:44 -0500
From:      Pedro Giffuni <pfg@FreeBSD.org>
To:        Hans Petter Selasky <hselasky@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r298650 - head/sys/boot/kshim
Message-ID:  <369c6d99-ab57-f343-cd26-66b94dc6a811@FreeBSD.org>
In-Reply-To: <201604261541.u3QFfV20048770@repo.freebsd.org>
References:  <201604261541.u3QFfV20048770@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you, and sorry for breakage!

Pedro.

On 04/26/16 10:41, Hans Petter Selasky wrote:
> Author: hselasky
> Date: Tue Apr 26 15:41:31 2016
> New Revision: 298650
> URL: https://svnweb.freebsd.org/changeset/base/298650
>
> Log:
>   Build fix. Add howmany() and nitems() macros to bootloader kernel shim.
>
> Modified:
>   head/sys/boot/kshim/bsd_kernel.h
>
> Modified: head/sys/boot/kshim/bsd_kernel.h
> ==============================================================================
> --- head/sys/boot/kshim/bsd_kernel.h	Tue Apr 26 15:38:17 2016	(r298649)
> +++ head/sys/boot/kshim/bsd_kernel.h	Tue Apr 26 15:41:31 2016	(r298650)
> @@ -35,6 +35,8 @@
>  #include <sys/queue.h>
>  #include <sys/errno.h>
>
> +#define	howmany(x, y)	(((x)+((y)-1))/(y))
> +#define	nitems(x)	(sizeof((x)) / sizeof((x)[0]))
>  #define	isalpha(x) (((x) >= 'a' && (x) <= 'z') || ((x) >= 'A' && (x) <= 'Z'))
>  #define	isdigit(x) ((x) >= '0' && (x) <= '9')
>  #define	panic(...) do { printf("USB PANIC: " __VA_ARGS__); while (1) ; } while (0)
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?369c6d99-ab57-f343-cd26-66b94dc6a811>