From nobody Fri Nov 20 14:25:35 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 4jWHgf2KqGz71sD1 for ; Fri, 20 Nov 2026 14:25:50 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jWHgd2Vb0z4bqm for ; Fri, 20 Nov 2026 14:25:49 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of jrtc27@jrtc27.com designates 209.85.128.54 as permitted sender) smtp.mailfrom=jrtc27@jrtc27.com Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4bb61185057so6567885e9.1 for ; Fri, 20 Nov 2026 06:25:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795184747; x=1795789547; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=r/h0ms6mbKesR6YNCX4XHPiLWXhowjQiK9gG59KyjDk=; b=RFb9KqvUiUMn7tPNPtkUb0+ozA0GrZWqAcn5sm+AgFFbY994th0qDrre13J8tdZvmB DR5/YEfYZR7Nlp+yRlYJfl9lnC07Z5NM0bINUQWftvrz1kW0mr5AXT1mB2w7jWrlRsFB WsbkpgsEyFryx3TxCNca47jkloBZbtUBhcS+ZxA23RJvaNiY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1DP7ABaAqx7VGgyFt9TwOWFXvKjo9yyL/vrCFN Ewqec8IFoGy2/XGDnmWbFo26BBxW6 X-Received: by 2002:a05:600c:8b11:b0:4a1:df52:3e36 with SMTP id 5b1f17b1804b1-4bb8881d194mr80397565e9.27.1795184746469; Fri, 20 Nov 2026 06:25:46 -0800 (PST) Received: from smtpclient.apple (host86-142-176-254.range86-142.btcentralplus.com. [86.142.176.254]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf685asm5502303f8f.20.2026.11.20.06.25.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Nov 2026 06:25:45 -0800 (PST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3901.200.71.1.16\)) Subject: Re: git: bf362c1b41c8 - main - kobj: convert KOBJOPLOOKUP() to returning pointer to function From: Jessica Clarke In-Reply-To: <20261120072122.679034c4@slippy.cwsent.com> Date: Fri, 20 Nov 2026 14:25:35 +0000 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" , Elliott Mitchell Content-Transfer-Encoding: quoted-printable Message-Id: References: <6b001ca8.17a65.140055b6@gitrepo.freebsd.org> <20261120133642.ED99E1D0@slippy.cwsent.com> <2E303DF5-FFE0-4BEF-8915-DC26E1CF09DB@FreeBSD.org> <20261120072122.679034c4@slippy.cwsent.com> To: Zhenlei Huang X-Mailer: Apple Mail (2.3901.200.71.1.16) X-Rspamd-Queue-Id: 4jWHgd2Vb0z4bqm X-Spamd-Bar: / X-Spamd-Result: default: False [0.60 / 15.00]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[jrtc27@freebsd.org,jrtc27@jrtc27.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FREEFALL_USER(0.00)[jrtc27]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.128.54:from]; TAGGED_RCPT(0.00)[freebsd]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[jrtc27@freebsd.org,jrtc27@jrtc27.com]; RCVD_IN_DNSWL_NONE(0.00)[209.85.128.54:from]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-src-main@freebsd.org]; R_DKIM_NA(0.00)[]; ALIAS_RESOLVED(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_FIVE(0.00)[5] On 20 Nov 2026, at 14:21, Cy Schubert wrote: > On Fri, 20 Nov 2026 21:48:37 +0800 > Zhenlei Huang wrote: >=20 >>> On Nov 20, 2026, at 9:36 PM, Cy Schubert = wrote: >>>=20 >>> In message <6b001ca8.17a65.140055b6@gitrepo.freebsd.org = >, Zhenlei Huang=20 >>> writes: =20 >>>> The branch main has been updated by zlei: >>>>=20 >>>> URL: = https://cgit.FreeBSD.org/src/commit/?id=3Dbf362c1b41c803c7320147b89915bd65= >>>> 88dd6071 >>>>=20 >>>> commit bf362c1b41c803c7320147b89915bd6588dd6071 >>>> Author: Elliott Mitchell >>>> AuthorDate: 2025-01-10 00:45:05 +0000 >>>> Commit: Zhenlei Huang >>>> CommitDate: 2026-11-20 10:09:02 +0000 >>>>=20 >>>> kobj: convert KOBJOPLOOKUP() to returning pointer to function >>>>=20 >>>> 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. >>>>=20 >>>> 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(-) >>>>=20 >>>> 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 =3D &OP##_##desc; \ >>>> kobj_method_t **_cep =3D \ >>>> - &OPS->cache[_desc->id & (KOBJ_CACHE_SIZE-1)]; \ >>>> + &(OBJ)->ops->cache[_desc->id & (KOBJ_CACHE_SIZE-1)];\ =20 >>>=20 >>> This has caused a number of errors as below as an example. >>>=20 >>> --- 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); =20 >>=20 >> It appears that the generated file `device_if.h` is not re-generated = after `sys/tools/makeobjops.awk`=20 >> been updated. >>=20 >> Can you please try this first, >>=20 >> ``` >> make cleankernel >> ```=20 >>=20 >> and then rebuild ? >=20 > 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. Thanks, Jessica