Re: [Outreachy kernel] [PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Julia Lawall
On Wed, 9 Oct 2019, Joe Perches wrote: > On Wed, 2019-10-09 at 22:48 +0200, Julia Lawall wrote: > > On Wed, 9 Oct 2019, Jules Irenge wrote: > > > Fix multiple assignments warning " check > > > issued by checkpatch.pl tool: > > > "CHECK: multiple assignments should be avoided". > [] > > > diff

[PATCH v2 4/4] staging: rtl8723bs: Remove unnecessary blank lines

2019-10-09 Thread Wambui Karuga
Remove multiple blank lines in drivers/staging/rtl8723bs/core/rtw_mlme.c. Issues reported by checkpatch.pl as: CHECK: Please don't use multiple blank lines Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 47 --- 1 file changed, 47 deletions(-) di

[PATCH v2 3/4] staging: rtl8723bs: Remove comparisons to booleans in conditionals.

2019-10-09 Thread Wambui Karuga
Remove comparisons to true and false in multiple if statements in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723

[PATCH v2 2/4] staging: rtl8723bs: Remove unnecessary braces for single statements

2019-10-09 Thread Wambui Karuga
Clean up multiple unnecessary braces around single statement blocks in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: WARNING: braces {} are not necessary for single statement blocks or WARNING: braces {} are not necessary for any arm of this statement Signed-off-by

[PATCH v2 1/4] staging: rtl8723bs: Remove comparisons to NULL in conditionals

2019-10-09 Thread Wambui Karuga
Remove most comparisons to NULL in conditionals in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Comparison to NULL could be written Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 46 +++ 1 file changed, 23

[PATCH v2 0/4] staging: rtl8723bs: Style clean-up in rtw_mlme.c

2019-10-09 Thread Wambui Karuga
This patchset addresses multiple style and formatting issues reported by checkpatch.pl in drivers/staging/rtl8723bs/core/rtw_mlme.c PATCH v2 of the series corrects the "patchest" mispelling in the original cover letter and provides a clearer subject line. Wambui Karuga (4): staging: rtl8723bs:

[PATCH] staging: octeon: Fix incorrect type in assignment

2019-10-09 Thread Wambui Karuga
Fix the following warning generated by sparse in drivers/staging/octeon/ethernet-tx.c: drivers/staging/octeon/ethernet-tx.c:563:50: warning: incorrect type in assignment (different base types) drivers/staging/octeon/ethernet-tx.c:563:50:expected unsigned short [usertype] hw_chksum drivers/st

[PATCH] staging: sm750fb: Potential uninitialized field in "pll"

2019-10-09 Thread Yizhuo
Inside function set_chip_clock(), struct pll is supposed to be initialized in sm750_calc_pll_value(), if condition "diff < mini_diff" in sm750_calc_pll_value() cannot be fulfilled, then some field of pll will not be initialized but used in function sm750_format_pll_reg(), which is potentially unsaf

[PATCH 4/4] staging: rtl8723bs: Remove unnecessary blank lines

2019-10-09 Thread Wambui Karuga
Remove multiple blank lines in drivers/staging/rtl8723bs/core/rtw_mlme.c. Issues reported by checkpatch.pl as: CHECK: Please don't use multiple blank lines Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 47 --- 1 file changed, 47 deletions(-) di

[PATCH 3/4] staging: rtl8723bs: Remove comparisons to booleans in conditionals.

2019-10-09 Thread Wambui Karuga
Remove comparisons to true and false in multiple if statements in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723

[PATCH 0/4] Fix style and formatting issues in rtw_mlme.c

2019-10-09 Thread Wambui Karuga
This patchest addresses multiple style and formatting issues in the file drivers/staging/rtl8723bs/core/rtw_mlme.c. These issues are all reported by checkpatch.pl Wambui Karuga (4): staging: rtl8723bs: Remove comparisons to NULL in conditionals staging: rtl8723bs: Remove unnecessary braces for

[PATCH 1/4] staging: rtl8723bs: Remove comparisons to NULL in conditionals

2019-10-09 Thread Wambui Karuga
Remove most comparisons to NULL in conditionals in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Comparison to NULL could be written Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 46 +++ 1 file changed, 23

[PATCH 2/4] staging: rtl8723bs: Remove unnecessary braces for single statements

2019-10-09 Thread Wambui Karuga
Clean up multiple unnecessary braces around single statement blocks in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: WARNING: braces {} are not necessary for single statement blocks or WARNING: braces {} are not necessary for any arm of this statement Signed-off-by

Re: [PATCH v2 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter binding

2019-10-09 Thread Xin Ji
Hi Laurent Pinchart, thanks for your comments. On Wed, Oct 09, 2019 at 03:10:03PM +0300, Laurent Pinchart wrote: > Hi Xin Ji, > > Thank you for the patch. > > On Wed, Oct 09, 2019 at 09:27:07AM +, Xin Ji wrote: > > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > > for

20-02-2019-09NL

2019-10-09 Thread Claims dept.
LOTTO NETHERLANDS!!! WINNER!!! We are pleased to inform you of the announcement of the winners of the Lotto Netherlands Promotion which took place on the 16th September, 2019 in the Netherlands. Your e-mail address attached to winning number 20-02-2019-09NL and lucky numbers 210-12-865-50 won

Re: [PATCH v2 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2019-10-09 Thread Xin Ji
Hi Dan Carpenter, sorry for that, I send the wrong patch, I didn't correctly merge the changed code. Will send the new patch based on your new comments. Thanks, Xin On Wed, Oct 09, 2019 at 02:30:32PM +0300, Dan Carpenter wrote: > Are you sure you sent the correct patch? This has many of the same

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (Unecessary parenthesis)

2019-10-09 Thread Chandra Annamaneni
Resolved: CHECK: Unnecessary parentheses around table[i] Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index 2082d86..e

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (misaligned brace)

2019-10-09 Thread Chandra Annamaneni
Resolved: ERROR: else should follow close brace '}' Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index ccf88b8..2082

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (alignment)

2019-10-09 Thread Chandra Annamaneni
Resolved: "CHECK: Alignment should match open parenthesis" from checkpatch.pl Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kp

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (missing blank line)

2019-10-09 Thread Chandra Annamaneni
Resolved: "CHECK: Please use a blank line after.." from checkpatch.pl Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index ef78b6d..0d51

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (line length)

2019-10-09 Thread Chandra Annamaneni
Resoved: "WARNING: line over 80 characters" from checkpatch.pl Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/k

[PATCH v2] staging: qlge: correct a misspelled word

2019-10-09 Thread Jules Irenge
Fix a misspelling of "several" detected by checkpatch Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c index 5599525a19d5..28fc974ce982 100644 ---

Re: [Outreachy kernel] [PATCH] staging: qlge: correct misspelled word

2019-10-09 Thread Julia Lawall
On Wed, 9 Oct 2019, Jules Irenge wrote: > Correct misspelled word " check Why is there a " in the above line? You don't need to put a newline after check. > issued by checkpatch.pl tool: > "CHECK: serveral may be misspelled - perhaps several?". It's not reall necessary to give the checkpat

Re: [Outreachy kernel] [PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Julia Lawall
On Wed, 9 Oct 2019, Jules Irenge wrote: > Fix multiple assignments warning " check > issued by checkpatch.pl tool: > "CHECK: multiple assignments should be avoided". > > Signed-off-by: Jules Irenge > --- > drivers/staging/qlge/qlge_dbg.c | 6 -- > 1 file changed, 4 insertions(+), 2 delet

[PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Jules Irenge
Fix multiple assignments warning " check issued by checkpatch.pl tool: "CHECK: multiple assignments should be avoided". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/dri

[PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Jules Irenge
Fix multiple assignments warning " check issued by checkpatch.pl tool: "CHECK: multiple assignments should be avoided". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/dri

[PATCH] staging: qlge: fix "alignment should match open parenthesis" checks

2019-10-09 Thread Jules Irenge
Fix "alignment should mactch open parenthesis" checks issued by checkpatch.pl tool: "CHECK: Alignment should match open parenthesis". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 127 1 file changed, 64 insertions(+), 63 deletions(-) diff -

[PATCH] staging: qlge: correct misspelled word

2019-10-09 Thread Jules Irenge
Correct misspelled word " check issued by checkpatch.pl tool: "CHECK: serveral may be misspelled - perhaps several?". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/sta

[PATCH] staging: qlge: correct misspelled word

2019-10-09 Thread Jules Irenge
Correct misspelled word " check issued by checkpatch.pl tool: "CHECK: serveral may be misspelled - perhaps several?". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/sta

[PATCH] staging: qlge: fix "alignment should match open parenthesis" checks

2019-10-09 Thread Jules Irenge
Fix "alignment should mactch open parenthesis" checks issued by checkpatch.pl tool: "CHECK: Alignment should match open parenthesis". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 127 1 file changed, 64 insertions(+), 63 deletions(-) diff -

Re: [PATCH 0/7] Fix various compilation issues with wfx driver

2019-10-09 Thread Dan Carpenter
On Wed, Oct 09, 2019 at 03:13:14PM +, Jerome Pouiller wrote: > On Tuesday 8 October 2019 17:10:56 CEST Greg Kroah-Hartman wrote: > > On Tue, Oct 08, 2019 at 09:42:47AM +, Jerome Pouiller wrote: > > > From: Jérôme Pouiller > > > > > > Most of problems are related to big-endian architectures

Re: [Outreachy kernel] [PATCH] staging: kpc2000: Remove unnecessary return variable

2019-10-09 Thread Julia Lawall
On Wed, 9 Oct 2019, Wambui Karuga wrote: > Remove unnecessary variable `val` in kp_spi_read_reg() that only holds > the return value from readq(). > Issue found by coccinelle using the script: > > @@ > local idexpression ret; > expression e; > @@ > > -ret = > +return > e; > -return ret; >

Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe

2019-10-09 Thread Dan Carpenter
On Wed, Oct 09, 2019 at 04:58:12PM +0200, Alexander Gordeev wrote: > On Wed, Oct 09, 2019 at 03:14:41PM +0300, Dan Carpenter wrote: > > > +config AVALON_DMA_PCI_VENDOR_ID > > > + hex "PCI vendor ID" > > > + default "0x1172" > > > + > > > +config AVALON_DMA_PCI_DEVICE_ID > > > + hex "PCI device ID"

[PATCH] staging: kpc2000: Remove unnecessary return variable

2019-10-09 Thread Wambui Karuga
Remove unnecessary variable `val` in kp_spi_read_reg() that only holds the return value from readq(). Issue found by coccinelle using the script: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Wambui Karuga --- drivers/staging/kpc2000/kpc2000_spi

Re: [PATCH] binder: prevent UAF read in print_binder_transaction_log_entry()

2019-10-09 Thread Todd Kjos
On Wed, Oct 9, 2019 at 3:40 AM Christian Brauner wrote: > > On Tue, Oct 08, 2019 at 02:05:16PM -0400, Joel Fernandes wrote: > > On Tue, Oct 08, 2019 at 03:01:59PM +0200, Christian Brauner wrote: [...] > > > > One more thought, this can be made dependent on CONFIG_BINDERFS since > > regular > >

Re: [PATCH] binder: prevent UAF read in print_binder_transaction_log_entry()

2019-10-09 Thread Joel Fernandes
On Wed, Oct 09, 2019 at 05:10:45PM +0200, Christian Brauner wrote: > On Wed, Oct 09, 2019 at 10:55:58AM -0400, Joel Fernandes wrote: > > On Wed, Oct 09, 2019 at 04:29:11PM +0200, Christian Brauner wrote: > > > On Wed, Oct 09, 2019 at 10:21:29AM -0400, Joel Fernandes wrote: > > > > On Wed, Oct 09, 2

Re: [PATCH 0/7] Fix various compilation issues with wfx driver

2019-10-09 Thread Jerome Pouiller
On Tuesday 8 October 2019 17:10:56 CEST Greg Kroah-Hartman wrote: > On Tue, Oct 08, 2019 at 09:42:47AM +, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > Most of problems are related to big-endian architectures. > > kbuild still reports 2 errors with these patches applied: > > Regre

Re: [PATCH] binder: prevent UAF read in print_binder_transaction_log_entry()

2019-10-09 Thread Christian Brauner
On Wed, Oct 09, 2019 at 10:55:58AM -0400, Joel Fernandes wrote: > On Wed, Oct 09, 2019 at 04:29:11PM +0200, Christian Brauner wrote: > > On Wed, Oct 09, 2019 at 10:21:29AM -0400, Joel Fernandes wrote: > > > On Wed, Oct 09, 2019 at 12:40:12PM +0200, Christian Brauner wrote: > > > > On Tue, Oct 08, 2

driverdev-devel@linuxdriverproject.org

2019-10-09 Thread Jerome Pouiller
On Wednesday 9 October 2019 09:38:31 CEST kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > staging-testing > head: d49d1c76b96ebf39539e93d5ab7943a01ef70e4f > commit: 1a61af0f8cbecd1610c6fc380d0fb00f57fd43f2 [57/111] staging: wfx: allow > to

Re: [staging:staging-testing 41/59] drivers/staging/wfx/main.c:47:14-21: ERROR: PTR_ERR applied after initialization to constant on line 42

2019-10-09 Thread Dan Carpenter
On Wed, Oct 09, 2019 at 02:21:47PM +, Jerome Pouiller wrote: > On Wednesday 9 October 2019 08:51:10 CEST Rong Chen wrote: > > On 10/7/19 4:36 PM, Jerome Pouiller wrote: > > > On Friday 4 October 2019 12:48:32 CEST kbuild test robot wrote: > > > [...] > > drivers/staging/wfx/main.c:47:14-21

[PATCH -next] staging: emxx_udc: use devm_platform_ioremap_resource() to simplify code

2019-10-09 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/staging/emxx_udc/emxx_udc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_ud

[PATCH -next] staging: clocking-wizard: use devm_platform_ioremap_resource() to simplify code

2019-10-09 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/clocking-wizard/clk-xlnx-c

Re: [PATCH] binder: prevent UAF read in print_binder_transaction_log_entry()

2019-10-09 Thread Joel Fernandes
On Wed, Oct 09, 2019 at 04:29:11PM +0200, Christian Brauner wrote: > On Wed, Oct 09, 2019 at 10:21:29AM -0400, Joel Fernandes wrote: > > On Wed, Oct 09, 2019 at 12:40:12PM +0200, Christian Brauner wrote: > > > On Tue, Oct 08, 2019 at 02:05:16PM -0400, Joel Fernandes wrote: > > > > On Tue, Oct 08, 2

Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe

2019-10-09 Thread Alexander Gordeev
On Wed, Oct 09, 2019 at 03:14:41PM +0300, Dan Carpenter wrote: > > +config AVALON_DMA_PCI_VENDOR_ID > > + hex "PCI vendor ID" > > + default "0x1172" > > + > > +config AVALON_DMA_PCI_DEVICE_ID > > + hex "PCI device ID" > > + default "0xe003" > > This feels wrong. Why isn't it known in adva

Re: [staging:staging-testing 41/59] drivers/staging/wfx/main.c:47:14-21: ERROR: PTR_ERR applied after initialization to constant on line 42

2019-10-09 Thread Jerome Pouiller
On Wednesday 9 October 2019 08:51:10 CEST Rong Chen wrote: > On 10/7/19 4:36 PM, Jerome Pouiller wrote: > > On Friday 4 October 2019 12:48:32 CEST kbuild test robot wrote: > > [...] > drivers/staging/wfx/main.c:47:14-21: ERROR: PTR_ERR applied after > initialization to constant on line 4

Re: [PATCH v2 0/6] media: cedrus: h264: Support multi-slice frames

2019-10-09 Thread Jernej Škrabec
Dne sreda, 09. oktober 2019 ob 12:18:45 CEST je Hans Verkuil napisal(a): > On 10/7/19 9:01 PM, Jernej Škrabec wrote: > > Dne ponedeljek, 07. oktober 2019 ob 12:44:24 CEST je Hans Verkuil napisal(a): > >> Hi Jernej, > >> > >> On 9/29/19 10:00 PM, Jernej Skrabec wrote: > >>> This series adds suppor

Re: [PATCH] staging: rtl8723bs: hal: Fix memcpy calls

2019-10-09 Thread Dan Carpenter
On Tue, Oct 01, 2019 at 09:58:55PM +0300, Dan Carpenter wrote: > On Tue, Oct 01, 2019 at 06:13:21PM +0300, Denis Efremov wrote: > > Just found an official documentation to this issue: > > https://gcc.gnu.org/gcc-4.9/porting_to.html > > "Null pointer checks may be optimized away more aggressively >

Re: [PATCH] binder: prevent UAF read in print_binder_transaction_log_entry()

2019-10-09 Thread Christian Brauner
On Wed, Oct 09, 2019 at 10:21:29AM -0400, Joel Fernandes wrote: > On Wed, Oct 09, 2019 at 12:40:12PM +0200, Christian Brauner wrote: > > On Tue, Oct 08, 2019 at 02:05:16PM -0400, Joel Fernandes wrote: > > > On Tue, Oct 08, 2019 at 03:01:59PM +0200, Christian Brauner wrote: > > > > When a binder tra

Re: [PATCH] binder: prevent UAF read in print_binder_transaction_log_entry()

2019-10-09 Thread Joel Fernandes
On Wed, Oct 09, 2019 at 12:40:12PM +0200, Christian Brauner wrote: > On Tue, Oct 08, 2019 at 02:05:16PM -0400, Joel Fernandes wrote: > > On Tue, Oct 08, 2019 at 03:01:59PM +0200, Christian Brauner wrote: > > > When a binder transaction is initiated on a binder device coming from a > > > binderfs in

Re: [PATCH v2 2/3] staging: wfx: Make function 'wfx_tx_queue_get' static

2019-10-09 Thread Jerome Pouiller
On Wednesday 9 October 2019 15:43:35 CEST zhengbin wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > Fix sparse warnings: > > drivers/staging/wfx/queue.c:218:1

Re: [PATCH v2 3/3] staging: wfx: Make some functions static in sta.c

2019-10-09 Thread Jerome Pouiller
On Wednesday 9 October 2019 15:43:35 CEST zhengbin wrote: > Fix sparse warnings: > > drivers/staging/wfx/sta.c:269:6: warning: symbol 'wfx_update_filtering_work' > was not declared. Should it be static? > drivers/staging/wfx/sta.c:475:6: warning: symbol 'wfx_event_handler_work' was > not declare

Re: [PATCH v2 1/3] staging: wfx: Make function 'sram_write_dma_safe','load_firmware_secure' static

2019-10-09 Thread Jerome Pouiller
On Wednesday 9 October 2019 15:43:31 CEST zhengbin wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > Fix sparse warnings: > > drivers/staging/wfx/fwio.c:83:5:

Re: [PATCH][next] staging: wfx: fix swapped arguments in memset call

2019-10-09 Thread Jerome Pouiller
On Wednesday 9 October 2019 11:46:08 CEST Colin King wrote: > From: Colin Ian King > > The memset appears to have the 2nd and 3rd arguments in the wrong > order, fix this by swapping these around into the correct order. > > Addresses-Coverity: ("Memset fill truncated") > Fixes: 4f8b7fabb15d ("st

Re: [PATCH v2 0/3] staging: wfx: Make some functions static

2019-10-09 Thread Dan Carpenter
Thanks! regars, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH RFC v2 2/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe test

2019-10-09 Thread Dan Carpenter
On Wed, Oct 09, 2019 at 12:12:31PM +0200, Alexander Gordeev wrote: > diff --git a/drivers/dma/avalon-test/avalon-dev.c > b/drivers/dma/avalon-test/avalon-dev.c > new file mode 100644 > index ..9e83f777f937 > --- /dev/null > +++ b/drivers/dma/avalon-test/avalon-dev.c > @@ -0,0 +1,65 @@

[PATCH v2 0/3] staging: wfx: Make some functions static

2019-10-09 Thread zhengbin
v1->v2: keep the declaration style consistent within the file zhengbin (3): staging: wfx: Make function 'sram_write_dma_safe','load_firmware_secure' static staging: wfx: Make function 'wfx_tx_queue_get' static staging: wfx: Make some functions static in sta.c drivers/staging/wfx/fwio.c

[PATCH v2 3/3] staging: wfx: Make some functions static in sta.c

2019-10-09 Thread zhengbin
Fix sparse warnings: drivers/staging/wfx/sta.c:269:6: warning: symbol 'wfx_update_filtering_work' was not declared. Should it be static? drivers/staging/wfx/sta.c:475:6: warning: symbol 'wfx_event_handler_work' was not declared. Should it be static? drivers/staging/wfx/sta.c:521:6: warning: symb

[PATCH v2 2/3] staging: wfx: Make function 'wfx_tx_queue_get' static

2019-10-09 Thread zhengbin
Fix sparse warnings: drivers/staging/wfx/queue.c:218:16: warning: symbol 'wfx_tx_queue_get' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/staging/wfx/queue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/sta

[PATCH v2 1/3] staging: wfx: Make function 'sram_write_dma_safe', 'load_firmware_secure' static

2019-10-09 Thread zhengbin
Fix sparse warnings: drivers/staging/wfx/fwio.c:83:5: warning: symbol 'sram_write_dma_safe' was not declared. Should it be static? drivers/staging/wfx/fwio.c:229:5: warning: symbol 'load_firmware_secure' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: zhengbin --

Re: [PATCH 1/3] staging: wfx: Make function 'sram_write_dma_safe', 'load_firmware_secure' static

2019-10-09 Thread Dan Carpenter
On Wed, Oct 09, 2019 at 09:03:37PM +0800, zhengbin wrote: > -int sram_write_dma_safe(struct wfx_dev *wdev, u32 addr, const u8 *buf, > size_t len) > +static int > +sram_write_dma_safe(struct wfx_dev *wdev, u32 addr, const u8 *buf, size_t > len) Either declaration style is fine, but keep it consis

Re: [PATCH RFC v2 2/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe test

2019-10-09 Thread Greg KH
On Wed, Oct 09, 2019 at 12:12:31PM +0200, Alexander Gordeev wrote: > +config AVALON_TEST_TARGET_BASE > + hex "Target device base address" > + default "0x7000" > + > +config AVALON_TEST_TARGET_SIZE > + hex "Target device memory size" > + default "0x1000" Don't put stuff like

Re: [PATCH v2 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2019-10-09 Thread Dan Carpenter
On Wed, Oct 09, 2019 at 02:30:32PM +0300, Dan Carpenter wrote: > > + platform = kzalloc(sizeof(*platform), GFP_KERNEL); > > + if (!platform) { > > + DRM_DEV_ERROR(dev, "failed to allocate driver data\n"); > > + ret = -ENOMEM; > > + goto exit; > > return -ENOMEM; >

Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe

2019-10-09 Thread Greg KH
On Wed, Oct 09, 2019 at 12:12:30PM +0200, Alexander Gordeev wrote: > +static int setup_dma_descs(struct dma_desc *dma_descs, > +struct avalon_dma_desc *desc) > +{ > + struct scatterlist *sg_stop; > + unsigned int sg_set; > + int ret; > + > + ret = setup_descs

Re: [PATCH] staging: media: Fix alignment to match open parenthesis

2019-10-09 Thread Hans Verkuil
Hi Amol, For future reference: always include the driver name in the subject. I've added "imx: " to the subject for you, so no need to resend, but the driver name is important information. Regards, Hans On 9/11/19 6:56 PM, Amol Grover wrote: > CHECK: Alignment should match open parenth

[PATCH 3/3] staging: wfx: Make some functions static in sta.c

2019-10-09 Thread zhengbin
Fix sparse warnings: drivers/staging/wfx/sta.c:269:6: warning: symbol 'wfx_update_filtering_work' was not declared. Should it be static? drivers/staging/wfx/sta.c:475:6: warning: symbol 'wfx_event_handler_work' was not declared. Should it be static? drivers/staging/wfx/sta.c:521:6: warning: symb

[PATCH 2/3] staging: wfx: Make function 'wfx_tx_queue_get' static

2019-10-09 Thread zhengbin
Fix sparse warnings: drivers/staging/wfx/queue.c:218:16: warning: symbol 'wfx_tx_queue_get' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/staging/wfx/queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/stag

[PATCH 1/3] staging: wfx: Make function 'sram_write_dma_safe', 'load_firmware_secure' static

2019-10-09 Thread zhengbin
Fix sparse warnings: drivers/staging/wfx/fwio.c:83:5: warning: symbol 'sram_write_dma_safe' was not declared. Should it be static? drivers/staging/wfx/fwio.c:229:5: warning: symbol 'load_firmware_secure' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: zhengbin --

[PATCH 0/3] staging: wfx: Make some functions static

2019-10-09 Thread zhengbin
zhengbin (3): staging: wfx: Make function 'sram_write_dma_safe','load_firmware_secure' static staging: wfx: Make function 'wfx_tx_queue_get' static staging: wfx: Make some functions static in sta.c drivers/staging/wfx/fwio.c | 5 +++-- drivers/staging/wfx/queue.c | 3 ++- drivers/sta

[PATCH 4/5] staging: rtl8723bs: Remove rtw_merge_string() function

2019-10-09 Thread Hans de Goede
The phy_Config*WithParaFile() functions were the only user of this function. Signed-off-by: Hans de Goede --- drivers/staging/rtl8723bs/include/osdep_service_linux.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/osdep_service_linux.h b/drivers/stagi

[PATCH 5/5] staging: rtl8723bs: Remove File operation APIs

2019-10-09 Thread Hans de Goede
rtl8723bs had 2 private file operation helpers: rtw_is_file_readable() rtw_retrive_from_file() These were only used by the removed phy_Config*WithParaFile() functions, so they can be removed now. Signed-off-by: Hans de Goede --- .../staging/rtl8723bs/include/osdep_service.h | 4 - .../stagin

[PATCH 2/5] staging: rtl8723bs: Remove phy_Config*WithParaFile() functions

2019-10-09 Thread Hans de Goede
These are no longer used, so remove them and also remove various struct definitions only used by these functions. Signed-off-by: Hans de Goede --- drivers/staging/rtl8723bs/hal/hal_com.c |1 - .../staging/rtl8723bs/hal/hal_com_phycfg.c| 1076 - .../rtl8723bs/include

[PATCH 1/5] staging: rtl8723bs: Remove phy_Config*With*ParaFile() calls

2019-10-09 Thread Hans de Goede
The rtl8723bs driver tries to load various parameters from disk, circumventing the standard firmware loader mechanism and using DIY code for this. No devices which run the mainline kernel ship with these files and even if these files were present then they still would not be loaded without additio

[PATCH 3/5] staging: rtl8723bs: Remove phy_Config*WithParaFile() configuration leftovers

2019-10-09 Thread Hans de Goede
Now that the phy_Config*WithParaFile() functions have been removed nothing is using these module-parameters and defines anymore. Signed-off-by: Hans de Goede --- drivers/staging/rtl8723bs/include/drv_types.h | 4 .../staging/rtl8723bs/include/rtl8723b_hal.h | 15 -- drivers/st

Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe

2019-10-09 Thread Dan Carpenter
On Wed, Oct 09, 2019 at 12:12:30PM +0200, Alexander Gordeev wrote: > Support Avalon-MM DMA Interface for PCIe used in hard IPs for > Intel Arria, Cyclone or Stratix FPGAs. > > CC: Michael Chen > CC: de...@driverdev.osuosl.org > CC: dmaeng...@vger.kernel.org > > Signed-off-by: Alexander Gordeev

Re: [PATCH v2 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter binding

2019-10-09 Thread Laurent Pinchart
Hi Xin Ji, Thank you for the patch. On Wed, Oct 09, 2019 at 09:27:07AM +, Xin Ji wrote: > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > for portable device. It converts MIPI to DisplayPort 1.3 4K. > > You can add support to your board with binding. > > Example: >

Re: [PATCH v2 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2019-10-09 Thread Dan Carpenter
Are you sure you sent the correct patch? This has many of the same style issues I mentioned in the previous email. The error handling in edid_read() is wrong. probe() will still crash if allocating the work queue fails. On Wed, Oct 09, 2019 at 09:28:02AM +, Xin Ji wrote: > The ANX7625 is an

Re: [Outreachy kernel] [PATCH] staging: rtl8712: Add comment to lock declaration

2019-10-09 Thread Jules Irenge
On Mon, 7 Oct 2019, Julia Lawall wrote: On Mon, 7 Oct 2019, Jules Irenge wrote: Add comment to spinlock declaration to fix warning issued by checkpatch.pl "CHECK: spinlock_t definition without comment". Since it is not apparent from the shown code, it would be helpful to describe what e

Re: [PATCH] staging: rtl8723bs: hal: Fix memcpy calls

2019-10-09 Thread Denis Efremov
Hi, On 09.10.2019 12:35, Hans de Goede wrote: > Hi Denis, > > On 30-09-2019 13:01, Denis Efremov wrote: >> memcpy() in phy_ConfigBBWithParaFile() and PHY_ConfigRFWithParaFile() is >> called with "src == NULL && len == 0". This is an undefined behavior. >> Moreover this if pre-condition "pBufLen &

Re: [PATCH] binder: prevent UAF read in print_binder_transaction_log_entry()

2019-10-09 Thread Christian Brauner
On Tue, Oct 08, 2019 at 02:05:16PM -0400, Joel Fernandes wrote: > On Tue, Oct 08, 2019 at 03:01:59PM +0200, Christian Brauner wrote: > > When a binder transaction is initiated on a binder device coming from a > > binderfs instance, a pointer to the name of the binder device is stashed > > in the bi

driverdev-devel@linuxdriverproject.org

2019-10-09 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing head: d49d1c76b96ebf39539e93d5ab7943a01ef70e4f commit: 1a61af0f8cbecd1610c6fc380d0fb00f57fd43f2 [57/111] staging: wfx: allow to scan networks If you fix the issue, kindly add following tag Reported-by: k

Re: [PATCH v2 0/6] media: cedrus: h264: Support multi-slice frames

2019-10-09 Thread Hans Verkuil
On 10/7/19 9:01 PM, Jernej Škrabec wrote: > Dne ponedeljek, 07. oktober 2019 ob 12:44:24 CEST je Hans Verkuil napisal(a): >> Hi Jernej, >> >> On 9/29/19 10:00 PM, Jernej Skrabec wrote: >>> This series adds support for decoding multi-slice H264 frames along with >>> support for V4L2_DEC_CMD_FLUSH an

Re: [PATCH RFC 0/2] staging: Support Avalon-MM DMA Interface for PCIe

2019-10-09 Thread Alexander Gordeev
On Thu, Sep 19, 2019 at 01:37:08PM +0200, Greg KH wrote: > Why is this being submitted for drivers/staging/ and not the "real" part > of the kernel tree? Hi Greg! I sent v2 of the patchset, but it does not need to be part of the staging tree. I CC-ed de...@driverdev.osuosl.org for reference. Tha

[PATCH RFC v2 2/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe test

2019-10-09 Thread Alexander Gordeev
This is sample implementation of a driver that uses "avalon-dma" driver interface to perform data transfers between on-chip and system memory in devices using Avalon-MM DMA Interface for PCIe design. Companion user-level tool could be found at https://github.com/a-gordeev/avalon-tool.git CC: Micha

[PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe

2019-10-09 Thread Alexander Gordeev
Support Avalon-MM DMA Interface for PCIe used in hard IPs for Intel Arria, Cyclone or Stratix FPGAs. CC: Michael Chen CC: de...@driverdev.osuosl.org CC: dmaeng...@vger.kernel.org Signed-off-by: Alexander Gordeev --- drivers/dma/Kconfig | 2 + drivers/dma/Makefile |

[PATCH v2 0/2] dmaengine: avalon: Support Avalon-MM DMA Interface for PCIe

2019-10-09 Thread Alexander Gordeev
This series is against v5.4-rc2 Changes since v1: - "avalon-dma" converted to "dmaengine" model; - "avalon-drv" renamed to "avalon-test"; The Avalon-MM DMA Interface for PCIe is a design used in hard IPs for Intel Arria, Cyclone or Stratix FPGAs. It transfers data between on-chip memory and syste

Apply For Financial investment at a lower rate 2%

2019-10-09 Thread Nadia Artha Dewi
-- Hello, We are private lenders based in UK. Do you need a loan (credit) as soon as possible. Are you in search of money to solve your personal needs or finance your business venture, then get Your desired loan today! Consult us at Sunrise Funding Ltd. * We offer personal loan & huge capital lo

[PATCH][next] staging: wfx: fix swapped arguments in memset call

2019-10-09 Thread Colin King
From: Colin Ian King The memset appears to have the 2nd and 3rd arguments in the wrong order, fix this by swapping these around into the correct order. Addresses-Coverity: ("Memset fill truncated") Fixes: 4f8b7fabb15d ("staging: wfx: allow to send commands to chip") Signed-off-by: Colin Ian King

[PATCH v2 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2019-10-09 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. The ANX7625 can support both USB Type-C PD feature and MIPI DSI/DPI to DP feature. This driver only enabled MIPI DSI/DPI to DP feature. Signed-off-by: Xin Ji -

[PATCH v2 0/2] Add initial support for slimport anx7625

2019-10-09 Thread Xin Ji
Hi all, The following series add initial support for the Slimport ANX7625 transmitter, a ultra-low power Full-HD 4K MIPI to DP transmitter designed for portable device. This is the initial version, any mistakes, please let me know, I will fix it in the next series. Thanks, Xin Xin Ji (2): dt

[PATCH v2 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter binding

2019-10-09 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI to DisplayPort 1.3 4K. You can add support to your board with binding. Example: anx_bridge: anx7625@58 { compatible = "analogix,anx7625"; reg = <0x58>;

Re: [PATCH] staging: rtl8723bs: hal: Fix memcpy calls

2019-10-09 Thread Hans de Goede
Hi Denis, On 30-09-2019 13:01, Denis Efremov wrote: memcpy() in phy_ConfigBBWithParaFile() and PHY_ConfigRFWithParaFile() is called with "src == NULL && len == 0". This is an undefined behavior. Moreover this if pre-condition "pBufLen && (*pBufLen == 0) && !pBuf" is constantly false because it i

[staging:staging-testing 55/111] drivers/staging/wfx/wfx.h:91 wdev_to_wvif() warn: potential spectre issue 'wdev->vif' [r] (local cap)

2019-10-09 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing head: d49d1c76b96ebf39539e93d5ab7943a01ef70e4f commit: 9bca45f3d6924f19f29c0d019e961af3f41bdc9e [55/111] staging: wfx: allow to send 802.11 frames If you fix the issue, kindly add following tag Reported-

Re: [PATCH] KPC2000: kpc2000_spi.c: Fix alignment and style problems.

2019-10-09 Thread Dan Carpenter
On Tue, Oct 08, 2019 at 08:50:39PM -0700, Chandra Annamaneni wrote: > diff --git a/drivers/staging/kpc2000/kpc2000_spi.c > b/drivers/staging/kpc2000/kpc2000_spi.c > index 3be33c4..a20f2d7 100644 > --- a/drivers/staging/kpc2000/kpc2000_spi.c > +++ b/drivers/staging/kpc2000/kpc2000_spi.c > @@ -30,19

Re: [PATCH v3] staging: vc04_services: Avoid NULL comparison

2019-10-09 Thread Dan Carpenter
On Tue, Oct 08, 2019 at 07:44:15PM -0700, Nachammai Karuppiah wrote: > Remove NULL comparison. Issue found using checkpatch.pl > > Signed-off-by: Nachammai Karuppiah > > --- > > Changes in V2 >- Remove all NULL comparisons in vc04_services/interface directory. > --- > > changes in V3 >

Re: [PATCH] KPC2000: kpc2000_spi.c: Fix alignment and style problems.

2019-10-09 Thread Greg KH
On Tue, Oct 08, 2019 at 08:50:39PM -0700, Chandra Annamaneni wrote: > Fixed alignment and style issues raised by checkpatch.pl Why is this padded? Also, you need to break this up into "one logical change per patch", you can't "fix all style issues" at once, sorry. Please fix this up and se