From patchwork Sat Jul 27 08:11:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 13743640 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF9C838FA5 for ; Sat, 27 Jul 2024 08:11:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722067889; cv=none; b=ENvLdtYJlNbQJW6DdW4JGhG4D27ENngEq7KlreEsnzhzBVnnaJ0gnZ4s/Sscp0Sno6p8qGBYyLRohqQwUML58icyAuro4jVeyRI1+d5xj57wodgKPVr82LinK38DxbsOZZVfg/3DaJSK70AmgNJJvAq1a95WtdXogOQQtRvQg5s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722067889; c=relaxed/simple; bh=dvPOCZJScvmCQMMrM5TeZkDOWJhonLctjgN+n/U66JE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uFD2jZ09B/tgVqXB9IxNH9GfdVgdfWQwAJbhmudVayEwbpk3JdEidASz/c7dLr5uR0otsxT+nPhPMuZ6JtVHz/jJ5oH4lgB9UCrkfAXkXc+R6Hc9W20f7NjUgvsJvykcMmsgO/d6Ox8qfThFP4s9rmf51Go/wiWOS164wMDQJNI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.net; spf=pass smtp.mailfrom=gmx.net; dkim=pass (2048-bit key) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.b=OKVU1XNb; arc=none smtp.client-ip=212.227.17.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.b="OKVU1XNb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1722067884; x=1722672684; i=j.neuschaefer@gmx.net; bh=QOncFn4gB9PJTnCnc3olbSn0d56QromgWsjvW1HpC6Q=; h=X-UI-Sender-Class:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=OKVU1XNbUAJ311i+TeW9tVd3Odx9VYHQ1lDFQ92hy/7caoqq5p0Qa6TMgYf4VI5X lYcqtSSYh94GNmBG8e+MVskQ4IEV0dA28MXRAqL0+cNXHc6zmCQtyEP63ziZ6CZJY U/hDEscEpmY3baXeXKTzFh0ToqFCq9umeLRPci3YswNKNWA9pZJGI+ss/J0Zb/gxM o7U3KuSKBXzSxsFXU/dvRqwPioDsnAm0Vn8Kmcb4doD93wQtZwmGeLQYS2lksB6Jb QI3t5zhyzGSnDio6zgfZUY40zdQVqQhB6/LydkO8Zk3oufuqyc0RqsufE5YtLHxhc xmCKwCbeaOD/ZDIA1A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([89.1.58.183]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M3lYB-1sYRTD2Hv1-008vrl; Sat, 27 Jul 2024 10:11:24 +0200 From: =?utf-8?q?J=2E_Neusch=C3=A4fer?= Date: Sat, 27 Jul 2024 10:11:14 +0200 Subject: [PATCH kvmtool 1/2] Get basename() from for musl compat Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240727-musl-v1-1-35013d2f97a0@gmx.net> References: <20240727-musl-v1-0-35013d2f97a0@gmx.net> In-Reply-To: <20240727-musl-v1-0-35013d2f97a0@gmx.net> To: kvm@vger.kernel.org Cc: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722067883; l=752; i=j.neuschaefer@gmx.net; s=20240329; h=from:subject:message-id; bh=CtwhGZdRD3//P3E2MBnlvjiF8b0WVLNZdqvN87HoKRY=; b=vvstNLdhR5pH/YW7M1pyoa4cNx6ZUA+dL3I5XMZ1EoFTbtzveP956BMwocxQV8sTSUm7YO0L4 WibHvklSmsFBy8jozwDmmd+W2yclM6aJAGGpwK2u1eZ94tR61KlPJMY X-Developer-Key: i=j.neuschaefer@gmx.net; a=ed25519; pk=NIe0bK42wNaX/C4bi6ezm7NJK0IQE+8MKBm7igFMIS4= X-Provags-ID: V03:K1:K+MZf++WTulBpV4PRlPcS1ZmT+28tHq8qTvs13oRYbqFh5BB/9V QSmlPQX1f0iZPJm9Yxrva+/X74JUUHQwVvfoN61GG4/+BzBFy6/46EL9sPEx0LADgN+JCFL vrzMk2s27XgayZ72q6lyjjvHf2JjX6GGpTozM9AufaX2IO7iuUM6wXGn7bToAyKECz4faxh DhXYclXVuHJYkiaeyJNLw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:vIRTiXEwaTE=;uw6DeDGi35fBGuV/BQd2zBSQxOV ombFQyrOnLSBhyO04+F/EMVZxhoKO3qYhpkNxK7ESJ4qkZ+wSt07wlZd+DVqwhm/QUggDiDgH yXE69RQCuY8eCAwVQvrJm70TaVkFiMkq5I1nb+gmPXFJz5fz0JWg/uD6u2bN0mfh/iJvZwTt5 0q+OM4WKoMBq20rRd+amV5SSwB5DEwvrS4vxD16PIN0ZTEKnRXkSmLaknCWFyShjJPEReC5mU EbOIjDLRNYPWa9BHDVHb3QmkK9TA7ATSyBXSf/CUfTubSVYqaP8jsSe9N/vwuCiUyobYk/F1p wY608n7a6CG/IoOY6M/ZkwopBQEtXG38bj+ov1cItFVL+mv/R/YwtLrqNIfq9KZQAHx2XH2IJ 8kecYyDQKIyHm1xcHzaieZDEO7EyHNfHlVxuHSXRYgqm36fWlo8dP/AF3INIoR2FPNI89Ikh6 1o8DpQc49bCTlR5L++3KSnOVSYCX8rj6gg9tQZzmOjtqFJMZS6zoyR47gqRsKiNcvHP9niXYW 4CghgdMVOQUKVV0dPoNl23WdJ5jrJxwh1vkHvAP5JKD8czSH819AixQo3L6ALU2r9Uzqq+m/M f4L+RefG5z6MwiBmR9xCl0Adl+GihJd/sJ6po8nDuWPmkDNLyDEBGQ5alNiDM9YGsutt/oyYD 2xWYC7vrNcx5KphdPoxB66hMngoK7f42nLDm/duRA3xHY6FKSVx9ru0LTcVnrhjA6Q3idAi2e FS4Kv2gjpdipntDztJHoA++lnkEa1h8/qUWYINF4gduWTUONoDrSxLQ6A7J+CNqVXDgEauR3C NoJO83w0F1H/jirh5Oft+uuA== According to the manpage, basename is defined in . Not including it results in a compilation failure on musl-libc: vfio/core.c:538:22: error: implicit declaration of function 'basename' [-Werror=implicit-function-declaration] 538 | group_name = basename(group_path); | ^~~~~~~~ Signed-off-by: J. Neuschäfer Reviewed-by: Alyssa Ross --- vfio/core.c | 1 + 1 file changed, 1 insertion(+) -- 2.43.0 diff --git a/vfio/core.c b/vfio/core.c index 3ff2c0b..8f88489 100644 --- a/vfio/core.c +++ b/vfio/core.c @@ -3,6 +3,7 @@ #include "kvm/ioport.h" #include +#include #define VFIO_DEV_DIR "/dev/vfio" #define VFIO_DEV_NODE VFIO_DEV_DIR "/vfio" From patchwork Sat Jul 27 08:11:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 13743641 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FFBE39FE5 for ; Sat, 27 Jul 2024 08:11:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722067889; cv=none; b=LB/dcaqNfEY5XcIxADBc+FNGXY9phvGO4GgxC3+YzF6hxekyAOT8hXcpaactcPVUfaSB9n2+ugPwfFgMvshYWkR+jeLLqY/bLRZY+ksdMfdw7GbRzb5Tds5IRDCtsYNxMAcemZ0lcTTbTQAd1qrJAwN+7zL72VlpVvb7DI+Cz6Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722067889; c=relaxed/simple; bh=G1UG7Ym5QWsBDQqrKrtbV3yC3R4jZ+ZAMXPrVuycTlc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=L5K2RjMP4Lgz0kNCIeNvF7gDK1MQfVCsTVxjDy6qZM9w2+TS7w4nhxuxzZ2LhEDZL3QNS8e7YyNpboFvmeR+NtPGIPN/PDCvSkJ4AfRFUsHFYZO51IRHdbyuoWAfM9suLV6HIge3Cvd8phPjPDRXXJ13BenC5GdyYJfp1RnjNwo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.net; spf=pass smtp.mailfrom=gmx.net; dkim=pass (2048-bit key) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.b=cgonqJV6; arc=none smtp.client-ip=212.227.17.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.b="cgonqJV6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1722067885; x=1722672685; i=j.neuschaefer@gmx.net; bh=G1UG7Ym5QWsBDQqrKrtbV3yC3R4jZ+ZAMXPrVuycTlc=; h=X-UI-Sender-Class:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=cgonqJV6cuf/ArCpGrwamnumqDb7+ji171D14AB/fqpFIIcLKhohfVxEBJ1cZNyA 5SdjAGCOT4jNadSgSEXXtyuLNbh9vant/F/KoJ5+9V2CaXJdrRp1mhwtpUlcHfTKK CIai0FXQJllx5toA33q6+r8HsR2RO+C2BNxU+ZV5JoMOoNyCFCesnlvndOgmpcI5S 7uawx4Sg0b8XAHlJNKc+NX1PKi+4/Sr7cZjdMZb0Y+B/Wqxlo+dOQi8raj8HeoToK C5xSUGeM1dxm03fZHWItZJSkJEpQAqAuVBYYhIUGn6RzPSJE8hPz+SooJXBeepI48 hnxm8oh6GdQOe2wFWg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([89.1.58.183]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N6KUT-1sE06G02OX-00y4i0; Sat, 27 Jul 2024 10:11:25 +0200 From: =?utf-8?q?J=2E_Neusch=C3=A4fer?= Date: Sat, 27 Jul 2024 10:11:15 +0200 Subject: [PATCH kvmtool 2/2] Get __WORDSIZE from for musl compat Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240727-musl-v1-2-35013d2f97a0@gmx.net> References: <20240727-musl-v1-0-35013d2f97a0@gmx.net> In-Reply-To: <20240727-musl-v1-0-35013d2f97a0@gmx.net> To: kvm@vger.kernel.org Cc: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722067883; l=613; i=j.neuschaefer@gmx.net; s=20240329; h=from:subject:message-id; bh=tVOKWKwYU+dVSuJDiqNEpg66SUP9EyIq3cbfmNfFK8Y=; b=/V3hmu8UlIP4tFM9aT2ocY+U4ORxQByq5Xbg4APWL69oHL3Vz0QvB1o0sme16qwVIqQZBIVH3 kdZ5oTHpI1xB6A7tL7sgXpMrvpl2uizgmWcRy2M0HwmnQvq5mA4/7me X-Developer-Key: i=j.neuschaefer@gmx.net; a=ed25519; pk=NIe0bK42wNaX/C4bi6ezm7NJK0IQE+8MKBm7igFMIS4= X-Provags-ID: V03:K1:OnkjK+lUROzUJOS6kAdqGvtVZG5mE8Mz6RnxjjZjHub7ea1fssB qU1J6XaaAR51R8hEIU7EFA30LV92GQ3l7sLs1BmtPgzZ7AuZR7aHHUjzQKu94LtPdPie3b4 yCmmOCOmHW180cJT5f6fBaMHL8hjy6NtvBhd8qt9qGrWurj4jHGIR41OCe7D5ccDZdmf656 q7yUpyhL5f7NLvuIC11Mg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:3rS76tPaokc=;tw+cSM7CYdu5bnQ2nuwndcyUH/k q3U07KPnbpIbIuGAb7jwfOlDJ8YCFo0W2MmbeWjV1A/qMtkvBvEm+1BDkGcHSQgTLxkSYa44z abjGNd40NHHHikVRl0xbZRaOjcOoqCpywNUxlvAFPqcJCzoajYo0mqFw/iNFv3+G8HjexkYbK HByZjeamjeCjrA/ceidFD7/cGZ6eDlw6Ny2jj4dKCHTCEUsLYLsUuHZP9hLMMb65vhQaDjTHf KmIQVZswkyUKI1uWDxPiYHT63GoKptoj51Y15YPo1xsIIP2zqhrF6yNOU80eCC/g/STD+Fe7R JGkkK6ScxWr+Jy5iT/AsT8T/PMZ4rkBuT0/UpOyXnHLdnvdmbBSvUwcxBx+1+Sv5DyRisJU6o 0V3HMXWBWfxbyGLfwzO1SH2wG48//4yaQbF105ExqgB9wc1hvbqYu3agu7Mm/rAnNLQJzLwaK zSFAf6LtzbORM5/+wGF4Szlar+a3P7xNllL0tJt98I2ccQkAmJmAsBDwJBp1Vl4KiG+WcVu7A rj1fgL6Kw4+Q+Llb6bbf9mwjezZeRqU25ZkZDm4V5y4RhJ5ekH7qvo6zAKyDXOXudAIS7YF4o rHzrmx3WgfiQ0go8a3NCnaatIeQxaK6f77gx0/dArQVo02SYmX5+tgGmp/Tk7iXc52+JH3r1x DJ/0BQoTQwmv/T6QMne5OPb/nQTT5XPx5kRI5XbjlMv9Rg+5mauaafP0jvs1ASlT9zPXiT6kk 8LnJho+vPb78dyNx3Bcof8LLfb9AekemCz8XCACU5PNbX4MKONxHyA5EAO/CNueA1MUYhrFGh 6IFBfJ4oQf6QZwSUqcokaQyg== musl-libc doesn't provide , but it defines __WORDSIZE in and . Signed-off-by: J. Neuschäfer --- include/linux/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.43.0 diff --git a/include/linux/bitops.h b/include/linux/bitops.h index ae33922..4f133ba 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h @@ -1,7 +1,7 @@ #ifndef _KVM_LINUX_BITOPS_H_ #define _KVM_LINUX_BITOPS_H_ -#include +#include #include #include