All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] clk: ls1028a: Fix warning on clamp() usage
@ 2020-02-03  5:25 Stephen Boyd
  2020-02-03  5:25 ` [PATCH 2/2] dt/bindings: clk: fsl,plldig: Drop 'bindings' from schema id Stephen Boyd
  2020-02-03 18:33 ` [PATCH 1/2] clk: ls1028a: Fix warning on clamp() usage Stephen Boyd
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Boyd @ 2020-02-03  5:25 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Stephen Rothwell, Wen He

These constants are used in clamp() with the value being clamped an
unsigned long. Make them unsigned long defines so that clamp() doesn't
complain about comparing different types.

In file included from include/linux/list.h:9,
                 from include/linux/kobject.h:19,
                 from include/linux/of.h:17,
                 from include/linux/clk-provider.h:9,
                 from drivers/clk/clk-plldig.c:8:
drivers/clk/clk-plldig.c: In function 'plldig_determine_rate':
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Wen He <wen.he_1@nxp.com>
Fixes: d37010a3c162 ("clk: ls1028a: Add clock driver for Display output interface")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/clk-plldig.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/clk-plldig.c b/drivers/clk/clk-plldig.c
index a5da08f98d01..312b8312d503 100644
--- a/drivers/clk/clk-plldig.c
+++ b/drivers/clk/clk-plldig.c
@@ -37,8 +37,8 @@
 #define PLLDIG_MAX_VCO_FREQ         1300000000
 
 /* Range of the output frequencies, in Hz */
-#define PHI1_MIN_FREQ               27000000
-#define PHI1_MAX_FREQ               600000000
+#define PHI1_MIN_FREQ               27000000UL
+#define PHI1_MAX_FREQ               600000000UL
 
 /* Maximum value of the reduced frequency divider */
 #define MAX_RFDPHI1          63UL
-- 
Sent by a computer, using git, on the internet


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] dt/bindings: clk: fsl,plldig: Drop 'bindings' from schema id
  2020-02-03  5:25 [PATCH 1/2] clk: ls1028a: Fix warning on clamp() usage Stephen Boyd
@ 2020-02-03  5:25 ` Stephen Boyd
  2020-02-03  9:39   ` Rob Herring
  2020-02-03 18:33   ` Stephen Boyd
  2020-02-03 18:33 ` [PATCH 1/2] clk: ls1028a: Fix warning on clamp() usage Stephen Boyd
  1 sibling, 2 replies; 5+ messages in thread
From: Stephen Boyd @ 2020-02-03  5:25 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, devicetree, Rob Herring, Wen He

Having 'bindings' in here causes a warning when checking the schema.

 Documentation/devicetree/bindings/clock/fsl,plldig.yaml:
 $id: relative path/filename doesn't match actual path or filename
         expected: http://devicetree.org/schemas/clock/fsl,plldig.yaml#

Remove it.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Wen He <wen.he_1@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 Documentation/devicetree/bindings/clock/fsl,plldig.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/clock/fsl,plldig.yaml b/Documentation/devicetree/bindings/clock/fsl,plldig.yaml
index ad37d3273229..c8350030b374 100644
--- a/Documentation/devicetree/bindings/clock/fsl,plldig.yaml
+++ b/Documentation/devicetree/bindings/clock/fsl,plldig.yaml
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 %YAML 1.2
 ---
-$id: http://devicetree.org/schemas/bindings/clock/fsl,plldig.yaml#
+$id: http://devicetree.org/schemas/clock/fsl,plldig.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
 title: NXP QorIQ Layerscape LS1028A Display PIXEL Clock Binding
-- 
Sent by a computer, using git, on the internet


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] dt/bindings: clk: fsl,plldig: Drop 'bindings' from schema id
  2020-02-03  5:25 ` [PATCH 2/2] dt/bindings: clk: fsl,plldig: Drop 'bindings' from schema id Stephen Boyd
@ 2020-02-03  9:39   ` Rob Herring
  2020-02-03 18:33   ` Stephen Boyd
  1 sibling, 0 replies; 5+ messages in thread
From: Rob Herring @ 2020-02-03  9:39 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: Michael Turquette, linux-kernel, linux-clk, devicetree, Wen He

On Mon, Feb 3, 2020 at 5:25 AM Stephen Boyd <sboyd@kernel.org> wrote:
>
> Having 'bindings' in here causes a warning when checking the schema.
>
>  Documentation/devicetree/bindings/clock/fsl,plldig.yaml:
>  $id: relative path/filename doesn't match actual path or filename
>          expected: http://devicetree.org/schemas/clock/fsl,plldig.yaml#
>
> Remove it.
>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Wen He <wen.he_1@nxp.com>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---
>  Documentation/devicetree/bindings/clock/fsl,plldig.yaml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

There's actually a more few of these in clock bindings. I am going to
do a tree wide fix on this. I was waiting until the clock tree is
merged.

And I didn't really mean to commit this check to dtschema until all
these were fixed, so I've reverted it for now.

So either go ahead and apply this or I'll get it.

Acked-by: Rob Herring <robh@kernel.org>

Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] clk: ls1028a: Fix warning on clamp() usage
  2020-02-03  5:25 [PATCH 1/2] clk: ls1028a: Fix warning on clamp() usage Stephen Boyd
  2020-02-03  5:25 ` [PATCH 2/2] dt/bindings: clk: fsl,plldig: Drop 'bindings' from schema id Stephen Boyd
@ 2020-02-03 18:33 ` Stephen Boyd
  1 sibling, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2020-02-03 18:33 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Stephen Rothwell, Wen He

Quoting Stephen Boyd (2020-02-02 21:25:06)
> These constants are used in clamp() with the value being clamped an
> unsigned long. Make them unsigned long defines so that clamp() doesn't
> complain about comparing different types.
> 
> In file included from include/linux/list.h:9,
>                  from include/linux/kobject.h:19,
>                  from include/linux/of.h:17,
>                  from include/linux/clk-provider.h:9,
>                  from drivers/clk/clk-plldig.c:8:
> drivers/clk/clk-plldig.c: In function 'plldig_determine_rate':
> include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
>   835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
>       |
> 
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Cc: Wen He <wen.he_1@nxp.com>
> Fixes: d37010a3c162 ("clk: ls1028a: Add clock driver for Display output interface")
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] dt/bindings: clk: fsl,plldig: Drop 'bindings' from schema id
  2020-02-03  5:25 ` [PATCH 2/2] dt/bindings: clk: fsl,plldig: Drop 'bindings' from schema id Stephen Boyd
  2020-02-03  9:39   ` Rob Herring
@ 2020-02-03 18:33   ` Stephen Boyd
  1 sibling, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2020-02-03 18:33 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, devicetree, Rob Herring, Wen He

Quoting Stephen Boyd (2020-02-02 21:25:07)
> Having 'bindings' in here causes a warning when checking the schema.
> 
>  Documentation/devicetree/bindings/clock/fsl,plldig.yaml:
>  $id: relative path/filename doesn't match actual path or filename
>          expected: http://devicetree.org/schemas/clock/fsl,plldig.yaml#
> 
> Remove it.
> 
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Wen He <wen.he_1@nxp.com>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-02-03 18:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-03  5:25 [PATCH 1/2] clk: ls1028a: Fix warning on clamp() usage Stephen Boyd
2020-02-03  5:25 ` [PATCH 2/2] dt/bindings: clk: fsl,plldig: Drop 'bindings' from schema id Stephen Boyd
2020-02-03  9:39   ` Rob Herring
2020-02-03 18:33   ` Stephen Boyd
2020-02-03 18:33 ` [PATCH 1/2] clk: ls1028a: Fix warning on clamp() usage Stephen Boyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.