Is stand/kshim/bsd_kernel.h 's __FreeBSD_version supposed to track main's 13->14 change?

Hans Petter Selasky hps at selasky.org
Wed Feb 17 09:29:40 UTC 2021


On 2/17/21 1:58 AM, Mark Millard via freebsd-current wrote:
> stand/kshim/bsd_kernel.h has its own define of __FreeBSD_version and
> seems to have last had it changed in the main branch as shown below.
> Is it as it should be for main 14? It does seem to have skipped
> being updated for HEAD 12.
> 
> Last change . . .
> 
> author	Hans Petter Selasky <hselasky at FreeBSD.org>	2020-11-18 13:22:22 +0000
> committer	Hans Petter Selasky <hselasky at FreeBSD.org>	2020-11-18 13:22:22 +0000
> commit	a2dd1caade2f9cb829261a42812431781c685d46 (patch)
> tree	466a86138a99f5f6c73c54cd531dbdb9884678c0 /stand/kshim/bsd_kernel.h
> parent	ac8c4a61af5007487eabf882e969dd9768549078 (diff)
> download	src-a2dd1caade2f9cb829261a42812431781c685d46.tar.gz
> src-a2dd1caade2f9cb829261a42812431781c685d46.zip
> 
> Fix build of USB bootloader code by adding checks for _STANDALONE being defined.
> Currently the USB bootloader code is not part of buildworld.
> 
> MFC after:	1 week
> Sponsored by:	Mellanox Technologies // NVIDIA Networking
> 
> Notes
> 
> Notes:
>      svn path=/head/; revision=367787
> 
> Diffstat (limited to 'stand/kshim/bsd_kernel.h')
> -rw-r--r--	stand/kshim/bsd_kernel.h	7	
> 1 files changed, 5 insertions, 2 deletions
> diff --git a/stand/kshim/bsd_kernel.h b/stand/kshim/bsd_kernel.h
> index 4dfe307fef0c..89d87121c63e 100644
> --- a/stand/kshim/bsd_kernel.h
> +++ b/stand/kshim/bsd_kernel.h
> @@ -27,9 +27,12 @@
>   #ifndef _BSD_KERNEL_H_
>   #define	_BSD_KERNEL_H_
>   
> -#define	_KERNEL
> +#if !defined(_STANDALONE)
> +#error "_STANDALONE is not defined!"
> +#endif
> +
>   #undef __FreeBSD_version
> -#define	__FreeBSD_version 1100000
> +#define	__FreeBSD_version 1300000
>   
>   #include <sys/cdefs.h>
>   #include <sys/queue.h>

Yes, please bump, though not critical.

--HPS


More information about the freebsd-current mailing list