Re: [PATCH 1/1] lib/kfifo-test.c: add tests for the kfifo structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/21/24 17:18, Diego Vieira wrote:
Add KUnit tests for the kfifo data structure.
They test the vast majority of macros defined in the kfifo
header (include/linux/kfifo.h).

These are inspired by the existing tests for the 'list' doubly
linked in lib/list-test.c [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/lib/list-test.c

Signed-off-by: Diego Vieira <diego.daniel.professional@xxxxxxxxx>
---
  lib/Kconfig.debug |  14 +++
  lib/Makefile      |   1 +
  lib/kfifo-test.c  | 222 ++++++++++++++++++++++++++++++++++++++++++++++
  3 files changed, 237 insertions(+)
  create mode 100644 lib/kfifo-test.c
...
+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 with make W=1

Multiple developers, including myself, have been fixing the existing warnings for 6.11 so please don't introduce a new one :)

/jeff




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux