From: Jacob Keller <jacob.e.keller@intel.com>
To: Jeff Johnson <quic_jjohnson@quicinc.com>,
Intel Wired LAN <intel-wired-lan@lists.osuosl.org>,
Vladimir Oltean <olteanv@gmail.com>,
Anthony Nguyen <anthony.l.nguyen@intel.com>,
<"netdev netdev"@vger.kernel.org>
Cc: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next 06/13] lib: packing: add KUnit tests adapted from selftests
Date: Wed, 28 Aug 2024 13:39:44 -0700 [thread overview]
Message-ID: <9fcdd7fb-27ad-4bbc-984d-703cc113ba61@intel.com> (raw)
In-Reply-To: <ecbc8cf0-94ae-40a7-b55f-5008b9486123@quicinc.com>
On 8/28/2024 11:47 AM, Jeff Johnson wrote:
> On 8/27/24 14:52, Jacob Keller wrote:
>> Add 24 simple KUnit tests for the lib/packing.c pack() and unpack() APIs.
>>
>> The first 16 tests exercise all combinations of quirks with a simple magic
>> number value on a 16-byte buffer. The remaining 8 tests cover
>> non-multiple-of-4 buffer sizes.
>>
>> These tests were originally written by Vladimir as simple selftest
>> functions. I adapted them to KUnit, refactoring them into a table driven
>> approach. This will aid in adding additional tests in the future.
>>
>> Co-developed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
>> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
>> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
>> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
>> ---
>> lib/packing_test.c | 256 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>> MAINTAINERS | 1 +
>> lib/Kconfig | 12 +++
>> lib/Makefile | 1 +
>> 4 files changed, 270 insertions(+)
>>
>> diff --git a/lib/packing_test.c b/lib/packing_test.c
>> new file mode 100644
>> index 000000000000..52e039e2231b
>> --- /dev/null
>> +++ b/lib/packing_test.c
> ...
>> +static struct kunit_suite packing_test_suite = {
>> + .name = "packing",
>> + .test_cases = packing_test_cases,
>> +};
>> +kunit_test_suite(packing_test_suite);
>> +
>> +MODULE_LICENSE("GPL");
>
> Since commit 1fffe7a34c89 ("script: modpost: emit a warning when the
> description is missing"), a module without a MODULE_DESCRIPTION() will
> result in a warning when built with make W=1. Recently, multiple
> developers have been eradicating these warnings treewide, and very few
> are left, so please don't introduce a new one :)
>
> Please add the missing MODULE_DESCRIPTION()
>
Yep, we caught this with our NIPA CI too. Will fix.
next prev parent reply other threads:[~2024-08-28 20:39 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 21:52 [Intel-wired-lan] [PATCH iwl-next 00/13] ice: use <linux/packing.h> for Tx and Rx queue context data Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 01/13] lib: packing: refuse operating on bit indices which exceed size of buffer Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 02/13] lib: packing: adjust definitions and implementation for arbitrary buffer lengths Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 03/13] lib: packing: remove kernel-doc from header file Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 04/13] lib: packing: add pack() and unpack() wrappers over packing() Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 05/13] lib: packing: duplicate pack() and unpack() implementations Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 06/13] lib: packing: add KUnit tests adapted from selftests Jacob Keller
2024-08-28 18:47 ` Jeff Johnson
2024-08-28 20:39 ` Jacob Keller [this message]
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 07/13] lib: packing: add additional KUnit tests Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 08/13] lib: packing: fix QUIRK_MSB_ON_THE_RIGHT behavior Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 09/13] ice: remove int_q_state from ice_tlan_ctx Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 10/13] ice: use <linux/packing.h> for Tx and Rx queue context data Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 11/13] ice: reduce size of queue context fields Jacob Keller
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 12/13] ice: move prefetch enable to ice_setup_rx_ctx Jacob Keller
2024-08-28 6:39 ` Przemek Kitszel
2024-08-28 18:17 ` Keller, Jacob E
2024-08-27 21:52 ` [Intel-wired-lan] [PATCH iwl-next 13/13] ice: cleanup Rx queue context programming functions Jacob Keller
2024-08-28 7:35 ` Przemek Kitszel
2024-08-28 18:16 ` Keller, Jacob E
2024-08-27 22:23 ` [Intel-wired-lan] [PATCH iwl-next 00/13] ice: use <linux/packing.h> for Tx and Rx queue context data Jacob Keller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9fcdd7fb-27ad-4bbc-984d-703cc113ba61@intel.com \
--to=jacob.e.keller@intel.com \
--cc="netdev netdev"@vger.kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=olteanv@gmail.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=quic_jjohnson@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox