Skip to content
  1. May 27, 2021
    • Masahiro Yamada's avatar
      kbuild: clean up ${quiet} checks in shell scripts · c39013ee
      Masahiro Yamada authored
      
      
      There were efforts to make 'make -s' really silent when it is a
      warning-free build.
      
      The conventional way was to let a shell script check ${quiet}, and if
      it is 'silent_', suppress the stdout by itself.
      
      With the previous commit, the 'cmd' takes care of it now. The 'cmd' is
      also invoked from if_changed, if_changed_dep, and if_changed_rule.
      
      You can omit ${quiet} checks in shell scripts when they are invoked
      from the 'cmd' macro.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      c39013ee
    • Masahiro Yamada's avatar
      kbuild: sink stdout from cmd for silent build · 174a1dcc
      Masahiro Yamada authored
      When building with 'make -s', no output to stdout should be printed.
      
      As Arnd Bergmann reported [1], mkimage shows the detailed information
      of the generated images.
      
      I think this should be suppressed by the 'cmd' macro instead of by
      individual scripts.
      
      Insert 'exec >/dev/null;' in order to redirect stdout to /dev/null for
      silent builds.
      
      [Note about this implementation]
      
      'exec >/dev/null;' may look somewhat tricky, but this has a reason.
      
      Appending '>/dev/null' at the end of command line is a common way for
      redirection, so I first tried this:
      
        cmd = @set -e; $(echo-cmd) $(cmd_$(1)) >/dev/null
      
      ... but it would not work if $(cmd_$(1)) itself contains a redirection.
      
      For example, cmd_wrap in scripts/Makefile.asm-generic redirects the
      output from the 'echo' command into the target file.
      
      It would be expanded into:
      
        echo "#include <asm-generic/$*.h>" > $@ >/dev/null
      
      Then, the target file gets empty because the string will go to /dev/null
      instead of $@.
      
      Next, I tried this:
      
        cmd = @set -e; $(echo-cmd) { $(cmd_$(1)); } >/dev/null
      
      The form above would be expanded into:
      
        { echo "#include <asm-generic/$*.h>" > $@; } >/dev/null
      
      This works as expected. However, it would be a syntax error if
      $(cmd_$(1)) is empty.
      
      When CONFIG_TRIM_UNUSED_KSYMS is disabled, $(call cmd,gen_ksymdeps) in
      scripts/Makefile.build would be expanded into:
      
        set -e;  { ; } >/dev/null
      
      ..., which causes an syntax error.
      
      I also tried this:
      
        cmd = @set -e; $(echo-cmd) ( $(cmd_$(1)) ) >/dev/null
      
      ... but this causes a syntax error for the same reason.
      
      So, finally I adopted:
      
        cmd = @set -e; $(echo-cmd) exec >/dev/null; $(cmd_$(1))
      
      [1]: https://lore.kernel.org/lkml/20210514135752.2910387-1-arnd@kernel.org/
      
      
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      174a1dcc
    • Masahiro Yamada's avatar
      init: use $(call cmd,) for generating include/generated/compile.h · 41eba23e
      Masahiro Yamada authored
      
      
      The 'cmd' macro shows the short log only when $(quiet) is quiet_.
      Do not do it manually.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      41eba23e
    • Masahiro Yamada's avatar
      kbuild: merge scripts/mkmakefile to top Makefile · 2728fcfa
      Masahiro Yamada authored
      
      
      scripts/mkmakefile is simple enough to be merged in the Makefile.
      
      Use $(call cmd,...) to show the log instead of doing it in the
      shell script.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      2728fcfa
  2. May 26, 2021
  3. May 24, 2021
  4. May 23, 2021
  5. May 22, 2021
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.13-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · a3969ef4
      Linus Torvalds authored
      Pull xfs fixes from Darrick Wong:
      
       - Fix some math errors in the realtime allocator when extent size hints
         are applied.
      
       - Fix unnecessary short writes to realtime files when free space is
         fragmented.
      
       - Fix a crash when using scrub tracepoints.
      
       - Restore ioctl uapi definitions that were accidentally removed in
         5.13-rc1.
      
      * tag 'xfs-5.13-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: restore old ioctl definitions
        xfs: fix deadlock retry tracepoint arguments
        xfs: retry allocations when locality-based search fails
        xfs: adjust rt allocation minlen when extszhint > rtextsize
      a3969ef4
    • Linus Torvalds's avatar
      Merge tag 'for-5.13-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 45af60e7
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "A few more fixes:
      
         - fix unaligned compressed writes in zoned mode
      
         - fix false positive lockdep warning when cloning inline extent
      
         - remove wrong BUG_ON in tree-log error handling"
      
      * tag 'for-5.13-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: zoned: fix parallel compressed writes
        btrfs: zoned: pass start block to btrfs_use_zone_append
        btrfs: do not BUG_ON in link_to_fixup_dir
        btrfs: release path before starting transaction when cloning inline extent
      45af60e7
    • Linus Torvalds's avatar
      Merge tag '5.13-rc3-smb3' of git://git.samba.org/sfrench/cifs-2.6 · 8bb14ca1
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Seven smb3 fixes: one for stable, three others fix problems found in
        testing handle leases, and a compounded request fix"
      
      * tag '5.13-rc3-smb3' of git://git.samba.org/sfrench/cifs-2.6:
        Fix KASAN identified use-after-free issue.
        Defer close only when lease is enabled.
        Fix kernel oops when CONFIG_DEBUG_ATOMIC_SLEEP is enabled.
        cifs: Fix inconsistent indenting
        cifs: fix memory leak in smb2_copychunk_range
        SMB3: incorrect file id in requests compounded with open
        cifs: remove deadstore in cifs_close_all_deferred_files()
      8bb14ca1
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · e8085a07
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - add missing MODULE_DEVICE_TABLE in gpio-cadence
      
       - fix a kernel doc validator error in gpio-xilinx
      
       - don't set parent IRQ affinity in gpio-tegra186
      
      * tag 'gpio-fixes-for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: tegra186: Don't set parent IRQ affinity
        gpio: xilinx: Correct kernel doc for xgpio_probe()
        gpio: cadence: Add missing MODULE_DEVICE_TABLE
      e8085a07
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 011ff616
      Linus Torvalds authored
      Pull MMC host fixes from Ulf Hansson:
      
       - Fix SD-card detection on Intel NUC10i3FNK4 (GL9755)
      
       - Replace WARN_ONCE with dev_warn_once for scatterlist offsets
      
       - Extend check of scatterlist size alignment with SD_IO_RW_EXTENDED
      
      * tag 'mmc-v5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: sdhci-pci-gli: increase 1.8V regulator wait
        mmc: meson-gx: also check SD_IO_RW_EXTENDED for scatterlist size alignment
        mmc: meson-gx: make replace WARN_ONCE with dev_warn_once about scatterlist offset alignment
      011ff616
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 5328bf8b
      Linus Torvalds authored
      Pull devicetree fixes from Rob Herring:
      
       - Another batch of removing unneeded type references in schemas
      
       - Fix some out of date filename references
      
       - Convert renesas,drif schema to use DT graph schema
      
      * tag 'devicetree-fixes-for-5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: More removals of type references on common properties
        dt-bindings: media: renesas,drif: Use graph schema
        leds: Fix reference file name of documentation
        dt-bindings: phy: cadence-torrent: update reference file of docs
      5328bf8b
    • Linus Torvalds's avatar
      Merge branch 'for-v5.13-rc3' of... · a0e31f3a
      Linus Torvalds authored
      Merge branch 'for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull siginfo fix from Eric Biederman:
       "During the merge window an issue with si_perf and the siginfo ABI came
        up. The alpha and sparc siginfo structure layout had changed with the
        addition of SIGTRAP TRAP_PERF and the new field si_perf.
      
        The reason only alpha and sparc were affected is that they are the
        only architectures that use si_trapno.
      
        Looking deeper it was discovered that si_trapno is used for only a few
        select signals on alpha and sparc, and that none of the other
        _sigfault fields past si_addr are used at all. Which means technically
        no regression on alpha and sparc.
      
        While the alignment concerns might be dismissed the abuse of si_errno
        by SIGTRAP TRAP_PERF does have the potential to cause regressions in
        existing userspace.
      
        While we still have time before userspace starts using and depending
        on the new definition siginfo for SIGTRAP TRAP_PERF this set of
        changes cleans up siginfo_t.
      
         - The si_trapno field is demoted from magic alpha and sparc status
           and made an ordinary union member of the _sigfault member of
           siginfo_t. Without moving it of course.
      
         - si_perf is replaced with si_perf_data and si_perf_type ending the
           abuse of si_errno.
      
         - Unnecessary additions to signalfd_siginfo are removed"
      
      * 'for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        signalfd: Remove SIL_PERF_EVENT fields from signalfd_siginfo
        signal: Deliver all of the siginfo perf data in _perf
        signal: Factor force_sig_perf out of perf_sigtrap
        signal: Implement SIL_FAULT_TRAPNO
        siginfo: Move si_trapno inside the union inside _si_fault
      a0e31f3a