From owner-svn-src-head@freebsd.org Sun Jul 8 00:34:06 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E595C1041361 for ; Sun, 8 Jul 2018 00:34:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7581774E58 for ; Sun, 8 Jul 2018 00:34:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22e.google.com with SMTP id l7-v6so14054469ioj.1 for ; Sat, 07 Jul 2018 17:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/BXeOdyhXP20OvsxEY/ArruHGqqiqGrutVCJSZLw3V0=; b=j2k34q33pFSZiUkiiR4Vy7L5nVRTW+j7VtvxrVVrLO388kfDSXvwj8fj8UT21+Fzlb vylh72a3g0daFkIF/fYxO/EbXhryC4NlgihLZkrgVP13lpW3ERiXmkqOyQi6bgWyZrDL QjEejRS4kH7xKZYIai5nrjmpw/noiQ2E+qmlUfLoEdfgzdkgOssua8yow2N4acEU63FM r2ChDxHPw8RRkrsd4bu23ZzZ1dg93bncUqaxEhdvwlFv9591tHidK7uCbIfdgLicYaTq Ftb8DjxyL4ZHlvmPg+5CX1UkkULmRDW0t3QvYwxXcEsWby+DCcju9e/SyRQkdj/qOr7W e7Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/BXeOdyhXP20OvsxEY/ArruHGqqiqGrutVCJSZLw3V0=; b=qimxoNHLDKAassxvdKa9B+KhTJlZGi9RwCtHx4R0PZL7KUQXAuFTUmE+Q48tdBSE0r iDQn4W7WNqzhyT4gTmo8aRsl+3eM81lFgRXAk6Ha2JZcK7pHhcNbJgKI49UOC+SSDe23 Vyu2YX1jmhCozNYcnvoLxfPO9LL136FQgM6KBQsaKrBvnDI5IdInOGdizzBX4n0KO0EQ oFjlx+FlMKSvJ2Hu7phYmpd2KtfG3OCY8Pr90iKzvuFcj68LuYnx3hAQon2M9S+IS/FO myTF5RwjRroyFei1RMo0dcUf5B3Q9tQ9MhWuTbCpnoT3Uh3di6oodnzCwd6ig91q6HEu ck9g== X-Gm-Message-State: APt69E17BpLSB3I9SCu1DDl8sXUylT37oU2B3BUI6b0/nNCTSgfIyZh9 l8Nx0/F9wQ4M9bh4zyfjZAHGiTEas23jhm/bVFzQlA== X-Google-Smtp-Source: AAOMgpcgPh7f+LpAV4CaXcC9ziXNZqZQNeXmdyg2F38qAJPbdXZxuS6mKKWr6PqZPdSNJ7EjcKoZgPrtJsgig3WRxkA= X-Received: by 2002:a6b:d004:: with SMTP id x4-v6mr12528358ioa.299.1531010044848; Sat, 07 Jul 2018 17:34:04 -0700 (PDT) MIME-Version: 1.0 References: <201807032305.w63N5guY063293@repo.freebsd.org> <20180704142233.GB5562@kib.kiev.ua> <6e5bc5e4-052c-877f-1c36-c72e276ff045@FreeBSD.org> <20180705155417.GI5562@kib.kiev.ua> <2a5b1c50-0f50-bbe1-4fcd-b98f61d24571@FreeBSD.org> <5B3EA725.4010202@grosbein.net> <1dd03d43-6f0d-580b-fd3b-f4494da42c70@FreeBSD.org> <51ec1e54-c940-9800-5c84-0f9b6e08895f@cs.duke.edu> <5B412CEF.3020901@grosbein.net> <5B414F22.4030501@grosbein.net> In-Reply-To: <5B414F22.4030501@grosbein.net> From: Warner Losh Date: Sat, 7 Jul 2018 18:33:52 -0600 Message-ID: Subject: Re: svn commit: r335916 - head/sys/conf To: Eugene Grosbein Cc: Andrew Gallatin , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2018 00:34:06 -0000 On Sat, Jul 7, 2018, 5:40 PM Eugene Grosbein wrote: > 08.07.2018 4:38, Warner Losh wrote: > > > On Sat, Jul 7, 2018, 4:14 PM Eugene Grosbein > wrote: > > > > 07.07.2018 22:02, Andrew Gallatin wrote: > > > > > One thing that was tangentially brought up is that the ability > > > to compile out-of-tree modules requires keeping the kernel-headers > > > around. So we may need to identify all the headers that a module > might > > > need, and install them in /boot/$KERNEL/sys or some-such. This > would > > > be needed if, for example, we wanted to install a new Nvidia or > Virtual > > > Box module and have it work for older installed kernel versions too > > > (eg, across ABI breaking changes in -current). > > > > We already have all headers in /usr/include, don't we? > > > > > > Not really. We have a subset of the kernel headers that might not match > the running kernel, nor be enough to build modules. > > They should match running kernel definitely as we do not support not > syncronized kernel/world > and installworld populates /usr/include. > Nice theory. Lots and lots of people run this way. And it has worked well, so long as the kernel is newer... so, no, they don't have to match. And why a subset? Don'we support old-style kernel re-build "config; make > depend; make" > that does not require full /usr/src tree but /usr/src/sys only? > /usr/include is never, ever used to build the kernel (except for things like aicasm). Warner >