Re: [RESEND PATCH] media: atomisp: Replace trace_printk by pr_info
On Fri, Jul 10, 2020 at 02:45:29PM +0800, Nicolas Boichat wrote: > trace_printk should not be used in production code, replace it > call with pr_info. > > Signed-off-by: Nicolas Boichat > --- > Sent this before as part of a series (whose 4th patch was a > change that allows to detect such trace_printk), but maybe it's > easier to get individual maintainer attention by splitting it. Mauro should take this soon: Acked-by: Greg Kroah-Hartman ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: rtl8712/: Using comparison to true is error prone
clear below issues reported by checkpatch.pl: CHECK: Using comparison to true is error prone CHECK: Comparison to NULL should be written "!oldest" Signed-off-by: John Oldman --- drivers/staging/rtl8712/rtl871x_mlme.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_mlme.c b/drivers/staging/rtl8712/rtl871x_mlme.c index 9ee1bfac0763..2ccd49032206 100644 --- a/drivers/staging/rtl8712/rtl871x_mlme.c +++ b/drivers/staging/rtl8712/rtl871x_mlme.c @@ -264,13 +264,13 @@ structwlan_network *r8712_get_oldest_wlan_network( phead = &scanned_queue->queue; plist = phead->next; while (1) { - if (end_of_queue_search(phead, plist) == true) + if (end_of_queue_search(phead, plist)) break; pwlan = container_of(plist, struct wlan_network, list); - if (pwlan->fixed != true) { - if (oldest == NULL || + if (!pwlan->fixed) { + if (!oldest || time_after((unsigned long)oldest->last_scanned, - (unsigned long)pwlan->last_scanned)) + (unsigned long)pwlan->last_scanned)) oldest = pwlan; } plist = plist->next; -- 2.17.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] staging: android: ion: Skip sync if not mapped
On Tue, Jul 07, 2020 at 08:43:30PM -0700, John Stultz wrote: > On Fri, Jul 3, 2020 at 12:03 AM Greg Kroah-Hartman > wrote: > > On Tue, Apr 21, 2020 at 10:05:44AM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Apr 20, 2020 at 01:03:39PM -0700, John Stultz wrote: > > > > The dmabuf heaps have been in an official kernel now for all of three > > > > weeks. So yea, we can "delete [ION] and see who even notices", but I > > > > worry that may seem a bit like contempt for the folks doing the work > > > > on transitioning over, which doesn't help getting them to participate > > > > within the community. > > > > > > But they aren't participating in the community today as no one is > > > touching the ion code. So I fail to see how keeping a dead-end-version > > > of ion in the kernel tree really affects anyone these days. > > > > So, any thoughts here? What's the timeline for ion being able to be > > removed that you are comfortable with? > > Sorry for the slow reply. So my earlier plan was to drop it after the next > LTS? Ok, fair enough, we can wait until January. thanks, greg k-h ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: rts5208: Assign array_size() to a variable
Assign array_size() to variable _size_ and use it in multiple places. This issue was found with the help of Coccinelle and, audited and fixed manually. Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83 Signed-off-by: Gustavo A. R. Silva --- drivers/staging/rts5208/rtsx_chip.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rts5208/rtsx_chip.c b/drivers/staging/rts5208/rtsx_chip.c index c6f9375468eb..ee9ddc4eb94d 100644 --- a/drivers/staging/rts5208/rtsx_chip.c +++ b/drivers/staging/rts5208/rtsx_chip.c @@ -1440,6 +1440,7 @@ int rtsx_write_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, u16 aligned_addr = addr - offset; int dw_len, i, j; int retval; + size_t size; if (!buf) return STATUS_NOMEM; @@ -1451,11 +1452,12 @@ int rtsx_write_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, dev_dbg(rtsx_dev(chip), "dw_len = %d\n", dw_len); - data = vzalloc(array_size(dw_len, 4)); + size = array_size(dw_len, 4); + data = vzalloc(size); if (!data) return STATUS_NOMEM; - mask = vzalloc(array_size(dw_len, 4)); + mask = vzalloc(size); if (!mask) { vfree(data); return STATUS_NOMEM; @@ -1471,10 +1473,8 @@ int rtsx_write_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, } } - print_hex_dump_bytes(KBUILD_MODNAME ": ", DUMP_PREFIX_NONE, mask, -dw_len * 4); - print_hex_dump_bytes(KBUILD_MODNAME ": ", DUMP_PREFIX_NONE, data, -dw_len * 4); + print_hex_dump_bytes(KBUILD_MODNAME ": ", DUMP_PREFIX_NONE, mask, size); + print_hex_dump_bytes(KBUILD_MODNAME ": ", DUMP_PREFIX_NONE, data, size); for (i = 0; i < dw_len; i++) { retval = rtsx_write_cfg_dw(chip, func, aligned_addr + i * 4, -- 2.27.0 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: rtl8723bs: core: Using comparison to true is error prone
clear below issues reported by checkpatch.pl: CHECK: Using comparison to true is error prone Signed-off-by: John Oldman --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c index ca98274ae390..d9bdd4fb9dc3 100644 --- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c +++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c @@ -363,8 +363,9 @@ int rtw_generate_ie(struct registry_priv *pregistrypriv) } /* HT Cap. */ - if (((pregistrypriv->wireless_mode&WIRELESS_11_5N) || (pregistrypriv->wireless_mode&WIRELESS_11_24N)) - && (pregistrypriv->ht_enable == true)) { + if (((pregistrypriv->wireless_mode & WIRELESS_11_5N) + || (pregistrypriv->wireless_mode & WIRELESS_11_24N)) + && (pregistrypriv->ht_enable)) { /* todo: */ } -- 2.17.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] staging: rtl8723bs: core: Using comparison to true is error prone
On 7/10/20 15:16, John Oldman wrote: > clear below issues reported by checkpatch.pl: > > CHECK: Using comparison to true is error prone > > Signed-off-by: John Oldman > --- > drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c > b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c > index ca98274ae390..d9bdd4fb9dc3 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c > +++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c > @@ -363,8 +363,9 @@ int rtw_generate_ie(struct registry_priv *pregistrypriv) > } > > /* HT Cap. */ > - if (((pregistrypriv->wireless_mode&WIRELESS_11_5N) || > (pregistrypriv->wireless_mode&WIRELESS_11_24N)) > - && (pregistrypriv->ht_enable == true)) { > + if (((pregistrypriv->wireless_mode & WIRELESS_11_5N) > + || (pregistrypriv->wireless_mode & WIRELESS_11_24N)) > + && (pregistrypriv->ht_enable)) { ^^ The enclosing parentheses are unnecessary. Also, if you run checkpatch.pl on your patch, you'll see the following: CHECK: Logical continuations should be on the previous line #12: FILE: drivers/staging/rtl8723bs/core/rtw_ieee80211.c:367: + if (((pregistrypriv->wireless_mode & WIRELESS_11_5N) + || (pregistrypriv->wireless_mode & WIRELESS_11_24N)) CHECK: Logical continuations should be on the previous line #13: FILE: drivers/staging/rtl8723bs/core/rtw_ieee80211.c:368: + || (pregistrypriv->wireless_mode & WIRELESS_11_24N)) + && (pregistrypriv->ht_enable)) { It'd be nice to fix the above, too. :) -- Gustavo > /* todo: */ > } > > ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Welcome Freе dating site fоr sех: http://www.linkbrdesk.net/url/pg32 Freе dating site fоr sех: http://www.linkbrdesk.net/url/pg32 Freе dating site fоr sех: http://www.linkbrdesk.net/url/pg32 de...@lin
Hello Freе dating site fоr sех: http://www.linkbrdesk.net/url/pg32 Freе dating site fоr sех: http://www.linkbrdesk.net/url/pg32 Freе dating site fоr sех: http://www.linkbrdesk.net/url/pg32 de...@linuxdriverproject.org! To finish activating your account - please visit https://iszf.editorum.ru/en/registration/confirm/5RzcEtA2HnJb2M4cePcxYXujjYh41ih28mJSGDQMD5E Regards, the Team. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel