[PATCH v6 1/2] depmod: Handle installing modules under a different directory

2023-12-06 Thread Michal Suchanek
-by: Michal Suchanek --- v6: - use ?= instead of := to make it easier to override the value - use shorter expression for determining the module directory assuming it's non-empty --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index

[PATCH v6 2/2] kbuild: rpm-pkg: Fix build with non-default MODLIB

2023-12-06 Thread Michal Suchanek
KERNEL_MODULE_DIRECTORY to kernel.spec to fix this problem. Signed-off-by: Michal Suchanek --- Build on top of the previous patch adding KERNEL_MODULE_DIRECTORY --- scripts/package/kernel.spec | 8 scripts/package/mkspec | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts

[PATCH 0/2] kmod /usr support

2023-11-10 Thread Michal Suchanek
Hello, This is resend of the last patch in the series that adds prefix support to kernel module location together with additional patch for validating the user supplied input to options that are interpreted as directories. Thanks Michal Michal Suchanek (2): libkmod, depmod, modprobe: Make

[PATCH 1/2] libkmod, depmod, modprobe: Make directory for kernel modules configurable

2023-11-10 Thread Michal Suchanek
. With this distributions that do not want to ship files in /lib can also move kernel modules to /usr while others can keep them in /lib. Signed-off-by: Michal Suchanek --- v4: Make the whole path configurable v5: More verbose commit message v6: fix docstring still containing module_prefix

[PATCH 2/2] configure: Check that provided paths are absolute

2023-11-10 Thread Michal Suchanek
configure checks that its built-in directory options get an absolute path. Copy the check for custom options. Signed-off-by: Michal Suchanek --- v6: new patch --- configure.ac | 17 + 1 file changed, 17 insertions(+) diff --git a/configure.ac b/configure.ac index d6da5ee9ae9a

[PATCH rebased] kbuild: rpm-pkg: Fix build with non-default MODLIB

2023-10-05 Thread Michal Suchanek
to be empty. Then MODLIB can be passed to the rpm package, and used in place of the whole /usr/lib/modules/$(KERNELRELEASE) part. Signed-off-by: Michal Suchanek --- scripts/package/kernel.spec | 8 scripts/package/mkspec | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff

[PATCH] kbuild: rpm-pkg: Fix build with non-default MODLIB

2023-09-11 Thread Michal Suchanek
to be empty. Then MODLIB can be passed to the rpm package, and used in place of the whole /usr/lib/modules/$(KERNELRELEASE) part. Signed-off-by: Michal Suchanek --- scripts/package/kernel.spec | 14 +++--- scripts/package/mkspec | 1 + 2 files changed, 8 insertions(+), 7 deletions

[PATCH] testing: nvdimm: iomap: make __nfit_test_ioremap a macro

2022-04-29 Thread Michal Suchanek
The ioremap passed as argument to __nfit_test_ioremap can be a macro so it cannot be passed as function argument. Make __nfit_test_ioremap into a macro so that ioremap can be passed as untyped macro argument. Signed-off-by: Michal Suchanek --- tools/testing/nvdimm/test/iomap.c | 18

[PATCH] testing: nvdimm: asm/mce.h is not needed in nfit.c

2022-04-29 Thread Michal Suchanek
asm/mce.h is not available on arm, and it is not needed to build nfit.c. Remove the include. It was likely needed for COPY_MC_TEST Fixes: 3adb776384f2 ("x86, libnvdimm/test: Remove COPY_MC_TEST") Signed-off-by: Michal Suchanek --- tools/testing/nvdimm/test/nfit.c | 2 -- 1 file

[PATCH 2/2] MAINTAINERS: add pattern for dummy-tools.

2021-04-08 Thread Michal Suchanek
scripts/get_maintainer.pl does not find a maintainer for new files otherwise. Signed-off-by: Michal Suchanek --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index c80ad735b384..ce631ec44e1a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9690,6

[PATCH 1/2] kbuild: dummy-tools: Add elfedit.

2021-04-08 Thread Michal Suchanek
elfedit is used in Makefile Makefile:GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit)) which causes this error getting printed which: no elfedit in (./scripts/dummy-tools) Add elfedit to dummy-tools to avoid this error. Signed-off-by: Michal Suchanek --- scripts/dummy

[PATCH] arm64: make STACKPROTECTOR_PER_TASK configurable.

2021-03-09 Thread Michal Suchanek
When using dummy-tools STACKPROTECTOR_PER_TASK is unconditionally selected. This defeats the purpose of the all-enabled tool. Description copied from arm Cc: Masahiro Yamada Signed-off-by: Michal Suchanek --- arch/arm64/Kconfig | 13 - 1 file changed, 12 insertions(+), 1 deletion

[PATCH] ibmvnic: Fix possibly uninitialized old_num_tx_queues variable warning.

2021-03-02 Thread Michal Suchanek
. Fixes: 635e442f4a48 ("ibmvnic: merge ibmvnic_reset_init and ibmvnic_init") Signed-off-by: Michal Suchanek --- drivers/net/ethernet/ibm/ibmvnic.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/i

[PATCH] powerpc: Fix build error in paravirt.h

2021-01-20 Thread Michal Suchanek
by chance in mainline. Fixes: ca3f969dcb11 ("powerpc/paravirt: Use is_kvm_guest() in vcpu_is_preempted()") Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/paravirt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/asm/paravirt.h b/arch/powerpc/i

[PATCH] powerpc: Stop exporting __clear_user which is now inlined.

2020-12-04 Thread Michal Suchanek
Stable commit 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled") redefines __clear_user as inline function but does not remove the export. Fixes: 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled") Signed-off-by: Michal Suchanek --- arch/powerpc/lib/

[PATCH 2/2] ext4: show the dax option in mount options

2020-11-09 Thread Michal Suchanek
ext4 accepts both dax and dax_always option but shows only dax_always. Show both options. Fixes: 9cb20f94afcd ("fs/ext4: Make DAX mount option a tri-state") Signed-off-by: Michal Suchanek --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4

[PATCH 1/2] xfs: show the dax option in mount options.

2020-11-09 Thread Michal Suchanek
xfs accepts both dax and dax_enum but shows only dax_enum. Show both options. Fixes: 8d6c3446ec23 ("fs/xfs: Make DAX mount option a tri-state") Signed-off-by: Michal Suchanek --- fs/xfs/xfs_super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_super.

[PATCH 0/2] Tristate moount option comatibility fixup

2020-11-09 Thread Michal Suchanek
enabled mount poins I want to hear all about it. In the meantime we have legacy applications to support. It also makes sense that when you mount a device with -o dax it actually shows dax in the mount options. Not doind so is confusing for humans as well. Thanks Michal Michal Suchanek (2): xfs: show

[PATCH] ibmveth: Fix use of ibmveth in a bridge.

2020-10-26 Thread Michal Suchanek
: 6f2275433a2f ("ibmveth: Detect unsupported packets before sending to the hypervisor") Signed-off-by: Michal Suchanek --- ms: added commit message --- drivers/net/ethernet/ibm/ibmveth.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/et

[PATCH 1/2] ARM: dts: sun8i: h2+: Fix Orange Pi Zero device description.

2020-10-08 Thread Michal Suchanek
There are two models of Orange Pi zero which are confusingly marketed under the same name. Old model comes without a flash memory and current model does have a flash memory. Build device tree for each model. Signed-off-by: Michal Suchanek --- arch/arm/boot/dts/Makefile| 1

[PATCH 2/2] dt-bindings: arm: sunxi: Fix Orange Pi Zero bindings

2020-10-08 Thread Michal Suchanek
There are two models of Orange Pi zero which are confusingly marketed under the same name. Old model comes without a flash memory and current model does have a flash memory. Add bindings for each model. Signed-off-by: Michal Suchanek --- Documentation/devicetree/bindings/arm/sunxi.yaml | 7

[PATCH] ARM: dts: sun8i: h2+: Enable optional SPI flash on Orange Pi Zero board

2020-09-29 Thread Michal Suchanek
The flash is present on all new boards and users went out of their way to add it on the old ones. Enabling it makes a more reasonable default. Signed-off-by: Michal Suchanek --- arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] Revert "powerpc/64s: machine check interrupt update NMI accounting"

2020-09-15 Thread Michal Suchanek
Fixes: 116ac378bb3f ("powerpc/64s: machine check interrupt update NMI accounting") Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/mce.c | 7 --- arch/powerpc/kernel/traps.c | 18 +++--- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/arch/powe

[PATCH] char: virtio: Select VIRTIO from VIRTIO_CONSOLE.

2020-08-31 Thread Michal Suchanek
Make it possible to have virtio console built-in when other virtio drivers are modular. Signed-off-by: Michal Suchanek --- drivers/char/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index 3a144c000a38..9bd9917ca9af

[PATCH v3] dm writecache: reject asynchronous pmem.

2020-06-30 Thread Michal Suchanek
The writecache driver does not handle asynchronous pmem. Reject it when supplied as cache. Link: https://lore.kernel.org/linux-nvdimm/87lfk5hahc@linux.ibm.com/ Fixes: 6e84200c0a29 ("virtio-pmem: Add virtio pmem driver") Signed-off-by: Michal Suchanek --- drivers/md/dm-writec

[PATCH v2] dm writecache: reject asynchronous pmem.

2020-06-30 Thread Michal Suchanek
The writecache driver does not handle asynchronous pmem. Reject it when supplied as cache. Link: https://lore.kernel.org/linux-nvdimm/87lfk5hahc@linux.ibm.com/ Fixes: 6e84200c0a29 ("virtio-pmem: Add virtio pmem driver") Signed-off-by: Michal Suchanek --- drivers/md/dm-writec

[PATCH] dm writecache: reject asynchronous pmem.

2020-06-30 Thread Michal Suchanek
The writecache driver does not handle asynchronous pmem. Reject it when supplied as cache. Link: https://lore.kernel.org/linux-nvdimm/87lfk5hahc@linux.ibm.com/ Fixes: 6e84200c0a29 ("virtio-pmem: Add virtio pmem driver") Signed-off-by: Michal Suchanek --- drivers/md/dm-writec

[PATCH] powerpc/fadump: Remove duplicate message.

2019-10-23 Thread Michal Suchanek
There is duplicate message about lack of support by firmware in fadump_reserve_mem and setup_fadump. Due to different capitalization it is clear that the one in setup_fadump is shown on boot. Remove the duplicate that is not shown. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/fadump.c

[PATCH v2 0/8] Fix cdrom autoclose.

2019-10-23 Thread Michal Suchanek
mount or dd which has no business knowing which devices are CD-roms and where the autoclose setting is in the kernel. Michal Suchanek (8): cdrom: add poll_event_interruptible cdrom: factor out common open_for_* code cdrom: wait for the tray to close cdrom: separate autoclose into an IOCTL

[PATCH v2 6/8] bdev: add open_finish.

2019-10-23 Thread Michal Suchanek
-by: Michal Suchanek --- Documentation/filesystems/locking.rst | 2 ++ fs/block_dev.c| 21 + include/linux/blkdev.h| 1 + 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Documentation/filesystems/locking.rst b

[PATCH v2 8/8] scsi: sr: wait for the medium to become ready

2019-10-23 Thread Michal Suchanek
Use the autoclose IOCLT provided by cdrom driver to wait for drive to close in open_finish, and attempt to open once more after the door closes. Signed-off-by: Michal Suchanek --- drivers/scsi/sr.c | 54 --- 1 file changed, 42 insertions(+), 12

[PATCH v2 5/8] docs: cdrom: Add autoclose IOCTL

2019-10-23 Thread Michal Suchanek
This IOCTL will be used internally by the sr driver but there is no reason to not document it for userspace. Signed-off-by: Michal Suchanek --- Documentation/ioctl/cdrom.rst | 25 + 1 file changed, 25 insertions(+) diff --git a/Documentation/ioctl/cdrom.rst b

[PATCH v2 1/2] soundwire: depend on ACPI

2019-10-03 Thread Michal Suchanek
: Add Master registration") Signed-off-by: Michal Suchanek --- drivers/soundwire/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soundwire/Kconfig b/drivers/soundwire/Kconfig index f518273cfbe3..c73bfbaa2659 100644 --- a/drivers/soundwire/Kconfig +++ b/drivers/soundwi

[PATCH v2 2/2] soundwire: depend on ACPI || OF

2019-10-03 Thread Michal Suchanek
Signed-off-by: Michal Suchanek --- drivers/soundwire/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soundwire/Kconfig b/drivers/soundwire/Kconfig index c73bfbaa2659..c8c80df090d1 100644 --- a/drivers/soundwire/Kconfig +++ b/drivers/soundwire/Kconfig @@ -5,7 +5,7 @@

[PATCH 2/2] soundwire: depend on ACPI || OF

2019-10-02 Thread Michal Suchanek
Now devicetree is supposrted for probing sondwire as well. Fixes: a2e484585ad3 ("soundwire: core: add device tree support for slave devices") Signed-off-by: Michal Suchanek --- drivers/soundwire/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/2] soundwire: depend on ACPI

2019-10-02 Thread Michal Suchanek
ation") Signed-off-by: Michal Suchanek --- drivers/soundwire/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soundwire/Kconfig b/drivers/soundwire/Kconfig index f518273cfbe3..c73bfbaa2659 100644 --- a/drivers/soundwire/Kconfig +++ b/drivers/soundwire/Kconfig @@ -5,6 +5,7 @@

[PATCH v2 rebased] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-09-23 Thread Michal Suchanek
in the future. With this patch sysfs files are available whenever fadump is supported by firmware. Signed-off-by: Michal Suchanek Acked-by: Hari Bathini --- v2: move the sysfs initialization earlier to avoid condition nesting rebase: on top of the powernv fadump support --- arch/powerpc/kernel/fadump.c

[PATCH v9 0/8] Disable compat cruft on ppc64le v9

2019-09-13 Thread Michal Suchanek
callchain.c - fix build errors/warnings with PPC64 !COMPAT and PPC32 Changes in v9: - remove current_is_64bit() Michal Suchanek (8): powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro powerpc: move common register copy functions from signal_32.c to signal.c powerpc/perf: consolidate

[PATCH v9 4/8] powerpc/perf: consolidate valid_user_sp

2019-09-13 Thread Michal Suchanek
Merge the 32bit and 64bit version. Halve the check constants on 32bit. Use STACK_TOP since it is defined. This removes a page from the valid 32bit area on 64bit: #define TASK_SIZE_USER32 (0x0001UL - (1 * PAGE_SIZE)) #define STACK_TOP_USER32 TASK_SIZE_USER32 Signed-off-by: Michal

[PATCH v9 8/8] powerpc/perf: split callchain.c by bitness

2019-09-13 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek --- v6: - move current_is_64bit consolidetaion to earlier patch - move defines to the top of callchain_32.c

[PATCH v9 2/8] powerpc: move common register copy functions from signal_32.c to signal.c

2019-09-13 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions

[PATCH v9 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro

2019-09-13 Thread Michal Suchanek
interface unconditionally. Link: https://lore.kernel.org/lkml/20190828151552.ga16...@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek Reviewed-by: Arnd Bergmann --- arch/powerpc/include/asm/unistd.h | 1 + fs/read_write.c

[PATCH v9 7/8] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-09-13 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc

[PATCH v9 3/8] powerpc/perf: consolidate read_user_stack_32

2019-09-13 Thread Michal Suchanek
There are two almost identical copies for 32bit and 64bit. The function is used only in 32bit code which will be split out in next patch so consolidate to one function. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v6: new patch v8: move the consolidated function out

[PATCH v9 6/8] powerpc/64: make buildable without CONFIG_COMPAT

2019-09-13 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH v9 5/8] powerpc/perf: remove current_is_64bit()

2019-09-13 Thread Michal Suchanek
Suggested-by: Christophe Leroy Signed-off-by: Michal Suchanek --- arch/powerpc/perf/callchain.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/arch/powerpc/perf/callchain.c b/arch/powerpc/perf/callchain.c index 7863ee0a0e69..fbf76cb01026 100644 --- a/arch/powerpc/perf/c

[PATCH] powerpc/perf: remove current_is_64bit()

2019-09-12 Thread Michal Suchanek
Suggested-by: Christophe Leroy Signed-off-by: Michal Suchanek --- arch/powerpc/perf/callchain.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/powerpc/perf/callchain.c b/arch/powerpc/perf/callchain.c index 8f30f1b47c78..dd5051015008 100644 --- a/arch/powerpc/perf/c

[PATCH v8 0/7] Disable compat cruft on ppc64le v8

2019-09-12 Thread Michal Suchanek
callchain.c - fix build errors/warnings with PPC64 !COMPAT and PPC32 Michal Suchanek (7): powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro powerpc: move common register copy functions from signal_32.c to signal.c powerpc/perf: consolidate read_user_stack_32 powerpc/perf: consolidate

[PATCH v8 2/7] powerpc: move common register copy functions from signal_32.c to signal.c

2019-09-12 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions

[PATCH v8 6/7] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-09-12 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc

[PATCH v8 5/7] powerpc/64: make buildable without CONFIG_COMPAT

2019-09-12 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH v8 4/7] powerpc/perf: consolidate valid_user_sp

2019-09-12 Thread Michal Suchanek
Merge the 32bit and 64bit version. Halve the check constants on 32bit. Use STACK_TOP since it is defined. This removes a page from the valid 32bit area on 64bit: #define TASK_SIZE_USER32 (0x0001UL - (1 * PAGE_SIZE)) #define STACK_TOP_USER32 TASK_SIZE_USER32 Signed-off-by: Michal

[PATCH v8 7/7] powerpc/perf: split callchain.c by bitness

2019-09-12 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek --- v6: - move current_is_64bit consolidetaion to earlier patch - move defines to the top of callchain_32.c

[PATCH v8 3/7] powerpc/perf: consolidate read_user_stack_32

2019-09-12 Thread Michal Suchanek
There are two almost identical copies for 32bit and 64bit. The function is used only in 32bit code which will be split out in next patch so consolidate to one function. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v6: new patch v8: move the consolidated function out

[PATCH v8 1/7] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro

2019-09-12 Thread Michal Suchanek
interface unconditionally. Link: https://lore.kernel.org/lkml/20190828151552.ga16...@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek Reviewed-by: Arnd Bergmann --- arch/powerpc/include/asm/unistd.h | 1 + fs/read_write.c

[PATCH] net/ibmvnic: Fix missing { in __ibmvnic_reset

2019-09-09 Thread Michal Suchanek
Commit 1c2977c09499 ("net/ibmvnic: free reset work of removed device from queue") adds a } without corresponding { causing build break. Fixes: 1c2977c09499 ("net/ibmvnic: free reset work of removed device from queue") Signed-off-by: Michal Suchanek --- drivers/net/ethern

[PATCH] Revert "powerpc: Add barrier_nospec to raw_copy_in_user()"

2019-09-02 Thread Michal Suchanek
This reverts commit 6fbcdd59094ade30db63f32316e9502425d7b256. Not needed. Data handled by raw_copy_in_user must be loaded through copy_from_user to be used in the kernel which already has the barrier. Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/uaccess.h | 1 - 1 file changed

[PATCH v7 6/6] powerpc/perf: split callchain.c by bitness

2019-08-30 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v6: - move current_is_64bit consolidetaion to earlier patch - move defines

[PATCH v7 4/6] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-30 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH v7 2/6] powerpc: move common register copy functions from signal_32.c to signal.c

2019-08-30 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions

[PATCH v7 5/6] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-08-30 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc

[PATCH v7 3/6] powerpc/perf: consolidate read_user_stack_32

2019-08-30 Thread Michal Suchanek
There are two almost identical copies for 32bit and 64bit. The function is used only in 32bit code which will be split out in next patch so consolidate to one function. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- new patch in v6 --- arch/powerpc/perf/callchain.c | 25

[PATCH v7 0/6] Disable compat cruft on ppc64le v7

2019-08-30 Thread Michal Suchanek
- consolidate read_user_stack_32 - fix some checkpatch warnings Changes in v7: - add back __ARCH_WANT_SYS_LLSEEK to fix build with llseek - remove leftover hunk - add review tags Michal Suchanek (6): powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro powerpc: move common register copy

[PATCH v7 1/6] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro

2019-08-30 Thread Michal Suchanek
interface unconditionally. Link: https://lore.kernel.org/lkml/20190828151552.ga16...@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek Reviewed-by: Arnd Bergmann --- arch/powerpc/include/asm/unistd.h | 1 + fs/read_write.c

[no subject]

2019-08-30 Thread Michal Suchanek
ek syscall from the 64bit syscall tables and building the llseek interface unconditionally. Link: https://lore.kernel.org/lkml/20190828151552.ga16...@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/unistd.h

[PATCH] Revert "asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro"

2019-08-30 Thread Michal Suchanek
. Link: https://lore.kernel.org/lkml/20190828151552.ga16...@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek --- arch/arm/include/asm/unistd.h| 1 + arch/arm64/include/asm/unistd.h | 1 + arch/csky/include/asm/unistd.h

[PATCH v6 0/6] Disable compat cruft on ppc64le v6

2019-08-30 Thread Michal Suchanek
- consolidate read_user_stack_32 - fix some checkpatch warnings Michal Suchanek (6): powerpc: make llseek 32bit-only. powerpc: move common register copy functions from signal_32.c to signal.c powerpc/perf: consolidate read_user_stack_32 powerpc/64: make buildable without

[PATCH v6 2/6] powerpc: move common register copy functions from signal_32.c to signal.c

2019-08-30 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions(+), 140 deletions(-) diff --git

[PATCH v6 5/6] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-08-30 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig

[PATCH v6 3/6] powerpc/perf: consolidate read_user_stack_32

2019-08-30 Thread Michal Suchanek
There are two almost identical copies for 32bit and 64bit. The function is used only in 32bit code which will be split out in next patch so consolidate to one function. Signed-off-by: Michal Suchanek --- new patch in v6 --- arch/powerpc/perf/callchain.c | 25 + 1 file

[PATCH v6 1/6] powerpc: make llseek 32bit-only.

2019-08-30 Thread Michal Suchanek
ust drop it for 64bit. Fixes: caf6f9c8a326 ("asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro") Link: https://lore.kernel.org/lkml/20190828151552.ga16...@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek --- v5: upd

[PATCH v6 6/6] powerpc/perf: split callchain.c by bitness

2019-08-30 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek --- v6: - move current_is_64bit consolidetaion to earlier patch - move defines to the top of callchain_32.c

[PATCH v6 4/6] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-30 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH] soundwire: slave: Fix unused function warning on !ACPI

2019-08-30 Thread Michal Suchanek
Fixes the following warning on !ACPI systems: drivers/soundwire/slave.c:16:12: warning: ‘sdw_slave_add’ defined but not used [-Wunused-function] static int sdw_slave_add(struct sdw_bus *bus, ^ Signed-off-by: Michal Suchanek --- drivers/soundwire/slave.c | 2 +- 1 file

[PATCH v5 2/5] powerpc: move common register copy functions from signal_32.c to signal.c

2019-08-29 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions(+), 140 deletions(-) diff --git

[PATCH v5 3/5] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-29 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH v5 1/5] powerpc: make llseek 32bit-only.

2019-08-29 Thread Michal Suchanek
ust drop it for 64bit. Fixes: caf6f9c8a326 ("asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro") Signed-off-by: Michal Suchanek --- v5: update commit message. --- arch/powerpc/kernel/syscalls/syscall.tbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a

[PATCH v5 0/5] Disable compat cruft on ppc64le v5

2019-08-29 Thread Michal Suchanek
conditionals - remove some ifdefs or convert to IS_DEFINED where possible Changes in v4: - cleanup is_32bit_task and current_is_64bit - more makefile cleanup Changes in v5: - more current_is_64bit cleanup - split off callchain.c 32bit and 64bit parts Michal Suchanek (5): powerpc: make llseek

[PATCH v5 4/5] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-08-29 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig

[PATCH v5 5/5] powerpc/perf: split callchain.c by bitness

2019-08-29 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. Also rewrite current_is_64bit as common function. No other code change intended. Signed-off-by: Michal Suchanek --- arch/powerpc/perf/Makefile | 4 + arch

[PATCH 1/3] scsi: cxlflash: Fix fallthrough warnings.

2019-08-29 Thread Michal Suchanek
Add fallthrough comments where missing. Signed-off-by: Michal Suchanek --- drivers/scsi/cxlflash/main.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/cxlflash/main.c b/drivers/scsi/cxlflash/main.c index b1f4724efde2..f402fa9a7bec 100644 --- a/drivers/scsi/cxlflash

[PATCH 2/3] scsi: ibmvfc: Fix fallthrough warnings.

2019-08-29 Thread Michal Suchanek
Add fallthrough comments where they are missing. Signed-off-by: Michal Suchanek --- drivers/scsi/ibmvscsi/ibmvfc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index 8cdbac076a1b..2a06a5b4d3a5 100644 --- a/drivers/scsi

[PATCH 3/3] scsi: ibmvscsi: tgt: Fix fallthrough warnings.

2019-08-29 Thread Michal Suchanek
Add fallthrough comments where they are missing. Signed-off-by: Michal Suchanek --- drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c index 7f9535392a93

[PATCH 0/3] Fix fallthrough warnings.

2019-08-29 Thread Michal Suchanek
Build with recent compiler results in numerous fallthrough warnings. The code looks correct to me so just adding the comments to quiet gcc. Please review if the fallthrough was really intentional. Thanks Michal Michal Suchanek (3): scsi: cxlflash: Fix fallthrough warnings. scsi: ibmvfc

[PATCH] Makefile: Convert -Wimplicit-fallthrough to -Wimplicit-fallthrough=2

2019-08-29 Thread Michal Suchanek
ned-off-by: Michal Suchanek --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f125625efd60..641ec413c2a6 100644 --- a/Makefile +++ b/Makefile @@ -846,7 +846,7 @@ NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=incl

[PATCH v4 0/4] Disable compat cruft on ppc64le v4

2019-08-29 Thread Michal Suchanek
conditionals - remove some ifdefs or convert to IS_DEFINED where possible Changes in v4: - cleanup is_32bit_task and current_is_64bit - more makefile cleanup Michal Suchanek (4): powerpc: make llseek 32bit-only. powerpc: move common register copy functions from signal_32.c to signal.c

[PATCH v4 1/4] powerpc: make llseek 32bit-only.

2019-08-29 Thread Michal Suchanek
Fixes: aff850393200 ("powerpc: add system call table generation support") Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/syscalls/syscall.tbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl b/arch/powerpc/kerne

[PATCH v4 3/4] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-29 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH v4 4/4] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-08-29 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig

[PATCH v4 2/4] powerpc: move common register copy functions from signal_32.c to signal.c

2019-08-29 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions(+), 140 deletions(-) diff --git

[PATCH v2] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-28 Thread Michal Suchanek
in the future. With this patch sysfs files are available whenever fadump is supported by firmware. Signed-off-by: Michal Suchanek --- v2: move the sysfs initialization earlier to avoid condition nesting --- arch/powerpc/kernel/fadump.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions

[PATCH v3 3/4] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-28 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH v3 4/4] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-08-28 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig

[PATCH v3 2/4] powerpc: move common register copy functions from signal_32.c to signal.c

2019-08-28 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions(+), 140 deletions(-) diff --git

[PATCH v3 0/4] Disable compat cruft on ppc64le v3

2019-08-28 Thread Michal Suchanek
conditionals - remove some ifdefs or convert to IS_DEFINED where possible Michal Suchanek (4): powerpc: make llseek 32bit-only. powerpc: move common register copy functions from signal_32.c to signal.c powerpc/64: make buildable without CONFIG_COMPAT powerpc/64: Make COMPAT user

[PATCH v3 1/4] powerpc: make llseek 32bit-only.

2019-08-28 Thread Michal Suchanek
Fixes: aff850393200 ("powerpc: add system call table generation support") Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/syscalls/syscall.tbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl b/arch/powerpc/kerne

[PATCH] Revert "Bluetooth: btusb: driver to enable the usb-wakeup feature"

2019-08-28 Thread Michal Suchanek
was merged up to 5.3-rc6. Signed-off-by: Michal Suchanek --- drivers/bluetooth/btusb.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 5cf0734eb31b..5c67d41ca254 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c

[PATCH v2 4/4] powerpc/64: Disable COMPAT if littleendian.

2019-08-28 Thread Michal Suchanek
ppc32le was never really a thing. Endian swap is already disabled by default so this 32bit support is kind of useless on ppc64le. Signed-off-by: Michal Suchanek --- arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc

[PATCH v2 2/4] powerpc: move common register copy functions from signal_32.c to signal.c

2019-08-28 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions(+), 140 deletions(-) diff --git

[PATCH v2 0/4] Disable compat cruft on ppc64le v2

2019-08-28 Thread Michal Suchanek
in the syscal tables making it 32bit-only so I suppose it should be available on 64bit as well. This is tested on ppc64le top of https://patchwork.ozlabs.org/cover/1153556/ Changes in v2: saner CONFIG_COMPAT ifdefs Thanks Michal Michal Suchanek (4): fs: always build llseek. powerpc: move common

  1   2   3   4   5   6   7   8   >