1. 16 3月, 2022 1 次提交
  2. 15 3月, 2022 2 次提交
  3. 24 2月, 2022 4 次提交
  4. 17 2月, 2022 5 次提交
  5. 16 2月, 2022 3 次提交
  6. 08 2月, 2022 1 次提交
  7. 29 1月, 2022 7 次提交
  8. 20 1月, 2022 1 次提交
    • I
      hash.h: remove unused define directive · fd0a1462
      Isabella Basso 提交于
      Patch series "test_hash.c: refactor into KUnit", v3.
      
      We refactored the lib/test_hash.c file into KUnit as part of the student
      group LKCAMP [1] introductory hackathon for kernel development.
      
      This test was pointed to our group by Daniel Latypov [2], so its full
      conversion into a pure KUnit test was our goal in this patch series, but
      we ran into many problems relating to it not being split as unit tests,
      which complicated matters a bit, as the reasoning behind the original
      tests is quite cryptic for those unfamiliar with hash implementations.
      
      Some interesting developments we'd like to highlight are:
      
       - In patch 1/5 we noticed that there was an unused define directive
         that could be removed.
      
       - In patch 4/5 we noticed how stringhash and hash tests are all under
         the lib/test_hash.c file, which might cause some confusion, and we
         also broke those kernel config entries up.
      
      Overall KUnit developments have been made in the other patches in this
      series:
      
      In patches 2/5, 3/5 and 5/5 we refactored the lib/test_hash.c file so as
      to make it more compatible with the KUnit style, whilst preserving the
      original idea of the maintainer who designed it (i.e.  George Spelvin),
      which might be undesirable for unit tests, but we assume it is enough
      for a first patch.
      
      This patch (of 5):
      
      Currently, there exist hash_32() and __hash_32() functions, which were
      introduced in a patch [1] targeting architecture specific optimizations.
      These functions can be overridden on a per-architecture basis to achieve
      such optimizations.  They must set their corresponding define directive
      (HAVE_ARCH_HASH_32 and HAVE_ARCH__HASH_32, respectively) so that header
      files can deal with these overrides properly.
      
      As the supported 32-bit architectures that have their own hash function
      implementation (i.e.  m68k, Microblaze, H8/300, pa-risc) have only been
      making use of the (more general) __hash_32() function (which only lacks
      a right shift operation when compared to the hash_32() function), remove
      the define directive corresponding to the arch-specific hash_32()
      implementation.
      
      [1] https://lore.kernel.org/lkml/20160525073311.5600.qmail@ns.sciencehorizons.net/
      
      [akpm@linux-foundation.org: hash_32_generic() becomes hash_32()]
      
      Link: https://lkml.kernel.org/r/20211208183711.390454-1-isabbasso@riseup.net
      Link: https://lkml.kernel.org/r/20211208183711.390454-2-isabbasso@riseup.netReviewed-by: NDavid Gow <davidgow@google.com>
      Tested-by: NDavid Gow <davidgow@google.com>
      Co-developed-by: NAugusto Durães Camargo <augusto.duraes33@gmail.com>
      Signed-off-by: NAugusto Durães Camargo <augusto.duraes33@gmail.com>
      Co-developed-by: NEnzo Ferreira <ferreiraenzoa@gmail.com>
      Signed-off-by: NEnzo Ferreira <ferreiraenzoa@gmail.com>
      Signed-off-by: NIsabella Basso <isabbasso@riseup.net>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Brendan Higgins <brendanhiggins@google.com>
      Cc: Daniel Latypov <dlatypov@google.com>
      Cc: Shuah Khan <skhan@linuxfoundation.org>
      Cc: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
      Cc: kernel test robot <lkp@intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      fd0a1462
  9. 15 1月, 2022 1 次提交
  10. 08 1月, 2022 1 次提交
  11. 06 1月, 2022 5 次提交
  12. 04 1月, 2022 1 次提交
  13. 08 12月, 2021 1 次提交
  14. 07 12月, 2021 1 次提交
  15. 26 11月, 2021 2 次提交
  16. 20 11月, 2021 4 次提交