linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warnings after merge of the clk tree
@ 2017-06-20 23:34 Stephen Rothwell
  2017-06-21 15:15 ` Anup Patel
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2017-06-20 23:34 UTC (permalink / raw)
  To: Mike Turquette, Stephen Boyd
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List,
	Sandeep Tripathy, Anup Patel, Ray Jui, Scott Branden

Hi all,

After merging the clk tree, today's linux-next build (x86_64 allmodconfig)
produced these warnings:

WARNING: drivers/clk/bcm/built-in.o(.text+0x4022): Section mismatch in reference from the function sr_genpll3_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll3_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll3_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/bcm/built-in.o(.text+0x4069): Section mismatch in reference from the function sr_lcpll_pcie_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll_pcie_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll_pcie_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/bcm/built-in.o(.text+0x40b9): Section mismatch in reference from the function sr_lcpll1_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll1_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll1_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/bcm/built-in.o(.text+0x4109): Section mismatch in reference from the function sr_lcpll0_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll0_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll0_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/bcm/built-in.o(.text+0x4159): Section mismatch in reference from the function sr_genpll5_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll5_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll5_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/bcm/built-in.o(.text+0x41a9): Section mismatch in reference from the function sr_genpll4_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll4_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll4_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/bcm/built-in.o(.text+0x41f9): Section mismatch in reference from the function sr_genpll0_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll0_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll0_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/built-in.o(.text+0x14bf2): Section mismatch in reference from the function sr_genpll3_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll3_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll3_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/built-in.o(.text+0x14c39): Section mismatch in reference from the function sr_lcpll_pcie_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll_pcie_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll_pcie_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/built-in.o(.text+0x14c89): Section mismatch in reference from the function sr_lcpll1_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll1_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll1_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/built-in.o(.text+0x14cd9): Section mismatch in reference from the function sr_lcpll0_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll0_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll0_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/built-in.o(.text+0x14d29): Section mismatch in reference from the function sr_genpll5_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll5_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll5_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/built-in.o(.text+0x14d79): Section mismatch in reference from the function sr_genpll4_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll4_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll4_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/clk/built-in.o(.text+0x14dc9): Section mismatch in reference from the function sr_genpll0_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll0_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll0_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/built-in.o(.text+0x13e3a2): Section mismatch in reference from the function sr_genpll3_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll3_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll3_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/built-in.o(.text+0x13e3e9): Section mismatch in reference from the function sr_lcpll_pcie_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll_pcie_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll_pcie_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/built-in.o(.text+0x13e439): Section mismatch in reference from the function sr_lcpll1_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll1_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll1_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/built-in.o(.text+0x13e489): Section mismatch in reference from the function sr_lcpll0_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll0_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll0_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/built-in.o(.text+0x13e4d9): Section mismatch in reference from the function sr_genpll5_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll5_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll5_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/built-in.o(.text+0x13e529): Section mismatch in reference from the function sr_genpll4_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll4_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll4_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: drivers/built-in.o(.text+0x13e579): Section mismatch in reference from the function sr_genpll0_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll0_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll0_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: vmlinux.o(.text+0x819132): Section mismatch in reference from the function sr_genpll3_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll3_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll3_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: vmlinux.o(.text+0x819179): Section mismatch in reference from the function sr_lcpll_pcie_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll_pcie_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll_pcie_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: vmlinux.o(.text+0x8191c9): Section mismatch in reference from the function sr_lcpll1_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll1_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll1_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: vmlinux.o(.text+0x819219): Section mismatch in reference from the function sr_lcpll0_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_lcpll0_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_lcpll0_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: vmlinux.o(.text+0x819269): Section mismatch in reference from the function sr_genpll5_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll5_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll5_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: vmlinux.o(.text+0x8192b9): Section mismatch in reference from the function sr_genpll4_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll4_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll4_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

WARNING: vmlinux.o(.text+0x819309): Section mismatch in reference from the function sr_genpll0_clk_init() to the function .init.text:iproc_pll_clk_setup()
The function sr_genpll0_clk_init() references
the function __init iproc_pll_clk_setup().
This is often because sr_genpll0_clk_init lacks a __init 
annotation or the annotation of iproc_pll_clk_setup is wrong.

Introduced by commit

  654cdd3229cd ("clk: bcm: Add clocks for Stingray SOC")

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 5+ messages in thread
* linux-next: build warnings after merge of the clk tree
@ 2020-02-02 22:16 Stephen Rothwell
  2020-02-03  5:25 ` Stephen Boyd
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2020-02-02 22:16 UTC (permalink / raw)
  To: Mike Turquette, Stephen Boyd
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Wen He

[-- Attachment #1: Type: text/plain, Size: 22223 bytes --]

Hi all,

After merging the clk tree, today's linux-next build (x86_64 allmodconfig)
produced these warnings:

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)))
      |                             ^~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:145:14: note: in expansion of macro 'clamp'
  145 |  req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |              ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
drivers/clk/clk-plldig.c:145:14: note: in expansion of macro 'clamp'
  145 |  req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |              ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:843:48: note: in definition of macro '__is_constexpr'
  843 |  (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
      |                                                ^
include/linux/kernel.h:849:25: note: in expansion of macro '__no_side_effects'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |                         ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:145:14: note: in expansion of macro 'clamp'
  145 |  req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |              ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:851:27: note: in definition of macro '__cmp'
  851 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
      |                           ^
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:145:14: note: in expansion of macro 'clamp'
  145 |  req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |              ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:851:40: note: in definition of macro '__cmp'
  851 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
      |                                        ^
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:145:14: note: in expansion of macro 'clamp'
  145 |  req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |              ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:854:10: note: in definition of macro '__cmp_once'
  854 |   typeof(x) unique_x = (x);  \
      |          ^
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:145:14: note: in expansion of macro 'clamp'
  145 |  req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |              ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:854:25: note: in definition of macro '__cmp_once'
  854 |   typeof(x) unique_x = (x);  \
      |                         ^
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:145:14: note: in expansion of macro 'clamp'
  145 |  req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |              ^~~~~
drivers/clk/clk-plldig.c: In function 'plldig_set_rate':
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:159:9: note: in expansion of macro 'clamp'
  159 |  rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |         ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
drivers/clk/clk-plldig.c:159:9: note: in expansion of macro 'clamp'
  159 |  rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |         ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:843:48: note: in definition of macro '__is_constexpr'
  843 |  (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
      |                                                ^
include/linux/kernel.h:849:25: note: in expansion of macro '__no_side_effects'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |                         ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:159:9: note: in expansion of macro 'clamp'
  159 |  rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |         ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:851:27: note: in definition of macro '__cmp'
  851 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
      |                           ^
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:159:9: note: in expansion of macro 'clamp'
  159 |  rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |         ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:851:40: note: in definition of macro '__cmp'
  851 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
      |                                        ^
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:159:9: note: in expansion of macro 'clamp'
  159 |  rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |         ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:854:10: note: in definition of macro '__cmp_once'
  854 |   typeof(x) unique_x = (x);  \
      |          ^
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:159:9: note: in expansion of macro 'clamp'
  159 |  rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |         ^~~~~
include/linux/kernel.h:835:29: warning: comparison of distinct pointer types lacks a cast
  835 |   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                             ^~
include/linux/kernel.h:854:25: note: in definition of macro '__cmp_once'
  854 |   typeof(x) unique_x = (x);  \
      |                         ^
include/linux/kernel.h:868:19: note: in expansion of macro '__careful_cmp'
  868 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:28: note: in expansion of macro 'min'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                            ^~~
include/linux/kernel.h:849:4: note: in expansion of macro '__typecheck'
  849 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
  859 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
  875 | #define max(x, y) __careful_cmp(x, y, >)
      |                   ^~~~~~~~~~~~~
include/linux/kernel.h:912:45: note: in expansion of macro 'max'
  912 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
      |                                             ^~~
drivers/clk/clk-plldig.c:159:9: note: in expansion of macro 'clamp'
  159 |  rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
      |         ^~~~~

Introduced by commit

  d37010a3c162 ("clk: ls1028a: Add clock driver for Display output interface")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 23:34 linux-next: build warnings after merge of the clk tree Stephen Rothwell
2017-06-21 15:15 ` Anup Patel
2017-06-21 16:13   ` Stephen Boyd
2020-02-02 22:16 Stephen Rothwell
2020-02-03  5:25 ` Stephen Boyd

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).