Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-27 Thread Puranjay Mohan
Indu Bhagat writes: > On 2/26/25 2:23 AM, Puranjay Mohan wrote: >> Indu Bhagat writes: >> >>> On 2/25/25 3:54 PM, Weinan Liu wrote: >>>> On Tue, Feb 25, 2025 at 11:38 AM Indu Bhagat >>>> wrote: >>>>> >>>>> On Mon,

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-26 Thread Puranjay Mohan
Indu Bhagat writes: > On 2/25/25 3:54 PM, Weinan Liu wrote: >> On Tue, Feb 25, 2025 at 11:38 AM Indu Bhagat wrote: >>> >>> On Mon, Feb 10, 2025 at 12:30 AM Weinan Liu wrote: > I already have a WIP patch to add sframe support to the kernel module. > However, it is not yet working. I had

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-14 Thread Puranjay Mohan
Indu Bhagat writes: > On 2/14/25 9:39 AM, Indu Bhagat wrote: >> On 2/13/25 11:57 PM, Puranjay Mohan wrote: >>> Indu Bhagat writes: >>> >>>> On 2/12/25 11:25 PM, Song Liu wrote: >>>>> On Wed, Feb 12, 2025 at 6:45 PM Josh Poimboeuf >>

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-14 Thread Puranjay Mohan
Song Liu writes: > On Thu, Feb 13, 2025 at 2:22 PM Puranjay Mohan wrote: >> >> Song Liu writes: >> >> > On Thu, Feb 13, 2025 at 12:38 AM Puranjay Mohan >> > wrote: >> > [...] >> >> >> >> P.S. - The livepatch doesn&#x

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-13 Thread Puranjay Mohan
Indu Bhagat writes: > On 2/12/25 11:25 PM, Song Liu wrote: >> On Wed, Feb 12, 2025 at 6:45 PM Josh Poimboeuf wrote: >>> >>> On Wed, Feb 12, 2025 at 06:36:04PM -0800, Song Liu wrote: >> [ 81.261748] copy_process+0xfdc/0xfd58 [livepatch_special_static] > > Does that copy_process+0xf

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-13 Thread Puranjay Mohan
Song Liu writes: > On Thu, Feb 13, 2025 at 12:38 AM Puranjay Mohan wrote: > [...] >> >> P.S. - The livepatch doesn't have copy_process() but only copy_signal(), >> yours had copy_process() somehow. > > In my build, copy_signal is inlined to copy_process, u

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-13 Thread Puranjay Mohan
Song Liu writes: > On Wed, Feb 12, 2025 at 11:26 PM Puranjay Mohan wrote: >> >> Song Liu writes: >> >> > On Wed, Feb 12, 2025 at 4:10 PM Indu Bhagat wrote: >> >> >> >> On 2/12/25 3:32 PM, Song Liu wrote: >> >> > I run som

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-12 Thread Puranjay Mohan
Song Liu writes: > On Wed, Feb 12, 2025 at 11:26 PM Puranjay Mohan wrote: >> >> Song Liu writes: >> >> > On Wed, Feb 12, 2025 at 4:10 PM Indu Bhagat wrote: >> >> >> >> On 2/12/25 3:32 PM, Song Liu wrote: >> >> > I run som

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-12 Thread Puranjay Mohan
Song Liu writes: > On Wed, Feb 12, 2025 at 6:45 PM Josh Poimboeuf wrote: >> >> On Wed, Feb 12, 2025 at 06:36:04PM -0800, Song Liu wrote: >> > > > [ 81.261748] copy_process+0xfdc/0xfd58 [livepatch_special_static] >> > > >> > > Does that copy_process+0xfdc/0xfd58 resolve to this line in >> > >

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-12 Thread Puranjay Mohan
Song Liu writes: > On Wed, Feb 12, 2025 at 4:10 PM Indu Bhagat wrote: >> >> On 2/12/25 3:32 PM, Song Liu wrote: >> > I run some tests with this set and my RFC set [1]. Most of >> > the test is done with kpatch-build. I tested both Puranjay's >> > version [3] and my version [4]. >> > >> > For gcc

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-07 Thread Puranjay Mohan
Weinan Liu writes: >> After some debugging this is what I found: >> >> devtmpfsd() calls devtmpfs_work_loop() which is marked '__noreturn' and has >> an >> infinite loop. The compiler puts the `bl` to devtmpfs_work_loop() as the the >> last instruction in devtmpfsd() and therefore on entry to

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-04 Thread Puranjay Mohan
Puranjay Mohan writes: > Weinan Liu writes: > >> This patchset implements a generic kernel sframe-based [1] unwinder. >> The main goal is to support reliable stacktraces on arm64. >> >> On x86 orc unwinder provides reliable stacktraces. But arm64 misses the >&g

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-04 Thread Puranjay Mohan
Weinan Liu writes: > This patchset implements a generic kernel sframe-based [1] unwinder. > The main goal is to support reliable stacktraces on arm64. > > On x86 orc unwinder provides reliable stacktraces. But arm64 misses the > required support from objtool: it cannot generate orc unwind tables

[PATCH bpf-next 2/2] selftests/bpf: Augment send_signal test with remote signaling

2024-07-24 Thread Puranjay Mohan
Add testcases to test bpf_send_signal_pid/tgid(). In these new test cases, the main process triggers the BPF program and the forked process receives the signals. Signed-off-by: Puranjay Mohan --- .../selftests/bpf/prog_tests/send_signal.c| 110 +- .../bpf/progs

[PATCH bpf-next 1/2] bpf: implement bpf_send_signal_pid/tgid() helpers

2024-07-24 Thread Puranjay Mohan
Implement bpf_send_signal_pid and bpf_send_signal_tgid helpers which are similar to bpf_send_signal_thread and bpf_send_signal helpers respectively but can be used to send signals to other threads and processes. Signed-off-by: Puranjay Mohan --- include/uapi/linux/bpf.h | 37

[PATCH] ftrace: riscv: move from REGS to ARGS

2024-04-05 Thread Puranjay Mohan
039.stgit@devnote2/ Signed-off-by: Puranjay Mohan --- arch/riscv/Kconfig | 2 +- arch/riscv/include/asm/ftrace.h | 76 -- arch/riscv/kernel/asm-offsets.c | 18 arch/riscv/kernel/ftrace.c | 18 +--- arch/riscv/kernel/mcount-dyn.S | 171 ++--

Re: [RFC PATCH] ftrace: riscv: move from REGS to ARGS

2024-04-05 Thread Puranjay Mohan
On Wed, Apr 3, 2024 at 6:02 AM Masami Hiramatsu wrote: > > On Tue, 02 Apr 2024 15:02:41 +0200 > Björn Töpel wrote: > > > Puranjay Mohan writes: > > > > > This commit replaces riscv's support for FTRACE_WITH_REGS with support > > > for FTRACE_WITH_A

[RFC PATCH] ftrace: riscv: move from REGS to ARGS

2024-03-28 Thread Puranjay Mohan
aved. [1] https://riscv.org/wp-content/uploads/2015/01/riscv-calling.pdf Signed-off-by: Puranjay Mohan --- arch/riscv/Kconfig | 2 +- arch/riscv/include/asm/ftrace.h | 81 +-- arch/riscv/kernel/asm-offsets.c | 18 arch/riscv/kernel/ftrace.c | 18 +--- arch/r

Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-14 Thread Puranjay Mohan
Björn Töpel writes: > > Hmm, depending on RISC-V's CMODX path, the pro/cons CALL_OPS vs dynamic > trampolines changes quite a bit. > > The more I look at the pains of patching two instruction ("split > immediates"), the better "patch data" + one insn patching look. I was looking at how dynamic t

Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-08 Thread Puranjay Mohan
Hi Björn, On Fri, Mar 8, 2024 at 11:16 AM Björn Töpel wrote: > > > > If I remember from Steven's talk, x86 uses dynamically allocated trampolines > > for per callsite tracers, would CALL_OPS provide better performance than > > that? > > Probably not, and it was really a tongue-in-cheek comment -

Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-08 Thread Puranjay Mohan
Hi Andy, > > > > I don't think implementing direct calls over call ops is fruitful for > > RISC-V because once > > the auipc/jalr can be patched atomically, the direct call trampoline > > is always reachable. > > Yes, the auipc/jalr instruction pair can be patched atomically just as > long as the

Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-07 Thread Puranjay Mohan
Hi Björn, On Thu, Mar 7, 2024 at 8:27 PM Björn Töpel wrote: > > Puranjay! > > Puranjay Mohan writes: > > > This patch enables support for DYNAMIC_FTRACE_WITH_CALL_OPS on RISC-V. > > This allows each ftrace callsite to provide an ftrace_ops to the common > >

Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-06 Thread Puranjay Mohan
Hi Alex, On Wed, Mar 6, 2024 at 9:35 PM Alexandre Ghiti wrote: > > Hi Puranjay, > > On 06/03/2024 17:59, Puranjay Mohan wrote: > > This patch enables support for DYNAMIC_FTRACE_WITH_CALL_OPS on RISC-V. > > This allows each ftrace callsite to provide an ftrace_ops

[RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-06 Thread Puranjay Mohan
it message. Signed-off-by: Puranjay Mohan --- arch/riscv/Kconfig | 2 ++ arch/riscv/Makefile | 8 + arch/riscv/include/asm/ftrace.h | 3 ++ arch/riscv/kernel/asm-offsets.c | 3 ++ arch/riscv/kernel/ftrace.c | 59 + arch/riscv/ker

[PATCH v4 0/2] iio: temperature: add support for tmp117

2021-04-07 Thread Puranjay Mohan
celcius. 5. Remove unused mutex lock. 6. Modify MAINTAINERS. Changes since v0: 1. Correct Yaml syntax. 2. Change IIO_CHAN_INFO_OFFSET to IIO_CHAN_INFO_CALIBBIAS. 3. Implement IIO_CHAN_INFO_SCALE. 4. Use devm_iio_device_register(). 5. Remove unused headers like delay.h Puranjay Mohan (2): dt-bindings

[PATCH v4 1/2] dt-bindings: iio: temperature: Add DT bindings for TMP117

2021-04-07 Thread Puranjay Mohan
Add devicetree binding document for TMP117, a digital temperature sensor. Signed-off-by: Puranjay Mohan --- .../bindings/iio/temperature/ti,tmp117.yaml | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/temperature/ti,tmp117

[PATCH v4 2/2] iio: temperature: add driver support for ti tmp117

2021-04-07 Thread Puranjay Mohan
TMP117 is a Digital temperature sensor with integrated Non-Volatile memory. Add support for tmp117 driver in iio subsystem. Datasheet: https://www.ti.com/lit/gpn/tmp117 Signed-off-by: Puranjay Mohan Reviewed-by: Andy Shevchenko --- MAINTAINERS | 7 ++ drivers/iio

Re: [PATCH v3 2/2] iio: temperature: add driver support for ti tmp117

2021-04-06 Thread Puranjay Mohan
On Wed, Apr 7, 2021 at 10:26 AM Lars-Peter Clausen wrote: > > On 4/6/21 8:28 PM, Puranjay Mohan wrote: > > + > > +static int tmp117_write_raw(struct iio_dev *indio_dev, > > + struct iio_chan_spec const *channel, int val, > > + int val2, long

[PATCH v3 2/2] iio: temperature: add driver support for ti tmp117

2021-04-06 Thread Puranjay Mohan
TMP117 is a Digital temperature sensor with integrated NV memory. Add support for tmp117 driver in iio subsystem. Datasheet: https://www.ti.com/lit/gpn/tmp117 Signed-off-by: Puranjay Mohan --- MAINTAINERS | 7 ++ drivers/iio/temperature/Kconfig | 10 ++ drivers/iio

[PATCH v3 1/2] dt-bindings: iio: temperature: Add DT bindings for TMP117

2021-04-06 Thread Puranjay Mohan
Add devicetree binding document for TMP117, a digital temperature sensor. Signed-off-by: Puranjay Mohan --- .../bindings/iio/temperature/ti,tmp117.yaml | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/temperature/ti,tmp117

[PATCH v3 0/2] iio: temperature: add support for tmp117

2021-04-06 Thread Puranjay Mohan
IIO_CHAN_INFO_CALIBBIAS. 3. Implement IIO_CHAN_INFO_SCALE. 4. Use devm_iio_device_register(). 5. Remove unused headers like delay.h Puranjay Mohan (2): dt-bindings: iio: temperature: Add DT bindings for TMP117 iio: temperature: add driver support for ti tmp117 .../bindings/iio/temperature/ti,tmp117.yaml

Re: [PATCH v2 2/2] iio: temperature: add driver support for ti tmp117

2021-04-03 Thread Puranjay Mohan
On Fri, Apr 2, 2021 at 1:43 PM Lars-Peter Clausen wrote: > > On 4/1/21 11:16 AM, Puranjay Mohan wrote: > > TMP117 is a Digital temperature sensor with integrated NV memory. > > > > Add support for tmp117 driver in iio subsystem. > > Datasheet:-https://www.ti.com/lit

[PATCH v2 2/2] iio: temperature: add driver support for ti tmp117

2021-04-01 Thread Puranjay Mohan
TMP117 is a Digital temperature sensor with integrated NV memory. Add support for tmp117 driver in iio subsystem. Datasheet:-https://www.ti.com/lit/gpn/tmp117 Signed-off-by: Puranjay Mohan --- MAINTAINERS | 7 ++ drivers/iio/temperature/Kconfig | 10 ++ drivers/iio

[PATCH v2 0/2] iio: temperature: add support for tmp117

2021-04-01 Thread Puranjay Mohan
. Correct Yaml syntax. 2. Change IIO_CHAN_INFO_OFFSET to IIO_CHAN_INFO_CALIBBIAS. 3. Implement IIO_CHAN_INFO_SCALE. 4. Use devm_iio_device_register(). 5. Remove unused headers like delay.h Puranjay Mohan (2): dt-bindings: iio: temperature: Add DT bindings for TMP117 iio: temperature: add driver

[PATCH v2 1/2] dt-bindings: iio: temperature: Add DT bindings for TMP117

2021-04-01 Thread Puranjay Mohan
Add devicetree binding document for TMP117, a digital temperature sensor. Signed-off-by: Puranjay Mohan --- .../bindings/iio/temperature/ti,tmp117.yaml | 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/temperature/ti,tmp117

[PATCH v1 2/2] iio: temperature: add driver support for ti tmp117

2021-03-20 Thread Puranjay Mohan
TMP117 is a Digital temperature sensor with integrated NV memory. Add support for tmp117 driver in iio subsystem. Datasheet:-https://www.ti.com/lit/gpn/tmp117 Signed-off-by: Puranjay Mohan --- drivers/iio/temperature/Kconfig | 10 ++ drivers/iio/temperature/Makefile | 1 + drivers/iio

[PATCH v1 0/2] iio: temperature: add support for tmp117

2021-03-20 Thread Puranjay Mohan
Add the dt-bindings and the driver for tmp117 sensor. Changes since v0: 1. Correct Yaml syntax. 2. Change IIO_CHAN_INFO_OFFSET to IIO_CHAN_INFO_CALIBBIAS. 3. Implement IIO_CHAN_INFO_SCALE. 4. Use devm_iio_device_register(). 5. Remove unused headers like delay.h Puranjay Mohan (2): dt-bindings

[PATCH v1 1/2] dt-bindings: iio: temperature: Add DT bindings for TMP117

2021-03-20 Thread Puranjay Mohan
Add devicetree binding document for TMP117, a digital temperature sensor. Signed-off-by: Puranjay Mohan --- .../bindings/iio/temperature/ti,tmp117.yaml | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/temperature/ti,tmp117

[PATCH 2/2] iio: temperature: add driver support for ti tmp117

2021-03-19 Thread Puranjay Mohan
TMP117 is a Digital temperature sensor with integrated NV memory. Add support for tmp117 driver in iio subsystem. Datasheet:-https://www.ti.com/lit/gpn/tmp117 Signed-off-by: Puranjay Mohan --- drivers/iio/temperature/Kconfig | 11 ++ drivers/iio/temperature/Makefile | 1 + drivers/iio

[PATCH 1/2] dt-bindings: iio: temperature: Add DT bindings for TMP117

2021-03-19 Thread Puranjay Mohan
Add devicetree binding document for TMP117, a digital temperature sensor. Signed-off-by: Puranjay Mohan --- .../bindings/iio/temperature/ti,tmp117.yaml | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/temperature/ti,tmp117

[PATCH 0/2] iio: temperature: add support for tmp117

2021-03-19 Thread Puranjay Mohan
Add the dt-bindings and the driver for tmp117 sensor. Puranjay Mohan (2): dt-bindings: iio: temperature: Add DT bindings for TMP117 iio: temperature: add driver support for ti tmp117 .../bindings/iio/temperature/ti,tmp117.yaml | 40 drivers/iio/temperature/Kconfig

[PATCH v1] drivers: block: skd: remove skd_pci_info()

2020-12-14 Thread Puranjay Mohan
Change the call to skd_pci_info() to pcie_print_link_status(). pcie_print_link_status() can be used to print the link speed and the link width, skd_pci_info() does the same and hence it is removed. Signed-off-by: Puranjay Mohan --- v1 - Add call to pcie_print_link_status() --- drivers/block

[PATCH] drivers: block: skd: remove skd_pci_info()

2020-12-11 Thread Puranjay Mohan
PCI core calls __pcie_print_link_status() for every device, it prints both the link width and the link speed. skd_pci_info() does the same thing again, hence it can be removed. Signed-off-by: Puranjay Mohan --- drivers/block/skd_main.c | 31 --- 1 file changed, 31

[PATCH] Fpga: Documentation: Replace deprecated :c:func: Usage

2020-08-12 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/driver-api/fpga/fpga-bridge.rst | 6 +++--- Documentation/driver-api/fpga/fpga-mgr.rst | 6 +++--- .../driver-api/fpga/fpga-programming.rst | 16

[PATCH] IIO: Documentation: Replace deprecated :c:func: Usage

2020-08-12 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/driver-api/iio/core.rst | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/driver-api/iio/core.rst b/Documentation/driver-api/iio

Re: [PATCH] Driver-API: Documentation: Replace deprecated :c:func: Usage

2020-08-11 Thread Puranjay Mohan
On Tue, Aug 11, 2020 at 10:36:40AM -0600, Jonathan Corbet wrote: > On Mon, 10 Aug 2020 23:51:07 +0530 > Puranjay Mohan wrote: > > > Replace :c:func: with func() as the previous usage is deprecated. > > > > Signed-off-by: Puranjay Mohan > > --- > > Docu

Re: [PATCH 5.8 00/38] 5.8.1-rc1 review

2020-08-11 Thread Puranjay Mohan
z > or in the git tree and branch at: > > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git > linux-5.8.y > and the diffstat can be found below. > > thanks, > > greg k-h > Successfully booted on my Asus machine running x86_64 No kernel regressions found. -- Thanks and Regards Yours Truly, Puranjay Mohan

[PATCH] Filesystems: Documentation: Replace deprecated :c:func: Usage

2020-08-10 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/filesystems/journalling.rst | 66 +++ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/Documentation/filesystems/journalling.rst b/Documentation

[PATCH] Dev-tools: Documentation: Replace deprecated :c:func: Usage

2020-08-10 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/dev-tools/kgdb.rst | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/dev-tools/kgdb.rst b/Documentation/dev-tools/kgdb.rst index

[PATCH] Core-api: Documentation: Replace deprecated :c:func: Usage

2020-08-10 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/core-api/idr.rst | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Documentation/core-api/idr.rst b/Documentation/core-api

[PATCH] Driver-API: Documentation: Replace deprecated :c:func: Usage

2020-08-10 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/driver-api/device-io.rst | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/driver-api/device-io.rst b/Documentation/driver

Re: [PATCH 5.7 000/166] 5.7.9-rc1 review

2020-07-15 Thread Puranjay Mohan
On Wed, Jul 15, 2020 at 12:27 AM Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.7.9 release. > There are 166 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > R

Re: [PATCH 5.7 000/112] 5.7.8-rc1 review

2020-07-08 Thread Puranjay Mohan
On Tue, Jul 7, 2020 at 9:01 PM Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.7.8 release. > There are 112 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

[PATCH] Driver-API: Documentation: Replace deprecated :c:func: Usage

2020-07-06 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/driver-api/device-io.rst | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/driver-api/device-io.rst b/Documentation/driver

[PATCH v2] Security: Documentation: Replace deprecated :c:func: Usage

2020-07-06 Thread Puranjay Mohan
Replace :c:func: with ``func()`` as the previous usage is deprecated. Remove an extra ')' to fix broken cross reference. Signed-off-by: Puranjay Mohan --- V2: Remove ``quotes`` around function names V1: Change the subject line and remove deprecated :c:func: usage --- Documentatio

[PATCH v1] Security: Documentation: Replace deprecated :c:func: Usage

2020-07-06 Thread Puranjay Mohan
Replace :c:func: with ``func()`` as the previous usage is deprecated. Remove an extra ')' to fix broken cross reference. Signed-off-by: Puranjay Mohan --- V1: Change the subject line and remove deprecated :c:func: usage --- Documentation/security/credentials.rst | 6 +++--- 1 file

Re: [PATCH] Security: Documentation: fix: `make htmldocs` warnings

2020-07-06 Thread Puranjay Mohan
On Mon, Jul 6, 2020 at 11:44 PM Jonathan Corbet wrote: > > On Mon, 6 Jul 2020 23:30:10 +0530 > Puranjay Mohan wrote: > > > Remove extra ')' after function name to fix warnings. > > It solves following warning : > > WARNING: Unparseable C cross-reference:

[PATCH] Security: Documentation: fix: `make htmldocs` warnings

2020-07-06 Thread Puranjay Mohan
Remove extra ')' after function name to fix warnings. It solves following warning : WARNING: Unparseable C cross-reference: 'groups_sort)' Invalid C declaration: Expected end of definition. [error at 11] Signed-off-by: Puranjay Mohan --- Documentation/security/credential

[PATCH] Sched: Change type of 'overrun' from int to u64

2019-07-05 Thread Puranjay Mohan
Callers of hrtimer_forward_now() should save the return value in u64. function sched_rt_period_timer() stores it in variable 'overrun' of type int change type of overrun from int to u64 to solve the issue. Signed-off-by: Puranjay Mohan --- kernel/sched/rt.c | 2 +- 1 file changed, 1

Re: [PATCH 0/3] net: ethernet: atheros: atlx: Use PCI generic definitions instead of private duplicates

2019-06-22 Thread Puranjay Mohan
On Fri, Jun 21, 2019 at 11:33:27AM -0700, Joe Perches wrote: > On Fri, 2019-06-21 at 13:12 -0500, Bjorn Helgaas wrote: > > On Fri, Jun 21, 2019 at 12:27 PM Joe Perches wrote: > [] > > > Subsystem specific local PCI #defines without generic > > > naming is poor style and makes treewide grep and > >

[PATCH 3/3] net: ethernet: atheros: atlx: Remove unused and private PCI definitions

2019-06-21 Thread Puranjay Mohan
Remove unused private PCI definitions from skfbi.h because generic PCI symbols are already included from pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/ethernet/atheros/atlx/atl2.h | 2 -- drivers/net/ethernet/atheros/atlx/atlx.h | 1 - 2 files changed, 3 deletions(-) diff --git a

[PATCH 1/3] net: ethernet: atheros: atlx: Rename local PCI defines to generic names

2019-06-21 Thread Puranjay Mohan
Rename all local PCI definitons to Generic PCI definitions to make them compatible with generic definitions present in pci_regs.h Signed-off-by: Puranjay Mohan --- drivers/net/ethernet/atheros/atlx/atl2.c | 4 ++-- drivers/net/ethernet/atheros/atlx/atl2.h | 2 +- drivers/net/ethernet/atheros

[PATCH 2/3] net: ethernet: atheros: atlx: Include generic PCI definitions

2019-06-21 Thread Puranjay Mohan
Include the uapi/linux/pci_regs.h header file which contains the generic PCI defines. Signed-off-by: Puranjay Mohan --- drivers/net/ethernet/atheros/atlx/atl2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2

[PATCH 0/3] net: ethernet: atheros: atlx: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Puranjay Mohan
This patch series removes the private duplicates of PCI definitions in favour of generic definitions defined in pci_regs.h. Puranjay Mohan (3): net: ethernet: atheros: atlx: Rename local PCI defines to generic names net: ethernet: atheros: atlx: Include generic PCI definitions net

[PATCH v5 2/3] net: fddi: skfp: Include generic PCI definitions

2019-06-21 Thread Puranjay Mohan
Include the uapi/linux/pci_regs.h header file which contains the generic PCI defines. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fddi/skfp/drvfbi.c b/drivers/net/fddi/skfp/drvfbi.c index b324c1acf195

[PATCH v5 1/3] net: fddi: skfp: Rename local PCI defines to match generic PCI defines

2019-06-21 Thread Puranjay Mohan
Rename the PCI_REV_ID and other local defines to Generic PCI define names in skfbi.h and drvfbi.c to make it compatible with the pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 2 +- drivers/net/fddi/skfp/h/skfbi.h | 4 ++-- 2 files changed, 3 insertions(+), 3

[PATCH v5 3/3] net: fddi: skfp: Remove unused private PCI definitions

2019-06-21 Thread Puranjay Mohan
Remove unused private PCI definitions from skfbi.h because generic PCI symbols are already included from pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/h/skfbi.h | 225 +--- 1 file changed, 1 insertion(+), 224 deletions(-) diff --git a/drivers

[PATCH v5 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Puranjay Mohan
in v4: Removed unused PCI definitions which were left in v3 Changes in v3: Renamed all local PCI definitions to Generic names. Corrected coding style mistakes. Changes in v2: Converted individual patches to a series. Made sure that individual patches build correctly Puranjay Mohan (3): net: fddi

Re: [PATCH v4 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Puranjay Mohan
On Fri, Jun 21, 2019 at 08:44:12PM +0530, Puranjay Mohan wrote: > This patch series removes the private duplicates of PCI definitions in > favour of generic definitions defined in pci_regs.h. > > This driver only uses some of the generic PCI definitons, > which are included from

[PATCH v4 3/3] net: fddi: skfp: Remove unused private PCI definitions

2019-06-21 Thread Puranjay Mohan
Remove unused private PCI definitions from skfbi.h because generic PCI symbols are already included from pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/h/skfbi.h | 211 +--- 1 file changed, 1 insertion(+), 210 deletions(-) diff --git a/drivers

[PATCH v4 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Puranjay Mohan
in v3: Renamed all local PCI definitions to Generic names. Corrected coding style mistakes. Changes in v2: Converted individual patches to a series. Made sure that individual patches build correctly Puranjay Mohan (3): net: fddi: skfp: Rename local PCI defines to match generic PCI defines net

[PATCH v4 1/3] net: fddi: skfp: Rename local PCI defines to match generic PCI defines

2019-06-21 Thread Puranjay Mohan
Rename the PCI_REV_ID and other local defines to Generic PCI define names in skfbi.h and drvfbi.c to make it compatible with the pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 2 +- drivers/net/fddi/skfp/h/skfbi.h | 4 ++-- 2 files changed, 3 insertions(+), 3

[PATCH v4 2/3] net: fddi: skfp: Include generic PCI definitions

2019-06-21 Thread Puranjay Mohan
Include the uapi/linux/pci_regs.h header file which contains the generic PCI defines. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fddi/skfp/drvfbi.c b/drivers/net/fddi/skfp/drvfbi.c index b324c1acf195

[PATCH v3 3/3] net: fddi: skfp: Remove unused private PCI definitions

2019-06-21 Thread Puranjay Mohan
Remove unused private PCI definitions from skfbi.h because generic PCI symbols are already included from pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/h/skfbi.h | 76 - 1 file changed, 76 deletions(-) diff --git a/drivers/net/fddi/skfp/h

[PATCH v3 2/3] net: fddi: skfp: Include generic PCI definitions

2019-06-21 Thread Puranjay Mohan
Include the uapi/linux/pci_regs.h header file which contains the generic PCI defines. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fddi/skfp/drvfbi.c b/drivers/net/fddi/skfp/drvfbi.c index b324c1acf195

[PATCH v3 1/3] net: fddi: skfp: Rename local PCI defines to match generic PCI defines

2019-06-21 Thread Puranjay Mohan
Rename the PCI_REV_ID and other local defines to Generic PCI define names in skfbi.h and drvfbi.c to make it compatible with the pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 2 +- drivers/net/fddi/skfp/h/skfbi.h | 4 ++-- 2 files changed, 3 insertions(+), 3

[PATCH v3 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Puranjay Mohan
defines. The skfbi.h defines PCI_REV_ID and other private defines with different names, these are renamed to Generic PCI names to make them compatible with defines in pci_regs.h. All unused defines are removed from skfbi.h. Puranjay Mohan (3): net: fddi: skfp: Rename local PCI defines to match

Re: [PATCH] net: fddi: skfp: remove generic PCI defines from skfbi.h

2019-06-20 Thread Puranjay Mohan
tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Puranjay-Mohan/net-fddi-skfp-remove-generic-PCI-defines-from-skfbi-h/20190621-081729 > config: sparc64-allmodconfig (attached as .config) > compiler: sp

[PATCH v2 3/3] net: fddi: skfp: Remove unused private PCI definitions

2019-06-20 Thread Puranjay Mohan
Remove unused and private PCI definitions from skfbi.h because generic PCI symbols are already included from pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/h/skfbi.h | 207 +--- 1 file changed, 1 insertion(+), 206 deletions(-) diff --git a

[PATCH v2 2/3] net: fddi: skfp: Include generic PCI definitions

2019-06-20 Thread Puranjay Mohan
Include the uapi/linux/pci_regs.h header file which contains the generic PCI defines. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fddi/skfp/drvfbi.c b/drivers/net/fddi/skfp/drvfbi.c index

[PATCH v2 1/3] net: fddi: skfp: Rename PCI_REV_ID to PCI_REVISION_ID

2019-06-20 Thread Puranjay Mohan
Rename the PCI_REV_ID define to PCI_REVISION_ID in skfbi.h and drvfbi.c to make it compatible with the pci_regs.h which defines it as PCI_REVISION_ID. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 2 +- drivers/net/fddi/skfp/h/skfbi.h | 2 +- 2 files changed, 2 insertions

[PATCH v2 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-20 Thread Puranjay Mohan
other private defines. The skfbi.h defines PCI_REV_ID which is renamed to PCI_REVISION_ID in drvfbi.c to make it compatible with the generic define in pci_regs.h. Puranjay Mohan (3): net: fddi: skfp: Rename PCI_REV_ID to PCI_REVISION_ID net: fddi: skfp: Include generic PCI definitions net: fddi

Re: [PATCH] net: fddi: skfp: remove generic PCI defines from skfbi.h

2019-06-19 Thread Puranjay Mohan
On Wed, Jun 19, 2019 at 02:10:22PM -0500, Bjorn Helgaas wrote: > On Wed, Jun 19, 2019 at 12:48 PM Puranjay Mohan wrote: > > > > skfbi.h defines its own copies of PCI_COMMAND, PCI_STATUS, etc. > > remove them in favor of the generic definitions in > > include/uapi/lin

Fwd: [PATCH] net: fddi: skfp: Include generic PCI definitions from pci_regs.h

2019-06-19 Thread Puranjay Mohan
On Wed, Jun 19, 2019 at 12:04:19PM -0600, Shuah Khan wrote: > On 6/19/19 11:45 AM, Puranjay Mohan wrote: > > Include the generic PCI definitions from include/uapi/linux/pci_regs.h > > change PCI_REV_ID to PCI_REVISION_ID to make it compatible with the > > generic define. >

[PATCH] net: fddi: skfp: remove generic PCI defines from skfbi.h

2019-06-19 Thread Puranjay Mohan
skfbi.h defines its own copies of PCI_COMMAND, PCI_STATUS, etc. remove them in favor of the generic definitions in include/uapi/linux/pci_regs.h Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/h/skfbi.h | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers

[PATCH] net: fddi: skfp: Include generic PCI definitions from pci_regs.h

2019-06-19 Thread Puranjay Mohan
Include the generic PCI definitions from include/uapi/linux/pci_regs.h change PCI_REV_ID to PCI_REVISION_ID to make it compatible with the generic define. This driver uses only one generic PCI define. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 3 ++- 1 file changed, 2

[PATCH] Sched: Change type of 'overrun' from int to u64

2019-06-18 Thread Puranjay Mohan
Callers of hrtimer_forward_now() should save the return value in u64. function sched_cfs_period_timer() stores it in variable 'overrun' of type int change type of overrun from int to u64 to solve the issue. Signed-off-by: Puranjay Mohan --- kernel/sched/fair.c | 2 +- 1 file

Re: [Linux-kernel-mentees] [PATCH v2] fs: cramfs_fs.h: Fix shifting signed 32-bit value by 31 bits problem

2019-06-18 Thread Puranjay Mohan
On Tue, Jun 18, 2019 at 10:15:11AM -0600, Shuah Khan wrote: > On 6/18/19 10:08 AM, Greg KH wrote: > > On Tue, Jun 18, 2019 at 05:19:47PM +0530, Puranjay Mohan wrote: > > > Fix CRAMFS_BLK_FLAG_UNCOMPRESSED to use "U" cast to avoid shifting signed > > > 32-bit v

[PATCH v2 RESEND] fs: cramfs_fs.h: Fix shifting signed 32-bit value by 31 bits problem

2019-06-18 Thread Puranjay Mohan
n't handle this condition safely resulting in undefined behavior. Signed-off-by: Puranjay Mohan Reviewed-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman Reviewed-by: Shuah Khan --- V2 - use the unsigned constants for all flags, not just one RESEND - Added Nicolas Pitre to CC list, ad

[PATCH v2] fs: cramfs_fs.h: Fix shifting signed 32-bit value by 31 bits problem

2019-06-18 Thread Puranjay Mohan
n't handle this condition safely resulting in undefined behavior. Signed-off-by: Puranjay Mohan --- V2 - use the unsigned constants for all flags, not just one include/uapi/linux/cramfs_fs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/cramfs_fs.h

[PATCH] Documentation: platform: convert x86-laptop-drivers.txt to reST

2019-06-18 Thread Puranjay Mohan
This converts the plain text documentation to reStructuredText format. No essential content change. Signed-off-by: Puranjay Mohan --- Documentation/platform/x86-laptop-drivers.rst | 23 +++ Documentation/platform/x86-laptop-drivers.txt | 18 --- 2 files changed, 23

[PATCH RESEND] rtc: Change type of 'count' from int to u64

2019-06-17 Thread Puranjay Mohan
Callers of hrtimer_forward_now() should save the return value in u64. function rtc_pie_update_irq() stores it in variable 'count' of type int change type of count from unsigned long to u64 to solve the issue. Signed-off-by: Puranjay Mohan --- RESEND - Added required mailing lists in CC

[PATCH RESEND] media: pci: cx88: Change the type of 'missed' to u64

2019-06-17 Thread Puranjay Mohan
Callers of hrtimer_forward_now() should save the return value in u64. change type of missed from unsigned long to u64. Signed-off-by: Puranjay Mohan --- RESEND - Added required mailing lists in CC drivers/media/pci/cx88/cx88-input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH RESEND] fs: cramfs_fs.h: Fix shifting signed 32-bit value by 31 bits problem

2019-06-17 Thread Puranjay Mohan
n't handle this condition safely resulting in undefined behavior. Signed-off-by: Puranjay Mohan --- RESEND - Added required mailing list in CC include/uapi/linux/cramfs_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/cramfs_fs.h b/include/uapi/lin