1. 21 Feb, 2024 1 commit
    • Shrikanth Hegde's avatar
      powerpc: Remove duplicate/unnecessary ifdefs · 8c328de8
      Shrikanth Hegde authored
      When an ifdef is used in the below manner, second one could be considered
      as duplicate.
      
        ifdef DEFINE_A
        ...code block...
        ifdef DEFINE_A       <-- This is a duplicate.
        ...code block...
        endif
        else
        ifndef DEFINE_A     <-- This is also duplicate.
        ...code block...
        endif
        endif
      
      More details about the script and methods used to find these code
      patterns are in cover letter of [1].
      
      Few places in arch/powerpc where this pattern was seen:
      
        paca.h:
        Hunk1: Code is under check of CONFIG_PPC64 from line 13, hence the
        second CONFIG_PPC64 at line 166 is a duplicate.
        Hunk2: CONFIG_PPC_BOOK3S_64 was defined back to back. Merged the two
        ifdefs.
      
        asm-offsets.c:
        Code is under check of CONFIG_PPC64 from line 176 hence second
        CONFIG_PPC64 at line 249 is a duplicate.
      
        powermac/feature.c:
        #ifndef CONFIG_PPC64 is used at line 2066. And then in #else again
        #ifdef CONFIG_PPC64 is used. Which is a duplicate since in #else means
        CONFIG_PPC64 is defined.
      
        xmon.c:
        Code is under the check of CONFIG_SMP from line 521 hence the same
        check of CONFIG_SMP at line 646 is a duplicate.
      
      No functional change is intended here. It only aims to improve code
      readability.
      
      [1] https://lore.kernel.org/all/20240118080326.13137-1-sshegde@linux.ibm.com/Signed-off-by: default avatarShrikanth Hegde <sshegde@linux.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Link: https://msgid.link/20240216053016.528906-1-sshegde@linux.ibm.com
      8c328de8
  2. 19 Feb, 2024 1 commit
  3. 16 Feb, 2024 8 commits
  4. 14 Feb, 2024 11 commits
  5. 29 Jan, 2024 1 commit
  6. 28 Jan, 2024 7 commits
  7. 27 Jan, 2024 9 commits
  8. 26 Jan, 2024 2 commits
    • Linus Torvalds's avatar
      Merge tag 'ata-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · 3a5879d4
      Linus Torvalds authored
      Pull ata updates from Niklas Cassel:
      
       - Fix an incorrect link_power_management_policy sysfs attribute value.
      
         We were previously using the same attribute value for two different
         LPM policies (me)
      
       - Add a ASMedia ASM1166 quirk.
      
         The SATA host controller always reports that it has 32 ports, even
         though it only has six ports. Add a quirk that overrides the value
         reported by the controller (Conrad)
      
       - Add a ASMedia ASM1061 quirk.
      
         The SATA host controller completely ignores the upper 21 bits of the
         DMA address. This causes IOMMU error events when a (valid) DMA
         address actually has any of the upper 21 bits set. Add a quirk that
         limits the dma_mask to 43-bits (Lennert)
      
      * tag 'ata-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        ahci: add 43-bit DMA address quirk for ASMedia ASM1061 controllers
        ahci: asm1166: correct count of reported ports
        ata: libata-sata: improve sysfs description for ATA_LPM_UNKNOWN
      3a5879d4
    • Linus Torvalds's avatar
      Merge tag 'block-6.8-2024-01-26' of git://git.kernel.dk/linux · 914e1708
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - RCU warning fix for md (Mikulas)
      
       - Fix for an aoe issue that lockdep rightfully complained about
         (Maksim)
      
       - Fix for an error code change in partitioning that caused a regression
         with some tools (Li)
      
       - Fix for a data direction warning with bi-direction commands
         (Christian)
      
      * tag 'block-6.8-2024-01-26' of git://git.kernel.dk/linux:
        md: fix a suspicious RCU usage warning
        aoe: avoid potential deadlock at set_capacity
        block: Fix WARNING in _copy_from_iter
        block: Move checking GENHD_FL_NO_PART to bdev_add_partition()
      914e1708