Re: [PATCH -next 0/2] coccinelle: Add rules to find str_true_false/str_false_true replacements

2024-09-04 Thread Andy Shevchenko
On Wed, Sep 4, 2024 at 5:36 AM Hongbo Li wrote: > On 2024/8/29 19:24, Hongbo Li wrote: ... > I found that there are still a few function rules that are not complete, > such as str_on_off, str_enable_disable, str_yes_no. How about adding > these rules as well? Why not? -- With Best Regards, An

Re: [PATCH -next 0/2] coccinelle: Add rules to find str_true_false/str_false_true replacements

2024-09-04 Thread Hongbo Li
On 2024/9/4 15:37, Andy Shevchenko wrote: On Wed, Sep 4, 2024 at 5:36 AM Hongbo Li wrote: On 2024/8/29 19:24, Hongbo Li wrote: ... I found that there are still a few function rules that are not complete, such as str_on_off, str_enable_disable, str_yes_no. How about adding these rules as

[PATCH -next v2 4/9] coccinelle: Add rules to find str_lo{w}_hi{gh}() replacements

2024-09-04 Thread Hongbo Li
As other rules done, we add rules for str_lo{w}_hi{gh}() to check the relative opportunities. Signed-off-by: Hongbo Li --- scripts/coccinelle/api/string_choices.cocci | 46 + 1 file changed, 46 insertions(+) diff --git a/scripts/coccinelle/api/string_choices.cocci b/scripts

[PATCH -next v2 0/9] coccinelle: Add some rules for string_chioces helpers.

2024-09-04 Thread Hongbo Li
We found that many of the detection rules for helpers in string_choices.h are missing. This series of patches is intended to complete these rules. We have verified in the latest kernel tree that these rules can detect many places where the string choices helper can be used as a replacement. Here a

[PATCH -next v2 2/9] coccinelle: Add rules to find str_false_true() replacements

2024-09-04 Thread Hongbo Li
As done with str_true_false(), add checks for str_false_true() opportunities. A simple test can find over 9 cases currently exist in the tree. Signed-off-by: Hongbo Li --- scripts/coccinelle/api/string_choices.cocci | 23 + 1 file changed, 23 insertions(+) diff --git a/scrip

[PATCH -next v2 7/9] coccinelle: Add rules to find str_write_read() replacements

2024-09-04 Thread Hongbo Li
As other rules done, we add rules for str_write_read() to check the relative opportunities. Signed-off-by: Hongbo Li --- scripts/coccinelle/api/string_choices.cocci | 23 + 1 file changed, 23 insertions(+) diff --git a/scripts/coccinelle/api/string_choices.cocci b/scripts/c

[PATCH -next v2 9/9] coccinelle: Add rules to find str_yes_no() replacements

2024-09-04 Thread Hongbo Li
As other rules done, we add rules for str_yes_no() to check the relative opportunities. Signed-off-by: Hongbo Li --- scripts/coccinelle/api/string_choices.cocci | 23 + 1 file changed, 23 insertions(+) diff --git a/scripts/coccinelle/api/string_choices.cocci b/scripts/cocci

[PATCH -next v2 8/9] coccinelle: Add rules to find str_on_off() replacements

2024-09-04 Thread Hongbo Li
As other rules done, we add rules for str_on_off() to check the relative opportunities. Signed-off-by: Hongbo Li --- scripts/coccinelle/api/string_choices.cocci | 23 + 1 file changed, 23 insertions(+) diff --git a/scripts/coccinelle/api/string_choices.cocci b/scripts/cocci

[PATCH -next v2 3/9] coccinelle: Add rules to find str_hi{gh}_lo{w}() replacements

2024-09-04 Thread Hongbo Li
As other rules done, we add rules for str_hi{gh}_lo{w}() to check the relative opportunities. Signed-off-by: Hongbo Li --- scripts/coccinelle/api/string_choices.cocci | 46 + 1 file changed, 46 insertions(+) diff --git a/scripts/coccinelle/api/string_choices.cocci b/scripts

[PATCH -next v2 1/9] coccinelle: Add rules to find str_true_false() replacements

2024-09-04 Thread Hongbo Li
After str_true_false() has been introduced in the tree, we can add rules for finding places where str_true_false() can be used. A simple test can find over 10 locations. Signed-off-by: Hongbo Li --- scripts/coccinelle/api/string_choices.cocci | 23 + 1 file changed, 23 insert

[PATCH -next v2 6/9] coccinelle: Add rules to find str_read_write() replacements

2024-09-04 Thread Hongbo Li
As other rules done, we add rules for str_read_write() to check the relative opportunities. Signed-off-by: Hongbo Li --- scripts/coccinelle/api/string_choices.cocci | 23 + 1 file changed, 23 insertions(+) diff --git a/scripts/coccinelle/api/string_choices.cocci b/scripts/c

[PATCH -next v2 5/9] coccinelle: Add rules to find str_enable{d}_disable{d}() replacements

2024-09-04 Thread Hongbo Li
As other rules done, we add rules for str_enable{d}_ disable{d}() to check the relative opportunities. Signed-off-by: Hongbo Li --- scripts/coccinelle/api/string_choices.cocci | 46 + 1 file changed, 46 insertions(+) diff --git a/scripts/coccinelle/api/string_choices.cocci

[PATCH V10 0/2] Add support for aw96103/aw96105 proximity sensor

2024-09-04 Thread wangshuaijie
From: shuaijie wang Add drivers that support Awinic aw96103/aw96105 proximity sensors. The aw9610x series are high-sensitivity capacitive proximity detection sensors. This device detects human proximity and assists electronic devices in reducing specific absorption rate (SAR) to pass SAR related

[PATCH V10 1/2] dt-bindings: iio: aw96103: Add bindings for aw96103/aw96105 sensor

2024-09-04 Thread wangshuaijie
From: shuaijie wang Add device tree bindings for aw96103/aw96105 proximity sensor. Reviewed-by: Krzysztof Kozlowski Signed-off-by: shuaijie wang --- .../iio/proximity/awinic,aw96103.yaml | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devi

[PATCH V10 2/2] iio: proximity: aw96103: Add support for aw96103/aw96105 proximity sensor

2024-09-04 Thread wangshuaijie
From: shuaijie wang AW96103 is a low power consumption capacitive touch and proximity controller. Each channel can be independently config as sensor input, shield output. Channel Information: aw96103: 3-channel aw96105: 5-channel Signed-off-by: shuaijie wang --- drivers/iio/proximity/Kcon

Re: [PATCH -next 2/4] tun: Make use of str_disabled_enabled helper

2024-09-04 Thread Jakub Kicinski
On Wed, 4 Sep 2024 10:27:18 +0800 Hongbo Li wrote: > However, with these modifications, I'm not sure whether Willem and Jakub > agree with the changes. If they don't agree, then I'll have to remove > this example in the next version. This and, to be clear, patch 4 as well. > In the future, we c

Re: [PATCH -next] mmc: sdhci-cadence: Annotate struct sdhci_cdns_phy_param with __counted_by()

2024-09-04 Thread kernel test robot
Hi Hongbo, kernel test robot noticed the following build errors: [auto build test ERROR on next-20240903] url: https://github.com/intel-lab-lkp/linux/commits/Hongbo-Li/mmc-sdhci-cadence-Annotate-struct-sdhci_cdns_phy_param-with-__counted_by/20240904-094207 base: next-20240903 patch link

Re: [PATCH -next] mmc: sdhci-cadence: Annotate struct sdhci_cdns_phy_param with __counted_by()

2024-09-04 Thread Gustavo A. R. Silva
[..] - struct sdhci_cdns_phy_param phy_params[]; + struct sdhci_cdns_phy_param phy_params[] __counted_by(count); It seems there is no such `count` member in the structure[1]. Since `counted_by` hasn't been released in GCC yet. Please, make sure to build-test any `counted_by` patch

Re: [PATCH -next] mmc: sdhci-cadence: Annotate struct sdhci_cdns_phy_param with __counted_by()

2024-09-04 Thread Hongbo Li
On 2024/9/5 8:16, Gustavo A. R. Silva wrote: [..] -    struct sdhci_cdns_phy_param phy_params[]; +    struct sdhci_cdns_phy_param phy_params[] __counted_by(count); It seems there is no such `count` member in the structure[1]. Since `counted_by` hasn't been released in GCC yet. Please, mak