1. 03 8月, 2020 1 次提交
  2. 14 6月, 2020 1 次提交
    • M
      treewide: replace '---help---' in Kconfig files with 'help' · a7f7f624
      Masahiro Yamada 提交于
      Since commit 84af7a61 ("checkpatch: kconfig: prefer 'help' over
      '---help---'"), the number of '---help---' has been gradually
      decreasing, but there are still more than 2400 instances.
      
      This commit finishes the conversion. While I touched the lines,
      I also fixed the indentation.
      
      There are a variety of indentation styles found.
      
        a) 4 spaces + '---help---'
        b) 7 spaces + '---help---'
        c) 8 spaces + '---help---'
        d) 1 space + 1 tab + '---help---'
        e) 1 tab + '---help---'    (correct indentation)
        f) 1 tab + 1 space + '---help---'
        g) 1 tab + 2 spaces + '---help---'
      
      In order to convert all of them to 1 tab + 'help', I ran the
      following commend:
      
        $ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      a7f7f624
  3. 04 6月, 2020 1 次提交
  4. 01 6月, 2020 1 次提交
  5. 30 5月, 2020 1 次提交
  6. 29 5月, 2020 1 次提交
  7. 28 5月, 2020 1 次提交
    • G
      PCI: hv: Use struct_size() helper · d0684fd0
      Gustavo A. R. Silva 提交于
      One of the more common cases of allocation size calculations is finding
      the size of a structure that has a zero-sized array at the end, along
      with memory for some number of elements for that array. For example:
      
      struct hv_dr_state {
      	...
              struct hv_pcidev_description func[];
      };
      
      struct pci_bus_relations {
      	...
              struct pci_function_description func[];
      } __packed;
      
      Make use of the struct_size() helper instead of an open-coded version
      in order to avoid any potential type mistakes.
      
      So, replace the following forms:
      
      offsetof(struct hv_dr_state, func) +
      	(sizeof(struct hv_pcidev_description) *
      	(relations->device_count))
      
      offsetof(struct pci_bus_relations, func) +
      	(sizeof(struct pci_function_description) *
      	(bus_rel->device_count))
      
      with:
      
      struct_size(dr, func, relations->device_count)
      
      and
      
      struct_size(bus_rel, func, bus_rel->device_count)
      
      respectively.
      
      Link: https://lore.kernel.org/r/20200525164319.GA13596@embeddedorSigned-off-by: NGustavo A. R. Silva <gustavoars@kernel.org>
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Reviewed-by: NWei Liu <wei.liu@kernel.org>
      d0684fd0
  8. 27 5月, 2020 1 次提交
  9. 22 5月, 2020 8 次提交
  10. 18 5月, 2020 9 次提交
  11. 13 5月, 2020 1 次提交
  12. 12 5月, 2020 1 次提交
  13. 11 5月, 2020 11 次提交
  14. 07 5月, 2020 2 次提交