svn commit: r332493 - stable/11/sys/net

Magnus Ringman bmr at ringman.ch
Sat Apr 14 12:14:38 UTC 2018


I don't think anyone has committed a fix yet (I'm not eligible, just
lurking here.)

Just manually integrate the missing change.  At the top of your src tree:

patch -p1 << __EOT
--- head/sys/sys/ioccom.h 2017/11/20 19:43:44 326023
+++ head/sys/sys/ioccom.h 2018/03/16 22:23:04 331077
@@ -61,6 +61,10 @@
 #define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t))
 /* this should be _IORW, but stdio got there first */
 #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t))
+/* Replace length/type in an ioctl command. */
+#define _IOC_NEWLEN(ioc, len) \
+    (((~(IOCPARM_MASK << 16)) & (ioc)) | (((len) & IOCPARM_MASK) << 16))
+#define _IOC_NEWTYPE(ioc, type) _IOC_NEWLEN((ioc), sizeof(type))

 #ifdef _KERNEL
__EOT

On Sat, Apr 14, 2018 at 1:37 PM, David Wolfskill <david at catwhisker.org> wrote:
> On Sat, Apr 14, 2018 at 01:31:28PM +0200, Magnus Ringman wrote:
>> Hi Brooks, this MFC missed your r331077
>> (https://reviews.freebsd.org/D14706) thus stable buildkernel currently
>> breaks on missing those two macros.
>>
>> (_IOC_NEWLEN and _IOC_NEWTYPE for searchability)
>>
>> Skål,
>> Magnus
>> ....
>
> Aye; looks as if that would explain the kernel build failures I had this
> morning in stable/11, trying to update from r332465 -> r332496.
>
> Peace,
> david
> --
> David H. Wolfskill                              david at catwhisker.org
> Donald Trump's criticism of others comes across as psychological projection.
>
> See http://www.catwhisker.org/~david/publickey.gpg for my public key.


More information about the svn-src-all mailing list