14 Sep, 2021

2 commits

  • Merge patch series from Nick Desaulniers to update the minimum gcc
    version to 5.1.

    This is some of the left-overs from the merge window that I didn't want
    to deal with yesterday, so it comes in after -rc1 but was sent before.

    Gcc-4.9 support has been an annoyance for some time, and with -Werror I
    had the choice of applying a fairly big patch from Kees Cook to remove a
    fair number of initializer warnings (still leaving some), or this patch
    series from Nick that just removes the source of the problem.

    The initializer cleanups might still be worth it regardless, but
    honestly, I preferred just tackling the problem with gcc-4.9 head-on.
    We've been more aggressiuve about no longer having to care about
    compilers that were released a long time ago, and I think it's been a
    good thing.

    I added a couple of patches on top to sort out a few left-overs now that
    we no longer support gcc-4.x.

    As noted by Arnd, as a result of this minimum compiler version upgrade
    we can probably change our use of '--std=gnu89' to '--std=gnu11', and
    finally start using local loop declarations etc. But this series does
    _not_ yet do that.

    Link: https://lore.kernel.org/all/20210909182525.372ee687@canb.auug.org.au/
    Link: https://lore.kernel.org/lkml/CAK7LNASs6dvU6D3jL2GG3jW58fXfaj6VNOe55NJnTB8UPuk2pA@mail.gmail.com/
    Link: https://github.com/ClangBuiltLinux/linux/issues/1438

    * emailed patches from Nick Desaulniers :
    Drop some straggling mentions of gcc-4.9 as being stale
    compiler_attributes.h: drop __has_attribute() support for gcc4
    vmlinux.lds.h: remove old check for GCC 4.9
    compiler-gcc.h: drop checks for older GCC versions
    Makefile: drop GCC < 5 -fno-var-tracking-assignments workaround
    arm64: remove GCC version check for ARCH_SUPPORTS_INT128
    powerpc: remove GCC version check for UPD_CONSTR
    riscv: remove Kconfig check for GCC version for ARCH_RV64I
    Kconfig.debug: drop GCC 5+ version check for DWARF5
    mm/ksm: remove old GCC 4.9+ check
    compiler.h: drop fallback overflow checkers
    Documentation: raise minimum supported version of GCC to 5.1

    Linus Torvalds
     
  • Fix up the admin-guide README file to the new gcc-5.1 requirement, and
    remove a stale comment about gcc support for the __assume_aligned__
    attribute.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

09 Sep, 2021

2 commits

  • Pull more power management updates from Rafael Wysocki:
    "These are mostly ARM cpufreq driver updates, including one new
    MediaTek driver that has just passed all of the reviews, with the
    addition of a revert of a recent intel_pstate commit, some core
    cpufreq changes and a DT-related update of the operating performance
    points (OPP) support code.

    Specifics:

    - Add new cpufreq driver for the MediaTek MT6779 platform called
    mediatek-hw along with corresponding DT bindings (Hector.Yuan).

    - Add DCVS interrupt support to the qcom-cpufreq-hw driver (Thara
    Gopinath).

    - Make the qcom-cpufreq-hw driver set the dvfs_possible_from_any_cpu
    policy flag (Taniya Das).

    - Blocklist more Qualcomm platforms in cpufreq-dt-platdev (Bjorn
    Andersson).

    - Make the vexpress cpufreq driver set the CPUFREQ_IS_COOLING_DEV
    flag (Viresh Kumar).

    - Add new cpufreq driver callback to allow drivers to register with
    the Energy Model in a consistent way and make several drivers use
    it (Viresh Kumar).

    - Change the remaining users of the .ready() cpufreq driver callback
    to move the code from it elsewhere and drop it from the cpufreq
    core (Viresh Kumar).

    - Revert recent intel_pstate change adding HWP guaranteed performance
    change notification support to it that led to problems, because the
    notification in question is triggered prematurely on some systems
    (Rafael Wysocki).

    - Convert the OPP DT bindings to DT schema and clean them up while at
    it (Rob Herring)"

    * tag 'pm-5.15-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (23 commits)
    Revert "cpufreq: intel_pstate: Process HWP Guaranteed change notification"
    cpufreq: mediatek-hw: Add support for CPUFREQ HW
    cpufreq: Add of_perf_domain_get_sharing_cpumask
    dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW
    cpufreq: Remove ready() callback
    cpufreq: sh: Remove sh_cpufreq_cpu_ready()
    cpufreq: acpi: Remove acpi_cpufreq_cpu_ready()
    cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag
    cpufreq: blocklist more Qualcomm platforms in cpufreq-dt-platdev
    cpufreq: qcom-cpufreq-hw: Add dcvs interrupt support
    cpufreq: scmi: Use .register_em() to register with energy model
    cpufreq: vexpress: Use .register_em() to register with energy model
    cpufreq: scpi: Use .register_em() to register with energy model
    dt-bindings: opp: Convert to DT schema
    dt-bindings: Clean-up OPP binding node names in examples
    ARM: dts: omap: Drop references to opp.txt
    cpufreq: qcom-cpufreq-hw: Use .register_em() to register with energy model
    cpufreq: omap: Use .register_em() to register with energy model
    cpufreq: mediatek: Use .register_em() to register with energy model
    cpufreq: imx6q: Use .register_em() to register with energy model
    ...

    Linus Torvalds
     
  • Pull more documentation updates from Jonathan Corbet:
    "Another collection of documentation patches, mostly fixes but also
    includes another set of traditional Chinese translations"

    * tag 'docs-5.15-2' of git://git.lwn.net/linux:
    docs: pdfdocs: Fix typo in CJK-language specific font settings
    docs: kernel-hacking: Remove inappropriate text
    docs/zh_TW: add translations for zh_TW/filesystems
    docs/zh_TW: add translations for zh_TW/cpu-freq
    docs/zh_TW: add translations for zh_TW/arm64
    docs/zh_CN: Modify the translator tag and fix the wrong word
    Documentation/features/vm: correct huge-vmap APIs
    Documentation: block: blk-mq: Fix small typo in multi-queue docs
    Documentation: in_irq() cleanup
    Documentation: arm: marvell: Add 88F6825 model into list
    Documentation/process/maintainer-pgp-guide: Replace broken link to PGP path finder
    Documentation: locking: fix references
    Documentation: Update details of The Linux Kernel Module Programming Guide
    docs: x86: Remove obsolete information about x86_64 vmalloc() faulting
    Documentation/process/applying-patches: Activate linux-next man hyperlink

    Linus Torvalds
     

04 Sep, 2021

2 commits

  • Merge misc updates from Andrew Morton:
    "173 patches.

    Subsystems affected by this series: ia64, ocfs2, block, and mm (debug,
    pagecache, gup, swap, shmem, memcg, selftests, pagemap, mremap,
    bootmem, sparsemem, vmalloc, kasan, pagealloc, memory-failure,
    hugetlb, userfaultfd, vmscan, compaction, mempolicy, memblock,
    oom-kill, migration, ksm, percpu, vmstat, and madvise)"

    * emailed patches from Andrew Morton : (173 commits)
    mm/madvise: add MADV_WILLNEED to process_madvise()
    mm/vmstat: remove unneeded return value
    mm/vmstat: simplify the array size calculation
    mm/vmstat: correct some wrong comments
    mm/percpu,c: remove obsolete comments of pcpu_chunk_populated()
    selftests: vm: add COW time test for KSM pages
    selftests: vm: add KSM merging time test
    mm: KSM: fix data type
    selftests: vm: add KSM merging across nodes test
    selftests: vm: add KSM zero page merging test
    selftests: vm: add KSM unmerge test
    selftests: vm: add KSM merge test
    mm/migrate: correct kernel-doc notation
    mm: wire up syscall process_mrelease
    mm: introduce process_mrelease system call
    memblock: make memblock_find_in_range method private
    mm/mempolicy.c: use in_task() in mempolicy_slab_node()
    mm/mempolicy: unify the create() func for bind/interleave/prefer-many policies
    mm/mempolicy: advertise new MPOL_PREFERRED_MANY
    mm/hugetlb: add support for mempolicy MPOL_PREFERRED_MANY
    ...

    Linus Torvalds
     
  • flush_kernel_dcache_page is a rather confusing interface that implements a
    subset of flush_dcache_page by not being able to properly handle page
    cache mapped pages.

    The only callers left are in the exec code as all other previous callers
    were incorrect as they could have dealt with page cache pages. Replace
    the calls to flush_kernel_dcache_page with calls to flush_dcache_page,
    which for all architectures does either exactly the same thing, can
    contains one or more of the following:

    1) an optimization to defer the cache flush for page cache pages not
    mapped into userspace
    2) additional flushing for mapped page cache pages if cache aliases
    are possible

    Link: https://lkml.kernel.org/r/20210712060928.4161649-7-hch@lst.de
    Signed-off-by: Christoph Hellwig
    Acked-by: Linus Torvalds
    Reviewed-by: Ira Weiny
    Cc: Alex Shi
    Cc: Geoff Levand
    Cc: Greentime Hu
    Cc: Guo Ren
    Cc: Helge Deller
    Cc: "James E.J. Bottomley"
    Cc: Nick Hu
    Cc: Paul Cercueil
    Cc: Rich Felker
    Cc: Russell King
    Cc: Thomas Bogendoerfer
    Cc: Ulf Hansson
    Cc: Vincent Chen
    Cc: Yoshinori Sato
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     

03 Sep, 2021

1 commit


25 Aug, 2021

5 commits


12 Aug, 2021

23 commits

  • The "TC" variants are supposed to be the choice for traditional
    Chinese documents.

    Signed-off-by: Akira Yokosawa
    Reviewed-by: Hu Haowen
    Tested-by: Hu Haowen
    Link: https://lore.kernel.org/r/9d8e8fa2-3e7a-3a0a-1a0d-7d797a605ff8@gmail.com
    Signed-off-by: Jonathan Corbet

    Akira Yokosawa
     
  • Noto CJK fonts don't provide italic shapes.
    The AutoFakeSlant option of fontspec and xeCJK packages can be used as
    a workaround.

    Signed-off-by: Akira Yokosawa
    Link: https://lore.kernel.org/r/502335cc-9a95-3c2a-7744-6cc56ecaf628@gmail.com
    Signed-off-by: Jonathan Corbet

    Akira Yokosawa
     
  • CJK documents are much easier to read with a wider baseline stretch.
    Applying onehalfspacing option of "setspace" package looks reasonable.

    Note: \usepackage{setspace} needs to be before that of hyperref in the
    preamble.
    The 'extrapackages' key (available since Sphinx 2.3) is for this purpose.
    For systems with Sphinx < 2.3, dummy commands of \onehalfspacing and
    \singlespacing are provided instead.
    One-half spacing is not effective in LaTeX sources generated by such
    revisions of Sphinx.

    Signed-off-by: Akira Yokosawa
    Link: https://lore.kernel.org/r/547a1f1c-0bb5-20a7-ea0e-951bfc3c3925@gmail.com
    Signed-off-by: Jonathan Corbet

    Akira Yokosawa
     
  • Globally choosing "Noto Sans Mono CJK SC" would result in sub-optimal look
    of literal blocks in Latin documents.
    Therefore, localize the font choice to translations by adding conf.py under
    Documentation/translations/.

    The local conf.py is enabled when the command:

    make SPHINXDIRS=translations pdfdocs

    is used to build the PDF.
    Resulting translations.pdf (under Documentation/output/translations/pdf)
    will have properly aligned ascii-art figures.

    NOTE: There remain mis-aligned ascii-art figures in Korean translations.
    This is due to the font designer's decision to assign slightly narrower
    widths (920) to Hangul characters in "Noto Sans Mono CJK KR" than those
    of Hanja (Hanzi/Kanji) characters (1000) [1].

    [1]: https://github.com/googlefonts/noto-cjk/issues/17

    Signed-off-by: Akira Yokosawa
    Link: https://lore.kernel.org/r/79a876fc-a552-f972-4a1b-c6df4cbb36dd@gmail.com
    Signed-off-by: Jonathan Corbet

    Akira Yokosawa
     
  • zh_TW, ko_KR, and ja_JP translations have their preferred glyph sets
    different from that of zh_CN.

    To switch CJK font in the middle of the translations, introduce custom
    LaTeX macros listed below:

    \kerneldocBeginSC
    \kerneldocEndSC
    \kerneldocBeginTC
    \kerneldocEndTC
    \kerneldocBeginKR
    \kerneldocEndKR
    \kerneldocBeginJP
    \kerneldocEndJP

    , and embed a pair of macros in each language's index.rst.

    NOTE 1: Update of zh_TW/index.rst is deferred to a follow-up change.

    NOTE 2: Custom macros added here do not imply \kerneldocCJK(on|off).
    This is intentional. For example, \kerneldocCJKoff needs to be
    at the top of Italian translations' index.rst for the footer of
    final zh_TW page to be properly typeset.

    Signed-off-by: Akira Yokosawa
    Link: https://lore.kernel.org/r/31906baf-7490-68cd-7153-4e4d320fb9b0@gmail.com
    Signed-off-by: Jonathan Corbet

    Akira Yokosawa
     
  • Add translation zh_CN/accounting/psi.rst and zh_CN/accounting/index.rst.

    Signed-off-by: Yang Yang
    Reviewed-by: Yanteng Si
    Link: https://lore.kernel.org/r/20210731084502.571451-1-yang.yang29@zte.com.cn
    Signed-off-by: Jonathan Corbet

    Yang Yang
     
  • Translation for the following patches

    commit 0ca0d55526d3 ("docs/core-api: Consistent code style")
    commit 9912d0bb9dee ("docs: process: submitting-patches.rst: avoid using ReST :doc:`foo` markup")
    commit 6349469a4f3c ("Documentation/submitting-patches: Document RESEND tag on patches")
    commit dbbe7c962c3a ("docs: networking: drop special stable handling")
    commit 7f3f7bfbbe02 ("docs: kernel-hacking: hacking.rst: avoid using ReST :doc:`foo` markup")
    commit 6ab0493dfc62 ("deprecated.rst: Include details on "no_hash_pointers" ")
    commit 77167b966b7e ("docs: submitting-patches: clarify the role of LKML ")

    Signed-off-by: Federico Vaga
    Link: https://lore.kernel.org/r/20210731085513.11820-1-federico.vaga@vaga.pv.it
    Signed-off-by: Jonathan Corbet

    Federico Vaga
     
  • Translate Documentation/infiniband/user_verbs.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Reviewed-by: Puyu Wang
    Link: https://lore.kernel.org/r/b7c1577cf9758943bff933c46200c7dff1e1c6e0.1628218477.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/infiniband/user_mad.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Reviewed-by: Puyu Wang
    Link: https://lore.kernel.org/r/8859ef2b40b380d7db7548f2e6a2d6fd5397062d.1628218477.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/infiniband/tag_matching.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Reviewed-by: Puyu Wang
    Link: https://lore.kernel.org/r/eaed122a0e5d0e3312cf5a495022a9d0be42a831.1628218477.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/infiniband/sysfs.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Reviewed-by: Puyu Wang
    Link: https://lore.kernel.org/r/dbd542628b71160f7bddd33a76cb77b127a9b826.1628218477.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/infiniband/opa_vnic.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Reviewed-by: Puyu Wang
    Link: https://lore.kernel.org/r/828550a6fb7fded8172c123c37d4c643d2593e53.1628218477.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/infiniband/ipoib.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Reviewed-by: Puyu Wang
    Link: https://lore.kernel.org/r/2d71cfe6b11568d9d9c665e829eaf680c249c94a.1628218477.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/infiniband/core_locking.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Reviewed-by: Puyu Wang
    Link: https://lore.kernel.org/r/d035d79b2936be762bc001b3a53831f34f72cbb7.1628218477.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/infiniband/index.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Reviewed-by: Puyu Wang
    Link: https://lore.kernel.org/r/e3bca9e59f410fe62489e36c5b9a3fab78bc1421.1628218477.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/virt/acrn/cpuid.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Link: https://lore.kernel.org/r/35730828bc65d3912ba27382d5d70ddacee7d8a5.1628212777.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/virt/acrn/io-request.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Link: https://lore.kernel.org/r/291079265a8b0555de4d624d7d11fc5ac37a9422.1628212777.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/virt/acrn/introduction.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Link: https://lore.kernel.org/r/667a6eb64820d2234d12a0c5dd5b642af16c0d99.1628212777.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/virt/acrn/index.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Link: https://lore.kernel.org/r/17a0dac5ecc5bdcc98160bdb028c6876ca38a6bc.1628212777.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/virt/ne_overview.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Link: https://lore.kernel.org/r/a6e1a2275a397d77957be30d1acdfeda9dc836f4.1628212777.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/virt/guest-halt-polling.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Link: https://lore.kernel.org/r/658e255eff55bfdadc1576107bf367a2e80b881a.1628212777.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Translate Documentation/virt/paravirt_ops.rst into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Link: https://lore.kernel.org/r/abba361233e2a58999ef5d31c20f24370d7724f2.1628212777.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     
  • Add virt to .../zh_CN/index and translate it into Chinese.

    Signed-off-by: Yanteng Si
    Reviewed-by: Alex Shi
    Link: https://lore.kernel.org/r/b28d3a530fe0c3635e7be2462fd14a4ae18f0220.1628212777.git.siyanteng@loongson.cn
    Signed-off-by: Jonathan Corbet

    Yanteng Si
     

31 Jul, 2021

2 commits


26 Jul, 2021

2 commits

  • The original file has added a former intro in commit b51208d41c6a4e7fc2f0
    ("docs: Tweak the top-level Sphinx page") and hence update the Chinese
    version for it.

    Signed-off-by: Hu Haowen
    Link: https://lore.kernel.org/r/20210608075207.77812-1-src.res@email.cn
    Signed-off-by: Jonathan Corbet

    Hu Haowen
     
  • Reorganise several long lines in order to satisfy the kernel coding
    style.

    Signed-off-by: Hu Haowen
    Reviewed-by: Yanteng Si
    Link: https://lore.kernel.org/r/20210724130611.4231-1-src.res@email.cn
    Signed-off-by: Jonathan Corbet

    Hu Haowen
     

15 Jul, 2021

1 commit