From patchwork Sun Jul 10 01:31:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liam Beguin X-Patchwork-Id: 12912357 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8060DCCA47C for ; Sun, 10 Jul 2022 01:31:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229563AbiGJBbf (ORCPT ); Sat, 9 Jul 2022 21:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiGJBbe (ORCPT ); Sat, 9 Jul 2022 21:31:34 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F8981571B; Sat, 9 Jul 2022 18:31:34 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id w1so3166563qtv.9; Sat, 09 Jul 2022 18:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aC7GGP+qFCMQoeeXhh1VdtEODIrDY2D68m8vGqMgwVk=; b=pzxwsWnPRf11xoL2BdQkapOV39kUt775xTzlfejy7qgi9E9i3Ss6WAreWb1q8+Bzb6 nWOjHxXtp1Xed+F5dEmxmbW7JumDEpH+XiOMJWWR9Yvw4yUhXtKPCN9oVRuCOUnG+eyO wNqUTYPnyNCMuC2+d1vehuQlBjDX4dq0mdM4wMgcyT2ckWHzIcbHHflRMzKvVGnUtADN crasNtqi+2rLK6s0A59hsOwKRV0rfLBYwrFb+zsK2m+EIIi4+y5HW2Cll0DvaAnh7cID LXX1Tp4suPPdY6NagZ+WwVlaMjEsKwjBzG98XWTz1tiPcbfRIAEyrHaKE+GnCtPP9m/S 23Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aC7GGP+qFCMQoeeXhh1VdtEODIrDY2D68m8vGqMgwVk=; b=WDm8avT4sTjdAnfPFHOIyT2ZpRqUTojoX56b7PA4svJblKoaFAZK927d5uf/TXqBkq v1L2g96Hoqr+p41gBoGV/IVjarSAnripT8QIW8ucDFGBiQFQSSF4DJZypm+O4BsNLEl7 VUYDfPkqJLNs5RbyVg9p+uLijLmV3aUqs3Yd+4B5tOkHW2sRPbNGQvg3Azsz5v0a5b9g MIdhL8q6HyVcQcQQD5wSDjpYXFZF5+yZMb4z7jxQ8T8VH7Yu8vzJWxXrSXz7kiE28xe3 6tv5x/GOUe1HxBly0BHHD4QV92Z2FGjUqe4QRXIke7vFc0oTHHy9YvPqTk/i5u3Z2nvu +6aA== X-Gm-Message-State: AJIora+BP2ANqsuahLiY7Esk4VKsWJlDs+BoPyUXhH3Twk25wPiAvPD/ IFa8tBaulLMruX823wzIDlB+zaxf+cc= X-Google-Smtp-Source: AGRyM1tMbpDvLx6xpSoACU3E9xUNaIzUEEANxy+OO7t+nEOae8ZtBtEa4llESwG18BLV6LSth1/s5w== X-Received: by 2002:ac8:5c47:0:b0:31e:a9b9:822a with SMTP id j7-20020ac85c47000000b0031ea9b9822amr6147870qtj.250.1657416693170; Sat, 09 Jul 2022 18:31:33 -0700 (PDT) Received: from shaak.xiphos.ca (modemcable055.92-163-184.mc.videotron.ca. [184.163.92.55]) by smtp.gmail.com with ESMTPSA id j13-20020a05620a410d00b006b575a9775csm2137258qko.45.2022.07.09.18.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jul 2022 18:31:32 -0700 (PDT) From: Liam Beguin To: liambeguin@gmail.com, jic23@kernel.org, geert@linux-m68k.org Cc: peda@axentia.se, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/5] iio: test: rescale: add MODULE_* information Date: Sat, 9 Jul 2022 21:31:05 -0400 Message-Id: <20220710013109.3349104-2-liambeguin@gmail.com> X-Mailer: git-send-email 2.35.1.4.g5d01301f2b86 In-Reply-To: <20220710013109.3349104-1-liambeguin@gmail.com> References: <20220710013109.3349104-1-liambeguin@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org In preparation for module support, add missing MODULE_* information. Signed-off-by: Liam Beguin --- drivers/iio/test/iio-test-rescale.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/iio/test/iio-test-rescale.c b/drivers/iio/test/iio-test-rescale.c index 0b6699bfd553..735e2f97af18 100644 --- a/drivers/iio/test/iio-test-rescale.c +++ b/drivers/iio/test/iio-test-rescale.c @@ -708,3 +708,7 @@ static struct kunit_suite iio_rescale_test_suite = { .test_cases = iio_rescale_test_cases, }; kunit_test_suite(iio_rescale_test_suite); + +MODULE_AUTHOR("Liam Beguin "); +MODULE_DESCRIPTION("Test IIO rescale conversion functions"); +MODULE_LICENSE("GPL v2"); From patchwork Sun Jul 10 01:31:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liam Beguin X-Patchwork-Id: 12912358 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0A0FCCA47C for ; Sun, 10 Jul 2022 01:31:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229580AbiGJBbi (ORCPT ); Sat, 9 Jul 2022 21:31:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiGJBbg (ORCPT ); Sat, 9 Jul 2022 21:31:36 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AE7A1571F; Sat, 9 Jul 2022 18:31:35 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id i21so1907579qtw.12; Sat, 09 Jul 2022 18:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ev0/JwIhf1IIvfZYtY2DhmTLI/RSQbxnQZu2/o+AGzM=; b=ZmYUJcdHvDbBCAGOIbyPkhIezwkEUexcyLIpVTznP3lFB5OXwbjNYTl2yaxri5ve/c rvWn88RJsTJDgidJWZckeUivc6iMO9g/RvvZH3W+sMDqtAu0RHdD0YnH8WrcOznKe4h9 QvU9cPG5Bjblt0oMha2eytVvf1kbZDvmUlDnlg9FpLm2drWsXiTDDJA+ZrGSsh3+Y2cQ oQCDwpnGR954jQa9VgAy8akGAxz3PkQKrtlMkJRDBGwqO1tTIqWQ2RnALmtSkm04hnx3 xFV7gNT2al1vaoKwBscOVh+ZKVKFwFvdcqSLElC69wbWU6YEWLJwi67b7qR2geOSD0Fp y2cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ev0/JwIhf1IIvfZYtY2DhmTLI/RSQbxnQZu2/o+AGzM=; b=D0pf06jjvxrZK0HlTrUEhbuvN1AeeKu6nsEnj1oFdkvTaOvmEhPXe1AHZ856bBp+w4 uNpssCw1R5FpO2zLOAXdtg2AS+IewNTrP0mzjF5xPuGU7bMovVMEC36ABo3OII2yPPmv 5Ts2EcrKktjlnALz+jq+vlsXhSlqcGMnL/C8bsv7abaExTl0Nfk2eWLclrNcpLgOU9UI xF/DTqg1WQjt8cujqBP80xzXwKB0graZRot1xTXYVW7SBuupS4epMsYGBLBr7YBn6mbm 1GNgoW2gA6XKbIkCckb6KbZtlvyRyZ0ubVwjS17D7uUFz71/WlLk28qjU7ohkNvhM1+K wCPw== X-Gm-Message-State: AJIora9MyHCO9hi+o0NX7Jvf56c4wN5sMXQ3lILhVEk41Flv6TDr7eX+ +xGFFX52VtNaCPLUP5GGcsg= X-Google-Smtp-Source: AGRyM1t4JkflM/iuyD53lfdgfjSqMWy8diZh9ftsJLzP0I6Fm7p8PZGVOBMBhOJNWsjfd/lx9Lc8VA== X-Received: by 2002:ac8:59c5:0:b0:31d:4bfe:fd5a with SMTP id f5-20020ac859c5000000b0031d4bfefd5amr8828300qtf.59.1657416694690; Sat, 09 Jul 2022 18:31:34 -0700 (PDT) Received: from shaak.xiphos.ca (modemcable055.92-163-184.mc.videotron.ca. [184.163.92.55]) by smtp.gmail.com with ESMTPSA id j13-20020a05620a410d00b006b575a9775csm2137258qko.45.2022.07.09.18.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jul 2022 18:31:33 -0700 (PDT) From: Liam Beguin To: liambeguin@gmail.com, jic23@kernel.org, geert@linux-m68k.org Cc: peda@axentia.se, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/5] iio: test: format: add MODULE_* information Date: Sat, 9 Jul 2022 21:31:06 -0400 Message-Id: <20220710013109.3349104-3-liambeguin@gmail.com> X-Mailer: git-send-email 2.35.1.4.g5d01301f2b86 In-Reply-To: <20220710013109.3349104-1-liambeguin@gmail.com> References: <20220710013109.3349104-1-liambeguin@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org In preparation for module support, add missing MODULE_* information. Signed-off-by: Liam Beguin --- drivers/iio/test/iio-test-format.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/iio/test/iio-test-format.c b/drivers/iio/test/iio-test-format.c index 237321436b83..fc67e6b73df7 100644 --- a/drivers/iio/test/iio-test-format.c +++ b/drivers/iio/test/iio-test-format.c @@ -265,3 +265,7 @@ static struct kunit_suite iio_format_test_suite = { .test_cases = iio_format_test_cases, }; kunit_test_suite(iio_format_test_suite); + +MODULE_AUTHOR("Lars-Peter Clausen "); +MODULE_DESCRIPTION("Test IIO formatting functions"); +MODULE_LICENSE("GPL v2"); From patchwork Sun Jul 10 01:31:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liam Beguin X-Patchwork-Id: 12912359 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D58ECCA47C for ; Sun, 10 Jul 2022 01:31:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbiGJBbj (ORCPT ); Sat, 9 Jul 2022 21:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiGJBbh (ORCPT ); Sat, 9 Jul 2022 21:31:37 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 513B315827; Sat, 9 Jul 2022 18:31:36 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id w1so3166642qtv.9; Sat, 09 Jul 2022 18:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OAhACMP8NRjsirEZE+z16gjH7i5C3HZ292R+HFdkx9k=; b=mfPbIS613Kx/cMDOmt/B7M1fQAt089SmAgR4QyFzVx1g8bKizX2l2WSeKZj2kMvccB hG7vIZCzRX7qw4dYQ3B+KXabhZzB3OwQZz+qv3IFOLEH2uEDYiF5aOU6IYQaKVX71NVB ze3O1w4N3mh6mW3FEMHuP5lGfSOehBb9GUsx81BvftHgqsxghX2CsUWltv5q/wLLBBn4 Jh7xn6+pDlbLUZdHXq9yF4PJNknNBqcJxZElZPkKBAn3fXMBsx35maMM72xhRHDbhgvi tDYA6cKLSgA3KpAkZin03L6md3oMLb2YlRrmoXJEEMtILWWoSTmYB3WbNBbEHp2sfvq2 41cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OAhACMP8NRjsirEZE+z16gjH7i5C3HZ292R+HFdkx9k=; b=GnQJp1NDsPYls8DMGkz4YlKl5TIGBO+g8dkmM9E6Zwr0c2Ibb1/KG5OWglGNiack8I 0AGC3SOyGfPmjdu/aXBcUo3rNYkt+Cei/3WtMYcNttem8p3amHv4m8XIj/2gvcWbq1yB LytZN978isi0Cz37iChy1sqMkxR72TttIBUcv7wpMJZcgLd2jpfbn6hcuvMOOMsZp33K aT8miaVpkv8B2OF4Cw3vZBTmxt6KO16Z1JDGGZ54XolpdhmZlxwpsQ5gu/sdKbBqtLNu saoCvw23BrMBT4WtOnBOj+DfRDJ8GtQnjEJ905ntin9qOB1CszpMtIyFiOIolC2+HPmW shjg== X-Gm-Message-State: AJIora9x4ifyyDBZhuImMxvvWvjfswwrWHrmQnklbkaH0hNRmxt0aB0s oOqpKSqoG3Vx8Jq2E1pti/o= X-Google-Smtp-Source: AGRyM1s41+OQyssEKfO4jvSAr4ZuiDzeW3OeWU3FIZD0v31fNCSL5HU1TS0jbbxXm09F3vcM8TI3cw== X-Received: by 2002:ac8:5e07:0:b0:31e:a826:b3ce with SMTP id h7-20020ac85e07000000b0031ea826b3cemr7572768qtx.214.1657416696010; Sat, 09 Jul 2022 18:31:36 -0700 (PDT) Received: from shaak.xiphos.ca (modemcable055.92-163-184.mc.videotron.ca. [184.163.92.55]) by smtp.gmail.com with ESMTPSA id j13-20020a05620a410d00b006b575a9775csm2137258qko.45.2022.07.09.18.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jul 2022 18:31:35 -0700 (PDT) From: Liam Beguin To: liambeguin@gmail.com, jic23@kernel.org, geert@linux-m68k.org Cc: peda@axentia.se, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/5] iio: test: format: follow CONFIG_ naming convention Date: Sat, 9 Jul 2022 21:31:07 -0400 Message-Id: <20220710013109.3349104-4-liambeguin@gmail.com> X-Mailer: git-send-email 2.35.1.4.g5d01301f2b86 In-Reply-To: <20220710013109.3349104-1-liambeguin@gmail.com> References: <20220710013109.3349104-1-liambeguin@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The KUnit documentation indicates that all KUnit Kconfig entries must match CONFIG__KUNIT_TEST: where is the name of the test suite. Rename the IIO_TEST_FORMAT configuration accordingly. Signed-off-by: Liam Beguin --- drivers/iio/test/Kconfig | 2 +- drivers/iio/test/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/test/Kconfig b/drivers/iio/test/Kconfig index 4c66c3f18c34..7dbf51bc4934 100644 --- a/drivers/iio/test/Kconfig +++ b/drivers/iio/test/Kconfig @@ -14,6 +14,6 @@ config IIO_RESCALE_KUNIT_TEST This takes advantage of ARCH=um to run tests and should be used by developers to tests their changes to the rescaling logic. -config IIO_TEST_FORMAT +config IIO_FORMAT_KUNIT_TEST bool "Test IIO formatting functions" depends on KUNIT=y diff --git a/drivers/iio/test/Makefile b/drivers/iio/test/Makefile index 880360f8d02c..d76eaf36da82 100644 --- a/drivers/iio/test/Makefile +++ b/drivers/iio/test/Makefile @@ -5,5 +5,5 @@ # Keep in alphabetical order obj-$(CONFIG_IIO_RESCALE_KUNIT_TEST) += iio-test-rescale.o -obj-$(CONFIG_IIO_TEST_FORMAT) += iio-test-format.o +obj-$(CONFIG_IIO_FORMAT_KUNIT_TEST) += iio-test-format.o CFLAGS_iio-test-format.o += $(DISABLE_STRUCTLEAK_PLUGIN) From patchwork Sun Jul 10 01:31:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liam Beguin X-Patchwork-Id: 12912360 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A229CCA481 for ; Sun, 10 Jul 2022 01:31:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229607AbiGJBbm (ORCPT ); Sat, 9 Jul 2022 21:31:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbiGJBbj (ORCPT ); Sat, 9 Jul 2022 21:31:39 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C6FC1581A; Sat, 9 Jul 2022 18:31:38 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id 20so1658778qky.5; Sat, 09 Jul 2022 18:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=L1R9XYBQRQY6J4EL6q7xM/icI9gP00uZ1F/foaEJGDM=; b=EIw21Qh2zZWAmoPE/Z9rzXd90AZ8KUbpFHaSv2nlfmaoA9apb7256ra//TALnXh03v 9Cvl52+wzkW7OIlPla1Bt6DtbwYpokbBu80df3imVed+bfwCJc8hGAQ8M7bAtwoMdTa1 7jSZ+uhd8u2G9IL6c7AS+Mjau2y79FTK9+ov7o+Fy1cViEiVdBGt2k7Bz76FzpoXP2Yx rX+87GA9Bw+Cm+sra44GRBA1PehPkE8EUYXh1ef//kIWhcc8RzCMUerja5yS8cDK8nG4 SP67I3AnyE9pETRoBhSHAEIS9endzpz48gEZtIfEu2TGWErQ8LHMYWLbvehWiJnrzlb4 aPUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=L1R9XYBQRQY6J4EL6q7xM/icI9gP00uZ1F/foaEJGDM=; b=sU7+zABJ2VpBpyeLN85TRVz/9lNCa9uiMj0xdYc2W3g0wPJ16F0t60zrh/wjUDsln8 csx/vHmWmunwj3e0Bvjif2406zmXWz9nNSWV/aByiR93Qt9+iMhvEoXvjDYo96ccaNzO 0swh3vod0hPfYI4RPLFAHoZDRkZefs9qnC4XGx2LVszMPlO4lXeDz2iG6pJ/R3V5iPtZ MdiUPxPLgi7HPwdq6T1IMou2iOW1IkKElOZVAG5j1epqXyvRma0eYrPokfvsl3HE/kal 8z5ERyUQHrVPdHEsBUpvUaBiPRGVFeVOl1+gzVOVI47i3dLL5Yf8GLSqKjFVvrkczkWl W1TQ== X-Gm-Message-State: AJIora/WgVwIyr2KA2V5BfD2IZKRrkJh31ll9Zk4U3FQ4TEukLEuYqoO 79DkUFQCBnPjyheU1j30yXU= X-Google-Smtp-Source: AGRyM1v40+Bae8lIhG+ylmB8X4dyx7FACeiNXvqa9RzGNfVtDG5FWjfh1coEHEHquRzE5l1FbXB7uA== X-Received: by 2002:a05:620a:2082:b0:6b5:74e6:ced7 with SMTP id e2-20020a05620a208200b006b574e6ced7mr2793515qka.333.1657416697547; Sat, 09 Jul 2022 18:31:37 -0700 (PDT) Received: from shaak.xiphos.ca (modemcable055.92-163-184.mc.videotron.ca. [184.163.92.55]) by smtp.gmail.com with ESMTPSA id j13-20020a05620a410d00b006b575a9775csm2137258qko.45.2022.07.09.18.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jul 2022 18:31:36 -0700 (PDT) From: Liam Beguin To: liambeguin@gmail.com, jic23@kernel.org, geert@linux-m68k.org Cc: peda@axentia.se, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 4/5] iio: afe: rescale: export symbols used during testing Date: Sat, 9 Jul 2022 21:31:08 -0400 Message-Id: <20220710013109.3349104-5-liambeguin@gmail.com> X-Mailer: git-send-email 2.35.1.4.g5d01301f2b86 In-Reply-To: <20220710013109.3349104-1-liambeguin@gmail.com> References: <20220710013109.3349104-1-liambeguin@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org In preparation for module support, export symbols use during testing. Signed-off-by: Liam Beguin --- drivers/iio/afe/iio-rescale.c | 2 ++ drivers/iio/test/iio-test-rescale.c | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/iio/afe/iio-rescale.c b/drivers/iio/afe/iio-rescale.c index 6949d2151025..1f280c360701 100644 --- a/drivers/iio/afe/iio-rescale.c +++ b/drivers/iio/afe/iio-rescale.c @@ -107,6 +107,7 @@ int rescale_process_scale(struct rescale *rescale, int scale_type, return -EOPNOTSUPP; } } +EXPORT_SYMBOL_NS_GPL(rescale_process_scale, IIO_RESCALE); int rescale_process_offset(struct rescale *rescale, int scale_type, int scale, int scale2, int schan_off, @@ -140,6 +141,7 @@ int rescale_process_offset(struct rescale *rescale, int scale_type, return -EOPNOTSUPP; } } +EXPORT_SYMBOL_NS_GPL(rescale_process_offset, IIO_RESCALE); static int rescale_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, diff --git a/drivers/iio/test/iio-test-rescale.c b/drivers/iio/test/iio-test-rescale.c index 735e2f97af18..cc782ccff880 100644 --- a/drivers/iio/test/iio-test-rescale.c +++ b/drivers/iio/test/iio-test-rescale.c @@ -712,3 +712,4 @@ kunit_test_suite(iio_rescale_test_suite); MODULE_AUTHOR("Liam Beguin "); MODULE_DESCRIPTION("Test IIO rescale conversion functions"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_RESCALE); From patchwork Sun Jul 10 01:31:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liam Beguin X-Patchwork-Id: 12912361 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2731CC433EF for ; Sun, 10 Jul 2022 01:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbiGJBbm (ORCPT ); Sat, 9 Jul 2022 21:31:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbiGJBbk (ORCPT ); Sat, 9 Jul 2022 21:31:40 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9236015A21; Sat, 9 Jul 2022 18:31:39 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id y22so532127qki.7; Sat, 09 Jul 2022 18:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W+RUA8QatinY3k/ikkS0kUMcoOi6M3AlFiU1N+5j9MI=; b=lSv4WQ8HlrpD3fVbm2Yhta7lhAIa3r+j6LUNquuxXWx2DuXhRxAZQvSqg/m50VHKQC EW2osXIdWeE0MtrdWqzVDzrQjkrGeyYPyCKgzZYNiqJBwp6Sx22neu2OghHSswDtN1TS ZKTRrW6SDlcsPxo6Wxu68ICDQMwwau5BO3t1uZy8sRpiyPyBOpr+2Jq37ihO6ak4mohw yF257n4+LPPgDq42Ny5XWkqHaeO3Aj9oDHOGZnHYb+nTg5Ew6EAjOwuAnlVT0YnOteKq Pd1Qxtbb6XTFAnVRrGC125EkJuzp5ZYO+yodyR0vrujo9vuLRLbZEwww/xGvmLDWxq2Y A8Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W+RUA8QatinY3k/ikkS0kUMcoOi6M3AlFiU1N+5j9MI=; b=T0ltGjJKE+ZMumigFn8d9AZIzM0COGXTq/hofB5XTPDEXKLIObvTjeeiIIYalVJFLM oXpMlV6/oXu1ThlidzChB2VZ0qbNumz0FojyvkTdo/RXLW1/uHAtDE7LvRyGz+ok86gv kOAdIZaorpd05iu0jZsJpTpHpyazPl4GkGwiT8YsJhxA6sO/aHAOfQjbjLon5ePvzjrW uqrUP3HWcP7Zr+qGT6npF78ZReQYo4rTxcB8prsA0eHOJ2gwdk7d1gdcjxiWP9iMvYtR w3v4lpF1zeY7UaZfdT6YRFYPoM5GdLI2+iKNrE3HDNlZLaQdp84GlGAdVVyenBBw7P/u bsMA== X-Gm-Message-State: AJIora8FUZQfcuSPuEzeOfKBxIXnrL/+QZVxTkGpIbvJ5qrED99BA1cV t9viL0y9F1y2GIpJKMDgtNU= X-Google-Smtp-Source: AGRyM1vS5JUfU8T3Ux084nZAemZhx6XwdCnyFbQzlb424f0DwOZriBhvMfpqBHpAZWiHp+aa7w0wBg== X-Received: by 2002:a37:9241:0:b0:6b5:738c:be25 with SMTP id u62-20020a379241000000b006b5738cbe25mr3094264qkd.178.1657416698628; Sat, 09 Jul 2022 18:31:38 -0700 (PDT) Received: from shaak.xiphos.ca (modemcable055.92-163-184.mc.videotron.ca. [184.163.92.55]) by smtp.gmail.com with ESMTPSA id j13-20020a05620a410d00b006b575a9775csm2137258qko.45.2022.07.09.18.31.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jul 2022 18:31:38 -0700 (PDT) From: Liam Beguin To: liambeguin@gmail.com, jic23@kernel.org, geert@linux-m68k.org Cc: peda@axentia.se, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 5/5] iio: test: rework Kconfig to support modules Date: Sat, 9 Jul 2022 21:31:09 -0400 Message-Id: <20220710013109.3349104-6-liambeguin@gmail.com> X-Mailer: git-send-email 2.35.1.4.g5d01301f2b86 In-Reply-To: <20220710013109.3349104-1-liambeguin@gmail.com> References: <20220710013109.3349104-1-liambeguin@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Rework the IIO test Kconfig to support building KUnit tests as modules. This lets users execute tests at runtime in addition to the usual tools/testing/kunit/kunit.py script. Signed-off-by: Liam Beguin --- drivers/iio/test/Kconfig | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/iio/test/Kconfig b/drivers/iio/test/Kconfig index 7dbf51bc4934..82924727b2cc 100644 --- a/drivers/iio/test/Kconfig +++ b/drivers/iio/test/Kconfig @@ -5,15 +5,25 @@ # Keep in alphabetical order config IIO_RESCALE_KUNIT_TEST - bool "Test IIO rescale conversion functions" - depends on KUNIT=y && IIO_RESCALE=y + tristate "Test IIO rescale conversion functions" if !KUNIT_ALL_TESTS + depends on KUNIT && IIO_RESCALE default KUNIT_ALL_TESTS help - If you want to run tests on the iio-rescale code say Y here. + build unit tests for the iio-rescale code. - This takes advantage of ARCH=um to run tests and should be used by - developers to tests their changes to the rescaling logic. + For more information on KUnit and unit tests in general, please refer + to the KUnit documentation in Documentation/dev-tools/kunit/. + + If unsure, say N. config IIO_FORMAT_KUNIT_TEST - bool "Test IIO formatting functions" - depends on KUNIT=y + tristate "Test IIO formatting functions" if !KUNIT_ALL_TESTS + depends on KUNIT + default KUNIT_ALL_TESTS + help + build unit tests for the IIO formatting functions. + + For more information on KUnit and unit tests in general, please refer + to the KUnit documentation in Documentation/dev-tools/kunit/. + + If unsure, say N.