Skip to content
Snippets Groups Projects
  1. Feb 11, 2025
  2. Dec 01, 2024
    • Linus Torvalds's avatar
      Get rid of 'remove_new' relic from platform driver struct · e70140ba
      Linus Torvalds authored
      
      The continual trickle of small conversion patches is grating on me, and
      is really not helping.  Just get rid of the 'remove_new' member
      function, which is just an alias for the plain 'remove', and had a
      comment to that effect:
      
        /*
         * .remove_new() is a relic from a prototype conversion of .remove().
         * New drivers are supposed to implement .remove(). Once all drivers are
         * converted to not use .remove_new any more, it will be dropped.
         */
      
      This was just a tree-wide 'sed' script that replaced '.remove_new' with
      '.remove', with some care taken to turn a subsequent tab into two tabs
      to make things line up.
      
      I did do some minimal manual whitespace adjustment for places that used
      spaces to line things up.
      
      Then I just removed the old (sic) .remove_new member function, and this
      is the end result.  No more unnecessary conversion noise.
      
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e70140ba
  3. Nov 21, 2024
  4. Nov 07, 2024
  5. Aug 29, 2024
  6. Jul 11, 2024
  7. May 31, 2024
  8. Apr 12, 2024
  9. Mar 26, 2024
  10. Jan 24, 2024
  11. Dec 14, 2023
  12. Sep 22, 2023
  13. Sep 14, 2023
  14. Jul 31, 2023
  15. Jul 23, 2023
  16. Jul 11, 2023
  17. Jun 16, 2023
  18. Jun 01, 2023
  19. May 08, 2023
  20. Feb 21, 2023
    • Yangtao Li's avatar
      scsi: ufs: ufs-mediatek: Guard power management functions with CONFIG_PM · 19873b03
      Yangtao Li authored
      Fix the following compilation error when CONFIG_PM is set to 'n':
      
      drivers/ufs/host/ufs-mediatek.c: In function `ufs_mtk_runtime_suspend`:
      drivers/ufs/host/ufs-mediatek.c:1623:8: error: implicit declaration of
      	function `ufshcd_runtime_suspend`; did you mean `ufs_mtk_runtime_suspend`?
      	[-Werror=implicit-function-declaration]
       1623 |  ret = ufshcd_runtime_suspend(dev);
            |        ^~~~~~~~~~~~~~~~~~~~~~
            |        ufs_mtk_runtime_suspend
      drivers/ufs/host/ufs-mediatek.c: In function `ufs_mtk_runtime_resume`:
      drivers/ufs/host/ufs-mediatek.c:1638:9: error: implicit declaration of function
      	`ufshcd_runtime_resume`; did you mean `ufs_mtk_runtime_resume`?
      	[-Werror=implicit-function-declaration]
       1638 |  return ufshcd_runtime_resume(dev);
            |         ^~~~~~~~~~~~~~~~~~~~~
            |         ufs_mtk_runtime_resume
      At top level:
      drivers/ufs/host/ufs-mediatek.c:1632:12: error: `ufs_mtk_runtime_resume`
      	defined but not used [-Werror=unused-function]
       1632 | static int ufs_mtk_runtime_resume(struct device *dev)
            |            ^~~~~~~~~~~~~~~~~~~~~~
      drivers/ufs/host/ufs-mediatek.c:1618:12: error: `ufs_mtk_runtime_suspend`
      	defined but not used [-Werror=unused-function]
       1618 | static int ufs_mtk_runtime_suspend(struct device *dev)
      
      Link: https://lore.kernel.org/r/20230220142431.54589-1-frank.li@vivo.com
      
      
      Reported-by: default avatark2ci <kernel-bot@kylinos.cn>
      Reported-by: default avatarShida Zhang <zhangshida@kylinos.cn>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Reviewed-by: default avatarStanley Chu <stanley.chu@mediatek.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      19873b03
  21. Nov 26, 2022
Loading