Re: [PATCH 2/4] phy: qualcomm: phy-qcom-eusb2-repeater: Support tune-res-fsdif prop

2025-06-25 Thread Abel Vesa
On 25-06-25 11:14:57, Luca Weiss wrote: > Support reading the FS Differential TX Output Resistance Tuning from > devicetree and writing the register, as required on some boards. > > Signed-off-by: Luca Weiss Reviewed-by: Abel Vesa

[PATCH 2/4] phy: qualcomm: phy-qcom-eusb2-repeater: Support tune-res-fsdif prop

2025-06-25 Thread Luca Weiss
int eusb2_repeater_init(struct phy *phy) if (!of_property_read_u8(np, "qcom,tune-usb2-preem", &val)) regmap_write(regmap, base + EUSB2_TUNE_IUSB2, val); + if (!of_property_read_u8(np, "qcom,tune-res-fsdif", &val)) +

Re: [PATCH 2/4] phy: qualcomm: phy-qcom-eusb2-repeater: Support tune-res-fsdif prop

2025-06-25 Thread neil . armstrong
-eusb2-repeater.c @@ -136,6 +136,9 @@ static int eusb2_repeater_init(struct phy *phy) if (!of_property_read_u8(np, "qcom,tune-usb2-preem", &val)) regmap_write(regmap, base + EUSB2_TUNE_IUSB2, val); + if (!of_property_read_u8(np, "qcom,tu

[PATCH 1/4] dt-bindings: phy: qcom,snps-eusb2-repeater: Document qcom,tune-res-fsdif

2025-06-25 Thread Luca Weiss
/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml @@ -52,6 +52,12 @@ properties: minimum: 0 maximum: 7 + qcom,tune-res-fsdif: +$ref: /schemas/types.yaml#/definitions/uint8 +description: FS Differential TX Output Resistance Tuning +minimum: 0 +maximum: 7

Re: [PATCH -next] staging: rtl8723bs: core: Remove unused variable 'res'

2021-03-31 Thread Greg Kroah-Hartman
On Wed, Mar 31, 2021 at 04:12:43PM +0800, Xu Jia wrote: > The variable 'res' is not used in function, this commit > remove it to fix the warning. > > Reported-by: Hulk Robot > Signed-off-by: Xu Jia > --- > drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 6 +-

Re: [PATCH -next] staging: rtl8723bs: core: Remove unused variable 'res'

2021-03-31 Thread Dan Carpenter
I've been rejecting these patches until someone updates the callers to check the return. This patch just silences the warning but the code is still totally buggy. regards, dan carpenter

[PATCH -next] staging: rtl8723bs: core: Remove unused variable 'res'

2021-03-31 Thread Xu Jia
The variable 'res' is not used in function, this commit remove it to fix the warning. Reported-by: Hulk Robot Signed-off-by: Xu Jia --- drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/rtl8

Re: [PATCH] ieee802154: hwsim: remove redundant initialization of variable res

2021-03-29 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 29 Mar 2021 12:23:54 +0100 you wrote: > From: Colin Ian King > > The variable res is being initialized with a value that is > never read and it is being updated later with a new value. > The in

[PATCH] ieee802154: hwsim: remove redundant initialization of variable res

2021-03-29 Thread Colin King
From: Colin Ian King The variable res is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/net/

[tip: x86/seves] x86/sev-es: Remove subtraction of res variable

2021-03-06 Thread tip-bot2 for Borislav Petkov
Committer: Borislav Petkov CommitterDate: Sat, 06 Mar 2021 12:08:53 +01:00 x86/sev-es: Remove subtraction of res variable vc_decode_insn() calls copy_from_kernel_nofault() by way of vc_fetch_insn_kernel() to fetch 15 bytes max of opcodes to decode. copy_from_kernel_nofault() returns negative on

[tip: x86/seves] x86/sev-es: Remove subtraction of res variable

2021-03-01 Thread tip-bot2 for Borislav Petkov
Committer: Borislav Petkov CommitterDate: Mon, 01 Mar 2021 12:40:22 +01:00 x86/sev-es: Remove subtraction of res variable vc_decode_insn() calls copy_from_kernel_nofault() by way of vc_fetch_insn_kernel() to fetch 15 bytes max of opcodes to decode. copy_from_kernel_nofault() returns negative on

Re: [PATCH] x86/sev-es: Remove subtraction of res variable

2021-02-23 Thread Joerg Roedel
1819af..1e78f4bd7bf2 100644 > --- a/arch/x86/kernel/sev-es.c > +++ b/arch/x86/kernel/sev-es.c > @@ -267,7 +267,7 @@ static enum es_result vc_decode_insn(struct es_em_ctxt > *ctxt) > return ES_EXCEPTION; > } > > - insn_init

[PATCH] x86/sev-es: Remove subtraction of res variable

2021-02-23 Thread Borislav Petkov
eturn ES_EXCEPTION; } - insn_init(&ctxt->insn, buffer, MAX_INSN_SIZE - res, 1); + insn_init(&ctxt->insn, buffer, MAX_INSN_SIZE, 1); insn_get_length(&ctxt->insn); } -- 2.29.2

Re: [PATCH v3 03/10] dt-bindings:iio:adc:remove atmel, adc-res and atmel, adc-res-names

2020-12-08 Thread Rob Herring
On Sat, 28 Nov 2020 23:28:11 +0100, Alexandre Belloni wrote: > Remove atmel,adc-res and atmel,adc-res-names as they are not necessary and > are handled by the driver. Also add sama5d3 to the list of possible chips. > > Cc: Rob Herring > Signed-off-by: Alexandre Belloni > ---

Re: [PATCH 16/40] drm/amd/pm/powerplay/smumgr/iceland_smumgr: Remove unused variable 'res'

2020-11-30 Thread Alex Deucher
r/iceland_smumgr.c:2093:6: > warning: variable ‘res’ set but not used [-Wunused-but-set-variable] > > Cc: Evan Quan > Cc: Alex Deucher > Cc: "Christian König" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Huang Rui > Cc: amd-...@lists.freedesktop.org > Cc:

Re: [PATCH 03/40] drm/amd/pm/powerplay/smumgr/ci_smumgr: Remove set but unused variable 'res'

2020-11-30 Thread Alex Deucher
ci_smumgr.c:2132:6: > warning: variable ‘res’ set but not used [-Wunused-but-set-variable] > > Cc: Evan Quan > Cc: Alex Deucher > Cc: "Christian König" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-...@lists.freedesktop.org > Cc: dri-de...@lists.freedesktop.org &

Re: [PATCH 01/40] drm/amd/pm/powerplay/smumgr/tonga_smumgr: Remove set but unused variable 'res'

2020-11-30 Thread Alex Deucher
ga_smumgr.c:2469:6: > warning: variable ‘res’ set but not used [-Wunused-but-set-variable] > > Cc: Evan Quan > Cc: Alex Deucher > Cc: "Christian König" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-...@lists.freedesktop.org > Cc: dri-de...@lists.freedeskt

[PATCH v3 03/10] dt-bindings:iio:adc:remove atmel,adc-res and atmel,adc-res-names

2020-11-28 Thread Alexandre Belloni
Remove atmel,adc-res and atmel,adc-res-names as they are not necessary and are handled by the driver. Also add sama5d3 to the list of possible chips. Cc: Rob Herring Signed-off-by: Alexandre Belloni --- .../devicetree/bindings/iio/adc/at91_adc.txt| 13 - 1 file changed, 4

[PATCH 16/40] drm/amd/pm/powerplay/smumgr/iceland_smumgr: Remove unused variable 'res'

2020-11-26 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c: In function ‘iceland_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:2093:6: warning: variable ‘res’ set but not used [-Wunused-but

[PATCH 03/40] drm/amd/pm/powerplay/smumgr/ci_smumgr: Remove set but unused variable 'res'

2020-11-26 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/ci_smumgr.c: In function ‘ci_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/ci_smumgr.c:2132:6: warning: variable ‘res’ set but not used [-Wunused-but-set-variable

[PATCH 01/40] drm/amd/pm/powerplay/smumgr/tonga_smumgr: Remove set but unused variable 'res'

2020-11-26 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c: In function ‘tonga_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2469:6: warning: variable ‘res’ set but not used [-Wunused-but-set

[PATCH v2 03/11] dt-bindings:iio:adc:remove atmel,adc-res and atmel,adc-res-names

2020-11-17 Thread Alexandre Belloni
Remove atmel,adc-res and atmel,adc-res-names as they are not necessary and are handled by the driver. Also add sama5d3 to the list of possible chips. Cc: Rob Herring Signed-off-by: Alexandre Belloni --- .../devicetree/bindings/iio/adc/at91_adc.txt| 13 - 1 file changed, 4

Re: [PATCH] video: fbdev: fsl-diu-fb: remove unneeded variable 'res'

2020-10-16 Thread Sam Ravnborg
On Thu, Sep 10, 2020 at 10:05:58PM +0800, Jason Yan wrote: > Eliminate the following coccicheck warning: > > drivers/video/fbdev/fsl-diu-fb.c:1428:5-8: Unneeded variable: "res". > Return "0" on line 1450 > > Reported-by: Hulk Robot > Signed-off-by: J

Re: [CRM114spam]: drivers/hwmon/w83627ehf.c:2417 w83627ehf_probe() warn: 'res->start' not released on lines: 2412.

2020-09-21 Thread Dan Carpenter
On Sun, Sep 20, 2020 at 06:49:54PM +0100, Dr. David Alan Gilbert wrote: > * Dan Carpenter (dan.carpen...@oracle.com) wrote: > > b84bb5186297d1 drivers/hwmon/w83627ehf.c Guenter Roeck > > 2011-02-13 2405 > > 266cd5835947d0 drivers/hwmon/w83627ehf.c Dr. David Alan Gilbert > > 20

Re: [CRM114spam]: drivers/hwmon/w83627ehf.c:2417 w83627ehf_probe() warn: 'res->start' not released on lines: 2412.

2020-09-20 Thread Dr. David Alan Gilbert
ers/hwmon/w83627ehf.c:2417 w83627ehf_probe() warn: 'res->start' not > released on lines: 2412. > > # > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=266cd5835947d08b7c963b6d9d9f15d9e481bd0a > git remote add linus > https://git.ker

drivers/hwmon/w83627ehf.c:2417 w83627ehf_probe() warn: 'res->start' not released on lines: 2412.

2020-09-17 Thread Dan Carpenter
) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: drivers/hwmon/w83627ehf.c:2417 w83627ehf_probe() warn: 'res->start' not released on lines: 2412. # https://g

[PATCH] video: fbdev: fsl-diu-fb: remove unneeded variable 'res'

2020-09-10 Thread Jason Yan
Eliminate the following coccicheck warning: drivers/video/fbdev/fsl-diu-fb.c:1428:5-8: Unneeded variable: "res". Return "0" on line 1450 Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/fbdev/fsl-diu-fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deleti

Re: [PATCH] video: fbdev: fsl-diu-fb: remove unneeded variable 'res'

2020-09-10 Thread Gustavo A. R. Silva
On Thu, Sep 10, 2020 at 10:05:58PM +0800, Jason Yan wrote: > Eliminate the following coccicheck warning: > > drivers/video/fbdev/fsl-diu-fb.c:1428:5-8: Unneeded variable: "res". > Return "0" on line 1450 > > Reported-by: Hulk Robot > Signed-off-by:

[PATCH 15/30] wireless: ti: wlcore: debugfs: Remove unused variable 'res'

2020-08-26 Thread Lee Jones
size_t sub## _ ##name## _read(struct file *file, \ struct wl1271 *wl = file->private_data; \ struct struct_type *stats = wl->stats.fw_stats; \ char buf[DEBUGFS_FORMAT_BUFFER_SIZE] = "";

[PATCH 5.8 313/464] xfs: fix inode allocation block res calculation precedence

2020-08-17 Thread Greg Kroah-Hartman
From: Brian Foster [ Upstream commit b2a8864728683443f34a9fd33a2b78b860934cc1 ] The block reservation calculation for inode allocation is supposed to consist of the blocks required for the inode chunk plus (maxlevels-1) of the inode btree multiplied by the number of inode btrees in the fs (2 whe

[PATCH 5.7 263/393] xfs: fix inode allocation block res calculation precedence

2020-08-17 Thread Greg Kroah-Hartman
From: Brian Foster [ Upstream commit b2a8864728683443f34a9fd33a2b78b860934cc1 ] The block reservation calculation for inode allocation is supposed to consist of the blocks required for the inode chunk plus (maxlevels-1) of the inode btree multiplied by the number of inode btrees in the fs (2 whe

Re: [PATCH 10/16] memory: omap-gpmc: Consistently use !res for NULL checks

2020-08-17 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 08:23:22PM +0200, Krzysztof Kozlowski wrote: > The driver already uses 'if (!res)' pattern in the probe function so be > consistent. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/memory/omap-gpmc.c | 2 +- Applied. Best regards, Krzysztof

[PATCH 5.4 178/270] xfs: fix inode allocation block res calculation precedence

2020-08-17 Thread Greg Kroah-Hartman
From: Brian Foster [ Upstream commit b2a8864728683443f34a9fd33a2b78b860934cc1 ] The block reservation calculation for inode allocation is supposed to consist of the blocks required for the inode chunk plus (maxlevels-1) of the inode btree multiplied by the number of inode btrees in the fs (2 whe

Re: [PATCH] scsi: libsas: remove redundant assignment to variable res

2020-07-24 Thread Martin K. Petersen
On Wed, 22 Jul 2020 16:44:04 +0100, Colin King wrote: > The variable res is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. Applied to 5.9/scsi-queue, thanks! [1/1] scsi: libsa

[PATCH 10/16] memory: omap-gpmc: Consistently use !res for NULL checks

2020-07-24 Thread Krzysztof Kozlowski
The driver already uses 'if (!res)' pattern in the probe function so be consistent. Signed-off-by: Krzysztof Kozlowski --- drivers/memory/omap-gpmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index 76

Re: [PATCH] scsi: libsas: remove redundant assignment to variable res

2020-07-22 Thread John Garry
On 22/07/2020 16:44, Colin King wrote: From: Colin Ian King The variable res is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by:

[PATCH] scsi: libsas: remove redundant assignment to variable res

2020-07-22 Thread Colin King
From: Colin Ian King The variable res is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/s

Re: [RFC][PATCH] x86: optimization to avoid CAL+RES IPIs

2020-07-17 Thread Josh Don
Hey Andy, thanks for taking a look. On Fri, Jul 17, 2020 at 8:14 PM Andy Lutomirski wrote: > > PeterZ and I fixed a whole series of bugs a few years ago, and remote > wakeups *should* already do this. Did we miss something? Did it > regress? Even the call_function_single path ought to go throug

Re: [RFC][PATCH] x86: optimization to avoid CAL+RES IPIs

2020-07-17 Thread Andy Lutomirski
> On Jul 17, 2020, at 7:13 PM, Josh Don wrote: > > From: Venkatesh Pallipadi > > smp_call_function_single and smp_send_reschedule send unconditional IPI > to target CPU. However, if the target CPU is in some form of poll based > idle, we can do IPI-less wakeups. > > Doing this has certain advant

[RFC][PATCH] x86: optimization to avoid CAL+RES IPIs

2020-07-17 Thread Josh Don
From: Venkatesh Pallipadi smp_call_function_single and smp_send_reschedule send unconditional IPI to target CPU. However, if the target CPU is in some form of poll based idle, we can do IPI-less wakeups. Doing this has certain advantages: * Lower overhead on Async "no wait" IPI send path. * Avoi

Re: [PATCH v1] PCI: dwc: fix a warning about variable 'res' is uninitialized

2020-07-17 Thread Dejin Zheng
On Fri, Jul 17, 2020 at 05:31:11PM +0100, Lorenzo Pieralisi wrote: > On Fri, Jul 17, 2020 at 09:30:07PM +0800, Dejin Zheng wrote: > > The kernel test robot reported a compile warning, > > > > drivers/pci/controller/dwc/pci-keystone.c:1236:18: warning: variable 'res'

Re: [PATCH v1] PCI: dwc: fix a warning about variable 'res' is uninitialized

2020-07-17 Thread Lorenzo Pieralisi
On Fri, Jul 17, 2020 at 09:30:07PM +0800, Dejin Zheng wrote: > The kernel test robot reported a compile warning, > > drivers/pci/controller/dwc/pci-keystone.c:1236:18: warning: variable 'res' > is uninitialized when used here [-Wuninitialized] > > The commit c59a7d771

[PATCH v1] PCI: dwc: fix a warning about variable 'res' is uninitialized

2020-07-17 Thread Dejin Zheng
The kernel test robot reported a compile warning, drivers/pci/controller/dwc/pci-keystone.c:1236:18: warning: variable 'res' is uninitialized when used here [-Wuninitialized] The commit c59a7d771134b5 ("PCI: dwc: Convert to devm_platform_ioremap_resource_byname()") did a

Re: [PATCH] hwmon: i5k_amb: remove redundant assignment to variable res

2020-06-10 Thread Guenter Roeck
On Wed, Jun 10, 2020 at 01:36:38PM +0100, Colin King wrote: > From: Colin Ian King > > The variable res is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Address

[PATCH] hwmon: i5k_amb: remove redundant assignment to variable res

2020-06-10 Thread Colin King
From: Colin Ian King The variable res is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/hwmon/i5k

[PATCH 4.4 216/312] net/mlx4_core: Fix the resource-type enum in res tracker to conform to FW spec

2020-05-08 Thread Greg Kroah-Hartman
From: Jack Morgenstein commit aa0c08feae8161b945520ada753d0dfe62b14fe7 upstream. The resource type enum in the resource tracker was incorrect. RES_EQ was put in the position of RES_NPORT_ID (a FC resource). Since the remaining resources maintain their current values, and RES_EQ is not passed fr

[RFC PATCH 5/9] soundwire: intel: rename res field as link_res

2019-09-16 Thread Pierre-Louis Bossart
There are too many fields called 'res' so add prefix to make it easier to track what the structures are. Pure rename, no functionality change Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 37 +++-- 1 file changed, 19 inserti

RES: PROPOSAL.

2019-07-30 Thread José Luiz Fabris
De: José Luiz Fabris Enviado: terça-feira, 30 de julho de 2019 18:37 Para: José Luiz Fabris Assunto: PROPOSAL. Good Day, I am Mrs.Margaret Ko May-Yee Leung Deputy Managing Director and Executive Director of Chong Hing Bank Limited. I write briefly to

[PATCH v9 net-next 4/5] net: ethernet: ti: cpsw_ethtool: allow res split while down

2019-07-08 Thread Ivan Khoronzhuk
That's possible to set channel num while interfaces are down. When interface gets up it should resplit budget. This resplit can happen after phy is up but only if speed is changed, so should be set before this, for this allow it to happen while changing number of channels, when interfaces are down.

[PATCH v8 net-next 4/5] net: ethernet: ti: cpsw_ethtool: allow res split while down

2019-07-05 Thread Ivan Khoronzhuk
That's possible to set channel num while interfaces are down. When interface gets up it should resplit budget. This resplit can happen after phy is up but only if speed is changed, so should be set before this, for this allow it to happen while changing number of channels, when interfaces are down.

[PATCH] staging: rtl8712: remove redundant assignment to variable res

2019-07-05 Thread Colin King
From: Colin Ian King The variable res is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/stagi

[PATCH v7 net-next 4/5] net: ethernet: ti: cpsw_ethtool: allow res split while down

2019-07-04 Thread Ivan Khoronzhuk
That's possible to set channel num while interfaces are down. When interface gets up it should resplit budget. This resplit can happen after phy is up but only if speed is changed, so should be set before this, for this allow it to happen while changing number of channels, when interfaces are down.

[PATCH v6 net-next 4/5] net: ethernet: ti: cpsw_ethtool: allow res split while down

2019-07-03 Thread Ivan Khoronzhuk
That's possible to set channel num while interfaces are down. When interface gets up it should resplit budget. This resplit can happen after phy is up but only if speed is changed, so should be set before this, for this allow it to happen while changing number of channels, when interfaces are down.

[PATCH v5 net-next 5/6] net: ethernet: ti: cpsw_ethtool: allow res split while down

2019-06-30 Thread Ivan Khoronzhuk
That's possible to set channel num while interfaces are down. When interface gets up it should resplit budget. This resplit can happen after phy is up but only if speed is changed, so should be set before this, for this allow it to happen while changing number of channels, when interfaces are down.

[PATCH 06/10] drm/mxsfb: Add max-res property for MXSFB

2019-06-26 Thread Robert Chiras
, unsigned long flags) struct platform_device *pdev = to_platform_device(drm->dev); struct mxsfb_drm_private *mxsfb; struct resource *res; + u32 max_res[2] = {0, 0}; int ret; mxsfb = devm_kzalloc(&pdev->dev, sizeof(*mxsfb), GFP_KERNEL);

[PATCH 05/10] dt-bindings: display: Add max-res property for mxsfb

2019-06-26 Thread Robert Chiras
Add new optional property 'max-res', to limit the maximum supported resolution by the MXSFB_DRM driver. Signed-off-by: Robert Chiras --- Documentation/devicetree/bindings/display/mxsfb.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindin

[PATCH] lib: devres: devm_ioremap_resource() make res parameter const

2019-06-17 Thread Enrico Weigelt, metux IT consult
*dev, gfp_t gfp_mask, unsigned int order); extern void devm_free_pages(struct device *dev, unsigned long addr); -void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res); +void __iomem *devm_ioremap_resource(struct device

[PATCH] lib: devres: devm_ioremap_resource() make res parameter const

2019-04-26 Thread Enrico Weigelt, metux IT consult
*dev, gfp_t gfp_mask, unsigned int order); extern void devm_free_pages(struct device *dev, unsigned long addr); -void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res); +void __iomem *devm_ioremap_resource(struct device

Some bug fixes to the res sample / script code

2019-03-11 Thread Andi Kleen
Some minor bug fixes to the recently merged res sample / scripting improvelement in perf report. -Andi

[PATCH] lib: devres: devm_ioremap_resource() make res parameter const

2019-03-08 Thread Enrico Weigelt, metux IT consult
evice *dev, gfp_t gfp_mask, unsigned int order); extern void devm_free_pages(struct device *dev, unsigned long addr); -void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res); +void __iomem *devm_ioremap_resource(struct device

[PATCH 03/11] drm/mxsfb: Add max-res property for MXSFB

2019-01-16 Thread Robert Chiras
, unsigned long flags) struct platform_device *pdev = to_platform_device(drm->dev); struct mxsfb_drm_private *mxsfb; struct resource *res; + u32 max_res[2] = {0, 0}; int ret; mxsfb = devm_kzalloc(&pdev->dev, sizeof(*mxsfb), GFP_KERNEL);

[PATCH 02/11] dt-bindings: display: Add max-res property for mxsfb

2019-01-16 Thread Robert Chiras
Add new optional property 'max-res', to limit the maximum supported resolution by the MXSFB_DRM driver. Signed-off-by: Robert Chiras --- Documentation/devicetree/bindings/display/mxsfb.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindin

[PATCH 03/10] drm/mxsfb: Add max-res property for MXSFB

2019-01-09 Thread Robert Chiras
, unsigned long flags) struct platform_device *pdev = to_platform_device(drm->dev); struct mxsfb_drm_private *mxsfb; struct resource *res; + u32 max_res[2] = {0, 0}; int ret; mxsfb = devm_kzalloc(&pdev->dev, sizeof(*mxsfb), GFP_KERNEL);

[PATCH 02/10] dt-bindings: display: Add max-res property for mxsfb

2019-01-09 Thread Robert Chiras
Add new optional property 'max-res', to limit the maximum supported resolution by the MXSFB_DRM driver. Signed-off-by: Robert Chiras --- Documentation/devicetree/bindings/display/mxsfb.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindin

[PATCH 3.16 302/328] ocfs2: fix locking for res->tracking and dlm->tracking_list

2018-12-09 Thread Ben Hutchings
3.16.62-rc1 review patch. If anyone has any objections, please let me know. -- From: Ashish Samant commit cbe355f57c8074bc4f452e5b6e35509044c6fa23 upstream. In dlm_init_lockres() we access and modify res->tracking and dlm->tracking_list without holding dlm->track_lo

[PATCH 1/7] Revert "HID: input: simplify/fix high-res scroll event handling"

2018-11-21 Thread Benjamin Tissoires
we want the threshold for low-res events to +* be in the middle of the notches (e.g. after 4/8ths) as opposed to on +* the notches themselves (8/8ths). +*/ + int threshold = counter->resolution_multiplier / 2; input_report_rel(counter->dev, REL_WHEEL_

RES

2018-10-30 Thread Smadar Barber-Tsadik
Hello Dear, My name is Smadar Barber-Tsadik, I'm the Chief Executive Officer C.P.A of the First International Bank of Israel (FIBI). I'm getting in touch with you in regards to a very important and urgent matter. Kindly respond back at your earliest convenience so I can provide you the details.

[PATCH 3.18 097/120] ocfs2: fix locking for res->tracking and dlm->tracking_list

2018-10-11 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ashish Samant commit cbe355f57c8074bc4f452e5b6e35509044c6fa23 upstream. In dlm_init_lockres() we access and modify res->tracking and dlm->tracking_list without holding dlm->track_lo

[PATCH 4.18 166/168] ocfs2: fix locking for res->tracking and dlm->tracking_list

2018-10-08 Thread Greg Kroah-Hartman
4.18-stable review patch. If anyone has any objections, please let me know. -- From: Ashish Samant commit cbe355f57c8074bc4f452e5b6e35509044c6fa23 upstream. In dlm_init_lockres() we access and modify res->tracking and dlm->tracking_list without holding dlm->track_lo

[PATCH 4.14 93/94] ocfs2: fix locking for res->tracking and dlm->tracking_list

2018-10-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ashish Samant commit cbe355f57c8074bc4f452e5b6e35509044c6fa23 upstream. In dlm_init_lockres() we access and modify res->tracking and dlm->tracking_list without holding dlm->track_lo

[PATCH 4.9 59/59] ocfs2: fix locking for res->tracking and dlm->tracking_list

2018-10-08 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ashish Samant commit cbe355f57c8074bc4f452e5b6e35509044c6fa23 upstream. In dlm_init_lockres() we access and modify res->tracking and dlm->tracking_list without holding dlm->track_lo

[PATCH 4.4 113/113] ocfs2: fix locking for res->tracking and dlm->tracking_list

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ashish Samant commit cbe355f57c8074bc4f452e5b6e35509044c6fa23 upstream. In dlm_init_lockres() we access and modify res->tracking and dlm->tracking_list without holding dlm->track_lo

[PATCH 3.18 04/56] net_sched: Fix missing res info when create new tc_index filter

2018-08-25 Thread Greg Kroah-Hartman
sult.res when create new filter. Then in tcindex_delete() -> tcf_unbind_filter(), we will failed to find out the res and unbind filter, which will trigger the WARN_ON() in cbq_destroy_class(). Fix it by updating f->result.res when create new filter. Fixes: 6e0565697a106 ("net_sched: f

[PATCH 4.4 04/22] net_sched: Fix missing res info when create new tc_index filter

2018-08-20 Thread Greg Kroah-Hartman
sult.res when create new filter. Then in tcindex_delete() -> tcf_unbind_filter(), we will failed to find out the res and unbind filter, which will trigger the WARN_ON() in cbq_destroy_class(). Fix it by updating f->result.res when create new filter. Fixes: 6e0565697a106 ("net_sched: f

[PATCH 4.9 06/25] net_sched: Fix missing res info when create new tc_index filter

2018-08-20 Thread Greg Kroah-Hartman
sult.res when create new filter. Then in tcindex_delete() -> tcf_unbind_filter(), we will failed to find out the res and unbind filter, which will trigger the WARN_ON() in cbq_destroy_class(). Fix it by updating f->result.res when create new filter. Fixes: 6e0565697a106 ("net_sched: f

[PATCH 4.14 06/29] net_sched: Fix missing res info when create new tc_index filter

2018-08-20 Thread Greg Kroah-Hartman
sult.res when create new filter. Then in tcindex_delete() -> tcf_unbind_filter(), we will failed to find out the res and unbind filter, which will trigger the WARN_ON() in cbq_destroy_class(). Fix it by updating f->result.res when create new filter. Fixes: 6e0565697a106 ("net_sched: f

[PATCH 4.17 06/42] net_sched: Fix missing res info when create new tc_index filter

2018-08-20 Thread Greg Kroah-Hartman
sult.res when create new filter. Then in tcindex_delete() -> tcf_unbind_filter(), we will failed to find out the res and unbind filter, which will trigger the WARN_ON() in cbq_destroy_class(). Fix it by updating f->result.res when create new filter. Fixes: 6e0565697a106 ("net_sched: f

[PATCH 4.18 03/35] net_sched: Fix missing res info when create new tc_index filter

2018-08-20 Thread Greg Kroah-Hartman
sult.res when create new filter. Then in tcindex_delete() -> tcf_unbind_filter(), we will failed to find out the res and unbind filter, which will trigger the WARN_ON() in cbq_destroy_class(). Fix it by updating f->result.res when create new filter. Fixes: 6e0565697a106 ("net_sched: f

[PATCH 5/8] integrity: Add exe= and tty= before res= to integrity audits

2018-05-24 Thread Stefan Berger
Use the new public audit functions to add the exe= and tty= parts to the integrity audit records. We place them before res=. Signed-off-by: Stefan Berger Suggested-by: Steve Grubb --- security/integrity/integrity_audit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/integrity

Re: [PATCH] ASoC: cygnus: remove redundant assignment to pointer 'res'

2018-03-08 Thread Scott Branden
Looks good. On 18-03-08 05:32 AM, Colin King wrote: From: Colin Ian King The pointer res is being initialized with a value that is never read and re-assigned immediately after, hence the initialization is redundant and can be removed. Cleans up clang warning: sound/soc/bcm/cygnus-ssp.c:1284

Applied "ASoC: cygnus: remove redundant assignment to pointer 'res'" to the asoc tree

2018-03-08 Thread Mark Brown
The patch ASoC: cygnus: remove redundant assignment to pointer 'res' has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in t

[PATCH] ASoC: cygnus: remove redundant assignment to pointer 'res'

2018-03-08 Thread Colin King
From: Colin Ian King The pointer res is being initialized with a value that is never read and re-assigned immediately after, hence the initialization is redundant and can be removed. Cleans up clang warning: sound/soc/bcm/cygnus-ssp.c:1284:19: warning: Value stored to 'res'

[PATCH 3.16 041/136] arm64: vdso: fix clock_getres for 4GiB-aligned res

2018-02-10 Thread Ben Hutchings
3.16.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Mark Rutland commit c80ed088a519da53f27b798a69748eaabc66aadf upstream. The vdso tries to check for a NULL res pointer in __kernel_clock_getres, but only checks the lower 32 bits as is uses

[PATCH 4.9 54/86] drm/bridge: tc358767: do no fail on hi-res displays

2018-02-02 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Gusakov [ Upstream commit cffd2b16c01c3431a7a7dd62e722af33490fc436 ] Do not fail data rates higher than 2.7 and more than 2 lanes. Try to fall back to 2.7Gbps and 2 lanes. Acked-by: Ph

[PATCH 4.14 106/156] drm/bridge: tc358767: do no fail on hi-res displays

2018-02-02 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Gusakov [ Upstream commit cffd2b16c01c3431a7a7dd62e722af33490fc436 ] Do not fail data rates higher than 2.7 and more than 2 lanes. Try to fall back to 2.7Gbps and 2 lanes. Acked-by: P

[PATCH AUTOSEL for 4.14 080/100] drm/bridge: tc358767: do no fail on hi-res displays

2018-01-23 Thread Sasha Levin
From: Andrey Gusakov [ Upstream commit cffd2b16c01c3431a7a7dd62e722af33490fc436 ] Do not fail data rates higher than 2.7 and more than 2 lanes. Try to fall back to 2.7Gbps and 2 lanes. Acked-by: Philipp Zabel Reviewed-by: Andrzej Hajda Signed-off-by: Andrey Gusakov Signed-off-by: Andrzej Haj

[PATCH AUTOSEL for 4.9 40/55] drm/bridge: tc358767: do no fail on hi-res displays

2018-01-23 Thread Sasha Levin
From: Andrey Gusakov [ Upstream commit cffd2b16c01c3431a7a7dd62e722af33490fc436 ] Do not fail data rates higher than 2.7 and more than 2 lanes. Try to fall back to 2.7Gbps and 2 lanes. Acked-by: Philipp Zabel Reviewed-by: Andrzej Hajda Signed-off-by: Andrey Gusakov Signed-off-by: Andrzej Haj

Applied "ASoC: Intel: remove second duplicated assignment to pointer 'res'" to the asoc tree

2018-01-17 Thread Mark Brown
The patch ASoC: Intel: remove second duplicated assignment to pointer 'res' has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime i

[PATCH] ASoC: Intel: remove second duplicated assignment to pointer 'res'

2018-01-17 Thread Colin King
From: Colin Ian King The second assignment to res is identical to the previous assignment so it is redundant and can be removed. Cleans up clang warning: sound/soc/intel/skylake/skl-topology.c:191:25: warning: Value stored to 'res' during its initialization is never read Signed-off

[tip:x86/asm 9/17] arch/x86/kernel/crash.c:627:34-37: ERROR: Missing resource_size with res

2017-11-07 Thread kbuild test robot
>>) >> arch/x86/kernel/crash.c:627:34-37: ERROR: Missing resource_size with res arch/x86/kernel/crash.c:528:16-19: ERROR: Missing resource_size with res Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructureOpen Source Technology Center http

[PATCH 17/19] scsi: hisi_sas: remove phy_down_v3_hw() res variable

2017-08-10 Thread John Garry
Variable res only holds value 0, so remove it. This cleans up a coccicheck warning. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas

[PATCH] pci: remove unused res in pci_resource_io

2017-07-13 Thread Kefeng Wang
After commit dca40b186b75 ("PCI: Use BAR index in sysfs attr->private instead of resource pointer"), no need res variable, kill it. Signed-off-by: Kefeng Wang --- drivers/pci/pci-sysfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/pci/pci-sysfs.c b/drivers/pc

[PATCH 3.18 20/36] drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr

2017-07-03 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Deepak Rawat commit 82fcee526ba8ca2c5d378bdf51b21b7eb058fe3a upstream. The hash table created during vmw_cmdbuf_res_man_create was never freed. This causes memory leak in context creation. Add

[PATCH 4.4 027/101] drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr

2017-07-03 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Deepak Rawat commit 82fcee526ba8ca2c5d378bdf51b21b7eb058fe3a upstream. The hash table created during vmw_cmdbuf_res_man_create was never freed. This causes memory leak in context creation. Adde

[PATCH 4.9 041/172] drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr

2017-07-03 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Deepak Rawat commit 82fcee526ba8ca2c5d378bdf51b21b7eb058fe3a upstream. The hash table created during vmw_cmdbuf_res_man_create was never freed. This causes memory leak in context creation. Adde

[PATCH 4.11 49/84] drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr

2017-07-03 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Deepak Rawat commit 82fcee526ba8ca2c5d378bdf51b21b7eb058fe3a upstream. The hash table created during vmw_cmdbuf_res_man_create was never freed. This causes memory leak in context creation. Add

[PATCH 3.12 002/142] xfs: pass total block res. as total xfs_bmapi_write() parameter

2017-04-10 Thread Jiri Slaby
From: Brian Foster 3.12-stable review patch. If anyone has any objections, please let me know. === commit dbd5c8c9a28899c6ca719eb21afc0afba9dd5574 upstream. The total field from struct xfs_alloc_arg is a bit of an unknown commodity. It is documented as the total block requirement

[PATCH 1/2] resource: Copy the whole res in resource_list_create_entry

2017-03-21 Thread Jeffy Chen
/resource.c +++ b/kernel/resource.c @@ -1595,7 +1595,9 @@ struct resource_entry *resource_list_create_entry(struct resource *res, entry = kzalloc(sizeof(*entry) + extra_size, GFP_KERNEL); if (entry) { INIT_LIST_HEAD(&entry->node); - entry->

[PATCH 3.16 184/306] net/mlx4_core: Fix the resource-type enum in res tracker to conform to FW spec

2017-02-15 Thread Ben Hutchings
3.16.40-rc1 review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein commit aa0c08feae8161b945520ada753d0dfe62b14fe7 upstream. The resource type enum in the resource tracker was incorrect. RES_EQ was put in the position of RES_NPORT_ID (a FC re

Re: [PATCH] fscrypt: remove redundant assignment of res

2017-02-06 Thread Theodore Ts'o
On Tue, Jan 10, 2017 at 04:57:32PM +, Colin King wrote: > From: Colin Ian King > > res is assigned to sizeof(ctx), however, this is unused and res > is updated later on without that assigned value to res ever being > used. Remove this redundant assignment. > > F

  1   2   3   >