Re: [PATCH V2] staging: ccree: Fix format/argument mismatches
Hi Joe, [auto build test WARNING on staging/staging-testing] [also build test WARNING on next-20170803] [cannot apply to v4.13-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Joe-Perches/staging-ccree-Fix-format-argument-mismatches/20170731-191055 config: m32r-allmodconfig (attached as .config) compiler: m32r-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=m32r All warnings (new ones prefixed by >>): In file included from include/linux/kernel.h:13:0, from drivers/staging/ccree/ssi_driver.c:17: drivers/staging/ccree/ssi_driver.c: In function 'init_cc_regs': >> drivers/staging/ccree/ssi_driver.c:180:16: warning: format '%X' expects >> argument of type 'unsigned int', but argument 2 has type 'long unsigned int' >> [-Wformat=] SSI_LOG_DEBUG("AXIM_CFG=0x%08X\n", CC_HAL_READ_REGISTER(CC_REG_OFFSET(CRY_KERNEL, AXIM_CFG))); ^ include/linux/printk.h:136:11: note: in definition of macro 'no_printk' printk(fmt, ##__VA_ARGS__); \ ^~~ >> drivers/staging/ccree/ssi_driver.c:180:2: note: in expansion of macro >> 'SSI_LOG_DEBUG' SSI_LOG_DEBUG("AXIM_CFG=0x%08X\n", CC_HAL_READ_REGISTER(CC_REG_OFFSET(CRY_KERNEL, AXIM_CFG))); ^ In file included from drivers/staging/ccree/ssi_driver.c:64:0: drivers/staging/ccree/ssi_driver.c: In function 'init_cc_resources': include/linux/kern_levels.h:4:18: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ drivers/staging/ccree/ssi_driver.h:95:9: note: in definition of macro 'SSI_LOG' printk(level "cc715ree::%s: " format, __func__, ##__VA_ARGS__) ^ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~ drivers/staging/ccree/ssi_driver.c:319:10: note: in expansion of macro 'KERN_INFO' SSI_LOG(KERN_INFO, "ARM CryptoCell %s Driver: HW version 0x%08X, Driver version %s\n", SSI_DEV_NAME_STR, ^ vim +180 drivers/staging/ccree/ssi_driver.c abefd674 Gilad Ben-Yossef 2017-04-23 @17 #include abefd674 Gilad Ben-Yossef 2017-04-23 18 #include abefd674 Gilad Ben-Yossef 2017-04-23 19 abefd674 Gilad Ben-Yossef 2017-04-23 20 #include abefd674 Gilad Ben-Yossef 2017-04-23 21 #include abefd674 Gilad Ben-Yossef 2017-04-23 22 #include abefd674 Gilad Ben-Yossef 2017-04-23 23 #include fe0a1951 Gilad Ben-Yossef 2017-04-23 24 #include abefd674 Gilad Ben-Yossef 2017-04-23 25 #include abefd674 Gilad Ben-Yossef 2017-04-23 26 #include 302ef8eb Gilad Ben-Yossef 2017-04-23 27 #include abefd674 Gilad Ben-Yossef 2017-04-23 28 abefd674 Gilad Ben-Yossef 2017-04-23 29 #include abefd674 Gilad Ben-Yossef 2017-04-23 30 #include abefd674 Gilad Ben-Yossef 2017-04-23 31 #include abefd674 Gilad Ben-Yossef 2017-04-23 32 #include abefd674 Gilad Ben-Yossef 2017-04-23 33 #include abefd674 Gilad Ben-Yossef 2017-04-23 34 #include abefd674 Gilad Ben-Yossef 2017-04-23 35 #include abefd674 Gilad Ben-Yossef 2017-04-23 36 #include abefd674 Gilad Ben-Yossef 2017-04-23 37 #include abefd674 Gilad Ben-Yossef 2017-04-23 38 #include abefd674 Gilad Ben-Yossef 2017-04-23 39 #include abefd674 Gilad Ben-Yossef 2017-04-23 40 #include abefd674 Gilad Ben-Yossef 2017-04-23 41 #include abefd674 Gilad Ben-Yossef 2017-04-23 42 #include abefd674 Gilad Ben-Yossef 2017-04-23 43 #include abefd674 Gilad Ben-Yossef 2017-04-23 44 #include abefd674 Gilad Ben-Yossef 2017-04-23 45 #include abefd674 Gilad Ben-Yossef 2017-04-23 46 #include abefd674 Gilad Ben-Yossef 2017-04-23 47 #include abefd674 Gilad Ben-Yossef 2017-04-23 48 #include abefd674 Gilad Ben-Yossef 2017-04-23 49 #include abefd674 Gilad Ben-Yossef 2017-04-23 50 #include abefd674 Gilad Ben-Yossef 2017-04-23 51 abefd674 Gilad Ben-Yossef 2017-04-23 52 /* cache.h required for L1_CACHE_ALIGN() and cache_line_size() */ abefd674 Gilad Ben-Yossef 2017-04-23 53 #include abefd674 Gilad Ben-Yossef 2017-04-23 54 #include abefd674 Gilad Ben-Yossef 2017-04-23 55 #include abefd674 Gilad Ben-Yossef 2017-04-23 56 #include abefd674 Gilad Ben-Yossef 2017-04-23 57 #include abefd674 Gilad Ben-Yossef 2017-04-23 58 #incl
[PATCH] staging: lustre: obd: make echo_lock_ops const
Declare echo_lock_ops object of type cl_lock_operations as const as it is only passed to the function cl_lock_slice_add. The corresponding argument is of type const, so make the object const. Signed-off-by: Bhumika Goyal --- drivers/staging/lustre/lustre/obdecho/echo_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/obdecho/echo_client.c b/drivers/staging/lustre/lustre/obdecho/echo_client.c index 1c4a8fe..b3fbc3c 100644 --- a/drivers/staging/lustre/lustre/obdecho/echo_client.c +++ b/drivers/staging/lustre/lustre/obdecho/echo_client.c @@ -319,7 +319,7 @@ static void echo_lock_fini(const struct lu_env *env, kmem_cache_free(echo_lock_kmem, ecl); } -static struct cl_lock_operations echo_lock_ops = { +static const struct cl_lock_operations echo_lock_ops = { .clo_fini = echo_lock_fini, }; -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] staging: vboxvideo: select DRM_TTM
Hi, On 01-08-17 20:05, Cihangir Akturk wrote: vboxvideo code uses various ttm_* functions, so it needs "drivers/gpu/drm/ttm/*" to be built. In order to build these objects select DRM_TTM. This commit fixes "ttm_*" undefined build errors. Signed-off-by: Cihangir Akturk Thank you for doing this, I had this on my todo list but I was travelling: Acked-by: Hans de Goede Regards, Hans --- drivers/staging/vboxvideo/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/vboxvideo/Kconfig b/drivers/staging/vboxvideo/Kconfig index f89f931..1f4182e 100644 --- a/drivers/staging/vboxvideo/Kconfig +++ b/drivers/staging/vboxvideo/Kconfig @@ -2,6 +2,7 @@ config DRM_VBOXVIDEO tristate "Virtual Box Graphics Card" depends on DRM && X86 && PCI select DRM_KMS_HELPER + select DRM_TTM select GENERIC_ALLOCATOR help This is a KMS driver for the virtual Graphics Card used in ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH v2 0/4] staging: pi433: Rename camel case and other style issues
Hi, This series pf patches solves some of the coding style issues. I have corrected long lines, changed comment style, renamed enums and variables that were in camel case. Tried to get zero erros and warnings on the pi433_if.h file. Regards, Rishabh Hardas Rishabh Hardas (4): staging: pi433: Style fix - Correct long lines staging: pi433: Change Comments staging: pi433: Renaming Enums staging: pi433: Remove camel case variable names drivers/staging/pi433/pi433_if.c | 4 +-- drivers/staging/pi433/pi433_if.h | 73 +-- drivers/staging/pi433/rf69.c | 26 +++--- drivers/staging/pi433/rf69.h | 26 +++--- drivers/staging/pi433/rf69_enum.h | 16 - 5 files changed, 76 insertions(+), 69 deletions(-) -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH v2 1/4] staging: pi433: Style fix - Correct long lines
Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.h | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index e6ed3cd..91e4a01 100644 --- a/drivers/staging/pi433/pi433_if.h +++ b/drivers/staging/pi433/pi433_if.h @@ -33,14 +33,13 @@ #include "rf69_enum.h" /*---*/ - - /*---*/ /* IOCTL structs and commands */ /** - * struct pi433_tx_config - describes the configuration of the radio module for sending + * struct pi433_tx_config - describes the configuration of the radio module for + * sending * @frequency: * @bit_rate: * @modulation: @@ -57,9 +56,8 @@ * * NOTE: struct layout is the same in 64bit and 32bit userspace. */ -#define PI433_TX_CFG_IOCTL_NR 0 -struct pi433_tx_cfg -{ +#define PI433_TX_CFG_IOCTL_NR 0 +struct pi433_tx_cfg { __u32 frequency; __u16 bit_rate; __u32 dev_frequency; @@ -90,7 +88,8 @@ struct pi433_tx_cfg /** - * struct pi433_rx_config - describes the configuration of the radio module for sending + * struct pi433_rx_config - describes the configuration of the radio module for + * sending * @frequency: * @bit_rate: * @modulation: @@ -107,7 +106,7 @@ struct pi433_tx_cfg * * NOTE: struct layout is the same in 64bit and 32bit userspace. */ -#define PI433_RX_CFG_IOCTL_NR 1 +#define PI433_RX_CFG_IOCTL_NR 1 struct pi433_rx_cfg { __u32 frequency; __u16 bit_rate; @@ -143,10 +142,13 @@ struct pi433_rx_cfg { #define PI433_IOC_MAGIC'r' -#define PI433_IOC_RD_TX_CFG_IOR(PI433_IOC_MAGIC, PI433_TX_CFG_IOCTL_NR, char[sizeof(struct pi433_tx_cfg)]) -#define PI433_IOC_WR_TX_CFG_IOW(PI433_IOC_MAGIC, PI433_TX_CFG_IOCTL_NR, char[sizeof(struct pi433_tx_cfg)]) - -#define PI433_IOC_RD_RX_CFG_IOR(PI433_IOC_MAGIC, PI433_RX_CFG_IOCTL_NR, char[sizeof(struct pi433_rx_cfg)]) -#define PI433_IOC_WR_RX_CFG_IOW(PI433_IOC_MAGIC, PI433_RX_CFG_IOCTL_NR, char[sizeof(struct pi433_rx_cfg)]) +#define PI433_IOC_RD_TX_CFG_IOR(PI433_IOC_MAGIC, PI433_TX_CFG_IOCTL_NR,\ +char[sizeof(struct pi433_tx_cfg)]) +#define PI433_IOC_WR_TX_CFG_IOW(PI433_IOC_MAGIC, PI433_TX_CFG_IOCTL_NR,\ +char[sizeof(struct pi433_tx_cfg)]) +#define PI433_IOC_RD_RX_CFG_IOR(PI433_IOC_MAGIC, PI433_RX_CFG_IOCTL_NR,\ +char[sizeof(struct pi433_rx_cfg)]) +#define PI433_IOC_WR_RX_CFG_IOW(PI433_IOC_MAGIC, PI433_RX_CFG_IOCTL_NR,\ +char[sizeof(struct pi433_rx_cfg)]) #endif /* PI433_H */ -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH v2 4/4] staging: pi433: Remove camel case variable names
Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.c | 4 ++-- drivers/staging/pi433/pi433_if.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index ed737f4..11c042b 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -192,7 +192,7 @@ struct pi433_instance { SET_CHECKED(rf69_set_modulation (dev->spi, rx_cfg->modulation)); SET_CHECKED(rf69_set_antenna_impedance (dev->spi, rx_cfg->antenna_impedance)); SET_CHECKED(rf69_set_rssi_threshold (dev->spi, rx_cfg->rssi_threshold)); - SET_CHECKED(rf69_set_ook_threshold_dec (dev->spi, rx_cfg->thresholdDecrement)); + SET_CHECKED(rf69_set_ook_threshold_dec (dev->spi, rx_cfg->threshold_decrement)); SET_CHECKED(rf69_set_bandwidth (dev->spi, rx_cfg->bw_mantisse, rx_cfg->bw_exponent)); SET_CHECKED(rf69_set_bandwidth_during_afc(dev->spi, rx_cfg->bw_mantisse, rx_cfg->bw_exponent)); SET_CHECKED(rf69_set_dagc(dev->spi, rx_cfg->dagc)); @@ -254,7 +254,7 @@ struct pi433_instance { SET_CHECKED(rf69_set_modulation (dev->spi, tx_cfg->modulation)); SET_CHECKED(rf69_set_deviation (dev->spi, tx_cfg->dev_frequency)); SET_CHECKED(rf69_set_pa_ramp(dev->spi, tx_cfg->pa_ramp)); - SET_CHECKED(rf69_set_modulation_shaping(dev->spi, tx_cfg->modShaping)); + SET_CHECKED(rf69_set_modulation_shaping(dev->spi, tx_cfg->mod_shaping)); SET_CHECKED(rf69_set_tx_start_condition(dev->spi, tx_cfg->tx_start_condition)); /* packet format enable */ diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index 2929de0..7f57e7d 100644 --- a/drivers/staging/pi433/pi433_if.h +++ b/drivers/staging/pi433/pi433_if.h @@ -62,7 +62,7 @@ struct pi433_tx_cfg { __u16 bit_rate; __u32 dev_frequency; enum modulation modulation; - enum mod_shapingmodShaping; + enum mod_shapingmod_shaping; enum pa_ramppa_ramp; @@ -114,8 +114,8 @@ struct pi433_rx_cfg { __u8rssi_threshold; - enum threshold_decrementthresholdDecrement; - enum antenna_impedance antenna_impedance; + enum threshold_decrementthreshold_decrement; + enum antenna_impedance antenna_impedance; enum lna_gain lna_gain; enum mantisse bw_mantisse;/* normal: 0x50 */ __u8bw_exponent;/* during AFC: 0x8b */ -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH v2 3/4] staging: pi433: Renaming Enums
Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.h | 36 drivers/staging/pi433/rf69.c | 26 +- drivers/staging/pi433/rf69.h | 26 +- drivers/staging/pi433/rf69_enum.h | 16 4 files changed, 50 insertions(+), 54 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index 84032f3..2929de0 100644 --- a/drivers/staging/pi433/pi433_if.h +++ b/drivers/staging/pi433/pi433_if.h @@ -62,21 +62,20 @@ struct pi433_tx_cfg { __u16 bit_rate; __u32 dev_frequency; enum modulation modulation; - enum modShaping modShaping; + enum mod_shapingmodShaping; - enum paRamp pa_ramp; + enum pa_ramppa_ramp; - enum txStartCondition tx_start_condition; + enum tx_start_condition tx_start_condition; __u16 repetitions; - /* packet format */ - enum optionOnOffenable_preamble; - enum optionOnOffenable_sync; - enum optionOnOffenable_length_byte; - enum optionOnOffenable_address_byte; - enum optionOnOffenable_crc; + enum option_on_off enable_preamble; + enum option_on_off enable_sync; + enum option_on_off enable_length_byte; + enum option_on_off enable_address_byte; + enum option_on_off enable_crc; __u16 preamble_length; __u8sync_length; @@ -86,7 +85,6 @@ struct pi433_tx_cfg { __u8address_byte; }; - /** * struct pi433_rx_config - describes the configuration of the radio module for * sending @@ -115,25 +113,24 @@ struct pi433_rx_cfg { enum modulation modulation; __u8rssi_threshold; - enum thresholdDecrement thresholdDecrement; - enum antennaImpedance antenna_impedance; - enum lnaGainlna_gain; + + enum threshold_decrementthresholdDecrement; + enum antenna_impedance antenna_impedance; + enum lna_gain lna_gain; enum mantisse bw_mantisse;/* normal: 0x50 */ __u8bw_exponent;/* during AFC: 0x8b */ enum dagc dagc; - - /* packet format */ - enum optionOnOffenable_sync; - enum optionOnOffenable_length_byte; /* should be used in + enum option_on_off enable_sync; + enum option_on_off enable_length_byte; /* should be used in * combination with * sync, only */ - enum addressFiltering enable_address_filtering; /* operational + enum address_filtering enable_address_filtering; /* operational * with sync, only */ - enum optionOnOffenable_crc; /* only operational, + enum option_on_off enable_crc; /* only operational, *if sync on and fixed * length or length * byte is used @@ -148,7 +145,6 @@ struct pi433_rx_cfg { __u8broadcast_address; }; - #define PI433_IOC_MAGIC'r' #define PI433_IOC_RD_TX_CFG_IOR(PI433_IOC_MAGIC, PI433_TX_CFG_IOCTL_NR,\ diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index f83523e..b7b8c7c 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -109,7 +109,7 @@ enum modulation rf69_get_modulation(struct spi_device *spi) } } -int rf69_set_modulation_shaping(struct spi_device *spi, enum modShaping modShaping) +int rf69_set_modulation_shaping(struct spi_device *spi, enum mod_shaping modShaping) { #ifdef DEBUG dev_dbg(&spi->dev, "set: mod shaping"); @@ -264,7 +264,7 @@ int rf69_set_frequency(struct spi_device *spi, u32 frequency) return 0; } -int rf69_set_amplifier_0(struct spi_device *spi, enum optionOnOff optionOnOff) +int rf69_set_amplifier_0(struct spi_device *spi, enum option_on_off optionOnOff) { #ifdef DEBUG dev_dbg(&spi->dev, "set: amp #0"); @@ -277,7 +277,7 @@ int rf69_set_amplifier_0(struct spi_device *spi, enum optionOnOff optionOnOff) } } -int rf69_set_amplifier_1(struct spi_device *spi, enum optionOnOff optionOnOff) +int rf69_set_amplifier_1(struct spi_device *spi, enum option_on_off option
[PATCH v2 2/4] staging: pi433: Change Comments
Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.h | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index 91e4a01..84032f3 100644 --- a/drivers/staging/pi433/pi433_if.h +++ b/drivers/staging/pi433/pi433_if.h @@ -126,9 +126,18 @@ struct pi433_rx_cfg { /* packet format */ enum optionOnOffenable_sync; - enum optionOnOffenable_length_byte; /* should be used in combination with sync, only */ - enum addressFiltering enable_address_filtering; /* operational with sync, only */ - enum optionOnOffenable_crc; /* only operational, if sync on and fixed length or length byte is used */ + enum optionOnOffenable_length_byte; /* should be used in + * combination with + * sync, only + */ + enum addressFiltering enable_address_filtering; /* operational + * with sync, only + */ + enum optionOnOffenable_crc; /* only operational, + *if sync on and fixed + * length or length + * byte is used + */ __u8sync_length; __u8fixed_message_length; -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH 29/29] staging: vboxvideo: switch to drm_*{get,put} helpers
drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() adn should not be used by new code. So convert all users of compatibility functions to use the new APIs. Signed-off-by: Cihangir Akturk --- drivers/staging/vboxvideo/vbox_fb.c | 2 +- drivers/staging/vboxvideo/vbox_main.c | 8 drivers/staging/vboxvideo/vbox_mode.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vboxvideo/vbox_fb.c b/drivers/staging/vboxvideo/vbox_fb.c index 35f6d9f..3c09aa4 100644 --- a/drivers/staging/vboxvideo/vbox_fb.c +++ b/drivers/staging/vboxvideo/vbox_fb.c @@ -358,7 +358,7 @@ void vbox_fbdev_fini(struct drm_device *dev) vbox_bo_unpin(bo); vbox_bo_unreserve(bo); } - drm_gem_object_unreference_unlocked(afb->obj); + drm_gem_object_put_unlocked(afb->obj); afb->obj = NULL; } drm_fb_helper_fini(&fbdev->helper); diff --git a/drivers/staging/vboxvideo/vbox_main.c b/drivers/staging/vboxvideo/vbox_main.c index d0c6ec7..80bd039 100644 --- a/drivers/staging/vboxvideo/vbox_main.c +++ b/drivers/staging/vboxvideo/vbox_main.c @@ -40,7 +40,7 @@ static void vbox_user_framebuffer_destroy(struct drm_framebuffer *fb) struct vbox_framebuffer *vbox_fb = to_vbox_framebuffer(fb); if (vbox_fb->obj) - drm_gem_object_unreference_unlocked(vbox_fb->obj); + drm_gem_object_put_unlocked(vbox_fb->obj); drm_framebuffer_cleanup(fb); kfree(fb); @@ -198,7 +198,7 @@ static struct drm_framebuffer *vbox_user_framebuffer_create( err_free_vbox_fb: kfree(vbox_fb); err_unref_obj: - drm_gem_object_unreference_unlocked(obj); + drm_gem_object_put_unlocked(obj); return ERR_PTR(ret); } @@ -472,7 +472,7 @@ int vbox_dumb_create(struct drm_file *file, return ret; ret = drm_gem_handle_create(file, gobj, &handle); - drm_gem_object_unreference_unlocked(gobj); + drm_gem_object_put_unlocked(gobj); if (ret) return ret; @@ -525,7 +525,7 @@ vbox_dumb_mmap_offset(struct drm_file *file, bo = gem_to_vbox_bo(obj); *offset = vbox_bo_mmap_offset(bo); - drm_gem_object_unreference(obj); + drm_gem_object_put(obj); ret = 0; out_unlock: diff --git a/drivers/staging/vboxvideo/vbox_mode.c b/drivers/staging/vboxvideo/vbox_mode.c index a7eea70..61cc397 100644 --- a/drivers/staging/vboxvideo/vbox_mode.c +++ b/drivers/staging/vboxvideo/vbox_mode.c @@ -812,7 +812,7 @@ static int vbox_cursor_set2(struct drm_crtc *crtc, struct drm_file *file_priv, out_unreserve_bo: vbox_bo_unreserve(bo); out_unref_obj: - drm_gem_object_unreference_unlocked(obj); + drm_gem_object_put_unlocked(obj); return ret; } -- 2.7.4 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: media: use relevant lock
The data protected is video_out2 and the lock that is released is &video_out2->dma_queue_lock, so it seems that that lock should be taken as well. Signed-off-by: Julia Lawall --- drivers/staging/media/davinci_vpfe/dm365_resizer.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/davinci_vpfe/dm365_resizer.c b/drivers/staging/media/davinci_vpfe/dm365_resizer.c index 857b0e8..4910cb7 100644 --- a/drivers/staging/media/davinci_vpfe/dm365_resizer.c +++ b/drivers/staging/media/davinci_vpfe/dm365_resizer.c @@ -1059,7 +1059,7 @@ static void resizer_ss_isr(struct vpfe_resizer_device *resizer) /* If resizer B is enabled */ if (pipe->output_num > 1 && resizer->resizer_b.output == RESIZER_OUTPUT_MEMORY) { - spin_lock(&video_out->dma_queue_lock); + spin_lock(&video_out2->dma_queue_lock); vpfe_video_process_buffer_complete(video_out2); video_out2->state = VPFE_VIDEO_BUFFER_NOT_QUEUED; vpfe_video_schedule_next_buffer(video_out2); ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] Remove explicit return type cast
On 3 August 2017 at 11:52, kbuild test robot wrote: > Hi Hari, > > [auto build test WARNING on staging/staging-testing] > [also build test WARNING on next-20170802] > [cannot apply to v4.13-rc3] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Hari-Prasath/Remove-explicit-return-type-cast/20170803-080312 > config: blackfin-allyesconfig (attached as .config) > compiler: bfin-uclinux-gcc (GCC) 6.2.0 > reproduce: > wget > https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O > ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > make.cross ARCH=blackfin > >> I tried these steps, it's giving me build error as below. CC security/selinux/exports.o CC security/apparmor/file.o fs/ubifs/lpt_commit.c: In function 'next_pnode_to_dirty': fs/ubifs/lpt_commit.c:617:1: internal compiler error: in bfin_optimize_loop, at config/bfin/bfin.c:3978 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. scripts/Makefile.build:302: recipe for target 'fs/ubifs/lpt_commit.o' failed make[2]: *** [fs/ubifs/lpt_commit.o] Error 1 make[2]: *** Waiting for unfinished jobs > All warnings (new ones prefixed by >>): > >drivers/staging/pi433/pi433_if.c: In function 'DIO0_irq_handler': >>> drivers/staging/pi433/pi433_if.c:154:9: warning: return makes pointer from >>> integer without a cast [-Wint-conversion] > return IRQ_HANDLED; > ^~~ >drivers/staging/pi433/pi433_if.c: In function 'DIO1_irq_handler': >drivers/staging/pi433/pi433_if.c:174:9: warning: return makes pointer from > integer without a cast [-Wint-conversion] > return IRQ_HANDLED; > ^~~ > > vim +154 drivers/staging/pi433/pi433_if.c > >129 >130 /* GPIO interrupt handlers */ >131 static irq_handler_t >132 DIO0_irq_handler(unsigned int irq, void *dev_id, struct pt_regs *regs) >133 { >134 struct pi433_device *device = dev_id; >135 >136 if (device->irq_state[DIO0] == DIO_PacketSent) >137 { >138 device->free_in_fifo = FIFO_SIZE; >139 printk("DIO0 irq: Packet sent\n"); // TODO: printk() > should include KERN_ facility level >140 wake_up_interruptible(&device->fifo_wait_queue); >141 } >142 else if (device->irq_state[DIO0] == DIO_Rssi_DIO0) >143 { >144 printk("DIO0 irq: RSSI level over threshold\n"); >145 wake_up_interruptible(&device->rx_wait_queue); >146 } >147 else if (device->irq_state[DIO0] == DIO_PayloadReady) >148 { >149 printk("DIO0 irq: PayloadReady\n"); >150 device->free_in_fifo = 0; >151 wake_up_interruptible(&device->fifo_wait_queue); >152 } >153 > > 154 return IRQ_HANDLED; >155 } >156 > > --- > 0-DAY kernel test infrastructureOpen Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation -- Regards, G.E.Hari Prasath ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] Remove explicit return type cast
On Thu, Aug 03, 2017 at 06:23:54PM +0530, hari prasath wrote: > On 3 August 2017 at 11:52, kbuild test robot wrote: > > Hi Hari, > > > > [auto build test WARNING on staging/staging-testing] > > [also build test WARNING on next-20170802] > > [cannot apply to v4.13-rc3] > > [if your patch is applied to the wrong git tree, please drop us a note to > > help improve the system] > > > > url: > > https://github.com/0day-ci/linux/commits/Hari-Prasath/Remove-explicit-return-type-cast/20170803-080312 > > config: blackfin-allyesconfig (attached as .config) > > compiler: bfin-uclinux-gcc (GCC) 6.2.0 > > reproduce: > > wget > > https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O > > ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # save the attached .config to linux build tree > > make.cross ARCH=blackfin > > > > >> I tried these steps, it's giving me build error as below. > You don't need to cross compile on blackfin to get the warning. Just use the normal compiler. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH V2] staging: ccree: Fix format/argument mismatches
On Thu, 2017-08-03 at 17:09 +0800, kbuild test robot wrote: > Hi Joe, > > [auto build test WARNING on staging/staging-testing] > [also build test WARNING on next-20170803] > [cannot apply to v4.13-rc3] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] Pretty odd that m32r has ioread32 as _readl and so unsigned long Seems silly to have to cast it. Gilad, is this actually a supported platform for ccree? > url: > https://github.com/0day-ci/linux/commits/Joe-Perches/staging-ccree-Fix-format-argument-mismatches/20170731-191055 > config: m32r-allmodconfig (attached as .config) > compiler: m32r-linux-gcc (GCC) 6.2.0 > reproduce: > wget > https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O > ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > make.cross ARCH=m32r > > All warnings (new ones prefixed by >>): > >In file included from include/linux/kernel.h:13:0, > from drivers/staging/ccree/ssi_driver.c:17: >drivers/staging/ccree/ssi_driver.c: In function 'init_cc_regs': > > > drivers/staging/ccree/ssi_driver.c:180:16: warning: format '%X' expects > > > argument of type 'unsigned int', but argument 2 has type 'long unsigned > > > int' [-Wformat=] > > SSI_LOG_DEBUG("AXIM_CFG=0x%08X\n", > CC_HAL_READ_REGISTER(CC_REG_OFFSET(CRY_KERNEL, AXIM_CFG))); ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] Staging: bcm2048: fix bare use of 'unsigned' in radio-bcm2048.c
This is a patch to the radio-bcm2048.c file that fixes up a warning found by the checkpatch.pl tool. Signed-off-by: Branislav Radocaj --- drivers/staging/media/bcm2048/radio-bcm2048.c | 44 +-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c index 38f72d069e27..bb8956b3d40c 100644 --- a/drivers/staging/media/bcm2048/radio-bcm2048.c +++ b/drivers/staging/media/bcm2048/radio-bcm2048.c @@ -2028,27 +2028,27 @@ static ssize_t bcm2048_##prop##_read(struct device *dev,\ return count; \ } -DEFINE_SYSFS_PROPERTY(power_state, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(mute, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(audio_route, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(dac_output, unsigned, int, "%u", 0) - -DEFINE_SYSFS_PROPERTY(fm_hi_lo_injection, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(fm_frequency, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(fm_af_frequency, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(fm_deemphasis, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(fm_rds_mask, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(fm_best_tune_mode, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(fm_search_rssi_threshold, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(fm_search_mode_direction, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(fm_search_tune_mode, unsigned, int, "%u", value > 3) - -DEFINE_SYSFS_PROPERTY(rds, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(rds_b_block_mask, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(rds_b_block_match, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(rds_pi_mask, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(rds_pi_match, unsigned, int, "%u", 0) -DEFINE_SYSFS_PROPERTY(rds_wline, unsigned, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(power_state, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(mute, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(audio_route, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(dac_output, unsigned int, int, "%u", 0) + +DEFINE_SYSFS_PROPERTY(fm_hi_lo_injection, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(fm_frequency, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(fm_af_frequency, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(fm_deemphasis, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(fm_rds_mask, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(fm_best_tune_mode, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(fm_search_rssi_threshold, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(fm_search_mode_direction, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(fm_search_tune_mode, unsigned int, int, "%u", value > 3) + +DEFINE_SYSFS_PROPERTY(rds, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(rds_b_block_mask, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(rds_b_block_match, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(rds_pi_mask, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(rds_pi_match, unsigned int, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(rds_wline, unsigned int, int, "%u", 0) property_read(rds_pi, unsigned int, "%x") property_str_read(rds_rt, (BCM2048_MAX_RDS_RT + 1)) property_str_read(rds_ps, (BCM2048_MAX_RDS_PS + 1)) @@ -2060,7 +2060,7 @@ property_read(region_bottom_frequency, unsigned int, "%u") property_read(region_top_frequency, unsigned int, "%u") property_signed_read(fm_carrier_error, int, "%d") property_signed_read(fm_rssi, int, "%d") -DEFINE_SYSFS_PROPERTY(region, unsigned, int, "%u", 0) +DEFINE_SYSFS_PROPERTY(region, unsigned int, int, "%u", 0) static struct device_attribute attrs[] = { __ATTR(power_state, 0644, bcm2048_power_state_read, -- 2.11.0 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] Staging: bcm2048: fix bare use of 'unsigned' in radio-bcm2048.c
This breaks the build. Always try to compile your patches. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] staging: lustre: grab the cld->cld_lock mutex unconditionally
> Instead of using the locked variable as a helper to determine the state > of the mutex cld->cld_lock, expand the scope of the recover_cld variable > and assign to the cld->cld_recover variable depending on whether the > value of the recover_cld variable is valid or not. > > As a bonus, code size is slightly reduced. > > before: > textdata bss dec hex filename > 2618822564208 326527f8c > drivers/staging/lustre/lustre/mgc/mgc_request.o > > after: > textdata bss dec hex filename > 2614022564208 326047f5c > drivers/staging/lustre/lustre/mgc/mgc_request.o > > Additionally silences the following warning reported by coccinelle: > > drivers/staging/lustre/lustre/mgc/mgc_request.c:359:2-12: second lock on > line 365 > > Signed-off-by: Cihangir Akturk > --- > drivers/staging/lustre/lustre/mgc/mgc_request.c | 13 - > 1 file changed, 4 insertions(+), 9 deletions(-) > > diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c > b/drivers/staging/lustre/lustre/mgc/mgc_request.c > index eee0b66..6718474 100644 > --- a/drivers/staging/lustre/lustre/mgc/mgc_request.c > +++ b/drivers/staging/lustre/lustre/mgc/mgc_request.c > @@ -288,7 +288,7 @@ config_log_add(struct obd_device *obd, char *logname, > struct config_llog_data *cld; > struct config_llog_data *sptlrpc_cld; > struct config_llog_data *params_cld; > - bool locked = false; > + struct config_llog_data *recover_cld = ERR_PTR(-EINVAL); > charseclogname[32]; > char*ptr; > int rc; Why not just set it to NULL? > @@ -338,8 +338,6 @@ config_log_add(struct obd_device *obd, char *logname, > > LASSERT(lsi->lsi_lmd); > if (!(lsi->lsi_lmd->lmd_flags & LMD_FLG_NOIR)) { > - struct config_llog_data *recover_cld; > - > ptr = strrchr(seclogname, '-'); > if (ptr) { > *ptr = 0; > @@ -355,14 +353,11 @@ config_log_add(struct obd_device *obd, char *logname, > rc = PTR_ERR(recover_cld); > goto out_cld; > } > - > - mutex_lock(&cld->cld_lock); > - locked = true; > - cld->cld_recover = recover_cld; > } > > - if (!locked) > - mutex_lock(&cld->cld_lock); > + mutex_lock(&cld->cld_lock); > + if (!IS_ERR(recover_cld)) Don't need this test if by default recover_cld = NULL. > + cld->cld_recover = recover_cld; > cld->cld_params = params_cld; > cld->cld_sptlrpc = sptlrpc_cld; > mutex_unlock(&cld->cld_lock); > -- > 2.7.4 > > ___ > devel mailing list > de...@linuxdriverproject.org > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel > ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] staging: lustre: grab the cld->cld_lock mutex unconditionally
> > Instead of using the locked variable as a helper to determine the state > > of the mutex cld->cld_lock, expand the scope of the recover_cld variable > > and assign to the cld->cld_recover variable depending on whether the > > value of the recover_cld variable is valid or not. > > > > As a bonus, code size is slightly reduced. > > > > before: > > textdata bss dec hex filename > > 2618822564208 326527f8c > > drivers/staging/lustre/lustre/mgc/mgc_request.o > > > > after: > > textdata bss dec hex filename > > 2614022564208 326047f5c > > drivers/staging/lustre/lustre/mgc/mgc_request.o > > > > Additionally silences the following warning reported by coccinelle: > > > > drivers/staging/lustre/lustre/mgc/mgc_request.c:359:2-12: second lock on > > line 365 > > > > Signed-off-by: Cihangir Akturk > > --- > > drivers/staging/lustre/lustre/mgc/mgc_request.c | 13 - > > 1 file changed, 4 insertions(+), 9 deletions(-) > > > > diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c > > b/drivers/staging/lustre/lustre/mgc/mgc_request.c > > index eee0b66..6718474 100644 > > --- a/drivers/staging/lustre/lustre/mgc/mgc_request.c > > +++ b/drivers/staging/lustre/lustre/mgc/mgc_request.c > > @@ -288,7 +288,7 @@ config_log_add(struct obd_device *obd, char *logname, > > struct config_llog_data *cld; > > struct config_llog_data *sptlrpc_cld; > > struct config_llog_data *params_cld; > > - bool locked = false; > > + struct config_llog_data *recover_cld = ERR_PTR(-EINVAL); > > charseclogname[32]; > > char*ptr; > > int rc; > > Why not just set it to NULL? > > > @@ -338,8 +338,6 @@ config_log_add(struct obd_device *obd, char *logname, > > > > LASSERT(lsi->lsi_lmd); > > if (!(lsi->lsi_lmd->lmd_flags & LMD_FLG_NOIR)) { > > - struct config_llog_data *recover_cld; > > - > > ptr = strrchr(seclogname, '-'); > > if (ptr) { > > *ptr = 0; > > @@ -355,14 +353,11 @@ config_log_add(struct obd_device *obd, char *logname, > > rc = PTR_ERR(recover_cld); > > goto out_cld; > > } > > - > > - mutex_lock(&cld->cld_lock); > > - locked = true; > > - cld->cld_recover = recover_cld; > > } > > > > - if (!locked) > > - mutex_lock(&cld->cld_lock); > > + mutex_lock(&cld->cld_lock); > > + if (!IS_ERR(recover_cld)) > > Don't need this test if by default recover_cld = NULL. > > > + cld->cld_recover = recover_cld; > > cld->cld_params = params_cld; > > cld->cld_sptlrpc = sptlrpc_cld; > > mutex_unlock(&cld->cld_lock); I forgot to mention another reason not to merge this patch. It could lead to future breakage by making people think it is okay to set the cld_ items to ERR_PTR at the start of this function. In the cld_recover case it is last item process but if it wasn't then config_log_put(), which is called in the error path, does not test if it is a err ptr and would blow up. I have a patch that fixes this which I haven't pushed yet. That fix test if cld_XXX is NULL and returns right away. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] staging: lustre: obd: make echo_lock_ops const
> Declare echo_lock_ops object of type cl_lock_operations as const as it > is only passed to the function cl_lock_slice_add. The corresponding > argument is of type const, so make the object const. > Acked-by: James Simmons > Signed-off-by: Bhumika Goyal > --- > drivers/staging/lustre/lustre/obdecho/echo_client.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/lustre/lustre/obdecho/echo_client.c > b/drivers/staging/lustre/lustre/obdecho/echo_client.c > index 1c4a8fe..b3fbc3c 100644 > --- a/drivers/staging/lustre/lustre/obdecho/echo_client.c > +++ b/drivers/staging/lustre/lustre/obdecho/echo_client.c > @@ -319,7 +319,7 @@ static void echo_lock_fini(const struct lu_env *env, > kmem_cache_free(echo_lock_kmem, ecl); > } > > -static struct cl_lock_operations echo_lock_ops = { > +static const struct cl_lock_operations echo_lock_ops = { > .clo_fini = echo_lock_fini, > }; > > -- > 1.9.1 > > ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] staging: lustre: declare fiemap_for_stripe static
> Declare fiemap_for_stripe as static to fix sparse warnings: > > > warning: symbol 'fiemap_for_stripe' was not declared. Should it be > > static? Acked-by: James Simmons > Signed-off-by: David Wittman > --- > drivers/staging/lustre/lustre/lov/lov_object.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/lustre/lustre/lov/lov_object.c > b/drivers/staging/lustre/lustre/lov/lov_object.c > index 8fc0bcc..334ecb1 100644 > --- a/drivers/staging/lustre/lustre/lov/lov_object.c > +++ b/drivers/staging/lustre/lustre/lov/lov_object.c > @@ -1141,11 +1141,11 @@ struct fiemap_state { > boolfs_enough; > }; > > -int fiemap_for_stripe(const struct lu_env *env, struct cl_object *obj, > - struct lov_stripe_md *lsm, > - struct fiemap *fiemap, size_t *buflen, > - struct ll_fiemap_info_key *fmkey, int stripeno, > - struct fiemap_state *fs) > +static int fiemap_for_stripe(const struct lu_env *env, struct cl_object *obj, > + struct lov_stripe_md *lsm, > + struct fiemap *fiemap, size_t *buflen, > + struct ll_fiemap_info_key *fmkey, int stripeno, > + struct fiemap_state *fs) > { > struct cl_object *subobj; > struct lov_obd *lov = lu2lov_dev(obj->co_lu.lo_dev)->ld_lov; > -- > 2.7.4 > > ___ > devel mailing list > de...@linuxdriverproject.org > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel > ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] staging: lustre: grab the cld->cld_lock mutex unconditionally
On Thu, Aug 03, 2017 at 05:52:44PM +0100, James Simmons wrote: > > > Instead of using the locked variable as a helper to determine the state > > of the mutex cld->cld_lock, expand the scope of the recover_cld variable > > and assign to the cld->cld_recover variable depending on whether the > > value of the recover_cld variable is valid or not. > > > > As a bonus, code size is slightly reduced. > > > > before: > > textdata bss dec hex filename > > 2618822564208 326527f8c > > drivers/staging/lustre/lustre/mgc/mgc_request.o > > > > after: > > textdata bss dec hex filename > > 2614022564208 326047f5c > > drivers/staging/lustre/lustre/mgc/mgc_request.o > > > > Additionally silences the following warning reported by coccinelle: > > > > drivers/staging/lustre/lustre/mgc/mgc_request.c:359:2-12: second lock on > > line 365 > > > > Signed-off-by: Cihangir Akturk > > --- > > drivers/staging/lustre/lustre/mgc/mgc_request.c | 13 - > > 1 file changed, 4 insertions(+), 9 deletions(-) > > > > diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c > > b/drivers/staging/lustre/lustre/mgc/mgc_request.c > > index eee0b66..6718474 100644 > > --- a/drivers/staging/lustre/lustre/mgc/mgc_request.c > > +++ b/drivers/staging/lustre/lustre/mgc/mgc_request.c > > @@ -288,7 +288,7 @@ config_log_add(struct obd_device *obd, char *logname, > > struct config_llog_data *cld; > > struct config_llog_data *sptlrpc_cld; > > struct config_llog_data *params_cld; > > - bool locked = false; > > + struct config_llog_data *recover_cld = ERR_PTR(-EINVAL); > > charseclogname[32]; > > char*ptr; > > int rc; > > Why not just set it to NULL? Hi, Because config_recover_log_add() function does not return NULL on error. And I don't think IS_ERR on NULL pointer returns true. Thanks. > > @@ -338,8 +338,6 @@ config_log_add(struct obd_device *obd, char *logname, > > > > LASSERT(lsi->lsi_lmd); > > if (!(lsi->lsi_lmd->lmd_flags & LMD_FLG_NOIR)) { > > - struct config_llog_data *recover_cld; > > - > > ptr = strrchr(seclogname, '-'); > > if (ptr) { > > *ptr = 0; > > @@ -355,14 +353,11 @@ config_log_add(struct obd_device *obd, char *logname, > > rc = PTR_ERR(recover_cld); > > goto out_cld; > > } > > - > > - mutex_lock(&cld->cld_lock); > > - locked = true; > > - cld->cld_recover = recover_cld; > > } > > > > - if (!locked) > > - mutex_lock(&cld->cld_lock); > > + mutex_lock(&cld->cld_lock); > > + if (!IS_ERR(recover_cld)) > > Don't need this test if by default recover_cld = NULL. > > > + cld->cld_recover = recover_cld; > > cld->cld_params = params_cld; > > cld->cld_sptlrpc = sptlrpc_cld; > > mutex_unlock(&cld->cld_lock); > > -- > > 2.7.4 > > > > ___ > > devel mailing list > > de...@linuxdriverproject.org > > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel > > ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: olpc_dcon: Fix coding style issue caught by checkpatch.pl related to function name in debug print
Replace hard-coded function names in strings with "%s", __func__ in the olpc_dcon.c file. Issue found by checkpatch.pl. Signed-off-by: vergilzhang --- drivers/staging/olpc_dcon/olpc_dcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c index f7f3a78..429ca58 100644 --- a/drivers/staging/olpc_dcon/olpc_dcon.c +++ b/drivers/staging/olpc_dcon/olpc_dcon.c @@ -456,7 +456,7 @@ static ssize_t dcon_freeze_store(struct device *dev, if (ret) return ret; - pr_info("dcon_freeze_store: %lu\n", output); + pr_info("%s: %lu\n",__func__, output); switch (output) { case 0: -- 2.7.4 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH 0/2] wireless: move prism54 to staging
Kalle, Greg, This moves the prism54 diver to staging. The reason for this are stated on the driver's own commit log. Let me know what tree you'd prefer this to go through. Luis R. Rodriguez (2): wireless: move prism54 out to staging MAINTAINERS: update email address for mcgrof for few straggling drivers MAINTAINERS | 8 drivers/net/wireless/intersil/Kconfig| 20 drivers/net/wireless/intersil/Makefile | 1 - drivers/staging/Kconfig | 2 ++ drivers/staging/Makefile | 1 + .../wireless/intersil => staging}/prism54/Makefile | 0 .../wireless/intersil => staging}/prism54/isl_38xx.c | 0 .../wireless/intersil => staging}/prism54/isl_38xx.h | 0 .../intersil => staging}/prism54/isl_ioctl.c | 0 .../intersil => staging}/prism54/isl_ioctl.h | 0 .../wireless/intersil => staging}/prism54/isl_oid.h | 0 .../intersil => staging}/prism54/islpci_dev.c| 0 .../intersil => staging}/prism54/islpci_dev.h| 0 .../intersil => staging}/prism54/islpci_eth.c| 0 .../intersil => staging}/prism54/islpci_eth.h| 0 .../intersil => staging}/prism54/islpci_hotplug.c| 0 .../intersil => staging}/prism54/islpci_mgt.c| 0 .../intersil => staging}/prism54/islpci_mgt.h| 0 .../wireless/intersil => staging}/prism54/oid_mgt.c | 0 .../wireless/intersil => staging}/prism54/oid_mgt.h | 0 .../intersil => staging}/prism54/prismcompat.h | 0 21 files changed, 7 insertions(+), 25 deletions(-) rename drivers/{net/wireless/intersil => staging}/prism54/Makefile (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_38xx.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_38xx.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_ioctl.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_ioctl.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_oid.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_dev.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_dev.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_eth.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_eth.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_hotplug.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_mgt.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_mgt.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/oid_mgt.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/oid_mgt.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/prismcompat.h (100%) -- 2.11.0 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH 2/2] MAINTAINERS: update email address for mcgrof for few straggling drivers
This will ensure I get emails on my work and personal email address. Signed-off-by: Luis R. Rodriguez --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 97cf436e6750..49ae596584e7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2212,7 +2212,7 @@ F:drivers/gpio/gpio-ath79.c F: Documentation/devicetree/bindings/gpio/gpio-ath79.txt ATHEROS ATH GENERIC UTILITIES -M: "Luis R. Rodriguez" +M: "Luis R. Rodriguez" L: linux-wirel...@vger.kernel.org S: Supported F: drivers/net/wireless/ath/* @@ -2220,7 +2220,7 @@ F:drivers/net/wireless/ath/* ATHEROS ATH5K WIRELESS DRIVER M: Jiri Slaby M: Nick Kossifidis -M: "Luis R. Rodriguez" +M: "Luis R. Rodriguez" L: linux-wirel...@vger.kernel.org W: http://wireless.kernel.org/en/users/Drivers/ath5k S: Maintained -- 2.11.0 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH 1/2] wireless: move prism54 out to staging
prism54 is deprecated in favor of the p54pci device driver. Although only *one soul* had reported issues with it long ago Linux most Linux distributions these days just disable the device driver given the conflicts with the PCI IDs of p54pci and the *very* unlikely situation of folks really need this driver anymore. Before trying to due away with prism54 once more stuff it into staging, which is our hospice for dying drivers. Signed-off-by: Luis R. Rodriguez --- MAINTAINERS | 4 ++-- drivers/net/wireless/intersil/Kconfig| 20 drivers/net/wireless/intersil/Makefile | 1 - drivers/staging/Kconfig | 2 ++ drivers/staging/Makefile | 1 + .../wireless/intersil => staging}/prism54/Makefile | 0 .../wireless/intersil => staging}/prism54/isl_38xx.c | 0 .../wireless/intersil => staging}/prism54/isl_38xx.h | 0 .../intersil => staging}/prism54/isl_ioctl.c | 0 .../intersil => staging}/prism54/isl_ioctl.h | 0 .../wireless/intersil => staging}/prism54/isl_oid.h | 0 .../intersil => staging}/prism54/islpci_dev.c| 0 .../intersil => staging}/prism54/islpci_dev.h| 0 .../intersil => staging}/prism54/islpci_eth.c| 0 .../intersil => staging}/prism54/islpci_eth.h| 0 .../intersil => staging}/prism54/islpci_hotplug.c| 0 .../intersil => staging}/prism54/islpci_mgt.c| 0 .../intersil => staging}/prism54/islpci_mgt.h| 0 .../wireless/intersil => staging}/prism54/oid_mgt.c | 0 .../wireless/intersil => staging}/prism54/oid_mgt.h | 0 .../intersil => staging}/prism54/prismcompat.h | 0 21 files changed, 5 insertions(+), 23 deletions(-) rename drivers/{net/wireless/intersil => staging}/prism54/Makefile (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_38xx.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_38xx.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_ioctl.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_ioctl.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/isl_oid.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_dev.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_dev.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_eth.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_eth.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_hotplug.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_mgt.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/islpci_mgt.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/oid_mgt.c (100%) rename drivers/{net/wireless/intersil => staging}/prism54/oid_mgt.h (100%) rename drivers/{net/wireless/intersil => staging}/prism54/prismcompat.h (100%) diff --git a/MAINTAINERS b/MAINTAINERS index ef340b9aeb98..97cf436e6750 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10666,11 +10666,11 @@ F:kernel/printk/ F: include/linux/printk.h PRISM54 WIRELESS DRIVER -M: "Luis R. Rodriguez" +M: "Luis R. Rodriguez" L: linux-wirel...@vger.kernel.org W: http://wireless.kernel.org/en/users/Drivers/p54 S: Obsolete -F: drivers/net/wireless/intersil/prism54/ +F: drivers/staging/prism54/ PROC SYSCTL M: "Luis R. Rodriguez" diff --git a/drivers/net/wireless/intersil/Kconfig b/drivers/net/wireless/intersil/Kconfig index 9da136049955..2b056b6daef8 100644 --- a/drivers/net/wireless/intersil/Kconfig +++ b/drivers/net/wireless/intersil/Kconfig @@ -15,24 +15,4 @@ source "drivers/net/wireless/intersil/hostap/Kconfig" source "drivers/net/wireless/intersil/orinoco/Kconfig" source "drivers/net/wireless/intersil/p54/Kconfig" -config PRISM54 - tristate 'Intersil Prism GT/Duette/Indigo PCI/Cardbus (DEPRECATED)' - depends on PCI - select WIRELESS_EXT - select WEXT_SPY - select WEXT_PRIV - select FW_LOADER - ---help--- - This enables support for FullMAC PCI/Cardbus prism54 devices. This - driver is now deprecated in favor for the SoftMAC driver, p54pci. - p54pci supports FullMAC PCI/Cardbus devices as well. - - For more information refer to the p54 wiki: - - http://wireless.kernel.org/en/users/Drivers/p54 - - Note: You need a motherboard with DMA support to use any of these cards - - When built as module you get the module prism54 - endif # WLAN_VENDOR_INTERSIL diff --git a/drivers/net/wireless/intersil/Makefile b/drivers/net/wireless/intersil/Makefile index 9a8cbfee3ea5..aedb713da746 100644 --- a/drivers/net/wireless/intersil/Makefile +++ b/drivers/net/wireless/intersil/Makefile @@ -1,4 +1,3 @@ obj-$(CONFIG_HOSTAP) += hostap/ obj-$(C
[PATCH net 1/1] netvsc: fix race on sub channel creation
The existing sub channel code did not wait for all the sub-channels to completely initialize. This could lead to race causing crash in napi_netif_del() from bad list. The existing code would send an init message, then wait only for the initial response that the init message was received. It thought it was waiting for sub channels but really the init response did the wakeup. The new code keeps track of the number of open channels and waits until that many are open. Other issues here were: * host might return less sub-channels than was requested. * the new init status is not valid until after init was completed. Fixes: b3e6b82a0099 ("hv_netvsc: Wait for sub-channels to be processed during probe") Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/hyperv_net.h | 3 ++- drivers/net/hyperv/netvsc.c | 1 + drivers/net/hyperv/rndis_filter.c | 14 -- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index d6c25580f8dd..12cc64bfcff8 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -765,7 +765,8 @@ struct netvsc_device { u32 max_chn; u32 num_chn; - refcount_t sc_offered; + atomic_t open_chn; + wait_queue_head_t subchan_open; struct rndis_device *extension; diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index 96f90c75d1b7..d18c3326a1f7 100644 --- a/drivers/net/hyperv/netvsc.c +++ b/drivers/net/hyperv/netvsc.c @@ -78,6 +78,7 @@ static struct netvsc_device *alloc_net_device(void) net_device->max_pkt = RNDIS_MAX_PKT_DEFAULT; net_device->pkt_align = RNDIS_PKT_ALIGN_DEFAULT; init_completion(&net_device->channel_init_wait); + init_waitqueue_head(&net_device->subchan_open); return net_device; } diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c index 85c00e1c52b6..d6308ffda53e 100644 --- a/drivers/net/hyperv/rndis_filter.c +++ b/drivers/net/hyperv/rndis_filter.c @@ -1048,8 +1048,8 @@ static void netvsc_sc_open(struct vmbus_channel *new_sc) else netif_napi_del(&nvchan->napi); - if (refcount_dec_and_test(&nvscdev->sc_offered)) - complete(&nvscdev->channel_init_wait); + atomic_inc(&nvscdev->open_chn); + wake_up(&nvscdev->subchan_open); } int rndis_filter_device_add(struct hv_device *dev, @@ -1090,8 +1090,6 @@ int rndis_filter_device_add(struct hv_device *dev, net_device->max_chn = 1; net_device->num_chn = 1; - refcount_set(&net_device->sc_offered, 0); - net_device->extension = rndis_device; rndis_device->ndev = net; @@ -1221,11 +1219,11 @@ int rndis_filter_device_add(struct hv_device *dev, rndis_device->ind_table[i] = ethtool_rxfh_indir_default(i, net_device->num_chn); + atomic_set(&net_device->open_chn, 1); num_rss_qs = net_device->num_chn - 1; if (num_rss_qs == 0) return 0; - refcount_set(&net_device->sc_offered, num_rss_qs); vmbus_set_sc_create_callback(dev->channel, netvsc_sc_open); init_packet = &net_device->channel_init_pkt; @@ -1242,15 +1240,19 @@ int rndis_filter_device_add(struct hv_device *dev, if (ret) goto out; + wait_for_completion(&net_device->channel_init_wait); if (init_packet->msg.v5_msg.subchn_comp.status != NVSP_STAT_SUCCESS) { ret = -ENODEV; goto out; } - wait_for_completion(&net_device->channel_init_wait); net_device->num_chn = 1 + init_packet->msg.v5_msg.subchn_comp.num_subchannels; + /* wait for all sub channels to open */ + wait_event(net_device->subchan_open, + atomic_read(&net_device->open_chn) == net_device->num_chn); + /* ignore failues from setting rss parameters, still have channels */ rndis_filter_set_rss_param(rndis_device, netvsc_hash_key, net_device->num_chn); -- 2.11.0 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH net 0/1] netvsc: race on sub channel open
Found this while testing mtu, queue and buffer size changes in 4.13, but the problem goes back much further. The addition of NAPI makes the race into a crash. Before that there was just a risk of sending on an uninitialized channel. Stephen Hemminger (1): netvsc: fix race on sub channel creation drivers/net/hyperv/hyperv_net.h | 3 ++- drivers/net/hyperv/netvsc.c | 1 + drivers/net/hyperv/rndis_filter.c | 14 -- 3 files changed, 11 insertions(+), 7 deletions(-) -- 2.11.0 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH 1/2] wireless: move prism54 out to staging
On Thu, Aug 03, 2017 at 04:59:36PM -0700, Luis R. Rodriguez wrote: > prism54 is deprecated in favor of the p54pci device driver. Although > only *one soul* had reported issues with it long ago Linux most Linux > distributions these days just disable the device driver given the > conflicts with the PCI IDs of p54pci and the *very* unlikely situation > of folks really need this driver anymore. > > Before trying to due away with prism54 once more stuff it into staging, > which is our hospice for dying drivers. > > Signed-off-by: Luis R. Rodriguez > --- > MAINTAINERS | 4 ++-- > drivers/net/wireless/intersil/Kconfig| 20 > > drivers/net/wireless/intersil/Makefile | 1 - > drivers/staging/Kconfig | 2 ++ > drivers/staging/Makefile | 1 + Can I get a TODO file that says it will be deleted in a kernel release or two so don't worry about touching anything in these files? thanks, greg k-h ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] Staging: bcm2048: fix bare use of 'unsigned' in radio-bcm2048.c
Hi Branislav, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc3 next-20170803] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Branislav-Radocaj/Staging-bcm2048-fix-bare-use-of-unsigned-in-radio-bcm2048-c/20170804-105008 base: git://linuxtv.org/media_tree.git master config: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=xtensa All error/warnings (new ones prefixed by >>): drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_power_state_write': >> drivers/staging/media/bcm2048/radio-bcm2048.c:2030:50: error: two or more >> data types in declaration specifiers DEFINE_SYSFS_PROPERTY(power_state, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ >> drivers/staging/media/bcm2048/radio-bcm2048.c:2030:1: note: in expansion of >> macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(power_state, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_mute_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2031:43: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(mute, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2031:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(mute, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_audio_route_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2032:50: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(audio_route, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2032:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(audio_route, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_dac_output_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2033:49: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(dac_output, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2033:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(dac_output, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_fm_hi_lo_injection_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2035:57: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(fm_hi_lo_injection, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2035:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(fm_hi_lo_injection, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_fm_frequency_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2036:51: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(fm_frequency, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2036:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(fm_frequ
Re: [PATCH 0/2] wireless: move prism54 to staging
"Luis R. Rodriguez" writes: > This moves the prism54 diver to staging. The reason for this are > stated on the driver's own commit log. Let me know what tree you'd > prefer this to go through. Nice. For me it's better if Greg can take this, I suspect less conflicts that way, but I can take this as well if needed. -- Kalle Valo ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH 1/2] wireless: move prism54 out to staging
"Luis R. Rodriguez" writes: > prism54 is deprecated in favor of the p54pci device driver. Although > only *one soul* had reported issues with it long ago Linux most Linux > distributions these days just disable the device driver given the > conflicts with the PCI IDs of p54pci and the *very* unlikely situation > of folks really need this driver anymore. > > Before trying to due away with prism54 once more stuff it into staging, > which is our hospice for dying drivers. > > Signed-off-by: Luis R. Rodriguez Acked-by: Kalle Valo -- Kalle Valo ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel