Re: [staging:staging-next 201/268] drivers/staging/rtl8723bs/core/rtw_security.c:89:6: warning: stack frame size of 1120 bytes in function 'rtw_wep_encrypt'

2021-05-21 Thread Nathan Chancellor
Hi Fabio, On Fri, May 21, 2021 at 04:26:57PM +0200, Fabio Aiuto wrote: > Hi robot, > > On Thu, May 20, 2021 at 05:03:14PM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > > staging-next > > head:

Re: [PATCH] staging: andriod: ashmem: Declared file operation with const keyword

2021-03-13 Thread Nathan Chancellor
On Sat, Mar 13, 2021 at 10:59:43PM +0530, B K Karthik wrote: > On Sat, Mar 13, 2021 at 10:57 PM namratajanawade > wrote: > > > > Warning found by checkpatch.pl script. > > That doesn't tell what you did or why you did it. Please write an > appropriate commit description and resend the patch. >

Re: [PATCH] staging: qlge/qlge_main: Use min_t instead of min

2021-02-04 Thread Nathan Chancellor
On Fri, Feb 05, 2021 at 03:24:51AM +0530, ameynarkhed...@gmail.com wrote: > From: Amey Narkhede > > Use min_t instead of min function in qlge/qlge_main.c > Fixes following checkpatch.pl warning: > WARNING: min() should probably be min_t(int, MAX_CPUS, num_online_cpus()) > > Signed-off-by: Amey

Re: [PATCH 1/2] staging: wfx: fix use of uninitialized pointer

2020-10-19 Thread Nathan Chancellor
if (rate->idx >= band->n_bitrates) { > ^~~~ > > Reported-by: kernel test robot > Reported-by: Nathan Chancellor > Fixes: 868fd970e187 ("staging: wfx: improve robustness of wfx_get_hw_rate()") > Signed-off-by: Jérôme Pouiller Reviewed-by: Nath

Re: [PATCH 8/8] staging: wfx: improve robustness of wfx_get_hw_rate()

2020-10-15 Thread Nathan Chancellor
On Fri, Oct 09, 2020 at 07:13:07PM +0200, Jerome Pouiller wrote: > From: Jérôme Pouiller > > Smatch complains: > > data_tx.c:37 wfx_get_hw_rate() warn: constraint '(struct > ieee80211_supported_band)->bitrates' overflow 'band->bitrates' 0 <= abs_rl > '0-127' user_rl '' required = '(struct

Re: [PATCH v11 07/11] device-mapping: Introduce DMA range map, supplanting dma_pfn_offset

2020-09-09 Thread Nathan Chancellor
> > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-ranges.2 Tested-by: Nathan Chancellor Thank you for fixing this up quickly! ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v11 07/11] device-mapping: Introduce DMA range map, supplanting dma_pfn_offset

2020-09-02 Thread Nathan Chancellor
On Wed, Sep 02, 2020 at 05:36:29PM -0700, Florian Fainelli wrote: > > > On 9/2/2020 3:38 PM, Nathan Chancellor wrote: > [snip] > > > Hello Nathan, > > > > > > Can you tell me how much memory your RPI has and if all of it is > > > > This is

Re: [PATCH v11 07/11] device-mapping: Introduce DMA range map, supplanting dma_pfn_offset

2020-09-02 Thread Nathan Chancellor
On Wed, Sep 02, 2020 at 06:11:08PM -0400, Jim Quinlan wrote: > On Wed, Sep 2, 2020 at 5:53 PM Nathan Chancellor > wrote: > > > > On Mon, Aug 24, 2020 at 03:30:20PM -0400, Jim Quinlan wrote: > > > The new field 'dma_range_map' in struct device is used to facilit

Re: [PATCH v11 07/11] device-mapping: Introduce DMA range map, supplanting dma_pfn_offset

2020-09-02 Thread Nathan Chancellor
On Mon, Aug 24, 2020 at 03:30:20PM -0400, Jim Quinlan wrote: > The new field 'dma_range_map' in struct device is used to facilitate the > use of single or multiple offsets between mapping regions of cpu addrs and > dma addrs. It subsumes the role of "dev->dma_pfn_offset" which was only > capable

Re: [PATCH 9/9] staging: media: atomisp: add PMIC_OPREGION dependency

2020-05-29 Thread Nathan Chancellor
IS_ENABLED for PMIC_OPREGION, like some other drivers do. Regardless of that: Reviewed-by: Nathan Chancellor > --- > drivers/staging/media/atomisp/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/staging/media/atomisp/Kconfig > b/drivers/staging/medi

Re: [PATCH 8/9] staging: media: atomisp: disable all custom formats

2020-05-29 Thread Nathan Chancellor
> Signed-off-by: Arnd Bergmann I have this patch in my local tree and debated sending it myself. I think that this is the right fix for now, as the driver is being cleaned up. Maybe add a FIXME like the rest of this driver? Regardless of that last point: Reviewed-by: Nathan Chancello

Re: [PATCH 7/9] staging: media: atomisp: fix enum type mixups

2020-05-29 Thread Nathan Chancellor
"staging/atomisp: Add support for the Intel IPU v2") > Signed-off-by: Arnd Bergmann Huh weird that I did not see this warning but you do randconfigs so that's expected. Reviewed-by: Nathan Chancellor > --- > .../pci/hive_isp_css_common/host/input_system.c

Re: [PATCH 5/9] staging: media: atomisp: fix stack overflow in init_pipe_defaults()

2020-05-29 Thread Nathan Chancellor
e > compound-literals with designated initializers") > Signed-off-by: Arnd Bergmann Reviewed-by: Nathan Chancellor > --- > drivers/staging/media/atomisp/pci/sh_css.c | 16 +++- > 1 file changed, 11 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/m

Re: [PATCH 3/9] staging: media: atomisp: annotate an unused function

2020-05-29 Thread Nathan Chancellor
On Fri, May 29, 2020 at 10:00:25PM +0200, Arnd Bergmann wrote: > atomisp_mrfld_power() has no more callers and produces > a warning: > > drivers/staging/media/atomisp/pci/atomisp_v4l2.c:764:12: error: unused > function 'atomisp_mrfld_power' [-Werror,-Wunused-function] > > Mark the function as

Re: [PATCH 2/9] staging: media: atomisp: declare 'struct device' before using it

2020-05-29 Thread Nathan Chancellor
> [-Werror,-Wvisibility] > > Make sure the struct tag is known before declaring a function > that uses it as an argument. > > Fixes: 9d4fa1a16b28 ("media: atomisp: cleanup directory hierarchy") > Signed-off-by: Arnd Bergmann Reviewed-by: Nathan Chancellor

Re: [PATCH 1/9] staging: media: atomisp: fix incorrect NULL pointer check

2020-05-29 Thread Nathan Chancellor
On Fri, May 29, 2020 at 10:31:44PM +0200, Arnd Bergmann wrote: > On Fri, May 29, 2020 at 10:23 PM Arnd Bergmann wrote: > > > > On Fri, May 29, 2020 at 10:04 PM 'Nick Desaulniers' via Clang Built > > Linux wrote: > > > > > > See also Nathan's 7 patch series. > > >

Re: [PATCH 0/7] media: atomisp: Address several clang warnings

2020-05-27 Thread Nathan Chancellor
On Wed, May 27, 2020 at 10:45:25AM +0200, Mauro Carvalho Chehab wrote: > Em Wed, 27 May 2020 00:11:43 -0700 > Nathan Chancellor escreveu: > > > Hi all, > > > > This series aims to clean up the code while addressing the majority of > > clang warnings in this d

[PATCH 7/7] media: atomisp: Remove binary_supports_input_format

2020-05-27 Thread Nathan Chancellor
nfo is not NULL so this function actually serves no purpose. Remove it. It can be brought back if needed later. Link: https://github.com/ClangBuiltLinux/linux/issues/1036 Signed-off-by: Nathan Chancellor --- .../atomisp/pci/runtime/binary/src/binary.c | 21 --- 1 file changed,

[PATCH 6/7] media: atomisp: Avoid overflow in compute_blending

2020-05-27 Thread Nathan Chancellor
to ever overflow, clang would warn: https://godbolt.org/z/EeSxLG Link: https://github.com/ClangBuiltLinux/linux/issues/1036 Signed-off-by: Nathan Chancellor --- .../atomisp/pci/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 5/7] media: atomisp: Remove unnecessary NULL check in atomisp_param

2020-05-27 Thread Nathan Chancellor
nsures that the user is not giving us an invalid pointer through copy_from_user. If config is not NULL, info cannot be NULL. Remove this check. Link: https://github.com/ClangBuiltLinux/linux/issues/1036 Signed-off-by: Nathan Chancellor --- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 5 --

[PATCH 3/7] media: atomisp: Add stub for atomisp_mrfld_power

2020-05-27 Thread Nathan Chancellor
the FIXME comment intact, and creating an atomisp_mrfld_power stub function that just returns 0. Fixes: 95d1f398c4dc ("media: atomisp: keep the ISP powered on when setting it") Link: https://github.com/ClangBuiltLinux/linux/issues/1036 Signed-off-by: Nathan Chancellor --- drivers/sta

[PATCH 1/7] media: atomisp: Clean up if block in sh_css_sp_init_stage

2020-05-27 Thread Nathan Chancellor
verything. Link: https://github.com/ClangBuiltLinux/linux/issues/1036 Reported-by: kbuild test robot Signed-off-by: Nathan Chancellor --- drivers/staging/media/atomisp/pci/sh_css_sp.c | 27 +++ 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/drivers/staging/m

[PATCH 4/7] media: atomisp: Remove unnecessary NULL checks in ia_css_pipe_load_extension

2020-05-27 Thread Nathan Chancellor
ULL and pipe is already checked for NULL in this function. Simplify this if block. Link: https://github.com/ClangBuiltLinux/linux/issues/1036 Signed-off-by: Nathan Chancellor --- drivers/staging/media/atomisp/pci/sh_css.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --g

[PATCH 0/7] media: atomisp: Address several clang warnings

2020-05-27 Thread Nathan Chancellor
Hi all, This series aims to clean up the code while addressing the majority of clang warnings in this driver, some found by the 0day bot and others found by me. There are several enum conversion warnings that happen, which I do not really know how to solve without understanding how exactly this

[PATCH 2/7] media: atomisp: Remove second increment of count in atomisp_subdev_probe

2020-05-27 Thread Nathan Chancellor
/ClangBuiltLinux/linux/issues/1036 Reported-by: kbuild test robot Signed-off-by: Nathan Chancellor --- drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci

Re: [PATCH] staging: exfat: fix uninitialized variable ret

2019-09-02 Thread Nathan Chancellor
note: remove the 'if' if its condition is always true if (p_fs->dev_ejected) ^~ drivers/staging/exfat/exfat_super.c:776:9: note: initialize the variable 'ret' to silence this warning int ret; ^ = 0

Re: [PATCH v2] net: mdio-octeon: Fix Kconfig warnings and build errors

2019-08-06 Thread Nathan Chancellor
On Tue, Aug 06, 2019 at 02:11:33PM -0700, David Miller wrote: > From: Nathan Chancellor > Date: Fri, 2 Aug 2019 23:01:56 -0700 > > > After commit 171a9bae68c7 ("staging/octeon: Allow test build on > > !MIPS"), the following combination of configs cause a few

Re: [PATCH] net: mdio-octeon: Fix build error and Kconfig warning

2019-08-03 Thread Nathan Chancellor
On Fri, Aug 02, 2019 at 06:39:52PM -0700, Matthew Wilcox wrote: > On Fri, Aug 02, 2019 at 06:30:31PM -0700, Nathan Chancellor wrote: > > On Fri, Aug 02, 2019 at 06:11:32PM -0700, David Miller wrote: > > > The proper way to fix this is to include either > > > > >

[PATCH v2] net: mdio-octeon: Fix Kconfig warnings and build errors

2019-08-03 Thread Nathan Chancellor
F_MDIO is not needed when CONFIG_COMPILE_TEST is enabled because of commit f9dc9ac51610 ("of/mdio: Add dummy functions in of_mdio.h."). Fixes: 171a9bae68c7 ("staging/octeon: Allow test build on !MIPS") Reported-by: kbuild test robot Reported-by: Mark Brown Reported-by: Randy Dun

Re: [PATCH] net: mdio-octeon: Fix build error and Kconfig warning

2019-08-02 Thread Nathan Chancellor
On Fri, Aug 02, 2019 at 06:11:32PM -0700, David Miller wrote: > From: Nathan Chancellor > Date: Wed, 31 Jul 2019 11:50:24 -0700 > > > arm allyesconfig warns: > > > > WARNING: unmet direct dependencies detected for MDIO_OCTEON > > Depends on [n]: NETDEVICES [=y

[PATCH] net: mdio-octeon: Fix build error and Kconfig warning

2019-07-31 Thread Nathan Chancellor
-Wpointer-to-int-cast warnings that appeared as a result of commit 171a9bae68c7 ("staging/octeon: Allow test build on !MIPS") in these files. Fixes: 171a9bae68c7 ("staging/octeon: Allow test build on !MIPS") Reported-by: kbuild test robot Reported-by: Mark Brown Reported-by:

Re: next/master build: 221 builds: 11 failed, 210 passed, 13 errors, 1174 warnings (next-20190731)

2019-07-31 Thread Nathan Chancellor
On Wed, Jul 31, 2019 at 06:00:43PM +0200, Greg KH wrote: > On Wed, Jul 31, 2019 at 08:48:24AM -0700, David Miller wrote: > > From: Greg Kroah-Hartman > > Date: Wed, 31 Jul 2019 13:35:22 +0200 > > > > > On Wed, Jul 31, 2019 at 12:24:41PM +0100, Mark Brown wrote: > > >> On Wed, Jul 31, 2019 at

Re: [PATCH] staging: rtl8192u: Remove an unnecessary NULL check

2019-05-22 Thread Nathan Chancellor
On Wed, May 22, 2019 at 10:04:18AM +0300, Dan Carpenter wrote: > On Tue, May 21, 2019 at 10:42:21AM -0700, Nathan Chancellor wrote: > > Clang warns: > > > > drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:2663:47: warning: > > address of array 'param->u.wpa

[PATCH] staging: rtl8192u: Remove an unnecessary NULL check

2019-05-21 Thread Nathan Chancellor
ve it so clang no longer warns. Link: https://github.com/ClangBuiltLinux/linux/issues/487 Signed-off-by: Nathan Chancellor --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_sof

[PATCH] staging: kpc2000: kpc_spi: Fix build error for {read,write}q

2019-05-02 Thread Nathan Chancellor
as commit 91b6cb7216cd ("staging: kpc2000: fix up build problems with readq()"). Signed-off-by: Nathan Chancellor --- drivers/staging/kpc2000/kpc_spi/spi_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/kpc2000/kpc_spi/spi_driver.c b/drivers/staging/kpc20

[PATCH] staging: kpc2000: Use memset to initialize resources

2019-04-24 Thread Nathan Chancellor
/lkml/022e41c0-8465-dc7a-a45c-64187ecd9...@amd.com/ [2]: https://lore.kernel.org/lkml/20181128.215241.702406654469517539.da...@davemloft.net/ Link: https://github.com/ClangBuiltLinux/linux/issues/455 Signed-off-by: Nathan Chancellor --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 12

[PATCH] staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx

2019-02-20 Thread Nathan Chancellor
github.com/ClangBuiltLinux/linux/issues/375 Signed-off-by: Nathan Chancellor --- drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_func_88xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_func_88xx.c b/drivers/staging/rtlw

[PATCH v2] staging: rtl8723bs: Fix build error with Clang when inlining is disabled

2019-01-16 Thread Nathan Chancellor
ure these functions are always defined, regardless of inlining. Additionally, silence a checkpatch warning by switching from '__inline' to 'inline'. Signed-off-by: Nathan Chancellor --- v1 -> v2: * Don't add __always_inline. drivers/staging/rtl8723bs/include/ieee80211.h | 6 +++--- 1

Re: [PATCH] staging: rtl8723bs: Fix build error with Clang when inlining is disabled

2019-01-16 Thread Nathan Chancellor
On Wed, Jan 16, 2019 at 09:46:58AM +0100, Greg Kroah-Hartman wrote: > On Tue, Jan 15, 2019 at 11:53:40PM -0700, Nathan Chancellor wrote: > > On Wed, Jan 16, 2019 at 07:42:02AM +0100, Greg Kroah-Hartman wrote: > > > On Tue, Jan 15, 2019 at 11:03:02PM -0700, Nathan Chancellor w

Re: [PATCH] staging: rtl8723bs: Fix build error with Clang when inlining is disabled

2019-01-15 Thread Nathan Chancellor
On Wed, Jan 16, 2019 at 07:42:02AM +0100, Greg Kroah-Hartman wrote: > On Tue, Jan 15, 2019 at 11:03:02PM -0700, Nathan Chancellor wrote: > > When CONFIG_NO_AUTO_INLINE was present in linux-next (which added > > '-fno-inline-functions' to KBUILD_CFLAGS), an allyesconfig build with &

[PATCH] staging: rtl8723bs: Fix build error with Clang when inlining is disabled

2019-01-15 Thread Nathan Chancellor
tic __always_inline' to ensure that these functions are always inlined. Some alternative solutions included 'extern __always_inline' or converting these functions to macros (so the preprocessor deals with them) but I would argue this is the more "standard" solution. Signed-off-by: Nathan Chancellor

[PATCH] staging: emxx_udc: Remove unused device_desc declaration

2018-10-03 Thread Nathan Chancellor
ing unused is the sizeof function. Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor --- This seems kind of wrong given this is a USB driver but there isn't an instance of a platform_driver in the kernel tree having a usb device descriptor declaration so I'm unsure of how to handle this warning

[PATCH] staging: rtl8723bs: Remove unnecessary parentheses and dead commented code

2018-10-03 Thread Nathan Chancellor
right below this block. Link: https://github.com/ClangBuiltLinux/linux/issues/168 Signed-off-by: Nathan Chancellor --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers

[PATCH] staging: rtlwifi: Remove unnecessary parentheses

2018-10-03 Thread Nathan Chancellor
://github.com/ClangBuiltLinux/linux/issues/172 Signed-off-by: Nathan Chancellor --- drivers/staging/rtlwifi/phydm/phydm_adc_sampling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtlwifi/phydm/phydm_adc_sampling.c b/drivers/staging/rtlwifi/phydm

Re: [PATCH] staging: bcm2835-camera: Avoid unneeded internal declaration warning

2018-09-28 Thread Nathan Chancellor
On Fri, Sep 28, 2018 at 10:04:29AM +0100, Dave Stevenson wrote: > Hi Nate > > Thanks for the patch. > > On Fri, 28 Sep 2018 at 01:53, Nathan Chancellor > wrote: > > > > Clang warns: > > > > drivers/staging/vc04_services/bcm2835-camera/controls.c:59:1

[PATCH] staging: bcm2835-camera: Avoid unneeded internal declaration warning

2018-09-27 Thread Nathan Chancellor
V4L2_CID_MPEG_VIDEO_BITRATE_MODE is defined as a MMAL_CONTROL_TYPE_STD_MENU, which does not pass the imenu definition along to v4l2_ctrl_new in bm2835_mmal_init_controls. Link: https://github.com/ClangBuiltLinux/linux/issues/122 Signed-off-by: Nathan Chancellor --- drivers/staging/vc04_services/bcm2835

[PATCH] staging: rtl8188eu: Use proper enum in rtl8188eu_config_rf_reg

2018-09-26 Thread Nathan Chancellor
, RF90_PATH_A, addr | maskforphyset, ~~~^~~ 1 warning generated. Avoid this by using the equivalent value from the expected type, rf_radio_path: RF90_PATH_A = RF_PATH_A = 0 Link: https://github.com/ClangBuiltLinux/linux/issues/164 Signed-off-by: Nathan Chancellor

[PATCH] staging: rtl8723bs: Mark ACPI table declaration as used

2018-09-26 Thread Nathan Chancellor
/staging/rtl8723bs/os_dep/sdio_intf.o | grep acpi 0040 R __mod_acpi__acpi_ids_device_table Link: https://github.com/ClangBuiltLinux/linux/issues/169 Suggested-by: Nick Desaulniers Signed-off-by: Nathan Chancellor --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2

Re: [PATCH] staging: rtl8723bs: Mark ACPI table declaration as maybe unused

2018-09-26 Thread Nathan Chancellor
On Wed, Sep 26, 2018 at 09:13:59AM +0200, Greg Kroah-Hartman wrote: > On Wed, Sep 26, 2018 at 12:02:09AM -0700, Nathan Chancellor wrote: > > Clang emits the following warning: > > > > drivers/staging/rtl8723bs/os_dep/sdio_intf.c:25:36: warning: variable > &g

[PATCH] staging: rtl8723bs: Mark ACPI table declaration as maybe unused

2018-09-26 Thread Nathan Chancellor
. Mark the declaration as maybe unused like a few other instances of this construct in the kernel. Link: https://github.com/ClangBuiltLinux/linux/issues/169 Signed-off-by: Nathan Chancellor --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] staging: rtl8723bs: Remove ACPI table declaration

2018-09-26 Thread Nathan Chancellor
On Wed, Sep 26, 2018 at 08:49:15AM +0200, Greg Kroah-Hartman wrote: > On Tue, Sep 25, 2018 at 11:44:37PM -0700, Nathan Chancellor wrote: > > On Wed, Sep 26, 2018 at 08:22:45AM +0200, Greg Kroah-Hartman wrote: > > > On Tue, Sep 25, 2018 at 10:39:10PM -0700, Nathan Chancellor wr

Re: [PATCH] staging: rtl8723bs: Remove ACPI table declaration

2018-09-26 Thread Nathan Chancellor
On Wed, Sep 26, 2018 at 08:22:45AM +0200, Greg Kroah-Hartman wrote: > On Tue, Sep 25, 2018 at 10:39:10PM -0700, Nathan Chancellor wrote: > > Clang warns that the acpi_id declaration is not going to be emitted > > in the final assembly: > > > > drivers/staging/rtl8723

[PATCH] staging: rtl8723bs: Remove ACPI table declaration

2018-09-25 Thread Nathan Chancellor
anything. Link: https://github.com/ClangBuiltLinux/linux/issues/169 Signed-off-by: Nathan Chancellor --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c

Re: [PATCH] staging: rtl8188eu: Simplify memcmp logical checks

2018-09-25 Thread Nathan Chancellor
On Tue, Sep 25, 2018 at 09:07:11PM +0200, Greg Kroah-Hartman wrote: > On Thu, Sep 20, 2018 at 05:22:21PM -0700, Nathan Chancellor wrote: > > Clang generates a warning when it sees a logical not followed by a > > conditional operator like ==, >, or < because it th

[PATCH v2] staging: rtl8188eu: Simplify memcmp logical checks

2018-09-25 Thread Nathan Chancellor
-> if (true) Alternatively: if (!1 == 0) -> if (!!1) -> if (1) Simplify these comparisons so that Clang doesn't complain. Link: https://github.com/ClangBuiltLinux/linux/issues/161 Signed-off-by: Nathan Chancellor --- v1 -> v2: * Fix missing parenthesis in last hunk drivers/staging/rtl8

Re: [PATCH] staging: rtlwifi: Use proper enumerated types for Wi-Fi only interface

2018-09-23 Thread Nathan Chancellor
On Fri, Sep 21, 2018 at 03:12:02PM -0700, Nathan Chancellor wrote: > Clang warns when one enumerated type is implicitly converted to another. > > drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c:1264:34: warning: > implicit conversion from enumeration type 'enum btc_chip_interface' to

[PATCH v2] staging: rtlwifi: Use proper enumerated types for Wi-Fi only interface

2018-09-23 Thread Nathan Chancellor
interface. BTC_INTF_UNKNOWN = WIFIONLY_INTF_UNKNOWN = 0 BTC_INTF_PCI = WIFIONLY_INTF_PCI = 1 BTC_INTF_USB = WIFIONLY_INTF_USB = 2 Link: https://github.com/ClangBuiltLinux/linux/issues/171 Signed-off-by: Nathan Chancellor --- v1 -> v2: * Fix enum values in commit message (previously all 0) dri

[PATCH] staging: rtlwifi: Use proper enumerated types for Wi-Fi only interface

2018-09-21 Thread Nathan Chancellor
interface. BTC_INTF_UNKNOWN = WIFIONLY_INTF_UNKNOWN = 0 BTC_INTF_PCI = WIFIONLY_INTF_PCI = 0 BTC_INTF_USB = WIFIONLY_INTF_USB = 0 Link: https://github.com/ClangBuiltLinux/linux/issues/171 Signed-off-by: Nathan Chancellor --- drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c | 6 +++--- 1 file changed, 3 i

[PATCH] staging: rtl8188eu: Remove unnecessary parentheses

2018-09-21 Thread Nathan Chancellor
= Link: https://github.com/ClangBuiltLinux/linux/issues/163 Signed-off-by: Nathan Chancellor --- drivers/staging/rtl8188eu/core/rtw_pwrctrl.c | 2 +- drivers/staging/rtl8188eu/hal/odm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_p

Re: [PATCH] staging: wilc1000: Remove unnecessary pointer check

2018-09-20 Thread Nathan Chancellor
On Fri, Sep 21, 2018 at 01:25:32AM -0400, valdis.kletni...@vt.edu wrote: > On Thu, 20 Sep 2018 14:26:49 -0700, Nathan Chancellor said: > > Clang warns that the address of a pointer will always evaluated as true > > in a boolean context: > > > > drivers/staging/wilc1000/l

[PATCH] staging: rtl8188eu: Simplify memcmp logical checks

2018-09-20 Thread Nathan Chancellor
-> if (true) Alternatively: if (!1 == 0) -> if (!!1) -> if (1) Simplify these comparisons so that Clang doesn't complain. Link: https://github.com/ClangBuiltLinux/linux/issues/161 Signed-off-by: Nathan Chancellor --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 2 +- drivers/staging/rtl8

[PATCH] staging: wilc1000: Remove unnecessary pointer check

2018-09-20 Thread Nathan Chancellor
~~~^~~ 1 warning generated. Since this statement always evaluates to false due to the logical not, remove it. Link: https://github.com/ClangBuiltLinux/linux/issues/121 Signed-off-by: Nathan Chancellor --- drivers/staging/wilc1000/linux_wlan.c | 3 --- 1 file changed, 3 deletions(-) diff --g

Re: [PATCH] Trivial numbering change in comments.

2018-08-28 Thread Nathan Chancellor
ersions of the patch or maybe something like "I'm not sure this change is correct, it could also be done via , I'd like some review". Small nits in the grand scheme of things but they'll come in handy as you develop more and more complex patches and series. Reviewed-by: Nathan Chancellor Che

[PATCH] staging: android: ion: Check return value of ion_buffer_kmap_get

2018-05-14 Thread Nathan Chancellor
GCC warns that vaddr is set but unused. Check the return value of ion_buffer_kmap_get to make vaddr useful and make sure everything is properly configured before beginning a DMA. Suggested-by: Laura Abbott <labb...@redhat.com> Signed-off-by: Nathan Chancellor <natechancel...@

Re: [PATCH 3/7] staging: ks7010: Remove unnecessary limit checks

2018-05-14 Thread Nathan Chancellor
On Mon, May 14, 2018 at 04:17:36PM +0300, Dan Carpenter wrote: > On Sun, May 06, 2018 at 03:03:00PM -0700, Nathan Chancellor wrote: > > uwrq is an unsigned 32-bit integer, it cannot be less than zero. > > > > Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> &

[PATCH] staging: ks7010: Remove unused define

2018-05-14 Thread Nathan Chancellor
After commit 6d6612deaf55 ("staging: ks7010: Remove unnecessary limit checks"), this define is not used anywhere. Remove it as well. Suggested-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/ks7

Re: [PATCH 1/7] staging: ks7010: Replace license boilerplate with SPDX identifiers

2018-05-08 Thread Nathan Chancellor
On Tue, May 08, 2018 at 01:43:13PM +0200, Greg Kroah-Hartman wrote: > On Sun, May 06, 2018 at 03:02:58PM -0700, Nathan Chancellor wrote: > > This satisfies a checkpatch.pl warning and is the preferred method for > > notating the license due to its lack of ambiguity. > > >

Re: [PATCH 7/7] staging: ks7010: Move from bool to int in structs

2018-05-08 Thread Nathan Chancellor
On Tue, May 08, 2018 at 01:34:31PM +0200, Greg Kroah-Hartman wrote: > On Sun, May 06, 2018 at 03:03:04PM -0700, Nathan Chancellor wrote: > > Fixes checkpatch.pl warnings. > > > > Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> > > --- > > d

Re: [PATCH 2/7] staging: ks7010: Remove unused variables

2018-05-07 Thread Nathan Chancellor
On Sun, May 06, 2018 at 03:02:59PM -0700, Nathan Chancellor wrote: > GCC warns these variables are all set but never used so remove them. > > Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> > --- > drivers/staging/ks7010/ks_hostif.c | 12 +--- > 1 f

Re: A few questions about warnings in the ion driver

2018-05-07 Thread Nathan Chancellor
On Mon, May 07, 2018 at 06:46:23AM -0700, Laura Abbott wrote: > On 05/06/2018 06:43 PM, Nathan Chancellor wrote: > > Hi everyone, > > > > I compiled the ion driver with W=1 where I encountered the two following > > warnings and I had a couple of questions about so

Re: [PATCH 1/2] staging: android: ion: Fix license identifier comment format

2018-05-07 Thread Nathan Chancellor
On Mon, May 07, 2018 at 06:37:52AM -0700, Laura Abbott wrote: > On 05/06/2018 06:18 PM, Nathan Chancellor wrote: > > checkpatch.pl complains these are invalid because the rules in > > Documentation/process/license-rules.rst state that C headers should > > have &

A few questions about warnings in the ion driver

2018-05-06 Thread Nathan Chancellor
whole file fixes this warning; is there still a need to rework them or can they be removed? If any part of this email was formatted incorrectly or could be done better, please let me know! Thank you, Nathan Chancellor ___

[PATCH 2/2] staging: android: ion: Remove unnecessary blank line

2018-05-06 Thread Nathan Chancellor
Fixes a checkpatch.pl warning. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/android/ion/ion.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 269a431646be..d10b60fe4a29

[PATCH 1/2] staging: android: ion: Fix license identifier comment format

2018-05-06 Thread Nathan Chancellor
checkpatch.pl complains these are invalid because the rules in Documentation/process/license-rules.rst state that C headers should have "/* */" style comments. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/android/ion/ion.h | 2 +- drivers/stag

[PATCH 4/6] staging: android: vsoc: Fix ending '(' warnings in do_destroy_fd_scoped_permission

2018-05-06 Thread Nathan Chancellor
Fixes checkpatch.pl warnings about lines ending with parentheses. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/android/vsoc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/vsoc.c b/drivers/staging/android/

[PATCH 6/6] staging: android: vsoc: Fix ending '(' warnings in vsoc_probe_device

2018-05-06 Thread Nathan Chancellor
Fixes checkpatch.pl warnings about lines ending with parentheses. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/android/vsoc.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/staging/android/vsoc.c b/d

[PATCH 5/6] staging: android: vsoc: Fix ending '(' warnings in vsoc_ioctl

2018-05-06 Thread Nathan Chancellor
Fixes checkpatch.pl warnings about lines ending with parentheses. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/android/vsoc.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/staging/android/vs

[PATCH 1/6] staging: android: Kconfig; Remove excessive hyphens

2018-05-06 Thread Nathan Chancellor
Fixes the following checkpatch.pl warning: "prefer 'help' over '---help---' for new help texts" Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/android/Kconfig | 4 ++-- drivers/staging/android/ion/Kconfig | 2 +- 2 files changed, 3 insertions

[PATCH 6/7] staging: ks7010: Adjust alignment to open parenthesis

2018-05-06 Thread Nathan Chancellor
Fixes a checkpatch.pl warning. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/ks7010/ks_hostif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 094f8c

[PATCH 3/7] staging: ks7010: Remove unnecessary limit checks

2018-05-06 Thread Nathan Chancellor
uwrq is an unsigned 32-bit integer, it cannot be less than zero. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/ks7010/ks_wlan_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/s

[PATCH 7/7] staging: ks7010: Move from bool to int in structs

2018-05-06 Thread Nathan Chancellor
Fixes checkpatch.pl warnings. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/ks7010/ks_hostif.c | 4 ++-- drivers/staging/ks7010/ks_wlan.h | 4 ++-- drivers/staging/ks7010/ks_wlan_net.c | 8 3 files changed, 8 insertions(+), 8 deletions(-)

[PATCH 4/7] staging: ks7010: Adjust spacing around functions and declarations

2018-05-06 Thread Nathan Chancellor
checkpatch.pl warns about too many or not enough spaces in these locations. Adjust them accordingly. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/ks7010/ks7010_sdio.c | 1 - drivers/staging/ks7010/ks_hostif.c | 2 +- drivers/staging/ks7010/michael_mic

[PATCH 1/7] staging: ks7010: Replace license boilerplate with SPDX identifiers

2018-05-06 Thread Nathan Chancellor
This satisfies a checkpatch.pl warning and is the preferred method for notating the license due to its lack of ambiguity. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/ks7010/ks7010_sdio.c | 5 + drivers/staging/ks7010/ks7010_sdio.h | 5 + d

[PATCH 5/7] staging: ks7010: Remove unnecessary parentheses

2018-05-06 Thread Nathan Chancellor
Fixes checkpatch.pl warnings. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/ks7010/ks_hostif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index a28337

[PATCH 2/7] staging: ks7010: Remove unused variables

2018-05-06 Thread Nathan Chancellor
GCC warns these variables are all set but never used so remove them. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/ks7010/ks_hostif.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/d

[PATCH 1/3] staging: wilc1000: Remove unused variables

2018-05-06 Thread Nathan Chancellor
GCC warns these variables are all set but never used so remove them. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 12 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 -- 2 files changed, 18 del

[PATCH 2/3] staging: wilc1000: Remove useless function

2018-05-06 Thread Nathan Chancellor
GCC warns that 'wid' is unused in wilc_remove_key and it's correct; the variable is only local. Get rid of the function (since it just returns zero) and shuffle the remaining code into one if statement. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/wi

[PATCH 3/3] staging: wilc1000: Remove unnecessary array index check

2018-05-06 Thread Nathan Chancellor
This statment triggers GCC's -Wtype-limit since key_index is an unsigned integer so it cannot be less than zero. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] staging: greybus: Remove unused local variable

2018-05-06 Thread Nathan Chancellor
Fixes the following W=1 warning: variable ‘intf_id’ set but not used [-Wunused-but-set-variable] Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/greybus/svc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/greybus/svc.c b/drivers/s

[PATCH] staging: board: Replace license boilerplate with SPDX identifiers

2018-05-05 Thread Nathan Chancellor
This satisfies a checkpatch.pl warning and is the preferred method for notating the license due to its lack of ambiguity. Signed-off-by: Nathan Chancellor <natechancel...@gmail.com> --- drivers/staging/board/armadillo800eva.c | 10 +- drivers/staging/board/board.c | 5 +-

Re: [PATCH] staging: android: ashmem: Remove deadlock

2018-03-07 Thread Nathan Chancellor
> pin.len = PAGE_ALIGN(asma->size) - pin.offset; > -- > 2.16.2.395.g2e18187dfd-goog > Hey Paul, Looks like this same patch is already in Greg's tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/commit/?id=740a5759bf222332fbb5eda42f89aa25ba38f9b2 Cheers! Nathan Chancellor ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel