1. 30 Nov, 2023 1 commit
    • Chia-Lin Kao (AceLan)'s avatar
      spi: Unify error codes by replacing -ENOTSUPP with -EOPNOTSUPP · cff49d58
      Chia-Lin Kao (AceLan) authored
      This commit updates the SPI subsystem, particularly affecting "SPI MEM"
      drivers and core parts, by replacing the -ENOTSUPP error code with
      -EOPNOTSUPP.
      
      The key motivations for this change are as follows:
      1. The spi-nor driver currently uses EOPNOTSUPP, whereas calls to spi-mem
      might return ENOTSUPP. This update aims to unify the error reporting
      within the SPI subsystem for clarity and consistency.
      
      2. The use of ENOTSUPP has been flagged by checkpatch as inappropriate,
      mainly being reserved for NFS-related errors. To align with kernel coding
      standards and recommendations, this change is being made.
      
      3. By using EOPNOTSUPP, we provide more specific context to the error,
      indicating that a particular operation is not supported. This helps
      differentiate from the more generic ENOTSUPP error, allowing drivers to
      better handle and respond to different error scenarios.
      
      Risks and Considerations:
      While this change is primarily intended as a code cleanup and error code
      unification, there is a minor risk of breaking user-space applications
      that rely on specific return codes for unsupported operations. However,
      this risk is considered low, as such use-cases are unlikely to be common
      or critical. Nevertheless, developers and users should be aware of this
      change, especially if they have scripts or tools that specifically handle
      SPI error codes.
      
      This commit does not introduce any functional changes to the SPI subsystem
      or the affected drivers.
      Signed-off-by: default avatar"Chia-Lin Kao (AceLan)" <acelan.kao@canonical.com>
      Acked-by: default avatarTudor Ambarus <tudor.ambarus@linaro.org>
      Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Acked-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Acked-by: default avatarMichael Walle <michael@walle.cc>
      Link: https://lore.kernel.org/r/20231129064311.272422-1-acelan.kao@canonical.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      cff49d58
  2. 27 Nov, 2023 1 commit
  3. 20 Nov, 2023 16 commits
  4. 19 Nov, 2023 8 commits
  5. 18 Nov, 2023 12 commits
  6. 17 Nov, 2023 2 commits
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2023-11-17' of https://evilpiepirate.org/git/bcachefs · 791c8ab0
      Linus Torvalds authored
      Pull bcachefs fixes from Kent Overstreet:
       "Lots of small fixes for minor nits and compiler warnings.
      
        Bigger items:
      
         - The six locks lost wakeup is finally fixed: six_read_trylock() was
           checking for the waiting bit before decrementing the number of
           readers - validated the fix with a torture test.
      
         - Fix for a memory reclaim issue: when needing to reallocate a key
           cache key, we now do our usual GFP_NOWAIT; unlock(); GFP_KERNEL
           dance.
      
         - Multiple deleted inodes btree fixes
      
         - Fix an issue in fsck, where i_nlink would be recalculated
           incorrectly for hardlinked files if a snapshot had ever been taken.
      
         - Kill journal pre-reservations: This is a bigger patch than I would
           normally send at this point, but it deletes code and it fixes some
           of our tests that would sporadically die with the journal getting
           stuck, and it's a performance improvement, too"
      
      * tag 'bcachefs-2023-11-17' of https://evilpiepirate.org/git/bcachefs: (22 commits)
        bcachefs: Fix missing locking for dentry->d_parent access
        bcachefs: six locks: Fix lost wakeup
        bcachefs: Fix no_data_io mode checksum check
        bcachefs: Fix bch2_check_nlinks() for snapshots
        bcachefs: Don't decrease BTREE_ITER_MAX when LOCKDEP=y
        bcachefs: Disable debug log statements
        bcachefs: Fix missing transaction commit
        bcachefs: Fix error path in bch2_mount()
        bcachefs: Fix potential sleeping during mount
        bcachefs: Fix iterator leak in may_delete_deleted_inode()
        bcachefs: Kill journal pre-reservations
        bcachefs: Check for nonce offset inconsistency in data_update path
        bcachefs: Make sure to drop/retake btree locks before reclaim
        bcachefs: btree_trans->write_locked
        bcachefs: Run btree key cache shrinker less aggressively
        bcachefs: Split out btree_key_cache_types.h
        bcachefs: Guard against insufficient devices to create stripes
        bcachefs: Fix null ptr deref in bch2_backpointer_get_node()
        bcachefs: Fix multiple -Warray-bounds warnings
        bcachefs: Use DECLARE_FLEX_ARRAY() helper and fix multiple -Warray-bounds warnings
        ...
      791c8ab0
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2023-11-17-14-04' of... · 12ee72fe
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2023-11-17-14-04' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "Thirteen hotfixes. Seven are cc:stable and the remainder pertain to
        post-6.6 issues or aren't considered suitable for backporting"
      
      * tag 'mm-hotfixes-stable-2023-11-17-14-04' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        mm: more ptep_get() conversion
        parisc: fix mmap_base calculation when stack grows upwards
        mm/damon/core.c: avoid unintentional filtering out of schemes
        mm: kmem: drop __GFP_NOFAIL when allocating objcg vectors
        mm/damon/sysfs-schemes: handle tried region directory allocation failure
        mm/damon/sysfs-schemes: handle tried regions sysfs directory allocation failure
        mm/damon/sysfs: check error from damon_sysfs_update_target()
        mm: fix for negative counter: nr_file_hugepages
        selftests/mm: add hugetlb_fault_after_madv to .gitignore
        selftests/mm: restore number of hugepages
        selftests: mm: fix some build warnings
        selftests: mm: skip whole test instead of failure
        mm/damon/sysfs: eliminate potential uninitialized variable warning
      12ee72fe