1. 22 10月, 2021 24 次提交
  2. 20 10月, 2021 7 次提交
  3. 13 10月, 2021 1 次提交
  4. 28 9月, 2021 2 次提交
  5. 19 9月, 2021 2 次提交
  6. 17 9月, 2021 1 次提交
  7. 07 9月, 2021 1 次提交
    • L
      iwl: fix debug printf format strings · 1476ff21
      Linus Torvalds 提交于
      The variable 'package_size' is an unsigned long, and should be printed
      out using '%lu', not '%zd' (that would be for a size_t).
      
      Yes, on many architectures (including x86-64), 'size_t' is in fact the
      same type as 'long', but that's a fairly random architecture definition,
      and on some platforms 'size_t' is in fact 'int' rather than 'long'.
      
      That is the case on traditional 32-bit x86.  Yes, both types are the
      exact same 32-bit size, and it would all print out perfectly correctly,
      but '%zd' ends up still being wrong.
      
      And we can't make 'package_size' be a 'size_t', because we get the
      actual value using efivar_entry_get() that takes a pointer to an
      'unsigned long'.  So '%lu' it is.
      
      This fixes two of the i386 allmodconfig build warnings (that is now an
      error due to -Werror).
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1476ff21
  8. 06 9月, 2021 1 次提交
    • R
      iwlwifi: fix printk format warnings in uefi.c · e4457a45
      Randy Dunlap 提交于
      The kernel test robot reports printk format warnings in uefi.c, so
      correct them.
      
      ../drivers/net/wireless/intel/iwlwifi/fw/uefi.c: In function 'iwl_uefi_get_pnvm':
      ../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:52:30: warning: format '%zd' expects argument of type 'signed size_t', but argument 7 has type 'long unsigned int' [-Wformat=]
         52 |                              "PNVM UEFI variable not found %d (len %zd)\n",
            |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         53 |                              err, package_size);
            |                                   ~~~~~~~~~~~~
            |                                   |
            |                                   long unsigned int
      ../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:59:29: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'long unsigned int' [-Wformat=]
         59 |         IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %zd\n", package_size);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~
            |                                                                    |
            |                                                                    long unsigned int
      
      Fixes: 84c3c995 ("iwlwifi: move UEFI code to a separate file")
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Reported-by: Nkernel test robot <lkp@intel.com>
      Cc: Kalle Valo <kvalo@codeaurora.org>
      Cc: Luca Coelho <luciano.coelho@intel.com>
      Cc: linux-wireless@vger.kernel.org
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      Link: https://lore.kernel.org/r/20210821020901.25901-1-rdunlap@infradead.org
      e4457a45
  9. 05 9月, 2021 1 次提交