1. 27 11月, 2019 1 次提交
  2. 21 11月, 2019 5 次提交
  3. 21 10月, 2019 2 次提交
  4. 16 10月, 2019 6 次提交
  5. 14 10月, 2019 1 次提交
  6. 10 10月, 2019 1 次提交
    • A
      crypto: inside-secure - Remove #ifdef checks · 977da073
      Arnd Bergmann 提交于
      When both PCI and OF are disabled, no drivers are registered, and
      we get some unused-function warnings:
      
      drivers/crypto/inside-secure/safexcel.c:1221:13: error: unused function 'safexcel_unregister_algorithms' [-Werror,-Wunused-function]
      static void safexcel_unregister_algorithms(struct safexcel_crypto_priv *priv)
      drivers/crypto/inside-secure/safexcel.c:1307:12: error: unused function 'safexcel_probe_generic' [-Werror,-Wunused-function]
      static int safexcel_probe_generic(void *pdev,
      drivers/crypto/inside-secure/safexcel.c:1531:13: error: unused function 'safexcel_hw_reset_rings' [-Werror,-Wunused-function]
      static void safexcel_hw_reset_rings(struct safexcel_crypto_priv *priv)
      
      It's better to make the compiler see what is going on and remove
      such ifdef checks completely. In case of PCI, this is trivial since
      pci_register_driver() is defined to an empty function that makes the
      compiler subsequently drop all unused code silently.
      
      The global pcireg_rc/ofreg_rc variables are not actually needed here
      since the driver registration does not fail in ways that would make
      it helpful.
      
      For CONFIG_OF, an IS_ENABLED() check is still required, since platform
      drivers can exist both with and without it.
      
      A little change to linux/pci.h is needed to ensure that
      pcim_enable_device() is visible to the driver. Moving the declaration
      outside of ifdef would be sufficient here, but for consistency with the
      rest of the file, adding an inline helper is probably best.
      
      Fixes: 212ef6f2 ("crypto: inside-secure - Fix unused variable warning when CONFIG_PCI=n")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: Bjorn Helgaas <bhelgaas@google.com>	# pci.h
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      977da073
  7. 21 9月, 2019 1 次提交
  8. 07 9月, 2019 1 次提交
  9. 06 9月, 2019 1 次提交
  10. 31 8月, 2019 1 次提交
  11. 28 8月, 2019 1 次提交
  12. 12 8月, 2019 1 次提交
  13. 09 8月, 2019 1 次提交
  14. 30 7月, 2019 11 次提交
  15. 24 7月, 2019 1 次提交
  16. 09 7月, 2019 1 次提交
  17. 22 6月, 2019 1 次提交
  18. 15 6月, 2019 1 次提交
  19. 14 6月, 2019 1 次提交
  20. 13 6月, 2019 1 次提交