* [patch] PM / devfreq: exynos-nocp: Checking for IS_ERR instead of NULL @ 2016-05-18 10:37 Dan Carpenter 2016-05-18 10:57 ` Chanwoo Choi 2016-05-25 12:34 ` Chanwoo Choi 0 siblings, 2 replies; 22+ messages in thread From: Dan Carpenter @ 2016-05-18 10:37 UTC (permalink / raw) To: Chanwoo Choi Cc: MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors The platform_get_resource() function returns NULL on error, it never returns error pointers. Fixes: 0179a913875a ('PM / devfreq: event: Add new Exynos NoC probe driver') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c index 6b6a5f3..03b35d5 100644 --- a/drivers/devfreq/event/exynos-nocp.c +++ b/drivers/devfreq/event/exynos-nocp.c @@ -220,8 +220,8 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev, /* Maps the memory mapped IO to control nocp register */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (IS_ERR(res)) - return PTR_ERR(res); + if (!res) + return -ENXIO; base = devm_ioremap_resource(dev, res); if (IS_ERR(base)) ^ permalink raw reply related [flat|nested] 22+ messages in thread
* Re: [patch] PM / devfreq: exynos-nocp: Checking for IS_ERR instead of NULL 2016-05-18 10:37 [patch] PM / devfreq: exynos-nocp: Checking for IS_ERR instead of NULL Dan Carpenter @ 2016-05-18 10:57 ` Chanwoo Choi 2016-05-25 12:34 ` Chanwoo Choi 1 sibling, 0 replies; 22+ messages in thread From: Chanwoo Choi @ 2016-05-18 10:57 UTC (permalink / raw) To: Dan Carpenter Cc: MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors Hi Dan, On 2016년 05월 18일 19:37, Dan Carpenter wrote: > The platform_get_resource() function returns NULL on error, it never > returns error pointers. > > Fixes: 0179a913875a ('PM / devfreq: event: Add new Exynos NoC probe driver') > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c > index 6b6a5f3..03b35d5 100644 > --- a/drivers/devfreq/event/exynos-nocp.c > +++ b/drivers/devfreq/event/exynos-nocp.c > @@ -220,8 +220,8 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev, > > /* Maps the memory mapped IO to control nocp register */ > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - if (IS_ERR(res)) > - return PTR_ERR(res); > + if (!res) > + return -ENXIO; > > base = devm_ioremap_resource(dev, res); > if (IS_ERR(base)) Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Thanks, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch] PM / devfreq: exynos-nocp: Checking for IS_ERR instead of NULL 2016-05-18 10:37 [patch] PM / devfreq: exynos-nocp: Checking for IS_ERR instead of NULL Dan Carpenter 2016-05-18 10:57 ` Chanwoo Choi @ 2016-05-25 12:34 ` Chanwoo Choi 2016-05-25 15:11 ` Julia Lawall 1 sibling, 1 reply; 22+ messages in thread From: Chanwoo Choi @ 2016-05-25 12:34 UTC (permalink / raw) To: Dan Carpenter Cc: MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors On 2016년 05월 18일 19:37, Dan Carpenter wrote: > The platform_get_resource() function returns NULL on error, it never > returns error pointers. > > Fixes: 0179a913875a ('PM / devfreq: event: Add new Exynos NoC probe driver') > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c > index 6b6a5f3..03b35d5 100644 > --- a/drivers/devfreq/event/exynos-nocp.c > +++ b/drivers/devfreq/event/exynos-nocp.c > @@ -220,8 +220,8 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev, > > /* Maps the memory mapped IO to control nocp register */ > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - if (IS_ERR(res)) > - return PTR_ERR(res); > + if (!res) > + return -ENXIO; > > base = devm_ioremap_resource(dev, res); > if (IS_ERR(base)) Looks good to me. Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Thanks, Chanwoo Choi ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch] PM / devfreq: exynos-nocp: Checking for IS_ERR instead of NULL 2016-05-25 12:34 ` Chanwoo Choi @ 2016-05-25 15:11 ` Julia Lawall 2016-05-26 6:39 ` Dan Carpenter 2016-05-26 6:45 ` [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check Dan Carpenter 0 siblings, 2 replies; 22+ messages in thread From: Julia Lawall @ 2016-05-25 15:11 UTC (permalink / raw) To: Chanwoo Choi Cc: Dan Carpenter, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors [-- Attachment #1: Type: TEXT/PLAIN, Size: 1359 bytes --] On Wed, 25 May 2016, Chanwoo Choi wrote: > On 2016년 05월 18일 19:37, Dan Carpenter wrote: > > The platform_get_resource() function returns NULL on error, it never > > returns error pointers. > > > > Fixes: 0179a913875a ('PM / devfreq: event: Add new Exynos NoC probe driver') > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > > > diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c > > index 6b6a5f3..03b35d5 100644 > > --- a/drivers/devfreq/event/exynos-nocp.c > > +++ b/drivers/devfreq/event/exynos-nocp.c > > @@ -220,8 +220,8 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev, > > > > /* Maps the memory mapped IO to control nocp register */ > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > - if (IS_ERR(res)) > > - return PTR_ERR(res); > > + if (!res) > > + return -ENXIO; > > > > base = devm_ioremap_resource(dev, res); > > if (IS_ERR(base)) > > Looks good to me. I believe that there is no need for the test at all. devm_ioremap_resource should make the test. julia > > Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> > > Thanks, > Chanwoo Choi > > -- > To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch] PM / devfreq: exynos-nocp: Checking for IS_ERR instead of NULL 2016-05-25 15:11 ` Julia Lawall @ 2016-05-26 6:39 ` Dan Carpenter 2016-05-26 6:45 ` [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check Dan Carpenter 1 sibling, 0 replies; 22+ messages in thread From: Dan Carpenter @ 2016-05-26 6:39 UTC (permalink / raw) To: Julia Lawall Cc: Chanwoo Choi, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors On Wed, May 25, 2016 at 05:11:33PM +0200, Julia Lawall wrote: > > > On Wed, 25 May 2016, Chanwoo Choi wrote: > > > On 2016년 05월 18일 19:37, Dan Carpenter wrote: > > > The platform_get_resource() function returns NULL on error, it never > > > returns error pointers. > > > > > > Fixes: 0179a913875a ('PM / devfreq: event: Add new Exynos NoC probe driver') > > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > > > > > diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c > > > index 6b6a5f3..03b35d5 100644 > > > --- a/drivers/devfreq/event/exynos-nocp.c > > > +++ b/drivers/devfreq/event/exynos-nocp.c > > > @@ -220,8 +220,8 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev, > > > > > > /* Maps the memory mapped IO to control nocp register */ > > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > > - if (IS_ERR(res)) > > > - return PTR_ERR(res); > > > + if (!res) > > > + return -ENXIO; > > > > > > base = devm_ioremap_resource(dev, res); > > > if (IS_ERR(base)) > > > > Looks good to me. > > I believe that there is no need for the test at all. > devm_ioremap_resource should make the test. True. The static checker warning here is just that "res" isn't an error pointer, not that we dereference it. I'll resend. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 22+ messages in thread
* [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-25 15:11 ` Julia Lawall 2016-05-26 6:39 ` Dan Carpenter @ 2016-05-26 6:45 ` Dan Carpenter 2016-05-26 8:12 ` Chanwoo Choi ` (2 more replies) 1 sibling, 3 replies; 22+ messages in thread From: Dan Carpenter @ 2016-05-26 6:45 UTC (permalink / raw) To: Chanwoo Choi, Julia Lawall Cc: MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors Smatch complains because platform_get_resource() returns NULL on error and not an error pointer so the check is wrong. Julia Lawall pointed out that normally we don't check these, because devm_ioremap_resource() has a check for NULL. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> --- v2: just remove the check diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c index 6b6a5f3..a584140 100644 --- a/drivers/devfreq/event/exynos-nocp.c +++ b/drivers/devfreq/event/exynos-nocp.c @@ -220,9 +220,6 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev, /* Maps the memory mapped IO to control nocp register */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (IS_ERR(res)) - return PTR_ERR(res); - base = devm_ioremap_resource(dev, res); if (IS_ERR(base)) return PTR_ERR(base); ^ permalink raw reply related [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 6:45 ` [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check Dan Carpenter @ 2016-05-26 8:12 ` Chanwoo Choi 2016-05-26 10:02 ` Dan Carpenter 2016-05-26 11:56 ` Dan Carpenter 2016-05-26 11:13 ` Julia Lawall 2016-06-01 10:25 ` MyungJoo Ham 2 siblings, 2 replies; 22+ messages in thread From: Chanwoo Choi @ 2016-05-26 8:12 UTC (permalink / raw) To: Dan Carpenter, Julia Lawall Cc: MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors Hi Dan, On 2016년 05월 26일 15:45, Dan Carpenter wrote: > Smatch complains because platform_get_resource() returns NULL on error > and not an error pointer so the check is wrong. Julia Lawall pointed > out that normally we don't check these, because devm_ioremap_resource() > has a check for NULL. > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > --- > v2: just remove the check > > diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c > index 6b6a5f3..a584140 100644 > --- a/drivers/devfreq/event/exynos-nocp.c > +++ b/drivers/devfreq/event/exynos-nocp.c > @@ -220,9 +220,6 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev, > > /* Maps the memory mapped IO to control nocp register */ > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - if (IS_ERR(res)) > - return PTR_ERR(res); > - > base = devm_ioremap_resource(dev, res); > if (IS_ERR(base)) > return PTR_ERR(base); I don't recommend that you mention the name of engineer on patch description directly. Except for this comment, looks good to me. Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Thanks, Chanwoo Choi ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 8:12 ` Chanwoo Choi @ 2016-05-26 10:02 ` Dan Carpenter 2016-05-26 10:16 ` Chanwoo Choi 2016-05-26 11:56 ` Dan Carpenter 1 sibling, 1 reply; 22+ messages in thread From: Dan Carpenter @ 2016-05-26 10:02 UTC (permalink / raw) To: Chanwoo Choi Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors On Thu, May 26, 2016 at 05:12:19PM +0900, Chanwoo Choi wrote: > I don't recommend that you mention the name of engineer on patch description > directly. Except for this comment, looks good to me. I always feel it's nicer to give credit. Plus Julia is already a well known kernel dev and this was a pubic list. (I wouldn't give credit if she had sent hurtful comments about my spelling to me privately, for example). regards, dan carpenter ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 10:02 ` Dan Carpenter @ 2016-05-26 10:16 ` Chanwoo Choi 2016-05-26 10:51 ` Dan Carpenter 0 siblings, 1 reply; 22+ messages in thread From: Chanwoo Choi @ 2016-05-26 10:16 UTC (permalink / raw) To: Dan Carpenter Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors On 2016년 05월 26일 19:02, Dan Carpenter wrote: > On Thu, May 26, 2016 at 05:12:19PM +0900, Chanwoo Choi wrote: >> I don't recommend that you mention the name of engineer on patch description >> directly. Except for this comment, looks good to me. > > I always feel it's nicer to give credit. Plus Julia is already a well > known kernel dev and this was a pubic list. (I wouldn't give credit if > she had sent hurtful comments about my spelling to me privately, for > example). If you want to give credit as you mentioned, you can add the acked-by or signed-off for Julia. But, usually, the patch description don't include the engineer's name directly. Thanks, Chanwoo Choi ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 10:16 ` Chanwoo Choi @ 2016-05-26 10:51 ` Dan Carpenter 2016-05-26 10:57 ` Chanwoo Choi 0 siblings, 1 reply; 22+ messages in thread From: Dan Carpenter @ 2016-05-26 10:51 UTC (permalink / raw) To: Chanwoo Choi Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors Signed-off-by is like signing a legal document to say that you haven't stolen any of the code from SCO Unix. Please don't put sign for other people. regards, dan carpenter ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 10:51 ` Dan Carpenter @ 2016-05-26 10:57 ` Chanwoo Choi 2016-05-26 11:01 ` Chanwoo Choi 0 siblings, 1 reply; 22+ messages in thread From: Chanwoo Choi @ 2016-05-26 10:57 UTC (permalink / raw) To: Dan Carpenter Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors On 2016년 05월 26일 19:51, Dan Carpenter wrote: > Signed-off-by is like signing a legal document to say that you haven't > stolen any of the code from SCO Unix. Please don't put sign for other > people. You're right. I'm forcing to put the Sign-off. It is just example. But, I still think that patch description including the engineer's name is not appropriate to give the credit someone. Thanks, Chanwoo Choi ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 10:57 ` Chanwoo Choi @ 2016-05-26 11:01 ` Chanwoo Choi 0 siblings, 0 replies; 22+ messages in thread From: Chanwoo Choi @ 2016-05-26 11:01 UTC (permalink / raw) To: Dan Carpenter Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors On 2016년 05월 26일 19:57, Chanwoo Choi wrote: > On 2016년 05월 26일 19:51, Dan Carpenter wrote: >> Signed-off-by is like signing a legal document to say that you haven't >> stolen any of the code from SCO Unix. Please don't put sign for other >> people. > > You're right. I'm forcing to put the Sign-off. It is just example. > > But, I still think that patch description including the engineer's name is not appropriate > to give the credit someone. > Also, If Julia review this patch, you just can add the reviewed-by tag. I think that it is enough. Thanks, Chanwoo Choi ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 8:12 ` Chanwoo Choi 2016-05-26 10:02 ` Dan Carpenter @ 2016-05-26 11:56 ` Dan Carpenter 2016-05-26 13:46 ` Chanwoo Choi 1 sibling, 1 reply; 22+ messages in thread From: Dan Carpenter @ 2016-05-26 11:56 UTC (permalink / raw) To: Chanwoo Choi Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors On Thu, May 26, 2016 at 05:12:19PM +0900, Chanwoo Choi wrote: > I don't recommend that you mention the name of engineer on patch description > directly. This really is normal. I've been mentioned over 100 times in commit messages like 7051924f771 (xillybus: Move out of staging). regards, dan carpenter ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 11:56 ` Dan Carpenter @ 2016-05-26 13:46 ` Chanwoo Choi 2016-05-26 13:54 ` Julia Lawall 2016-05-26 13:56 ` Dan Carpenter 0 siblings, 2 replies; 22+ messages in thread From: Chanwoo Choi @ 2016-05-26 13:46 UTC (permalink / raw) To: Dan Carpenter Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm@vger.kernel.org, linux-samsung-soc, kernel-janitors On Thu, May 26, 2016 at 8:56 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote: > On Thu, May 26, 2016 at 05:12:19PM +0900, Chanwoo Choi wrote: >> I don't recommend that you mention the name of engineer on patch description >> directly. > > This really is normal. I've been mentioned over 100 times in commit > messages like 7051924f771 (xillybus: Move out of staging). I'm still reluctant to use the name on description. How about you use the Suggested-by tag as following? [julia.lawall : Suggest that it is not necessary to check return value of platform_get_resource] Suggested-by: Julia Lawall <julia.lawall@lip6.fr> Thanks, Chanwoo Choi ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 13:46 ` Chanwoo Choi @ 2016-05-26 13:54 ` Julia Lawall 2016-05-26 13:56 ` Dan Carpenter 1 sibling, 0 replies; 22+ messages in thread From: Julia Lawall @ 2016-05-26 13:54 UTC (permalink / raw) To: cw00.choi Cc: Dan Carpenter, Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm@vger.kernel.org, linux-samsung-soc, kernel-janitors On Thu, 26 May 2016, Chanwoo Choi wrote: > On Thu, May 26, 2016 at 8:56 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote: > > On Thu, May 26, 2016 at 05:12:19PM +0900, Chanwoo Choi wrote: > >> I don't recommend that you mention the name of engineer on patch description > >> directly. > > > > This really is normal. I've been mentioned over 100 times in commit > > messages like 7051924f771 (xillybus: Move out of staging). > > I'm still reluctant to use the name on description. > How about you use the Suggested-by tag as following? > > [julia.lawall : Suggest that it is not necessary to check return value > of platform_get_resource] > Suggested-by: Julia Lawall <julia.lawall@lip6.fr> Like Dan, I really don't see the problem. The text in [ ] looks ugly. A suggested by by itself would not be appropriate, since I didn't identify the original issue. There are ther patches that refer to peoples' comments in a similar way. Example: d8aacd87180141ff6b812b53de77a4336e87c91a julia ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 13:46 ` Chanwoo Choi 2016-05-26 13:54 ` Julia Lawall @ 2016-05-26 13:56 ` Dan Carpenter 2016-05-26 14:10 ` Chanwoo Choi 1 sibling, 1 reply; 22+ messages in thread From: Dan Carpenter @ 2016-05-26 13:56 UTC (permalink / raw) To: cw00.choi Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm@vger.kernel.org, linux-samsung-soc, kernel-janitors On Thu, May 26, 2016 at 10:46:26PM +0900, Chanwoo Choi wrote: > On Thu, May 26, 2016 at 8:56 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote: > > On Thu, May 26, 2016 at 05:12:19PM +0900, Chanwoo Choi wrote: > >> I don't recommend that you mention the name of engineer on patch description > >> directly. > > > > This really is normal. I've been mentioned over 100 times in commit > > messages like 7051924f771 (xillybus: Move out of staging). > > I'm still reluctant to use the name on description. I understand that but I don't understand why, though. Anyway, aren't forwarding this to someone? You can change it to say whatever you want. regards, dan carpenter ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 13:56 ` Dan Carpenter @ 2016-05-26 14:10 ` Chanwoo Choi 2016-05-26 14:15 ` Julia Lawall 2016-05-26 16:06 ` Dan Carpenter 0 siblings, 2 replies; 22+ messages in thread From: Chanwoo Choi @ 2016-05-26 14:10 UTC (permalink / raw) To: Dan Carpenter Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm@vger.kernel.org, linux-samsung-soc, kernel-janitors On Thu, May 26, 2016 at 10:56 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote: > On Thu, May 26, 2016 at 10:46:26PM +0900, Chanwoo Choi wrote: >> On Thu, May 26, 2016 at 8:56 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote: >> > On Thu, May 26, 2016 at 05:12:19PM +0900, Chanwoo Choi wrote: >> >> I don't recommend that you mention the name of engineer on patch description >> >> directly. >> > >> > This really is normal. I've been mentioned over 100 times in commit >> > messages like 7051924f771 (xillybus: Move out of staging). >> >> I'm still reluctant to use the name on description. > > I understand that but I don't understand why, though. Anyway, aren't > forwarding this to someone? You can change it to say whatever you want. Because if the name without any unique email address is included in the description, I think that it is not appropriate. Always, the information should include the email address. So, I just prefer to use the Suggested-by or the different kind of tag with [id: explanation]. But, I'll stop about it because it is not critical issue. It depend on what is the preferred method to add the information. Thanks, Chanwoo Choi ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 14:10 ` Chanwoo Choi @ 2016-05-26 14:15 ` Julia Lawall 2016-05-26 16:06 ` Dan Carpenter 1 sibling, 0 replies; 22+ messages in thread From: Julia Lawall @ 2016-05-26 14:15 UTC (permalink / raw) To: cw00.choi Cc: Dan Carpenter, Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm@vger.kernel.org, linux-samsung-soc, kernel-janitors On Thu, 26 May 2016, Chanwoo Choi wrote: > On Thu, May 26, 2016 at 10:56 PM, Dan Carpenter > <dan.carpenter@oracle.com> wrote: > > On Thu, May 26, 2016 at 10:46:26PM +0900, Chanwoo Choi wrote: > >> On Thu, May 26, 2016 at 8:56 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote: > >> > On Thu, May 26, 2016 at 05:12:19PM +0900, Chanwoo Choi wrote: > >> >> I don't recommend that you mention the name of engineer on patch description > >> >> directly. > >> > > >> > This really is normal. I've been mentioned over 100 times in commit > >> > messages like 7051924f771 (xillybus: Move out of staging). > >> > >> I'm still reluctant to use the name on description. > > > > I understand that but I don't understand why, though. Anyway, aren't > > forwarding this to someone? You can change it to say whatever you want. > > Because if the name without any unique email address is included in > the description, I sent a Reviewed-by, so this issue is solved. julia > I think that it is not appropriate. Always, the information should > include the email address. > So, I just prefer to use the Suggested-by or the different kind of tag > with [id: explanation]. > > But, I'll stop about it because it is not critical issue. > It depend on what is the preferred method to add the information. > > Thanks, > Chanwoo Choi > -- > To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 14:10 ` Chanwoo Choi 2016-05-26 14:15 ` Julia Lawall @ 2016-05-26 16:06 ` Dan Carpenter 1 sibling, 0 replies; 22+ messages in thread From: Dan Carpenter @ 2016-05-26 16:06 UTC (permalink / raw) To: cw00.choi Cc: Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm@vger.kernel.org, linux-samsung-soc, kernel-janitors The only duplicates that I know about currently are Dan Williams and Xi Wang. I do sometimes get those people mixed up. I hope someday there will be another Julia Lawall duplicate as well. :) regards, dan carpenter ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 6:45 ` [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check Dan Carpenter 2016-05-26 8:12 ` Chanwoo Choi @ 2016-05-26 11:13 ` Julia Lawall 2016-06-01 10:25 ` MyungJoo Ham 2 siblings, 0 replies; 22+ messages in thread From: Julia Lawall @ 2016-05-26 11:13 UTC (permalink / raw) To: Dan Carpenter Cc: Chanwoo Choi, Julia Lawall, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-samsung-soc, kernel-janitors Reviewed-by: Julia Lawall <julia.lawall@lip6.fr> On Thu, 26 May 2016, Dan Carpenter wrote: > Smatch complains because platform_get_resource() returns NULL on error > and not an error pointer so the check is wrong. Julia Lawall pointed > out that normally we don't check these, because devm_ioremap_resource() > has a check for NULL. > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > --- > v2: just remove the check > > diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c > index 6b6a5f3..a584140 100644 > --- a/drivers/devfreq/event/exynos-nocp.c > +++ b/drivers/devfreq/event/exynos-nocp.c > @@ -220,9 +220,6 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev, > > /* Maps the memory mapped IO to control nocp register */ > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - if (IS_ERR(res)) > - return PTR_ERR(res); > - > base = devm_ioremap_resource(dev, res); > if (IS_ERR(base)) > return PTR_ERR(base); > -- > To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-05-26 6:45 ` [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check Dan Carpenter 2016-05-26 8:12 ` Chanwoo Choi 2016-05-26 11:13 ` Julia Lawall @ 2016-06-01 10:25 ` MyungJoo Ham 2016-06-01 11:33 ` Chanwoo Choi 2 siblings, 1 reply; 22+ messages in thread From: MyungJoo Ham @ 2016-06-01 10:25 UTC (permalink / raw) To: Dan Carpenter Cc: Chanwoo Choi, Julia Lawall, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, Linux PM list, Linux Samsung SoC, kernel-janitors On Thu, May 26, 2016 at 3:45 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote: > Smatch complains because platform_get_resource() returns NULL on error > and not an error pointer so the check is wrong. Julia Lawall pointed > out that normally we don't check these, because devm_ioremap_resource() > has a check for NULL. > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com> Queued in fixes branch to be sent with other fixes for RCx. > --- > v2: just remove the check > > diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c > index 6b6a5f3..a584140 100644 > --- a/drivers/devfreq/event/exynos-nocp.c > +++ b/drivers/devfreq/event/exynos-nocp.c > @@ -220,9 +220,6 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev, > > /* Maps the memory mapped IO to control nocp register */ > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - if (IS_ERR(res)) > - return PTR_ERR(res); > - > base = devm_ioremap_resource(dev, res); > if (IS_ERR(base)) > return PTR_ERR(base); > -- > To unsubscribe from this list: send the line "unsubscribe linux-pm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- MyungJoo Ham, Ph.D. Frontier CS Lab, S/W Center, Samsung Electronics ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check 2016-06-01 10:25 ` MyungJoo Ham @ 2016-06-01 11:33 ` Chanwoo Choi 0 siblings, 0 replies; 22+ messages in thread From: Chanwoo Choi @ 2016-06-01 11:33 UTC (permalink / raw) To: MyungJoo Ham Cc: Dan Carpenter, Julia Lawall, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, Linux PM list, Linux Samsung SoC, kernel-janitors Hi Myungjoo, On Wed, Jun 1, 2016 at 7:25 PM, MyungJoo Ham <myungjoo.ham@samsung.com> wrote: > On Thu, May 26, 2016 at 3:45 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote: >> Smatch complains because platform_get_resource() returns NULL on error >> and not an error pointer so the check is wrong. Julia Lawall pointed >> out that normally we don't check these, because devm_ioremap_resource() >> has a check for NULL. >> >> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com> > > Queued in fixes branch to be sent with other fixes for RCx. I already reviewed this patch. Also, the merged patch[1] don't include the my reviewed-by tag. I'd like you to add my reviewed-by tag again. [1] https://git.kernel.org/cgit/linux/kernel/git/mzx/devfreq.git/commit/?h=fixes&id=44a3c02256bb69b2a20f55d2bd77c5a2fd20bc52 Regards, Chanwoo Choi ^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2016-06-01 11:33 UTC | newest] Thread overview: 22+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-05-18 10:37 [patch] PM / devfreq: exynos-nocp: Checking for IS_ERR instead of NULL Dan Carpenter 2016-05-18 10:57 ` Chanwoo Choi 2016-05-25 12:34 ` Chanwoo Choi 2016-05-25 15:11 ` Julia Lawall 2016-05-26 6:39 ` Dan Carpenter 2016-05-26 6:45 ` [patch v2] PM / devfreq: exynos-nocp: Remove incorrect IS_ERR() check Dan Carpenter 2016-05-26 8:12 ` Chanwoo Choi 2016-05-26 10:02 ` Dan Carpenter 2016-05-26 10:16 ` Chanwoo Choi 2016-05-26 10:51 ` Dan Carpenter 2016-05-26 10:57 ` Chanwoo Choi 2016-05-26 11:01 ` Chanwoo Choi 2016-05-26 11:56 ` Dan Carpenter 2016-05-26 13:46 ` Chanwoo Choi 2016-05-26 13:54 ` Julia Lawall 2016-05-26 13:56 ` Dan Carpenter 2016-05-26 14:10 ` Chanwoo Choi 2016-05-26 14:15 ` Julia Lawall 2016-05-26 16:06 ` Dan Carpenter 2016-05-26 11:13 ` Julia Lawall 2016-06-01 10:25 ` MyungJoo Ham 2016-06-01 11:33 ` Chanwoo Choi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).