From nobody Mon Jun 12 15:18:33 2023 X-Original-To: dev-commits-ports-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 4QfwLd5bxsz4cgSy; Mon, 12 Jun 2023 15:18:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QfwLd59tnz4Rf7; Mon, 12 Jun 2023 15:18:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686583113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iKdjtTJhrrw77wbNQ89HfP22ur7i2xVcnif2T6Uq4wk=; b=jij5XtRYPyOrIVXA1vIHHZGzdHMZTnrQKO2xbpWiQDy5EgQ6UsdVV6U0Af2tZEE9U5ymB/ 2brTITXVH91Z8U9JqHq5UnOOE9GlmAR5JgC6imRQeWHegHDG0TUsa1vK50cWy2rscdCiJT PSetS2M0lncjPZnbaIGZlXWbMNqbNtRd4d+ox6weMRPOLwSZvD3xGlcYPLVDMinN21N0yl 6UpeWc3L+YOPrCw6q/vWeQ4jat0ozUYjKJnRiFhzWBdOLerfsRHNP3jxQo7b2whnWeSyEe 8QIrBo2SHWo628QUcB+gczqUyM9dLxRgiNbqN0n/shImFfkDnUEp9H5xIebMmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686583113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iKdjtTJhrrw77wbNQ89HfP22ur7i2xVcnif2T6Uq4wk=; b=G1x29/a8/Hzxm2UqmdpqBPUnLG9C6DdCv23ebpRLSYwfRkClpy/zUeR0pPSCb/ImRMiROG 0++q+KRROEGK9K++NsIVTVAGuMn7juahodqIT5YzlDkHbJ0kVF1xBfhwyY4sIQseiKgqwX PHJwtCtJFjn7OFO+4dDl8KxvJps2CtIMGtxOcwchDdIhnB3mvTIzq6uGGbVn0juJvk4izd fVTjKPsjehPm/E0CdmKreSzcMtXsawL2Q2pI71gwdUrLd+x4Wae/eKrDGQ1ty2qS4ah9rI C1N3PI+1ZO+bvmwSAVQPBHF7HvjUFLjBy6g4+/EjBXZnG2Ly1cRJOgfW1YbxkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686583113; a=rsa-sha256; cv=none; b=cGMo7j1qal13aPvQh/5rMweq0jFFmCfLw/Sddvy7uhZ4jZs/Q3MuLgNCR8Ivi1wL9SWq1d r4Jr/kMd6Y1JoYSOEj2j8Wru5xbP3Pmo4XyaizyYKcmutYL3n+9Rk9JWt9FuhzOTE4yRte K5u7kK4nchR/+l06oaekhSUYfbB2cRYV7LbVb9BLAUzNAhX9UnV1CSAjbl27i2opFVB84a i40laD7vYv6O8QoZoUc+pH38NZdsGQELSxbLy3TcJ/ECf5+SJ0khZvyYwNs1kVj58s2TAa Gwt/ajjaZUlUCVV4NO89A3y3sYXC5dIYinaeWwIZSQ8DnKCDL2xaDKXoQZ21mA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QfwLd48yrzl7D; Mon, 12 Jun 2023 15:18:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35CFIXOO030546; Mon, 12 Jun 2023 15:18:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35CFIXWM030545; Mon, 12 Jun 2023 15:18:33 GMT (envelope-from git) Date: Mon, 12 Jun 2023 15:18:33 GMT Message-Id: <202306121518.35CFIXWM030545@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: d2a4b026c768 - main - net/intel-igb-kmod: fix build on main List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d2a4b026c768ab94b12a3e55dd083f71859bf4e3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=d2a4b026c768ab94b12a3e55dd083f71859bf4e3 commit d2a4b026c768ab94b12a3e55dd083f71859bf4e3 Author: Piotr Kubaj AuthorDate: 2023-06-12 15:18:18 +0000 Commit: Piotr Kubaj CommitDate: 2023-06-12 15:18:18 +0000 net/intel-igb-kmod: fix build on main --- net/intel-igb-kmod/files/patch-if__igb.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/net/intel-igb-kmod/files/patch-if__igb.c b/net/intel-igb-kmod/files/patch-if__igb.c new file mode 100644 index 000000000000..a834463024aa --- /dev/null +++ b/net/intel-igb-kmod/files/patch-if__igb.c @@ -0,0 +1,15 @@ +--- if_igb.c.orig 2023-06-12 15:16:16 UTC ++++ if_igb.c +@@ -252,8 +252,12 @@ static driver_t igb_driver = { + "igb", igb_methods, sizeof(struct adapter), + }; + ++#if __FreeBSD_version >= 1400058 ++DRIVER_MODULE(igb, pci, igb_driver, 0, 0); ++#else + static devclass_t igb_devclass; + DRIVER_MODULE(igb, pci, igb_driver, igb_devclass, 0, 0); ++#endif + MODULE_DEPEND(igb, pci, 1, 1, 1); + MODULE_DEPEND(igb, ether, 1, 1, 1); + #ifdef DEV_NETMAP