1. 16 Dec, 2021 8 commits
    • Lukas Bulwahn's avatar
      mips: txx9: remove left-over for removed TXX9_ACLC configs · ddc18bd7
      Lukas Bulwahn authored
      The patch series "Remove support for TX49xx" (see Link) was only partially
      applied: The ASoC driver was removed with commit a8644292 ("ASoC:
      txx9: Remove driver"), which was patch 10/10 from that series. The mips
      architecture code to be removed with patch 1/10 from that series was not
      applied.
      
      This partial patch series application leaves the build config setup and
      code in the mips architecture in a slightly unclean, intermediate state.
      The configs HAS_TXX9_ACLC and SND_SOC_TXX9ACLC were removed, but are still
      referenced in the txx9-architecture Kconfig and generic setup.
      
      The script ./scripts/checkkconfigsymbols.py warns about this:
      
        HAS_TXX9_ACLC
        Referencing files: arch/mips/txx9/Kconfig
      
        SND_SOC_TXX9ACLC
        Referencing files: arch/mips/txx9/generic/setup.c
      
      Clean up the code for those removed references.
      
      Link: https://lore.kernel.org/all/20210105140305.141401-1-tsbogend@alpha.franken.de/Signed-off-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      ddc18bd7
    • Lukas Bulwahn's avatar
      mips: alchemy: remove historic comment on gpio build constraints · a51f0824
      Lukas Bulwahn authored
      In ./arch/mips/alchemy/common/gpiolib.c, the comment points out certain
      build constraints on CONFIG_GPIOLIB and CONFIG_ALCHEMY_GPIO_INDIRECT.
      
      The commit 832f5dac ("MIPS: Remove all the uses of custom gpio.h")
      makes all mips machines use the common gpio.h and removes the config
      ALCHEMY_GPIO_INDIRECT. So, this makes the comment in alchemy's gpiolib.c
      historic and obsolete, and can be removed after the commit above.
      
      The issue on the reference to a non-existing Kconfig symbol was identified
      with ./scripts/checkkconfigsymbols.py. This script has been quite useful
      to identify a number of bugs with Kconfig symbols and deserves to be
      executed and checked regularly.
      
      So, remove the historic comment to reduce the reports made the script and
      simplify to use this script, as new issues are easier to spot when the
      list of reports is shorter.
      Signed-off-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      a51f0824
    • Lukas Bulwahn's avatar
      mips: remove obsolete selection of CPU_HAS_LOAD_STORE_LR · bb900d43
      Lukas Bulwahn authored
      Commit 18d84e2e ("MIPS: make CPU_HAS_LOAD_STORE_LR opt-out") replaced
      the config CPU_HAS_LOAD_STORE_LR by the config with an inverted semantics,
      making the "LOAD_STORE_LR" cpu configuration the default.
      The ./arch/mips/Kconfig was adjusted accordingly.
      
      Later, commit 65ce6197 ("Revert "MIPS: Remove unused R4300 CPU
      support"") reintroduces a select CPU_HAS_LOAD_STORE_LR through its revert
      commit, restoring the config CPU_R4300 in ./arch/mips/Kconfig before the
      refactoring above.
      
      This select however now refers to a non-existing config and is further
      unneeded, as LOAD_STORE_LR is the default now.
      
      Remove the obsolete select for the reintroduced mips R4300 architecture.
      
      This issue is identified with ./scripts/checkkconfigsymbols.py.
      Signed-off-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      bb900d43
    • Lukas Bulwahn's avatar
      mips: kgdb: adjust the comment to the actual ifdef condition · 301e4999
      Lukas Bulwahn authored
      The comment refers to CONFIG_CPU_32BIT, but the ifdef uses CONFIG_32BIT.
      As this ifdef and comment was introduced with initial mips-kgdb commit
      88547001 ("[MIPS] kgdb: add arch support for the kernel's kgdb core"),
      it is probably just a minor issue that was overlooked during the patch
      creation and refactoring before submission.
      
      This inconsistency was identified with ./scripts/checkkconfigsymbols.py.
      This script has been quite useful to identify a number of bugs with
      Kconfig symbols and deserves to be executed and checked regularly.
      
      So, adjust the comment to the actual ifdef condition to reduce the
      reports made the script and simplify to use this script, as new issues
      are easier to spot when the list of reports is shorter.
      Signed-off-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      301e4999
    • Lukas Bulwahn's avatar
      mips: dec: provide the correctly capitalized config CPU_R4X00 in init error message · 9a53a8d7
      Lukas Bulwahn authored
      The config for MIPS R4000-series processors is named CPU_R4X00 with
      upper-case X, not CPU_R4x00 as the error message suggests.
      
      Hence, ./scripts/checkkconfigsymbols.py reports this invalid reference:
      
        CPU_R4x00
        Referencing files: arch/mips/dec/prom/init.c
      
      When human users encounter this error message, they probably just deal
      with this minor discrepancy; so, the spelling never was a big deal here.
      
      Still, the script ./scripts/checkkconfigsymbols.py has been quite useful
      to identify a number of bugs with Kconfig symbols and deserves to be
      executed and checked regularly.
      
      So, repair the error message to reduce the reports made the script and
      simplify to use this script, as new issues are easier to spot when the
      list of reports is shorter.
      Signed-off-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      9a53a8d7
    • Lukas Bulwahn's avatar
      mips: drop selecting non-existing config NR_CPUS_DEFAULT_2 · 74320247
      Lukas Bulwahn authored
      Commit c5eaff3e ("MIPS: Kconfig: Drop obsolete NR_CPUS_DEFAULT_{1,2}
      options") removed the config NR_CPUS_DEFAULT_2, as with this commit, the
      NR_CPUS default value is 2.
      
      Commit 7505576d ("MIPS: add support for SGI Octane (IP30)") introduces
      the config SGI_IP30, which selects the removed config NR_CPUS_DEFAULT_2,
      but this has actually no effect.
      
      Fortunately, NR_CPUS defaults to 2 when there is no specific
      NR_CPUS_DEFAULT_* config selected. So, the effect of the intended
      'select NR_CPUS_DEFAULT_2' is achieved without further ado.
      
      Drop selecting the non-existing config NR_CPUS_DEFAULT_2.
      
      The issue was identified with ./scripts/checkkconfigsymbols.py.
      
      Fixes: 7505576d ("MIPS: add support for SGI Octane (IP30)")
      Signed-off-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      74320247
    • Lukas Bulwahn's avatar
      mips: add SYS_HAS_CPU_MIPS64_R5 config for MIPS Release 5 support · fd4eb90b
      Lukas Bulwahn authored
      Commit ab7c01fd ("mips: Add MIPS Release 5 support") adds the two
      configs CPU_MIPS32_R5 and CPU_MIPS64_R5, which depend on the corresponding
      SYS_HAS_CPU_MIPS32_R5 and SYS_HAS_CPU_MIPS64_R5, respectively.
      
      The config SYS_HAS_CPU_MIPS32_R5 was already introduced with commit
      c5b36783 ("MIPS: Add support for XPA."); the config
      SYS_HAS_CPU_MIPS64_R5, however, was never introduced.
      
      Hence, ./scripts/checkkconfigsymbols.py warns:
      
        SYS_HAS_CPU_MIPS64_R5
        Referencing files: arch/mips/Kconfig, arch/mips/include/asm/cpu-type.h
      
      Add the definition for config SYS_HAS_CPU_MIPS64_R5 under the assumption
      that SYS_HAS_CPU_MIPS64_R5 follows the same pattern as the existing
      SYS_HAS_CPU_MIPS32_R5 and SYS_HAS_CPU_MIPS64_R6.
      
      Fixes: ab7c01fd ("mips: Add MIPS Release 5 support")
      Signed-off-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      fd4eb90b
    • Sander Vanheule's avatar
      MIPS: drop selected EARLY_PRINTK configs for MACH_REALTEK_RTL · 6fb8a1b3
      Sander Vanheule authored
      MACH_REALTEK_RTL declares that the system supports early printk , but
      this is not actually implemented as intended. The system is left with a
      non-functional early0 console because the setup_8250_early_printk_port()
      call provided for MIPS_GENERIC is never used to set this up. Generic
      ns16550a earlycon works, so devices should use that for early output.
      This means that SYS_HAS_EARLY_PRINTK and USE_GENERIC_EARLY_PRINTK_8250
      do not need to be selected.
      
      Additionally, as reported by Lukas Bulwahn, the selected symbol
      SYS_HAS_EARLY_PRINTK_8250 does not actually exist, so should also be
      dropped.
      
      Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
      Cc: Bert Vermeulen <bert@biot.com>
      Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      6fb8a1b3
  2. 14 Dec, 2021 6 commits
  3. 09 Dec, 2021 7 commits
  4. 30 Nov, 2021 1 commit
  5. 29 Nov, 2021 3 commits
  6. 28 Nov, 2021 8 commits
  7. 27 Nov, 2021 7 commits
    • Linus Torvalds's avatar
      Merge tag '5.16-rc2-ksmbd-fixes' of git://git.samba.org/ksmbd · 3498e7f2
      Linus Torvalds authored
      Pull ksmbd fixes from Steve French:
       "Five ksmbd server fixes, four of them for stable:
      
         - memleak fix
      
         - fix for default data stream on filesystems that don't support xattr
      
         - error logging fix
      
         - session setup fix
      
         - minor doc cleanup"
      
      * tag '5.16-rc2-ksmbd-fixes' of git://git.samba.org/ksmbd:
        ksmbd: fix memleak in get_file_stream_info()
        ksmbd: contain default data stream even if xattr is empty
        ksmbd: downgrade addition info error msg to debug in smb2_get_info_sec()
        docs: filesystem: cifs: ksmbd: Fix small layout issues
        ksmbd: Fix an error handling path in 'smb2_sess_setup()'
      3498e7f2
    • Guenter Roeck's avatar
      vmxnet3: Use generic Kconfig option for page size limit · 00169a92
      Guenter Roeck authored
      Use the architecture independent Kconfig option PAGE_SIZE_LESS_THAN_64KB
      to indicate that VMXNET3 requires a page size smaller than 64kB.
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      00169a92
    • Guenter Roeck's avatar
      fs: ntfs: Limit NTFS_RW to page sizes smaller than 64k · 4eec7faf
      Guenter Roeck authored
      NTFS_RW code allocates page size dependent arrays on the stack. This
      results in build failures if the page size is 64k or larger.
      
        fs/ntfs/aops.c: In function 'ntfs_write_mst_block':
        fs/ntfs/aops.c:1311:1: error:
      	the frame size of 2240 bytes is larger than 2048 bytes
      
      Since commit f22969a6 ("powerpc/64s: Default to 64K pages for 64 bit
      book3s") this affects ppc:allmodconfig builds, but other architectures
      supporting page sizes of 64k or larger are also affected.
      
      Increasing the maximum frame size for affected architectures just to
      silence this error does not really help.  The frame size would have to
      be set to a really large value for 256k pages.  Also, a large frame size
      could potentially result in stack overruns in this code and elsewhere
      and is therefore not desirable.  Make NTFS_RW dependent on page sizes
      smaller than 64k instead.
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Cc: Anton Altaparmakov <anton@tuxera.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4eec7faf
    • Guenter Roeck's avatar
      arch: Add generic Kconfig option indicating page size smaller than 64k · 1f0e290c
      Guenter Roeck authored
      NTFS_RW and VMXNET3 require a page size smaller than 64kB.  Add generic
      Kconfig option for use outside architecture code to avoid architecture
      specific Kconfig options in that code.
      Suggested-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Cc: Anton Altaparmakov <anton@tuxera.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1f0e290c
    • Steven Rostedt (VMware)'s avatar
      tracing: Test the 'Do not trace this pid' case in create event · 27ff768f
      Steven Rostedt (VMware) authored
      When creating a new event (via a module, kprobe, eprobe, etc), the
      descriptors that are created must add flags for pid filtering if an
      instance has pid filtering enabled, as the flags are used at the time the
      event is executed to know if pid filtering should be done or not.
      
      The "Only trace this pid" case was added, but a cut and paste error made
      that case checked twice, instead of checking the "Trace all but this pid"
      case.
      
      Link: https://lore.kernel.org/all/202111280401.qC0z99JB-lkp@intel.com/
      
      Fixes: 6cb20650 ("tracing: Check pid filtering when creating events")
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
      27ff768f
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.16-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 4f0dda35
      Linus Torvalds authored
      Pull xfs fixes from Darrick Wong:
       "Fixes for a resource leak and a build robot complaint about totally
        dead code:
      
         - Fix buffer resource leak that could lead to livelock on corrupt fs.
      
         - Remove unused function xfs_inew_wait to shut up the build robots"
      
      * tag 'xfs-5.16-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: remove xfs_inew_wait
        xfs: Fix the free logic of state in xfs_attr_node_hasname
      4f0dda35
    • Linus Torvalds's avatar
      Merge tag 'iomap-5.16-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · adfb743a
      Linus Torvalds authored
      Pull iomap fixes from Darrick Wong:
       "A single iomap bug fix and a cleanup for 5.16-rc2.
      
        The bug fix changes how iomap deals with reading from an inline data
        region -- whereas the current code (incorrectly) lets the iomap read
        iter try for more bytes after reading the inline region (which zeroes
        the rest of the page!) and hopes the next iteration terminates, we
        surveyed the inlinedata implementations and realized that all
        inlinedata implementations also require that the inlinedata region end
        at EOF, so we can simply terminate the read.
      
        The second patch documents these assumptions in the code so that
        they're not subtle implications anymore, and cleans up some of the
        grosser parts of that function.
      
        Summary:
      
         - Fix an accounting problem where unaligned inline data reads can run
           off the end of the read iomap iterator. iomap has historically
           required that inline data mappings only exist at the end of a file,
           though this wasn't documented anywhere.
      
         - Document iomap_read_inline_data and change its return type to be
           appropriate for the information that it's actually returning"
      
      * tag 'iomap-5.16-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        iomap: iomap_read_inline_data cleanup
        iomap: Fix inline extent handling in iomap_readpage
      adfb743a