From nobody Thu Nov 25 06:39:56 2021 X-Original-To: desktop@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 9535A18AB491 for ; Thu, 25 Nov 2021 06:39:58 +0000 (UTC) (envelope-from bugzilla-noreply@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 4J07XY47Qfz4WVm for ; Thu, 25 Nov 2021 06:39:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 689FE18D54 for ; Thu, 25 Nov 2021 06:39:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1AP6dukO041075 for ; Thu, 25 Nov 2021 06:39:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AP6duXn041074 for desktop@FreeBSD.org; Thu, 25 Nov 2021 06:39:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: desktop@FreeBSD.org Subject: [Bug 259787] sched.h: unknown type name 'cpu_set_t' after 160b4b922b6021848b6b48afc894d16b879b7af2 Date: Thu, 25 Nov 2021 06:39:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: Trond.Endrestol@ximalas.info X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kib@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? maintainer-feedback+ X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637822397; 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: in-reply-to:in-reply-to:references:references; bh=eQEGrv8ZblwFZ/GAzFKFveqDYpgg0qHE20HVb5Xfiy0=; b=ymodRC+P+NCRjWy9FDcPkrp7Yi9mvvgKRPSitTkhJShr3bf9WowRG3vY6LK74/iFJAmT8h a4ls8JqSDKkaXhn4VsqvowbUVCguMjqpEwvHt7ZFpqeGHiNyqHcY/qmDCCoE4cibrLyReo Oyeqiz+C3eUu4v2h9Ddk0nlAQoYZsFvu2FdXeccqU58I+TcYFEs72JJr/IbWBbjo774BXK hcj37xk3OUNnCYF0LlGMi8VZzAsR81Hv1n/5K25kTLRblTRONX+jt7HORvxbLYXhXCYDw2 5jQeo6Ab9/Dm3PgoeNeP61EClJbP3cXJkRyJjG3UZO85GbSqnESvZAb6dRkqyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637822397; a=rsa-sha256; cv=none; b=WMVXqqxouZCkwmLtKoFoZbI1UCygSCLW6OY/0rM+4dxtOgzbA9Fr1aq8zUsUA5DaG9D1rq YgzemNqAOUENezhtaSDL5S+xVcDaA7XxiIAX+eW8H5hVwWAej2yfk4/4BlLrAgaNcUufQA O3GPLg1z4I/dmz+f25Qja70+sqOCVt90uBZGm01JXq5EkvidfgkWL3Tc1a0ehXsqB0aV6I +lFZt+nDOfvlFSuizEvj5w8DSaAveWgT/ZpLcUs99UMtnptlob7EmwmrkvRCiiqzvA1rcu BYj3QyM7Yxns0j9IchvBZFmV5ciuce9LAoVDeNkx7dkzEVq1buMzvTYhG2Vszg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259787 --- Comment #28 from Trond.Endrestol@ximalas.info --- Created attachment 229718 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229718&action= =3Dedit Patch for src/iperf_api.c Should fix these errors: iperf_api.c:4460:5: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'? cpu_set_t cpu_set; ^~~~~~~~~ cpuset_t /usr/include/sys/_cpuset.h:50:24: note: 'cpuset_t' declared here typedef struct _cpuset cpuset_t; ^ iperf_api.c:4464:9: warning: implicit declaration of function 'sched_setaffinity' is invalid in C99 [-Wimplicit-function-declaration] if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) !=3D 0) { ^ iperf_api.c:4464:37: error: use of undeclared identifier 'cpu_set_t'; did y= ou mean 'cpuset'? if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) !=3D 0) { ^~~~~~~~~ cpuset /usr/include/sys/cpuset.h:156:5: note: 'cpuset' declared here int cpuset(cpusetid_t *); ^ iperf_api.c:4506:5: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'? cpu_set_t cpu_set; ^~~~~~~~~ cpuset_t /usr/include/sys/_cpuset.h:50:24: note: 'cpuset_t' declared here typedef struct _cpuset cpuset_t; ^ iperf_api.c:4512:9: warning: implicit declaration of function 'sched_setaffinity' is invalid in C99 [-Wimplicit-function-declaration] if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) !=3D 0) { ^ iperf_api.c:4512:37: error: use of undeclared identifier 'cpu_set_t'; did y= ou mean 'cpuset'? if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) !=3D 0) { ^~~~~~~~~ cpuset /usr/include/sys/cpuset.h:156:5: note: 'cpuset' declared here int cpuset(cpusetid_t *); ^ 2 warnings and 4 errors generated. --=20 You are receiving this mail because: You are on the CC list for the bug.=