From patchwork Tue Jul 9 04:47:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 13727256 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C788729CEA for ; Tue, 9 Jul 2024 04:48:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720500495; cv=none; b=stRj3FQGFJUjxM4r44EL7AXoM870abnrvkE702E5T0UoMItVJ+NBdTbh5itCPNFV1LEeZEydxfBJw/YpMODAScqmOt9fUC/lxhDtyVUm39ZHrpPaAVv8ZV0fyZcvrfpTSeB31BCgTz+yQGfRu1v8eiBKXL+ievTvtq5aBSAfxCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720500495; c=relaxed/simple; bh=z9w+UWg8IbZRKBf1VqqsR0EPRlCBiZbqfT2bFaG5SAY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gi3ntIMdCfdWLppLrP8oTMyOqArgkGJmyAWhOJkUyANVZZXCcRfVcZKPk+/azw8mpmxr4xHlbGNF3p5u/S1TpP8VQRNVqRWzhejkWEoYdDxCptdhf/eITjIlNT7gDPTWg7kqFpMDYDZLTaR8eBGZMWiA21UuNIxYPTQyD81ruvY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bQphsKPA; arc=none smtp.client-ip=209.85.222.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bQphsKPA" Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-79ef8fe0e90so239754185a.3 for ; Mon, 08 Jul 2024 21:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720500492; x=1721105292; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BXL4CocAqV7ghKWQu0gPH2qFwJLiOfrJfPq6eZQc61A=; b=bQphsKPA5HZCgGTvhG3coaTz7tI4LeQzDHlcMOfrRN4zq2pbVkKrOFfue352+67U3d N+ex8dIbh6+JKagCbrgNvGDbhxx+jZL9mAab7uLorGZFyU+Exnvc6Q9UCY1sQKf+Deso m+X6MDdHNfMK3Z/bOhm8NGPpyF8FGnMgn0+wXoC/IS6MIpC4xrduBMAjof418FdlRSoV tcnw6BjvN/U7Ph2Oe4OSj7hipSkmtLt+s9r1i2Z74X0jv4w/ptiVnPWS3FILKYaBS58n 15/0mPgmAZdiIMSkh2UEZvH+KEnUXS57EwOyPlXGMCttA7lpewLSTwNq28tCBpitSG+V 6QZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720500492; x=1721105292; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BXL4CocAqV7ghKWQu0gPH2qFwJLiOfrJfPq6eZQc61A=; b=dGkzkXpGAaK3mwv9QelPPTN/cbH+8/nVAx91tNj/M9UpyrqgnqSx6IHb9x3VRlp2gP kF9F3VtzoD5CaQoN+YM409eEiXb3hsfe9YN6DBF5Rb0MLMkkjwWx64nRAa9jCqzZ42ag VApn63Ze/8JBeNcaUOcagPQmhk5F6jrcuc7+jMxR5Wfy5spkcPSNiWGU6ogkeOrkIN4z LTB2t4HvXFqQBHClEWVtF2KYFdRc9ykEJHvUPWcj9wmFMe+VnYM2Xn1Et4LUAoMLE6ds Cgl3oanSMuJI7wmW4fQOIHnKZdfQ9vvvjxuTYHST97cwquM+olgbY+n2c3L/dW3Gs8Ds ffDg== X-Gm-Message-State: AOJu0YyYtfzK8ww8Vn+eN/ybdlym1fQjqFo7r6g03JHsjqpi2WFjiSd1 UnwTIPXM3mmGpWxr1SenpDFH+TwdIu8NYSZA+hOpWyMQpqnVvdVtelGikA== X-Google-Smtp-Source: AGHT+IECXYYq25lKLiUtz5XEXFM5zBPENkQxp6fy1Je0KzvbwyDi/2RfCDutzMi71fvUSIbnyEg14g== X-Received: by 2002:a05:620a:13d9:b0:79c:1345:a7fe with SMTP id af79cd13be357-79f19a1f377mr154096685a.24.1720500491884; Mon, 08 Jul 2024 21:48:11 -0700 (PDT) Received: from ldmartin-desk2.intel.com ([2600:1702:4eb6:3000::3f]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79f1902ac2esm58639985a.59.2024.07.08.21.48.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 21:48:10 -0700 (PDT) From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: Lucas De Marchi Subject: [PATCH 1/3] ci: Add github workflow Date: Mon, 8 Jul 2024 23:47:56 -0500 Message-ID: <20240709044758.67725-2-lucas.de.marchi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240709044758.67725-1-lucas.de.marchi@gmail.com> References: <20240709044758.67725-1-lucas.de.marchi@gmail.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add a minimal github workflow to test kmod. This can be incremented in future to test more distros, compilers and libc. Signed-off-by: Lucas De Marchi --- .github/workflows/main.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f366846 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,49 @@ +name: Build and Test + +on: + push: + branches: [ci-test] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: install dependencies + run: | + sudo apt-get update + sudo apt-get install --yes \ + build-essential \ + autoconf \ + automake \ + gtk-doc-tools \ + libssl-dev \ + liblzma-dev \ + libssl-dev \ + libtool \ + libzstd-dev \ + linux-headers-generic \ + scdoc \ + zstd \ + + - name: configure + run: | + mkdir build + cd build + ../autogen.sh c + + - name: build + run: | + cd build + make -j$(nproc) + + - name: test + run: | + cd build + make -j$(nproc) check + + - name: install + run: | + cd build + DESTDIR=$PWD/inst make install From patchwork Tue Jul 9 04:47:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 13727257 Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D55BA29CEA for ; Tue, 9 Jul 2024 04:48:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720500497; cv=none; b=gcZZ9T4C3e+wy+1Cqxo/x7fZFWlo61Y+ixS1K/MRAee2W/W5Do8YEb0nhZGYOgg6IW+qdariyZyF5U2Ymfw+llZDeksmJAquzDUripnxEAynG+OgYbaQexnrUWC8KlZ4AKmYmD6+2AcruAUXuVhkfvUMiitIkuqNI8z/8l0ANN8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720500497; c=relaxed/simple; bh=NnZw40sQXELEWUG1Es/sP9T0EhYs+02Ost1cP2lkOwQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r5hxzfZTyAWSZpPYezbjCCQdw0AA+lNd6+POWxIRrpkniLVRY1QHpomDNXQIWhajfoy8JdzsJr2srNq/uaCKlE54vGjYOIFy6THzgNMlimyZoARDKNNyJWVoKVPmxxZrfDOuFRdCUseIzoIrZFQg/sLySU7lvJJCcF8vGkNl/Ts= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h0EJXrdf; arc=none smtp.client-ip=209.85.217.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h0EJXrdf" Received: by mail-vs1-f51.google.com with SMTP id ada2fe7eead31-48fdf2d5309so1560542137.1 for ; Mon, 08 Jul 2024 21:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720500494; x=1721105294; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aS8206+pdJ+YgftDfckLVV2trZR3QFzBB2VzVDfLGXE=; b=h0EJXrdfYi1gxCZC/3SlVVNKzSeJbKTD7mdWvpepMUJ4ZRmOVSQqbPRH2/j5ElYhNP +4Pgco4MeuSaI3sTxRJG3lGtqpIj06zitcPUcbAA7v9VedASbmqZbs+2+gYIPbVqzIwu kicciTpPLnIFD2tGiTRzODQZZpF1tk2M02Swjqsng3Ix8MGXqiy5MBpqOpHvINWWcbTc k2w6oBUwpilApnDPw2H4bXHyTne/kw5JGne2jyYMlJ99xK/ZldY829908cSIR6I4BrfL 1uYRhu8+WpBnSPzimEtVj3YdCmPNLvjbiuEcU/Fqvjfb3eJXWk5y0rIZpMXrPntB0pNF W0yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720500494; x=1721105294; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aS8206+pdJ+YgftDfckLVV2trZR3QFzBB2VzVDfLGXE=; b=SvKggKFWpcpsQ7b7xv70RIi5qaeCp3b5nMigaZMU401oJBicACO5nxAVcXK08uaLbz Bl1ULJAa+xDXNSyzMbBtnqz0RdsrKNoncmlDD1PzRtrwnkwIpXMPvh/VywIS2hhRlGOf q0lj7XM3jQRpAYjG/sTnO0VSYeOsw/afSb9w08ci80FvcXuT+V8fj/8MN164+fKQ0zUx xSmTTngux8ooWqCSPh8lNX8rOQf4OkZoT5OxD76vDY8TCIz6IWSfcuaWLmUde3eO7AfP 0pWgrs/zjFqv0k2lSUlW/88B43Jjss51idg1te5vdYFff6RiFfzskKlqI3hX+JaDJeJ8 uJuw== X-Gm-Message-State: AOJu0YzvYdkvrzfWiymZmLDdmK3Vu+FSPX1fQd8cUPBelz0XnbbwIXwx ddnzSt183F17M/tU8Jrh6+unnpVpLwGqtwAoznGJo8OhDQKdFgKk84KnUw== X-Google-Smtp-Source: AGHT+IFN+T0qBM9TvHYrisnq+fpdXH1fcJnywKRcGPc2KYXsFhGA2O18YPs/sseuxIgt2cUSWoSnew== X-Received: by 2002:a05:6102:d8a:b0:48f:eb4a:b0a2 with SMTP id ada2fe7eead31-4903211bb7emr1507032137.8.1720500493869; Mon, 08 Jul 2024 21:48:13 -0700 (PDT) Received: from ldmartin-desk2.intel.com ([2600:1702:4eb6:3000::3f]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79f1902ac2esm58639985a.59.2024.07.08.21.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 21:48:12 -0700 (PDT) From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: Lucas De Marchi Subject: [PATCH 2/3] build: Add mod-weakdep.c to EXTRA_DIST Date: Mon, 8 Jul 2024 23:47:57 -0500 Message-ID: <20240709044758.67725-3-lucas.de.marchi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240709044758.67725-1-lucas.de.marchi@gmail.com> References: <20240709044758.67725-1-lucas.de.marchi@gmail.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Fix distcheck failure: make[5]: *** No rule to make target '/home/runner/work/kmod/kmod/build/kmod-32/_build/sub/testsuite/module-playground/mod-weakdep.o', needed by '/home/runner/work/kmod/kmod/build/kmod-32/_build/sub/testsuite/module-playground/'. Stop. Signed-off-by: Lucas De Marchi --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 4b67ee2..847c8d3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -221,6 +221,7 @@ EXTRA_DIST += \ testsuite/module-playground/mod-simple-i386.ko \ testsuite/module-playground/mod-simple-sparc64.ko \ testsuite/module-playground/mod-simple-x86_64.ko \ + testsuite/module-playground/mod-weakdep.c \ testsuite/module-playground/README check_LTLIBRARIES = $(TESTSUITE_OVERRIDE_LIBS) From patchwork Tue Jul 9 04:47:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 13727258 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCE4A29CEA for ; Tue, 9 Jul 2024 04:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720500499; cv=none; b=X63EHib7hZkEv/NzfWlrAdiShXenZORImXXzTswhLL1KfRBj+lxcZ1ep0T2Dvsxtz9DP6bWkn/YmIBDRT397g8PevrZA/vjYbrhLDRnjsPldUlLas0vXxni9Lrc5tZdpdN88j9EsUEr4jiwku44jX3x5FFfeQS2J2Qew3T3YNPs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720500499; c=relaxed/simple; bh=i242BUVvpxa+YHvIeLIUetBbivRu7IbeGF/tZornNWk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eA51cENbMXuZDYhZLYcY+ITQB/wNb+Ww7lzcGOtxbAPuyVGNAuVFf8A4lvGwAiZuYI9BqXP7bcTjIQeDc2Npg/Z7dsAJ3dRL2bHA54LnYc9/SNLiOFNpt0xM+iWgfuYe2ILGMRPbGaud1gkCevRXTFARgH0WQ0KH3IzSYTgEU80= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ODAA9Jjx; arc=none smtp.client-ip=209.85.222.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ODAA9Jjx" Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-79f014a53b7so251492485a.1 for ; Mon, 08 Jul 2024 21:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720500496; x=1721105296; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JLzjRFFyTahFg9pjzHmLot5JvgrNlwKoD9kPUwV8NJs=; b=ODAA9JjxboFVjiUpIkgNcswnUjGRwDZniGO5yt+A9GoFV2jrOml2Mdkg4J5l+XwJxk 93La6n8S6R1zBuo2WFcNcMcbmGp5c/v5s6gKu5hDUyAKG82RhLrYf0rWaQPwd5X+8SA9 4nsiIUqGhVzELkAtqF5xWeX2Sh7C/TugAfVc9MX8EPNjEOtmTX4QcBhM7Gi8rXLtMlW9 LqDhSyDqE2j4zxd3pqajuK/JNc5i4l415yznraoH5x7c5HAL/qpgISooZebsnsPOZQEY JmMYYXyq1C9J7BuZ+YpSHTDiL5wvJo1vp2hbnPvX6osZpt1yYo/N2byv6/WpBT8Kd5ta 2d0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720500496; x=1721105296; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JLzjRFFyTahFg9pjzHmLot5JvgrNlwKoD9kPUwV8NJs=; b=u6B30TeLeT4EyXO1bpgQkhb/budFgrMZTc5KlRAJRvIGV0ssgzleCb538g1OhqGoqS qguXd0yXZ+dZ+lABsKwZs4wPt8U1cuglC4nYbTxz7qSGC+3QshyQqMPV5SYSdkML1Y26 itWa/E2q2e840W6HdqiXlAIs1CLiTS7i8iyL28i3t7RcpCRK5XZcZ6Fhz3pRcvXH6OMR 9yZyoV7V5yGc/Fpr3kqafmoaI4FtKi8FhqcA9/UAoNWkTQpY1Ilr8bAZRM90KeGou2uu i3X9K4f2WmwUB/ATWoBSLnNc8mFa55jgNC1zPQknXNdt3GFAJgdIgYhUIEpXDBnjP17m cRZw== X-Gm-Message-State: AOJu0Yy80ZQDxvBf4cmTVwj2Woz2wquzxZrUe5z+6WgnP6nud4r+ut9M YI0Z8rNCcsWceDjZY5xPMfcaewOqXufX6DfvWgGdYCbVUKIegULeNR9pSw== X-Google-Smtp-Source: AGHT+IGUWxAYpwSFF3lN2xgPBnmQ4RwEoWktvXoKl0DvqWPbp4x9tM+BuIgdyy925itsEihpxzphcQ== X-Received: by 2002:a05:620a:135c:b0:79f:baf:ed0f with SMTP id af79cd13be357-79f19a1f545mr176991685a.23.1720500496020; Mon, 08 Jul 2024 21:48:16 -0700 (PDT) Received: from ldmartin-desk2.intel.com ([2600:1702:4eb6:3000::3f]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79f1902ac2esm58639985a.59.2024.07.08.21.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 21:48:14 -0700 (PDT) From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: Lucas De Marchi Subject: [PATCH 3/3] build/ci: Add distcheck Date: Mon, 8 Jul 2024 23:47:58 -0500 Message-ID: <20240709044758.67725-4-lucas.de.marchi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240709044758.67725-1-lucas.de.marchi@gmail.com> References: <20240709044758.67725-1-lucas.de.marchi@gmail.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add a step to test if distcheck is working. Signed-off-by: Lucas De Marchi --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f366846..b3b2fdf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,3 +47,8 @@ jobs: run: | cd build DESTDIR=$PWD/inst make install + + - name: distcheck + run: | + cd build + make distcheck