From nobody Fri Nov 20 15:14:34 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jWJlv51pzz71yt4; Fri, 20 Nov 2026 15:14:35 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jWJlv2dVNz4pjh; Fri, 20 Nov 2026 15:14:35 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795187675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nwmRXBJw6VGpDfsth2+b+V5a5WLjTOttTydQbXa7gI8=; b=MGGE3f5HnRcZ6tISWEEykHbl9PKoURZZKSe2habdQ0GNezjxMbTbxOnOgpAnvIxgM4AzWN RuSmNOKsw+nF79re8GuRYPSwUq/3D23AxqHlqiU0s5G9q2Nu6sZ4rYJLpxIu+xeFeSEr2o yKmJxxwfhUMD/v2V0r7jiidOHPsUK6+lJnbTlmN3NyWR7VJwpdDzlF6IHSPT5efZzsBSCj lzSBzTeCRrHtaIGxULjN/lf2hU90i/5fysKaPEWc4rCzTeJQ1uWqq2o8K66KE9d1x0XAJ/ uZKOYFd1Q+9Q7OkGsL0XkI+9wInex6qKVx+sBNQyKq5F2h+C9ceicdoiqKYN5g== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795187675; b=dhgZ2ILASDS7DwpUFiPgUIKQsPiglIPIxO5cxIsIcX/Zlqtjl9euGI2G5qpXl7oWjlKr43 QEua5Tc1pr53OB7j5IP1Jv0tmmqQaDiD/8TSHznYw/oPy58ym1LCeURdU963fr/q9vZeFE LxQDoe3/sUBZjEGfOGZrYiJHdKYTBiOPrfa5sNpByZ8jKcNgN5pMe1SYyjtiFpTAAWju9L 9PVHh265ukMPYwc7EgYqxlTZcjrKKflJ5JITLsRUKloAQ4fvymU/h3Jq4mSBVEKqyGOXix HlinROvdW8852NilVwgPfguwBNuXtYwNZFciDbI31wGAyEEolY9iCQgjvETtlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795187675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nwmRXBJw6VGpDfsth2+b+V5a5WLjTOttTydQbXa7gI8=; b=dqycN9BRDru+izpR+x2iCXhUPkn08PEZDDeypq2PlzNJJGeNeaOEnKA/nsRAM/Wa11I9nC o2I5R9hp6uA/Pat9FAzkBALw26RFA9j8b34oEpm9Y61QjbXjm0R4E64vyfa3D4afEtIhUD kVU+fWEf25pbBoZeaTOS3d9UIRB7K/iAU38TTvpGQ204Dyd+I7X0dLERpTk8EoZba+NoP3 AlcRzBivlCikAltsolmrVH0LMGqV1hnVIoQpprFBhNEdZ8LfjtyRghJE+Ru/DNHe8pkT76 KCA55co8+H2oxIGeQNL8fAzsZtLf1L2JUCcOVZ+do6RAjOJ4nHmeDi8Mvq459A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [IPV6:2601:5cc:4480:1036:1d7c:dcf0:7c3:d0dd] (unknown [IPv6:2601:5cc:4480:1036:1d7c:dcf0:7c3:d0dd]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4jWJlv0GgKz13h3; Fri, 20 Nov 2026 15:14:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: Date: Fri, 20 Nov 2026 10:14:34 -0500 List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: bf362c1b41c8 - main - kobj: convert KOBJOPLOOKUP() to returning pointer to function Content-Language: en-US To: Jessica Clarke , Zhenlei Huang Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" , Elliott Mitchell References: <6b001ca8.17a65.140055b6@gitrepo.freebsd.org> <20261120133642.ED99E1D0@slippy.cwsent.com> <2E303DF5-FFE0-4BEF-8915-DC26E1CF09DB@FreeBSD.org> <20261120072122.679034c4@slippy.cwsent.com> From: John Baldwin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/20/26 09:25, Jessica Clarke wrote: > On 20 Nov 2026, at 14:21, Cy Schubert wrote: >> On Fri, 20 Nov 2026 21:48:37 +0800 >> Zhenlei Huang wrote: >> >>>> On Nov 20, 2026, at 9:36 PM, Cy Schubert wrote: >>>> >>>> In message <6b001ca8.17a65.140055b6@gitrepo.freebsd.org >, Zhenlei Huang >>>> writes: >>>>> The branch main has been updated by zlei: >>>>> >>>>> URL: https://cgit.FreeBSD.org/src/commit/?id=bf362c1b41c803c7320147b89915bd65 >>>>> 88dd6071 >>>>> >>>>> commit bf362c1b41c803c7320147b89915bd6588dd6071 >>>>> Author: Elliott Mitchell >>>>> AuthorDate: 2025-01-10 00:45:05 +0000 >>>>> Commit: Zhenlei Huang >>>>> CommitDate: 2026-11-20 10:09:02 +0000 >>>>> >>>>> kobj: convert KOBJOPLOOKUP() to returning pointer to function >>>>> >>>>> This makes KOBJOPLOOKUP() rather more suitable for purposes outside the >>>>> macros generated by makeobjops.awk. Of note other callers can lookup >>>>> the function on their parent class and call that explicitly. >>>>> >>>>> Reviewed by: zlei >>>>> MFC after: 2 weeks >>>>> Differential Revision: https://reviews.freebsd.org/D48408 >>>>> --- >>>>> sys/sys/kobj.h | 20 ++++++++++---------- >>>>> sys/tools/makeobjops.awk | 6 +++--- >>>>> 2 files changed, 13 insertions(+), 13 deletions(-) >>>>> >>>>> diff --git a/sys/sys/kobj.h b/sys/sys/kobj.h >>>>> index 890ad1d39a13..3cdbf14d124c 100644 >>>>> --- a/sys/sys/kobj.h >>>>> +++ b/sys/sys/kobj.h >>>>> @@ -247,30 +247,30 @@ extern u_int kobj_lookup_misses; >>>>> * slow way. >>>>> */ >>>>> #ifdef KOBJ_STATS >>>>> -#define KOBJOPLOOKUP(OPS,OP) do { \ >>>>> +#define KOBJOPLOOKUP(OBJ, OP) __extension__ ({ \ >>>>> kobjop_desc_t _desc = &OP##_##desc; \ >>>>> kobj_method_t **_cep = \ >>>>> - &OPS->cache[_desc->id & (KOBJ_CACHE_SIZE-1)]; \ >>>>> + &(OBJ)->ops->cache[_desc->id & (KOBJ_CACHE_SIZE-1)];\ >>>> >>>> This has caused a number of errors as below as an example. >>>> >>>> --- aq_media.o --- >>>> In file included from /opt/src/git-src/sys/dev/aq/aq_media.c:43: >>>> In file included from /opt/src/git-src/sys/net/iflib.h:31: >>>> In file included from /opt/src/git-src/sys/sys/bus.h:893: >>>> ./device_if.h:115:2: error: no member named 'ops' in 'struct kobj_ops' >>>> 115 | KOBJOPLOOKUP(((kobj_t)dev)->ops, device_probe); >>> >>> It appears that the generated file `device_if.h` is not re-generated after `sys/tools/makeobjops.awk` >>> been updated. >>> >>> Can you please try this first, >>> >>> ``` >>> make cleankernel >>> ``` >>> >>> and then rebuild ? >> >> This resolved it. Thanks. > > Hi Zhenlei, > Please figure out an appropriate depend-cleanup.sh patch or revert this > ASAP. WITHOUT_CLEAN is a supported configuration, and even our default, > so we cannot break it. Probably all the foo_if.[ch] need to depend not just on foo_if.m, but also on sys/tools/makeobjops.awk -- John Baldwin