[morimoto-linux:fw-cleanup-2020-12-15-v2 93/93] sound/soc/generic/simple-card.c:175:31: error: passing argument 1 of 'asoc_simple_canonicalize_cpu' from incompatible pointer type
by kernel test robot
tree: https://github.com/morimoto/linux fw-cleanup-2020-12-15-v2
head: 228442c52651fc123cc1f69999b08965852a0019
commit: 228442c52651fc123cc1f69999b08965852a0019 [93/93] hge
config: nios2-randconfig-s031-20201214 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
# https://github.com/morimoto/linux/commit/228442c52651fc123cc1f69999b08965...
git remote add morimoto-linux https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux fw-cleanup-2020-12-15-v2
git checkout 228442c52651fc123cc1f69999b08965852a0019
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
sound/soc/generic/simple-card.c: In function 'simple_dai_link_of':
>> sound/soc/generic/simple-card.c:175:31: error: passing argument 1 of 'asoc_simple_canonicalize_cpu' from incompatible pointer type [-Werror=incompatible-pointer-types]
175 | asoc_simple_canonicalize_cpu(dai_link, 0, single_cpu);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/simple_card.h:13,
from sound/soc/generic/simple-card.c:15:
include/sound/simple_card_utils.h:150:70: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct snd_soc_dai_link *'
150 | void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> sound/soc/generic/simple-card.c:175:2: error: too many arguments to function 'asoc_simple_canonicalize_cpu'
175 | asoc_simple_canonicalize_cpu(dai_link, 0, single_cpu);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/simple_card.h:13,
from sound/soc/generic/simple-card.c:15:
include/sound/simple_card_utils.h:150:6: note: declared here
150 | void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/generic/simple-card.c:176:36: error: passing argument 1 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
176 | asoc_simple_canonicalize_platform(dev, dai_link, 0);
| ^~~
| |
| struct device *
In file included from include/sound/simple_card.h:13,
from sound/soc/generic/simple-card.c:15:
include/sound/simple_card_utils.h:148:75: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct device *'
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
sound/soc/generic/simple-card.c:176:41: error: passing argument 2 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
176 | asoc_simple_canonicalize_platform(dev, dai_link, 0);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/simple_card.h:13,
from sound/soc/generic/simple-card.c:15:
include/sound/simple_card_utils.h:149:47: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct snd_soc_dai_link *'
149 | struct snd_soc_dai_link_component *cpus);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> sound/soc/generic/simple-card.c:176:2: error: too many arguments to function 'asoc_simple_canonicalize_platform'
176 | asoc_simple_canonicalize_platform(dev, dai_link, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/simple_card.h:13,
from sound/soc/generic/simple-card.c:15:
include/sound/simple_card_utils.h:148:6: note: declared here
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
sound/soc/generic/audio-graph-card.c: In function 'graph_dai_link_of_dpcm':
>> sound/soc/generic/audio-graph-card.c:279:32: error: passing argument 1 of 'asoc_simple_canonicalize_cpu' from incompatible pointer type [-Werror=incompatible-pointer-types]
279 | asoc_simple_canonicalize_cpu(dev, dai_link, 0, is_single_links);
| ^~~
| |
| struct device *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:150:70: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct device *'
150 | void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> sound/soc/generic/audio-graph-card.c:279:37: warning: passing argument 2 of 'asoc_simple_canonicalize_cpu' makes integer from pointer without a cast [-Wint-conversion]
279 | asoc_simple_canonicalize_cpu(dev, dai_link, 0, is_single_links);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:151:11: note: expected 'int' but argument is of type 'struct snd_soc_dai_link *'
151 | int is_single_links);
| ~~~~^~~~~~~~~~~~~~~
>> sound/soc/generic/audio-graph-card.c:279:3: error: too many arguments to function 'asoc_simple_canonicalize_cpu'
279 | asoc_simple_canonicalize_cpu(dev, dai_link, 0, is_single_links);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:150:6: note: declared here
150 | void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/generic/audio-graph-card.c:280:37: error: passing argument 1 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
280 | asoc_simple_canonicalize_platform(dev, dai_link, 0);
| ^~~
| |
| struct device *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:148:75: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct device *'
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
sound/soc/generic/audio-graph-card.c:280:42: error: passing argument 2 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
280 | asoc_simple_canonicalize_platform(dev, dai_link, 0);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:149:47: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct snd_soc_dai_link *'
149 | struct snd_soc_dai_link_component *cpus);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> sound/soc/generic/audio-graph-card.c:280:3: error: too many arguments to function 'asoc_simple_canonicalize_platform'
280 | asoc_simple_canonicalize_platform(dev, dai_link, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:148:6: note: declared here
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c: In function 'graph_dai_link_of':
>> sound/soc/generic/audio-graph-card.c:401:31: error: 'de' undeclared (first use in this function); did you mean 'dev'?
401 | asoc_simple_canonicalize_cpu(de, dai_link, 0, single_cpu);
| ^~
| dev
sound/soc/generic/audio-graph-card.c:401:31: note: each undeclared identifier is reported only once for each function it appears in
sound/soc/generic/audio-graph-card.c:401:35: warning: passing argument 2 of 'asoc_simple_canonicalize_cpu' makes integer from pointer without a cast [-Wint-conversion]
401 | asoc_simple_canonicalize_cpu(de, dai_link, 0, single_cpu);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:151:11: note: expected 'int' but argument is of type 'struct snd_soc_dai_link *'
151 | int is_single_links);
| ~~~~^~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c:401:2: error: too many arguments to function 'asoc_simple_canonicalize_cpu'
401 | asoc_simple_canonicalize_cpu(de, dai_link, 0, single_cpu);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:150:6: note: declared here
150 | void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c:402:36: error: passing argument 1 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
402 | asoc_simple_canonicalize_platform(dev, dai_link, 0);
| ^~~
| |
| struct device *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:148:75: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct device *'
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
sound/soc/generic/audio-graph-card.c:402:41: error: passing argument 2 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
402 | asoc_simple_canonicalize_platform(dev, dai_link, 0);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:149:47: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct snd_soc_dai_link *'
149 | struct snd_soc_dai_link_component *cpus);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
sound/soc/generic/audio-graph-card.c:402:2: error: too many arguments to function 'asoc_simple_canonicalize_platform'
402 | asoc_simple_canonicalize_platform(dev, dai_link, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:21:
include/sound/simple_card_utils.h:148:6: note: declared here
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/asoc_simple_canonicalize_cpu +175 sound/soc/generic/simple-card.c
7
8 #include <linux/clk.h>
9 #include <linux/device.h>
10 #include <linux/module.h>
11 #include <linux/of.h>
12 #include <linux/of_device.h>
13 #include <linux/platform_device.h>
14 #include <linux/string.h>
> 15 #include <sound/simple_card.h>
16 #include <sound/soc-dai.h>
17 #include <sound/soc.h>
18
19 #define DAI "sound-dai"
20 #define CELL "#sound-dai-cells"
21 #define PREFIX "simple-audio-card,"
22
23 static const struct snd_soc_ops simple_ops = {
24 .startup = asoc_simple_startup,
25 .shutdown = asoc_simple_shutdown,
26 .hw_params = asoc_simple_hw_params,
27 };
28
29 static int asoc_simple_parse_dai(struct device_node *node,
30 struct snd_soc_dai_link_component *dlc,
31 int *is_single_link)
32 {
33 struct of_phandle_args args;
34 int ret;
35
36 if (!node)
37 return 0;
38
39 /*
40 * Get node via "sound-dai = <&phandle port>"
41 * it will be used as xxx_of_node on soc_bind_dai_link()
42 */
43 ret = of_parse_phandle_with_args(node, DAI, CELL, 0, &args);
44 if (ret)
45 return ret;
46
47 /*
48 * FIXME
49 *
50 * Here, dlc->dai_name is pointer to CPU/Codec DAI name.
51 * If user unbinded CPU or Codec driver, but not for Sound Card,
52 * dlc->dai_name is keeping unbinded CPU or Codec
53 * driver's pointer.
54 *
55 * If user re-bind CPU or Codec driver again, ALSA SoC will try
56 * to rebind Card via snd_soc_try_rebind_card(), but because of
57 * above reason, it might can't bind Sound Card.
58 * Because Sound Card is pointing to released dai_name pointer.
59 *
60 * To avoid this rebind Card issue,
61 * 1) It needs to alloc memory to keep dai_name eventhough
62 * CPU or Codec driver was unbinded, or
63 * 2) user need to rebind Sound Card everytime
64 * if he unbinded CPU or Codec.
65 */
66 ret = snd_soc_of_get_dai_name(node, &dlc->dai_name);
67 if (ret < 0)
68 return ret;
69
70 dlc->of_node = args.np;
71
72 if (is_single_link)
73 *is_single_link = !args.args_count;
74
75 return 0;
76 }
77
78 static void simple_parse_mclk_fs(struct device_node *top,
79 struct device_node *cpu,
80 struct device_node *codec,
81 struct simple_dai_props *props,
82 char *prefix)
83 {
84 struct device_node *node = of_get_parent(cpu);
85 char prop[128];
86
87 snprintf(prop, sizeof(prop), "%smclk-fs", PREFIX);
88 of_property_read_u32(top, prop, &props->mclk_fs);
89
90 snprintf(prop, sizeof(prop), "%smclk-fs", prefix);
91 of_property_read_u32(node, prop, &props->mclk_fs);
92 of_property_read_u32(cpu, prop, &props->mclk_fs);
93 of_property_read_u32(codec, prop, &props->mclk_fs);
94
95 of_node_put(node);
96 }
97
98 static int simple_dai_link_of(struct asoc_simple_priv *priv,
99 struct device_node *np,
100 struct device_node *codec,
101 struct link_info *li,
102 bool is_top)
103 {
104 struct device *dev = simple_priv_to_dev(priv);
105 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
106 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
107 struct asoc_simple_dai *cpu_dai = simple_props_to_dai_cpu(dai_props, 0);
108 struct asoc_simple_dai *codec_dai = simple_props_to_dai_codec(dai_props, 0);
109 struct snd_soc_dai_link_component *cpus = asoc_link_to_cpu(dai_link, 0);
110 struct snd_soc_dai_link_component *codecs = asoc_link_to_codec(dai_link, 0);
111 struct snd_soc_dai_link_component *platforms = asoc_link_to_platform(dai_link, 0);
112 struct device_node *top = dev->of_node;
113 struct device_node *cpu = NULL;
114 struct device_node *node = NULL;
115 struct device_node *plat = NULL;
116 char prop[128];
117 char *prefix = "";
118 int ret, single_cpu;
119
120 cpu = np;
121 node = of_get_parent(np);
122 li->link++;
123
124 dev_dbg(dev, "link_of (%pOF)\n", node);
125
126 /* For single DAI link & old style of DT node */
127 if (is_top)
128 prefix = PREFIX;
129
130 snprintf(prop, sizeof(prop), "%splat", prefix);
131 plat = of_get_child_by_name(node, prop);
132
133 dai_link->dai_fmt = snd_soc_parse_daifmt(node, codec, prefix);
134
135 simple_parse_mclk_fs(top, cpu, codec, dai_props, prefix);
136
137 ret = asoc_simple_parse_dai(cpu, cpus, &single_cpu);
138 if (ret < 0)
139 goto dai_link_of_err;
140
141 ret = asoc_simple_parse_dai(codec, codecs, NULL);
142 if (ret < 0)
143 goto dai_link_of_err;
144
145 ret = asoc_simple_parse_dai(plat, platforms, NULL);
146 if (ret < 0)
147 goto dai_link_of_err;
148
149 ret = asoc_simple_parse_tdm(cpu, cpu_dai);
150 if (ret < 0)
151 goto dai_link_of_err;
152
153 ret = asoc_simple_parse_tdm(codec, codec_dai);
154 if (ret < 0)
155 goto dai_link_of_err;
156
157 ret = asoc_simple_parse_clk(dev, cpu, cpu_dai, cpus);
158 if (ret < 0)
159 goto dai_link_of_err;
160
161 ret = asoc_simple_parse_clk(dev, codec, codec_dai, codecs);
162 if (ret < 0)
163 goto dai_link_of_err;
164
165 ret = asoc_simple_set_dailink_name(dev, dai_link,
166 "%s-%s",
167 cpus->dai_name,
168 codecs->dai_name);
169 if (ret < 0)
170 goto dai_link_of_err;
171
172 dai_link->ops = &simple_ops;
173 dai_link->init = asoc_simple_dai_init;
174
> 175 asoc_simple_canonicalize_cpu(dai_link, 0, single_cpu);
> 176 asoc_simple_canonicalize_platform(dev, dai_link, 0);
177
178 dai_link_of_err:
179 of_node_put(plat);
180 of_node_put(node);
181
182 return ret;
183 }
184
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[radeon-alex:amd-20.45 198/2427] ./usr/include/drm/amdgpu_drm.h:314:2: error: unknown type name 'int32_t'
by kernel test robot
Hi Kevin,
FYI, the error/warning still remains.
tree: git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head: a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: 641803ba0aabf8d823eb6cf6667dda3fdca58872 [198/2427] drm/amdgpu: [hybrid] add semaphore object support
config: x86_64-randconfig-a004-20201214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a29ecca7819a6ed4250d3689b12b1f664bb790d7)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-20.45
git checkout 641803ba0aabf8d823eb6cf6667dda3fdca58872
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from <built-in>:1:
./usr/include/drm/amdgpu_drm.h:304:2: error: unknown type name 'uint32_t'
uint32_t op;
^
./usr/include/drm/amdgpu_drm.h:305:2: error: unknown type name 'uint32_t'
uint32_t handle;
^
./usr/include/drm/amdgpu_drm.h:306:2: error: unknown type name 'uint32_t'
uint32_t ctx_id;
^
./usr/include/drm/amdgpu_drm.h:307:2: error: unknown type name 'uint32_t'
uint32_t ip_type;
^
./usr/include/drm/amdgpu_drm.h:308:2: error: unknown type name 'uint32_t'
uint32_t ip_instance;
^
./usr/include/drm/amdgpu_drm.h:309:2: error: unknown type name 'uint32_t'
uint32_t ring;
^
./usr/include/drm/amdgpu_drm.h:310:2: error: unknown type name 'uint64_t'
uint64_t seq;
^
>> ./usr/include/drm/amdgpu_drm.h:314:2: error: unknown type name 'int32_t'
int32_t fd;
^
./usr/include/drm/amdgpu_drm.h:315:2: error: unknown type name 'uint32_t'
uint32_t handle;
^
./usr/include/drm/amdgpu_drm.h:939:4: error: unknown type name 'uint32_t'
uint32_t aperture;
^
./usr/include/drm/amdgpu_drm.h:940:4: error: unknown type name 'uint32_t'
uint32_t _pad;
^
./usr/include/drm/amdgpu_drm.h:1167:2: error: unknown type name 'uint64_t'
uint64_t start;
^
./usr/include/drm/amdgpu_drm.h:1168:2: error: unknown type name 'uint64_t'
uint64_t end;
^
13 errors generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [PATCH] usb: cdns3: Adds missing __iomem markers
by kernel test robot
Hi Pawel,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20201211]
[cannot apply to peter.chen-usb/ci-for-usb-next v5.10 v5.10-rc7 v5.10-rc6 v5.10]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Pawel-Laszczak/usb-cdns3-Adds-mi...
base: 3cc2bd440f2171f093b3a8480a4b54d8c270ed38
config: riscv-allmodconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/315bfcf1e0604de6ecfc1856cf5820876...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Pawel-Laszczak/usb-cdns3-Adds-missing-__iomem-markers/20201214-205353
git checkout 315bfcf1e0604de6ecfc1856cf5820876390f16c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/riscv/include/asm/io.h:23,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/riscv/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from drivers/usb/cdns3/drd.c:13:
drivers/usb/cdns3/drd.c: In function 'cdns_otg_disable_irq':
drivers/usb/cdns3/drd.c:159:31: error: dereferencing pointer to incomplete type 'struct cdns_otg_irq_reg'
159 | writel(0, &cdns->otg_irq_regs->ien);
| ^~
arch/riscv/include/asm/mmio.h:93:76: note: in definition of macro 'writel_cpu'
93 | #define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
| ^
drivers/usb/cdns3/drd.c:159:2: note: in expansion of macro 'writel'
159 | writel(0, &cdns->otg_irq_regs->ien);
| ^~~~~~
drivers/usb/cdns3/drd.c: In function 'cdns_drd_init':
drivers/usb/cdns3/drd.c:409:22: error: assignment to 'struct cdns_otg_irq_reg *' from incompatible pointer type 'struct cdns_otg_irq_regs *' [-Werror=incompatible-pointer-types]
409 | cdns->otg_irq_regs = (struct cdns_otg_irq_regs __iomem *)
| ^
In file included from include/linux/byteorder/little_endian.h:5,
from arch/riscv/include/uapi/asm/byteorder.h:10,
from include/asm-generic/bitops/le.h:6,
from arch/riscv/include/asm/bitops.h:202,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from drivers/usb/cdns3/drd.c:12:
>> drivers/usb/cdns3/drd.c:421:33: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion]
421 | if (readl(cdns->otg_cdnsp_regs->did) == OTG_CDNSP_DID) {
| ~~~~~~~~~~~~~~~~~~~~^~~~~
| |
| __le32 {aka unsigned int}
include/uapi/linux/byteorder/little_endian.h:34:51: note: in definition of macro '__le32_to_cpu'
34 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
| ^
arch/riscv/include/asm/mmio.h:140:47: note: in expansion of macro 'readl_cpu'
140 | #define readl(c) ({ u32 __v; __io_br(); __v = readl_cpu(c); __io_ar(__v); __v; })
| ^~~~~~~~~
drivers/usb/cdns3/drd.c:421:7: note: in expansion of macro 'readl'
421 | if (readl(cdns->otg_cdnsp_regs->did) == OTG_CDNSP_DID) {
| ^~~~~
In file included from arch/riscv/include/asm/io.h:23,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/riscv/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from drivers/usb/cdns3/drd.c:13:
arch/riscv/include/asm/mmio.h:63:60: note: expected 'const volatile void *' but argument is of type '__le32' {aka 'unsigned int'}
63 | static inline u32 __raw_readl(const volatile void __iomem *addr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/usb/cdns3/drd.c:422:23: error: assignment to 'struct cdns_otg_irq_reg *' from incompatible pointer type 'struct cdns_otg_irq_regs *' [-Werror=incompatible-pointer-types]
422 | cdns->otg_irq_regs = (struct cdns_otg_irq_regs __iomem *)
| ^
drivers/usb/cdns3/drd.c:426:23: error: assignment to 'struct cdns_otg_irq_reg *' from incompatible pointer type 'struct cdns_otg_irq_regs *' [-Werror=incompatible-pointer-types]
426 | cdns->otg_irq_regs = (struct cdns_otg_irq_regs __iomem *)
| ^
cc1: some warnings being treated as errors
vim +/__raw_readl +421 drivers/usb/cdns3/drd.c
383
384 int cdns_drd_init(struct cdns *cdns)
385 {
386 void __iomem *regs;
387 u32 state;
388 int ret;
389
390 regs = devm_ioremap_resource(cdns->dev, &cdns->otg_res);
391 if (IS_ERR(regs))
392 return PTR_ERR(regs);
393
394 /* Detection of DRD version. Controller has been released
395 * in three versions. All are very similar and are software compatible,
396 * but they have same changes in register maps.
397 * The first register in oldest version is command register and it's
398 * read only. Driver should read 0 from it. On the other hand, in v1
399 * and v2 the first register contains device ID number which is not
400 * set to 0. Driver uses this fact to detect the proper version of
401 * controller.
402 */
403 cdns->otg_v0_regs = regs;
404 if (!readl(&cdns->otg_v0_regs->cmd)) {
405 cdns->version = CDNS3_CONTROLLER_V0;
406 cdns->otg_v1_regs = NULL;
407 cdns->otg_cdnsp_regs = NULL;
408 cdns->otg_regs = regs;
409 cdns->otg_irq_regs = (struct cdns_otg_irq_regs __iomem *)
410 &cdns->otg_v0_regs->ien;
411 writel(1, &cdns->otg_v0_regs->simulate);
412 dev_dbg(cdns->dev, "DRD version v0 (%08x)\n",
413 readl(&cdns->otg_v0_regs->version));
414 } else {
415 cdns->otg_v0_regs = NULL;
416 cdns->otg_v1_regs = regs;
417 cdns->otg_cdnsp_regs = regs;
418
419 cdns->otg_regs = (void __iomem *)&cdns->otg_v1_regs->cmd;
420
> 421 if (readl(cdns->otg_cdnsp_regs->did) == OTG_CDNSP_DID) {
422 cdns->otg_irq_regs = (struct cdns_otg_irq_regs __iomem *)
423 &cdns->otg_cdnsp_regs->ien;
424 cdns->version = CDNSP_CONTROLLER_V2;
425 } else {
426 cdns->otg_irq_regs = (struct cdns_otg_irq_regs __iomem *)
427 &cdns->otg_v1_regs->ien;
428 writel(1, &cdns->otg_v1_regs->simulate);
429 cdns->version = CDNS3_CONTROLLER_V1;
430 }
431
432 dev_dbg(cdns->dev, "DRD version v1 (ID: %08x, rev: %08x)\n",
433 readl(&cdns->otg_v1_regs->did),
434 readl(&cdns->otg_v1_regs->rid));
435 }
436
437 state = OTGSTS_STRAP(readl(&cdns->otg_regs->sts));
438
439 /* Update dr_mode according to STRAP configuration. */
440 cdns->dr_mode = USB_DR_MODE_OTG;
441
442 if ((cdns->version == CDNSP_CONTROLLER_V2 &&
443 state == OTGSTS_CDNSP_STRAP_HOST) ||
444 (cdns->version != CDNSP_CONTROLLER_V2 &&
445 state == OTGSTS_STRAP_HOST)) {
446 dev_dbg(cdns->dev, "Controller strapped to HOST\n");
447 cdns->dr_mode = USB_DR_MODE_HOST;
448 } else if ((cdns->version == CDNSP_CONTROLLER_V2 &&
449 state == OTGSTS_CDNSP_STRAP_GADGET) ||
450 (cdns->version != CDNSP_CONTROLLER_V2 &&
451 state == OTGSTS_STRAP_GADGET)) {
452 dev_dbg(cdns->dev, "Controller strapped to PERIPHERAL\n");
453 cdns->dr_mode = USB_DR_MODE_PERIPHERAL;
454 }
455
456 ret = devm_request_threaded_irq(cdns->dev, cdns->otg_irq,
457 cdns_drd_irq,
458 cdns_drd_thread_irq,
459 IRQF_SHARED,
460 dev_name(cdns->dev), cdns);
461 if (ret) {
462 dev_err(cdns->dev, "couldn't get otg_irq\n");
463 return ret;
464 }
465
466 state = readl(&cdns->otg_regs->sts);
467 if (OTGSTS_OTG_NRDY(state)) {
468 dev_err(cdns->dev, "Cadence USB3 OTG device not ready\n");
469 return -ENODEV;
470 }
471
472 return 0;
473 }
474
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[stable:linux-4.9.y 66/1284] drivers/iio/magnetometer/ak8974.c:511:40: sparse: sparse: incorrect type in argument 2 (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y
head: 5d55c2adbefeb2d49d16891ed8ca8d03789fd31b
commit: 980eaca9a409208439c84f7860202d61e31d225f [66/1284] iio:magnetometer:ak8974: Fix alignment and data leak issues
config: nios2-randconfig-s031-20201209 (attached as .config)
compiler: nios2-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-179-ga00755aa-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/c...
git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git fetch --no-tags stable linux-4.9.y
git checkout 980eaca9a409208439c84f7860202d61e31d225f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/iio/magnetometer/ak8974.c:408:16: sparse: sparse: cast to restricted __le16
drivers/iio/magnetometer/ak8974.c:485:29: sparse: sparse: cast to restricted __le16
>> drivers/iio/magnetometer/ak8974.c:511:40: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected signed short [usertype] *result @@ got restricted __le16 * @@
drivers/iio/magnetometer/ak8974.c:511:40: sparse: expected signed short [usertype] *result
drivers/iio/magnetometer/ak8974.c:511:40: sparse: got restricted __le16 *
vim +511 drivers/iio/magnetometer/ak8974.c
497
498 static void ak8974_fill_buffer(struct iio_dev *indio_dev)
499 {
500 struct ak8974 *ak8974 = iio_priv(indio_dev);
501 int ret;
502
503 pm_runtime_get_sync(&ak8974->i2c->dev);
504 mutex_lock(&ak8974->lock);
505
506 ret = ak8974_trigmeas(ak8974);
507 if (ret) {
508 dev_err(&ak8974->i2c->dev, "error triggering measure\n");
509 goto out_unlock;
510 }
> 511 ret = ak8974_getresult(ak8974, ak8974->scan.channels);
512 if (ret) {
513 dev_err(&ak8974->i2c->dev, "error getting measures\n");
514 goto out_unlock;
515 }
516
517 iio_push_to_buffers_with_timestamp(indio_dev, &ak8974->scan,
518 iio_get_time_ns(indio_dev));
519
520 out_unlock:
521 mutex_unlock(&ak8974->lock);
522 pm_runtime_mark_last_busy(&ak8974->i2c->dev);
523 pm_runtime_put_autosuspend(&ak8974->i2c->dev);
524 }
525
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[chrome-os:chromeos-4.19 2/2] include/linux/kern_levels.h:5:18: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 930de90fa348e756eb438c6e3e875c75eace3a49
commit: 930de90fa348e756eb438c6e3e875c75eace3a49 [2/2] CHROMIUM: img: Dump mfg_top registers when power fail
config: arm64-chromiumos-mediatek-customedconfig-chrome-os:chromeos-4.19:930de90fa348e756eb438c6e3e875c75eace3a49 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout 930de90fa348e756eb438c6e3e875c75eace3a49
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:14,
from include/linux/clk.h:16,
from drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:15:
drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c: In function 'dump_range':
>> include/linux/kern_levels.h:5:18: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Werror=format=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO'
310 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:416:2: note: in expansion of macro 'pr_info'
416 | pr_info("%s: 0x%08x +0x%x\n", __func__, reg, len);
| ^~~~~~~
drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:416:20: note: format string is defined here
416 | pr_info("%s: 0x%08x +0x%x\n", __func__, reg, len);
| ~~~^
| |
| unsigned int
| %08lx
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:14,
from include/linux/clk.h:16,
from drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:15:
>> include/linux/kern_levels.h:5:18: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO'
310 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:416:2: note: in expansion of macro 'pr_info'
416 | pr_info("%s: 0x%08x +0x%x\n", __func__, reg, len);
| ^~~~~~~
drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:416:26: note: format string is defined here
416 | pr_info("%s: 0x%08x +0x%x\n", __func__, reg, len);
| ~^
| |
| unsigned int
| %lx
cc1: all warnings being treated as errors
vim +5 include/linux/kern_levels.h
314ba3520e513a7 Joe Perches 2012-07-30 4
04d2c8c83d0e3ac Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3ac Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3ac Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[dlech-linux:bone-counter 3/21] drivers/counter/counter-chrdev.c:396 counter_get_data() error: uninitialized symbol 'value_u8'.
by Dan Carpenter
tree: https://github.com/dlech/linux bone-counter
head: dc99d06b0f101cff0b3157b1cb49e28e95387c46
commit: d698926a635b0cf342b9b18e04b5f15701834158 [3/21] counter: Add character device interface
config: x86_64-randconfig-m001-20201213 (attached as .config)
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 <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/counter/counter-chrdev.c:396 counter_get_data() error: uninitialized symbol 'value_u8'.
vim +/value_u8 +396 drivers/counter/counter-chrdev.c
d698926a635b0cf William Breathitt Gray 2020-11-22 362 static int counter_get_data(struct counter_device *const counter,
d698926a635b0cf William Breathitt Gray 2020-11-22 363 const struct counter_comp_node *const comp_node,
d698926a635b0cf William Breathitt Gray 2020-11-22 364 u64 *const value)
d698926a635b0cf William Breathitt Gray 2020-11-22 365 {
d698926a635b0cf William Breathitt Gray 2020-11-22 366 const struct counter_comp *const comp = &comp_node->comp;
d698926a635b0cf William Breathitt Gray 2020-11-22 367 void *const parent = comp_node->parent;
d698926a635b0cf William Breathitt Gray 2020-11-22 368 int err = 0;
d698926a635b0cf William Breathitt Gray 2020-11-22 369 u8 value_u8;
d698926a635b0cf William Breathitt Gray 2020-11-22 370
d698926a635b0cf William Breathitt Gray 2020-11-22 371 /* Dummy components don't have data so return early */
d698926a635b0cf William Breathitt Gray 2020-11-22 372 if (comp_node->component.type == COUNTER_COMPONENT_DUMMY)
d698926a635b0cf William Breathitt Gray 2020-11-22 373 return 0;
d698926a635b0cf William Breathitt Gray 2020-11-22 374
d698926a635b0cf William Breathitt Gray 2020-11-22 375 switch (comp->type) {
d698926a635b0cf William Breathitt Gray 2020-11-22 376 case COUNTER_COMP_U8:
d698926a635b0cf William Breathitt Gray 2020-11-22 377 case COUNTER_COMP_BOOL:
d698926a635b0cf William Breathitt Gray 2020-11-22 378 case COUNTER_COMP_SIGNAL_LEVEL:
d698926a635b0cf William Breathitt Gray 2020-11-22 379 case COUNTER_COMP_FUNCTION:
d698926a635b0cf William Breathitt Gray 2020-11-22 380 case COUNTER_COMP_ENUM:
d698926a635b0cf William Breathitt Gray 2020-11-22 381 case COUNTER_COMP_COUNT_DIRECTION:
d698926a635b0cf William Breathitt Gray 2020-11-22 382 case COUNTER_COMP_COUNT_MODE:
d698926a635b0cf William Breathitt Gray 2020-11-22 383 switch (comp_node->component.scope) {
d698926a635b0cf William Breathitt Gray 2020-11-22 384 case COUNTER_SCOPE_DEVICE:
d698926a635b0cf William Breathitt Gray 2020-11-22 385 err = comp->device_u8_read(counter, &value_u8);
d698926a635b0cf William Breathitt Gray 2020-11-22 386 break;
d698926a635b0cf William Breathitt Gray 2020-11-22 387 case COUNTER_SCOPE_SIGNAL:
d698926a635b0cf William Breathitt Gray 2020-11-22 388 err = comp->signal_u8_read(counter, parent, &value_u8);
d698926a635b0cf William Breathitt Gray 2020-11-22 389 break;
d698926a635b0cf William Breathitt Gray 2020-11-22 390 case COUNTER_SCOPE_COUNT:
d698926a635b0cf William Breathitt Gray 2020-11-22 391 err = comp->count_u8_read(counter, parent, &value_u8);
d698926a635b0cf William Breathitt Gray 2020-11-22 392 break;
No default case.
d698926a635b0cf William Breathitt Gray 2020-11-22 393 }
d698926a635b0cf William Breathitt Gray 2020-11-22 394 if (err)
d698926a635b0cf William Breathitt Gray 2020-11-22 395 return err;
d698926a635b0cf William Breathitt Gray 2020-11-22 @396 *value = value_u8;
d698926a635b0cf William Breathitt Gray 2020-11-22 397 break;
d698926a635b0cf William Breathitt Gray 2020-11-22 398 case COUNTER_COMP_U64:
d698926a635b0cf William Breathitt Gray 2020-11-22 399 switch (comp_node->component.scope) {
d698926a635b0cf William Breathitt Gray 2020-11-22 400 case COUNTER_SCOPE_DEVICE:
d698926a635b0cf William Breathitt Gray 2020-11-22 401 return comp->device_u64_read(counter, value);
d698926a635b0cf William Breathitt Gray 2020-11-22 402 case COUNTER_SCOPE_SIGNAL:
d698926a635b0cf William Breathitt Gray 2020-11-22 403 return comp->signal_u64_read(counter, parent, value);
d698926a635b0cf William Breathitt Gray 2020-11-22 404 case COUNTER_SCOPE_COUNT:
d698926a635b0cf William Breathitt Gray 2020-11-22 405 return comp->count_u64_read(counter, parent, value);
d698926a635b0cf William Breathitt Gray 2020-11-22 406 }
d698926a635b0cf William Breathitt Gray 2020-11-22 407 break;
d698926a635b0cf William Breathitt Gray 2020-11-22 408 case COUNTER_COMP_SYNAPSE_ACTION:
d698926a635b0cf William Breathitt Gray 2020-11-22 409 err = comp->action_read(counter, parent, comp->priv, &value_u8);
d698926a635b0cf William Breathitt Gray 2020-11-22 410 if (err)
d698926a635b0cf William Breathitt Gray 2020-11-22 411 return err;
d698926a635b0cf William Breathitt Gray 2020-11-22 412 *value = value_u8;
d698926a635b0cf William Breathitt Gray 2020-11-22 413 break;
d698926a635b0cf William Breathitt Gray 2020-11-22 414 }
d698926a635b0cf William Breathitt Gray 2020-11-22 415
d698926a635b0cf William Breathitt Gray 2020-11-22 416 return 0;
d698926a635b0cf William Breathitt Gray 2020-11-22 417 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[radeon-alex:amd-20.45 2392/2427] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9376:5: warning: no previous prototype for 'amdgpu_dm_dp_mst_add_affected_dsc_crtcs'
by kernel test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head: a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: 5dcf8eb3991298ab764be6f83eaa48f75d49e77a [2392/2427] drm/amd/display: add copy of drm_dp_mst_add_affected_dsc_crtc()
config: i386-randconfig-r022-20201214 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-20.45
git checkout 5dcf8eb3991298ab764be6f83eaa48f75d49e77a
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
from include/kcl/backport/kcl_fence_backport.h:4,
from drivers/gpu/drm/amd/backport/backport.h:13,
from <command-line>:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'get_fb_info':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3979:44: warning: passing argument 1 of 'drm_gem_fb_get_obj' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
3979 | rbo = gem_to_amdgpu_bo(drm_gem_fb_get_obj(&amdgpu_fb->base, 0));
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:986:26: note: in definition of macro 'container_of'
986 | void *__mptr = (void *)(ptr); \
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3979:8: note: in expansion of macro 'gem_to_amdgpu_bo'
3979 | rbo = gem_to_amdgpu_bo(drm_gem_fb_get_obj(&amdgpu_fb->base, 0));
| ^~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:6,
from drivers/gpu/drm/amd/backport/backport.h:62,
from <command-line>:
include/drm/drm_gem_framebuffer_helper.h:15:24: note: expected 'struct drm_framebuffer *' but argument is of type 'const struct drm_framebuffer *'
15 | struct drm_gem_object *drm_gem_fb_get_obj(struct drm_framebuffer *fb,
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/rcupdate.h:24,
from include/kcl/kcl_rcupdate.h:5,
from include/kcl/kcl_fence.h:6,
from include/kcl/backport/kcl_fence_backport.h:4,
from drivers/gpu/drm/amd/backport/backport.h:13,
from <command-line>:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3979:44: warning: passing argument 1 of 'drm_gem_fb_get_obj' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
3979 | rbo = gem_to_amdgpu_bo(drm_gem_fb_get_obj(&amdgpu_fb->base, 0));
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h:34:32: note: in expansion of macro 'container_of'
34 | #define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, tbo.base)
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3979:8: note: in expansion of macro 'gem_to_amdgpu_bo'
3979 | rbo = gem_to_amdgpu_bo(drm_gem_fb_get_obj(&amdgpu_fb->base, 0));
| ^~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:6,
from drivers/gpu/drm/amd/backport/backport.h:62,
from <command-line>:
include/drm/drm_gem_framebuffer_helper.h:15:24: note: expected 'struct drm_framebuffer *' but argument is of type 'const struct drm_framebuffer *'
15 | struct drm_gem_object *drm_gem_fb_get_obj(struct drm_framebuffer *fb,
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/rcupdate.h:24,
from include/kcl/kcl_rcupdate.h:5,
from include/kcl/kcl_fence.h:6,
from include/kcl/backport/kcl_fence_backport.h:4,
from drivers/gpu/drm/amd/backport/backport.h:13,
from <command-line>:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3979:44: warning: passing argument 1 of 'drm_gem_fb_get_obj' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
3979 | rbo = gem_to_amdgpu_bo(drm_gem_fb_get_obj(&amdgpu_fb->base, 0));
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:988:6: note: in expansion of macro '__same_type'
988 | !__same_type(*(ptr), void), \
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h:34:32: note: in expansion of macro 'container_of'
34 | #define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, tbo.base)
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3979:8: note: in expansion of macro 'gem_to_amdgpu_bo'
3979 | rbo = gem_to_amdgpu_bo(drm_gem_fb_get_obj(&amdgpu_fb->base, 0));
| ^~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:6,
from drivers/gpu/drm/amd/backport/backport.h:62,
from <command-line>:
include/drm/drm_gem_framebuffer_helper.h:15:24: note: expected 'struct drm_framebuffer *' but argument is of type 'const struct drm_framebuffer *'
15 | struct drm_gem_object *drm_gem_fb_get_obj(struct drm_framebuffer *fb,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'dm_update_mst_vcpi_slots_for_dsc':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6227:46: warning: variable 'old_con_state' set but not used [-Wunused-but-set-variable]
6227 | struct drm_connector_state *new_con_state, *old_con_state;
| ^~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_commit_cursors':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7697:44: warning: variable 'new_plane_state' set but not used [-Wunused-but-set-variable]
7697 | struct drm_plane_state *old_plane_state, *new_plane_state;
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9376:5: warning: no previous prototype for 'amdgpu_dm_dp_mst_add_affected_dsc_crtcs' [-Wmissing-prototypes]
9376 | int amdgpu_dm_dp_mst_add_affected_dsc_crtcs(struct drm_atomic_state *state, struct drm_dp_mst_topology_mgr *mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_atomic_check':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9544:25: warning: unused variable 'dm_old_crtc_state' [-Wunused-variable]
9544 | struct dm_crtc_state *dm_old_crtc_state = to_dm_crtc_state(old_crtc_state);
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9543:25: warning: unused variable 'dm_new_crtc_state' [-Wunused-variable]
9543 | struct dm_crtc_state *dm_new_crtc_state = to_dm_crtc_state(new_crtc_state);
| ^~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:93:
At top level:
drivers/gpu/drm/amd/include/vega10_ip_offset.h:208:29: warning: 'FUSE_BASE' defined but not used [-Wunused-const-variable=]
208 | static const struct IP_BASE FUSE_BASE = { { { { 0x00017400, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:203:29: warning: 'CLK_BASE' defined but not used [-Wunused-const-variable=]
203 | static const struct IP_BASE CLK_BASE = { { { { 0x00016C00, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:198:29: warning: 'PWR_BASE' defined but not used [-Wunused-const-variable=]
198 | static const struct IP_BASE PWR_BASE = { { { { 0x00016A00, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:193:29: warning: 'SMUIO_BASE' defined but not used [-Wunused-const-variable=]
193 | static const struct IP_BASE SMUIO_BASE = { { { { 0x00016800, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:188:29: warning: 'THM_BASE' defined but not used [-Wunused-const-variable=]
188 | static const struct IP_BASE THM_BASE = { { { { 0x00016600, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:183:29: warning: 'UMC_BASE' defined but not used [-Wunused-const-variable=]
183 | static const struct IP_BASE UMC_BASE = { { { { 0x00014000, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:178:29: warning: 'XDMA_BASE' defined but not used [-Wunused-const-variable=]
178 | static const struct IP_BASE XDMA_BASE = { { { { 0x00003400, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:173:29: warning: 'SDMA1_BASE' defined but not used [-Wunused-const-variable=]
173 | static const struct IP_BASE SDMA1_BASE = { { { { 0x00001460, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:168:29: warning: 'SDMA0_BASE' defined but not used [-Wunused-const-variable=]
168 | static const struct IP_BASE SDMA0_BASE = { { { { 0x00001260, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:163:29: warning: 'OSSSYS_BASE' defined but not used [-Wunused-const-variable=]
163 | static const struct IP_BASE OSSSYS_BASE = { { { { 0x000010A0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:158:29: warning: 'HDP_BASE' defined but not used [-Wunused-const-variable=]
158 | static const struct IP_BASE HDP_BASE = { { { { 0x00000F20, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:153:29: warning: 'RSMU_BASE' defined but not used [-Wunused-const-variable=]
153 | static const struct IP_BASE RSMU_BASE = { { { { 0x00012000, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:148:29: warning: 'MMHUB_BASE' defined but not used [-Wunused-const-variable=]
148 | static const struct IP_BASE MMHUB_BASE = { { { { 0x0001A000, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:143:29: warning: 'GC_BASE' defined but not used [-Wunused-const-variable=]
143 | static const struct IP_BASE GC_BASE = { { { { 0x00002000, 0x0000A000, 0, 0, 0 } },
| ^~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:138:29: warning: 'VCE_BASE' defined but not used [-Wunused-const-variable=]
138 | static const struct IP_BASE VCE_BASE = { { { { 0x00007E00, 0x00048800, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:133:29: warning: 'ATHUB_BASE' defined but not used [-Wunused-const-variable=]
133 | static const struct IP_BASE ATHUB_BASE = { { { { 0x00000C20, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:128:29: warning: 'IOHC_BASE' defined but not used [-Wunused-const-variable=]
128 | static const struct IP_BASE IOHC_BASE = { { { { 0x00010000, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:123:29: warning: 'L2IMU_BASE' defined but not used [-Wunused-const-variable=]
123 | static const struct IP_BASE L2IMU_BASE = { { { { 0x00007DC0, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:118:29: warning: 'SYSTEMHUB_BASE' defined but not used [-Wunused-const-variable=]
118 | static const struct IP_BASE SYSTEMHUB_BASE = { { { { 0x00000EA0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:113:29: warning: 'ISP_BASE' defined but not used [-Wunused-const-variable=]
113 | static const struct IP_BASE ISP_BASE = { { { { 0x00018000, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:108:29: warning: 'DFX_BASE' defined but not used [-Wunused-const-variable=]
108 | static const struct IP_BASE DFX_BASE = { { { { 0x00000580, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:103:29: warning: 'DFX_DAP_BASE' defined but not used [-Wunused-const-variable=]
103 | static const struct IP_BASE DFX_DAP_BASE = { { { { 0x000005A0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:98:29: warning: 'DBGU_IO_BASE' defined but not used [-Wunused-const-variable=]
98 | static const struct IP_BASE DBGU_IO_BASE = { { { { 0x000001E0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:93:29: warning: 'DBGU_NBIO_BASE' defined but not used [-Wunused-const-variable=]
93 | static const struct IP_BASE DBGU_NBIO_BASE = { { { { 0x000001C0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:88:29: warning: 'DBGU_BASE' defined but not used [-Wunused-const-variable=]
88 | static const struct IP_BASE DBGU_BASE = { { { { 0x00000180, 0x000001A0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:83:29: warning: 'VCN_BASE' defined but not used [-Wunused-const-variable=]
83 | static const struct IP_BASE VCN_BASE = { { { { 0x00007800, 0x00007E00, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:78:29: warning: 'UVD_BASE' defined but not used [-Wunused-const-variable=]
78 | static const struct IP_BASE UVD_BASE = { { { { 0x00007800, 0x00007E00, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:73:29: warning: 'DF_BASE' defined but not used [-Wunused-const-variable=]
73 | static const struct IP_BASE DF_BASE = { { { { 0x00007000, 0, 0, 0, 0 } },
| ^~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:68:29: warning: 'MP2_BASE' defined but not used [-Wunused-const-variable=]
68 | static const struct IP_BASE MP2_BASE = { { { { 0x00016000, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/include/vega10_ip_offset.h:63:29: warning: 'MP1_BASE' defined but not used [-Wunused-const-variable=]
63 | static const struct IP_BASE MP1_BASE = { { { { 0x00016000, 0, 0, 0, 0 } },
vim +/amdgpu_dm_dp_mst_add_affected_dsc_crtcs +9376 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
9374
9375 #if defined(HAVE_DRM_DP_MST_ADD_AFFECTED_DSC_CRTCS)
> 9376 int amdgpu_dm_dp_mst_add_affected_dsc_crtcs(struct drm_atomic_state *state, struct drm_dp_mst_topology_mgr *mgr)
9377 {
9378 struct drm_dp_mst_topology_state *mst_state;
9379 struct drm_dp_vcpi_allocation *pos;
9380 struct drm_connector *connector;
9381 struct drm_connector_state *conn_state;
9382 struct drm_crtc *crtc;
9383 struct drm_crtc_state *crtc_state;
9384
9385 mst_state = drm_atomic_get_mst_topology_state(state, mgr);
9386
9387 if (IS_ERR(mst_state))
9388 return -EINVAL;
9389
9390 list_for_each_entry(pos, &mst_state->vcpis, next) {
9391
9392 connector = pos->port->connector;
9393
9394 if (!connector)
9395 return -EINVAL;
9396
9397 conn_state = drm_atomic_get_connector_state(state, connector);
9398
9399 if (IS_ERR(conn_state))
9400 return PTR_ERR(conn_state);
9401
9402 crtc = conn_state->crtc;
9403
9404 if (!crtc)
9405 continue;
9406
9407 if (!drm_dp_mst_dsc_aux_for_port(pos->port))
9408 continue;
9409
9410 crtc_state = drm_atomic_get_crtc_state(mst_state->base.state, crtc);
9411
9412 if (IS_ERR(crtc_state))
9413 return PTR_ERR(crtc_state);
9414
9415 DRM_DEBUG_ATOMIC("[MST MGR:%p] Setting mode_changed flag on CRTC %p\n",
9416 mgr, crtc);
9417
9418 crtc_state->mode_changed = true;
9419 }
9420 return 0;
9421 }
9422
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[radeon-alex:amd-20.45 1379/2427] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:103:35: error: no member named 'bw_params' in 'struct clk_mgr'
by kernel test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head: a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: 470f4be73099cc46478d2c708411fecde8197ca3 [1379/2427] drm/amdkcl: update DRM_AMD_DC_DCN3_0 to depends on legacy display config
config: x86_64-randconfig-a001-20201214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a29ecca7819a6ed4250d3689b12b1f664bb790d7)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-20.45
git checkout 470f4be73099cc46478d2c708411fecde8197ca3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:103:35: error: no member named 'bw_params' in 'struct clk_mgr'
entry_i += sizeof(clk_mgr->base.bw_params->clk_table.entries[0]);
~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:113:40: error: no member named 'bw_params' in 'struct clk_mgr'
uint16_t min_uclk_mhz = clk_mgr->base.bw_params->clk_table.entries[0].memclk_mhz;
~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:116:16: error: no member named 'bw_params' in 'struct clk_mgr'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].valid = true;
~~~~~~~~~~~~~ ^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:116:47: error: use of undeclared identifier 'WM_A'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].valid = true;
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:117:16: error: no member named 'bw_params' in 'struct clk_mgr'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].dml_input.pstate_latency_us = pstate_latency_us;
~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:117:47: error: use of undeclared identifier 'WM_A'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].dml_input.pstate_latency_us = pstate_latency_us;
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:118:16: error: no member named 'bw_params' in 'struct clk_mgr'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].dml_input.sr_exit_time_us = sr_exit_time_us;
~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:118:47: error: use of undeclared identifier 'WM_A'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].dml_input.sr_exit_time_us = sr_exit_time_us;
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:119:16: error: no member named 'bw_params' in 'struct clk_mgr'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].dml_input.sr_enter_plus_exit_time_us = sr_enter_plus_exit_time_us;
~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:119:47: error: use of undeclared identifier 'WM_A'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].dml_input.sr_enter_plus_exit_time_us = sr_enter_plus_exit_time_us;
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:120:16: error: no member named 'bw_params' in 'struct clk_mgr'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.wm_type = WATERMARKS_CLOCK_RANGE;
~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:120:47: error: use of undeclared identifier 'WM_A'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.wm_type = WATERMARKS_CLOCK_RANGE;
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:121:16: error: no member named 'bw_params' in 'struct clk_mgr'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.min_dcfclk = 0;
~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:121:47: error: use of undeclared identifier 'WM_A'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.min_dcfclk = 0;
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:122:16: error: no member named 'bw_params' in 'struct clk_mgr'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.max_dcfclk = 0xFFFF;
~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:122:47: error: use of undeclared identifier 'WM_A'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.max_dcfclk = 0xFFFF;
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:123:16: error: no member named 'bw_params' in 'struct clk_mgr'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.min_uclk = min_uclk_mhz;
~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:123:47: error: use of undeclared identifier 'WM_A'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.min_uclk = min_uclk_mhz;
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:124:16: error: no member named 'bw_params' in 'struct clk_mgr'
clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.max_uclk = 0xFFFF;
~~~~~~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.h:229:2: error: type name requires a specifier or qualifier
DCN30_HUBP_REG_COMMON_VARIABLE_LIST;
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.h:164:2: note: expanded from macro 'DCN30_HUBP_REG_COMMON_VARIABLE_LIST'
DCN21_HUBP_REG_COMMON_VARIABLE_LIST;\
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.h:239:2: error: type name requires a specifier or qualifier
DCN30_HUBP_REG_FIELD_VARIABLE_LIST(uint8_t);
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.h:207:2: note: expanded from macro 'DCN30_HUBP_REG_FIELD_VARIABLE_LIST'
DCN21_HUBP_REG_FIELD_VARIABLE_LIST(type);\
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.h:250:2: error: type name requires a specifier or qualifier
DCN30_HUBP_REG_FIELD_VARIABLE_LIST(uint32_t);
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.h:207:2: note: expanded from macro 'DCN30_HUBP_REG_FIELD_VARIABLE_LIST'
DCN21_HUBP_REG_FIELD_VARIABLE_LIST(type);\
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:61:15: error: no member named 'DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB' in 'struct dcn_hubp2_registers'
REG_UPDATE_2(DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB,
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:235:16: note: expanded from macro 'REG_UPDATE_2'
REG_UPDATE_N(reg, 2,\
~~~~~~~~~~~~~^~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:227:9: note: expanded from macro 'REG_UPDATE_N'
REG(reg_name), \
~~~~^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:36:20: note: expanded from macro 'REG'
hubp2->hubp_regs->reg
~~~~~~~~~~~~~~~~ ^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:62:3: error: no member named 'DCN_VM_SYSTEM_APERTURE_DEFAULT_SYSTEM' in 'struct dcn_hubp2_shift'
DCN_VM_SYSTEM_APERTURE_DEFAULT_SYSTEM, 1, /* 1 = system physical memory */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:236:13: note: expanded from macro 'REG_UPDATE_2'
FN(reg, f1), v1,\
~~~~~~~~^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:21: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:228:8: note: expanded from macro 'REG_UPDATE_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:62:3: error: no member named 'DCN_VM_SYSTEM_APERTURE_DEFAULT_SYSTEM' in 'struct dcn_hubp2_mask'
DCN_VM_SYSTEM_APERTURE_DEFAULT_SYSTEM, 1, /* 1 = system physical memory */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:236:13: note: expanded from macro 'REG_UPDATE_2'
FN(reg, f1), v1,\
~~~~~~~~^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:51: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:228:8: note: expanded from macro 'REG_UPDATE_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:63:3: error: no member named 'DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB' in 'struct dcn_hubp2_shift'
DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB, mc_vm_apt_default.high_part);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:237:13: note: expanded from macro 'REG_UPDATE_2'
FN(reg, f2), v2)
~~~~~~~~^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:21: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:228:8: note: expanded from macro 'REG_UPDATE_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:63:3: error: no member named 'DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB' in 'struct dcn_hubp2_mask'
DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB, mc_vm_apt_default.high_part);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:237:13: note: expanded from macro 'REG_UPDATE_2'
FN(reg, f2), v2)
~~~~~~~~^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:51: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:228:8: note: expanded from macro 'REG_UPDATE_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:65:10: error: no member named 'DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB' in 'struct dcn_hubp2_registers'
REG_SET(DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB, 0,
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:64:13: note: expanded from macro 'REG_SET'
REG_SET_N(reg_name, 1, initial_val, \
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:56:9: note: expanded from macro 'REG_SET_N'
REG(reg_name), \
~~~~^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:36:20: note: expanded from macro 'REG'
hubp2->hubp_regs->reg
~~~~~~~~~~~~~~~~ ^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:66:4: error: no member named 'DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB' in 'struct dcn_hubp2_shift'
DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB, mc_vm_apt_default.low_part);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:65:18: note: expanded from macro 'REG_SET'
FN(reg_name, field), val)
~~~~~~~~~~~~~^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:21: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:58:8: note: expanded from macro 'REG_SET_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:66:4: error: no member named 'DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB' in 'struct dcn_hubp2_mask'
DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB, mc_vm_apt_default.low_part);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:65:18: note: expanded from macro 'REG_SET'
FN(reg_name, field), val)
~~~~~~~~~~~~~^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:51: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:58:8: note: expanded from macro 'REG_SET_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:68:10: error: no member named 'DCN_VM_SYSTEM_APERTURE_LOW_ADDR' in 'struct dcn_hubp2_registers'
REG_SET(DCN_VM_SYSTEM_APERTURE_LOW_ADDR, 0,
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:64:13: note: expanded from macro 'REG_SET'
REG_SET_N(reg_name, 1, initial_val, \
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:56:9: note: expanded from macro 'REG_SET_N'
REG(reg_name), \
~~~~^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:36:20: note: expanded from macro 'REG'
hubp2->hubp_regs->reg
~~~~~~~~~~~~~~~~ ^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:69:4: error: no member named 'MC_VM_SYSTEM_APERTURE_LOW_ADDR' in 'struct dcn_hubp2_shift'
MC_VM_SYSTEM_APERTURE_LOW_ADDR, mc_vm_apt_low.quad_part);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:65:18: note: expanded from macro 'REG_SET'
FN(reg_name, field), val)
~~~~~~~~~~~~~^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:21: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:58:8: note: expanded from macro 'REG_SET_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:69:4: error: no member named 'MC_VM_SYSTEM_APERTURE_LOW_ADDR' in 'struct dcn_hubp2_mask'
MC_VM_SYSTEM_APERTURE_LOW_ADDR, mc_vm_apt_low.quad_part);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:65:18: note: expanded from macro 'REG_SET'
FN(reg_name, field), val)
~~~~~~~~~~~~~^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:51: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:58:8: note: expanded from macro 'REG_SET_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:71:10: error: no member named 'DCN_VM_SYSTEM_APERTURE_HIGH_ADDR' in 'struct dcn_hubp2_registers'
REG_SET(DCN_VM_SYSTEM_APERTURE_HIGH_ADDR, 0,
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:64:13: note: expanded from macro 'REG_SET'
REG_SET_N(reg_name, 1, initial_val, \
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:56:9: note: expanded from macro 'REG_SET_N'
REG(reg_name), \
~~~~^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:36:20: note: expanded from macro 'REG'
hubp2->hubp_regs->reg
~~~~~~~~~~~~~~~~ ^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:72:4: error: no member named 'MC_VM_SYSTEM_APERTURE_HIGH_ADDR' in 'struct dcn_hubp2_shift'
MC_VM_SYSTEM_APERTURE_HIGH_ADDR, mc_vm_apt_high.quad_part);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:65:18: note: expanded from macro 'REG_SET'
FN(reg_name, field), val)
~~~~~~~~~~~~~^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:21: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:58:8: note: expanded from macro 'REG_SET_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:72:4: error: no member named 'MC_VM_SYSTEM_APERTURE_HIGH_ADDR' in 'struct dcn_hubp2_mask'
MC_VM_SYSTEM_APERTURE_HIGH_ADDR, mc_vm_apt_high.quad_part);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:65:18: note: expanded from macro 'REG_SET'
FN(reg_name, field), val)
~~~~~~~~~~~~~^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:51: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:58:8: note: expanded from macro 'REG_SET_N'
n, __VA_ARGS__)
^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:74:12: error: no member named 'DCN_VM_MX_L1_TLB_CNTL' in 'struct dcn_hubp2_registers'
REG_SET_2(DCN_VM_MX_L1_TLB_CNTL, 0,
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:68:13: note: expanded from macro 'REG_SET_2'
REG_SET_N(reg, 2, init_value, \
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:56:9: note: expanded from macro 'REG_SET_N'
REG(reg_name), \
~~~~^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:36:20: note: expanded from macro 'REG'
hubp2->hubp_regs->reg
~~~~~~~~~~~~~~~~ ^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:75:4: error: no member named 'ENABLE_L1_TLB' in 'struct dcn_hubp2_shift'
ENABLE_L1_TLB, 1,
^~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:69:13: note: expanded from macro 'REG_SET_2'
FN(reg, f1), v1,\
~~~~~~~~^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.c:43:21: note: expanded from macro 'FN'
hubp2->hubp_shift->field_name, hubp2->hubp_mask->field_name
~~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:58:8: note: expanded from macro 'REG_SET_N'
n, __VA_ARGS__)
^~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubbub.c:384:4: error: no member named 'DCHUBBUB_ARB_VM_ROW_URGENCY_WATERMARK_A' in 'struct dcn_hubbub_shift'; did you mean 'DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_A'?
DCHUBBUB_ARB_VM_ROW_URGENCY_WATERMARK_A, prog_wm_value);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_A
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:70:13: note: expanded from macro 'REG_SET_2'
FN(reg, f2), v2)
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubbub.c:41:19: note: expanded from macro 'FN'
hubbub1->shifts->field_name, hubbub1->masks->field_name
^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:58:8: note: expanded from macro 'REG_SET_N'
n, __VA_ARGS__)
^
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.h:284:2: note: 'DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_A' declared here
DCN_HUBBUB_REG_FIELD_LIST(uint8_t);
^
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.h:214:8: note: expanded from macro 'DCN_HUBBUB_REG_FIELD_LIST'
type DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_A;\
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubbub.c:384:4: error: no member named 'DCHUBBUB_ARB_VM_ROW_URGENCY_WATERMARK_A' in 'struct dcn_hubbub_mask'; did you mean 'DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_A'?
DCHUBBUB_ARB_VM_ROW_URGENCY_WATERMARK_A, prog_wm_value);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_A
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:70:13: note: expanded from macro 'REG_SET_2'
FN(reg, f2), v2)
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubbub.c:41:47: note: expanded from macro 'FN'
hubbub1->shifts->field_name, hubbub1->masks->field_name
^
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h:58:8: note: expanded from macro 'REG_SET_N'
n, __VA_ARGS__)
^
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.h:292:2: note: 'DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_A' declared here
DCN_HUBBUB_REG_FIELD_LIST(uint32_t);
^
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.h:214:8: note: expanded from macro 'DCN_HUBBUB_REG_FIELD_LIST'
type DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_A;\
^
2 errors generated.
..
vim +103 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 83
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 84
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 85 /* Query SMU for all clock states for a particular clock */
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 86 static void dcn3_init_single_clock(struct clk_mgr_internal *clk_mgr, PPCLK_e clk, unsigned int *entry_0, unsigned int *num_levels)
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 87 {
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 88 unsigned int i;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 89 char *entry_i = (char *)entry_0;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 90 uint32_t ret = dcn30_smu_get_dpm_freq_by_index(clk_mgr, clk, 0xFF);
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 91
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 92 if (ret & (1 << 31))
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 93 /* fine-grained, only min and max */
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 94 *num_levels = 2;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 95 else
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 96 /* discrete, a number of fixed states */
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 97 /* will set num_levels to 0 on failure */
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 98 *num_levels = ret & 0xFF;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 99
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 100 /* if the initial message failed, num_levels will be 0 */
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 101 for (i = 0; i < *num_levels; i++) {
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 102 *((unsigned int *)entry_i) = (dcn30_smu_get_dpm_freq_by_index(clk_mgr, clk, i) & 0xFFFF);
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 @103 entry_i += sizeof(clk_mgr->base.bw_params->clk_table.entries[0]);
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 104 }
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 105 }
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 106
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 107 static void dcn3_build_wm_range_table(struct clk_mgr_internal *clk_mgr)
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 108 {
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 109 /* defaults */
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 110 double pstate_latency_us = clk_mgr->base.ctx->dc->dml.soc.dram_clock_change_latency_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 111 double sr_exit_time_us = clk_mgr->base.ctx->dc->dml.soc.sr_exit_time_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 112 double sr_enter_plus_exit_time_us = clk_mgr->base.ctx->dc->dml.soc.sr_enter_plus_exit_time_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 113 uint16_t min_uclk_mhz = clk_mgr->base.bw_params->clk_table.entries[0].memclk_mhz;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 114
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 115 /* Set A - Normal - default values*/
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 @116 clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].valid = true;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 117 clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].dml_input.pstate_latency_us = pstate_latency_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 118 clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].dml_input.sr_exit_time_us = sr_exit_time_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 119 clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].dml_input.sr_enter_plus_exit_time_us = sr_enter_plus_exit_time_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 120 clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.wm_type = WATERMARKS_CLOCK_RANGE;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 121 clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.min_dcfclk = 0;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 122 clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.max_dcfclk = 0xFFFF;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 123 clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.min_uclk = min_uclk_mhz;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 124 clk_mgr->base.bw_params->wm_table.nv_entries[WM_A].pmfw_breakdown.max_uclk = 0xFFFF;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 125
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 126 /* Set B - Performance - higher minimum clocks */
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 127 // clk_mgr->base.bw_params->wm_table.nv_entries[WM_B].valid = true;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 128 // clk_mgr->base.bw_params->wm_table.nv_entries[WM_B].dml_input.pstate_latency_us = pstate_latency_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 129 // clk_mgr->base.bw_params->wm_table.nv_entries[WM_B].dml_input.sr_exit_time_us = sr_exit_time_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 130 // clk_mgr->base.bw_params->wm_table.nv_entries[WM_B].dml_input.sr_enter_plus_exit_time_us = sr_enter_plus_exit_time_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 131 // clk_mgr->base.bw_params->wm_table.nv_entries[WM_B].pmfw_breakdown.wm_type = WATERMARKS_CLOCK_RANGE;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 132 // clk_mgr->base.bw_params->wm_table.nv_entries[WM_B].pmfw_breakdown.min_dcfclk = TUNED VALUE;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 133 // clk_mgr->base.bw_params->wm_table.nv_entries[WM_B].pmfw_breakdown.max_dcfclk = 0xFFFF;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 134 // clk_mgr->base.bw_params->wm_table.nv_entries[WM_B].pmfw_breakdown.min_uclk = TUNED VALUE;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 135 // clk_mgr->base.bw_params->wm_table.nv_entries[WM_B].pmfw_breakdown.max_uclk = 0xFFFF;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 136
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 137 /* Set C - Dummy P-State - P-State latency set to "dummy p-state" value */
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 138 clk_mgr->base.bw_params->wm_table.nv_entries[WM_C].valid = true;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 139 clk_mgr->base.bw_params->wm_table.nv_entries[WM_C].dml_input.pstate_latency_us = clk_mgr->base.ctx->dc->dml.soc.dummy_pstate_latency_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 140 clk_mgr->base.bw_params->wm_table.nv_entries[WM_C].dml_input.sr_exit_time_us = sr_exit_time_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 141 clk_mgr->base.bw_params->wm_table.nv_entries[WM_C].dml_input.sr_enter_plus_exit_time_us = sr_enter_plus_exit_time_us;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 142 clk_mgr->base.bw_params->wm_table.nv_entries[WM_C].pmfw_breakdown.wm_type = WATERMARKS_DUMMY_PSTATE;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 143 clk_mgr->base.bw_params->wm_table.nv_entries[WM_C].pmfw_breakdown.min_dcfclk = 0;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 144 clk_mgr->base.bw_params->wm_table.nv_entries[WM_C].pmfw_breakdown.max_dcfclk = 0xFFFF;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 145 clk_mgr->base.bw_params->wm_table.nv_entries[WM_C].pmfw_breakdown.min_uclk = min_uclk_mhz;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 146 clk_mgr->base.bw_params->wm_table.nv_entries[WM_C].pmfw_breakdown.max_uclk = 0xFFFF;
652edbbbddcc8b1 Bhawanpreet Lakha 2020-05-21 147
:::::: The code at line 103 was first introduced by commit
:::::: 652edbbbddcc8b1470d8fe91e7dca0ceeab4aced drm/amd/display: Add DCN3 CLK_MGR
:::::: TO: Bhawanpreet Lakha <Bhawanpreet.Lakha(a)amd.com>
:::::: CC: Yang Xiong <Yang.Xiong(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[hnaz-linux-mm:master 412/421] drivers/mailbox/bcm-pdc-mailbox.c:682:28: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://github.com/hnaz/linux-mm master
head: 2932a9e66c580f3c8d95ec27716d437198fb4c94
commit: 07b12d9b4d4dfc2f4708b795d5abeab3131278f0 [412/421] iomap: constify ioreadX() iomem argument (as in generic implementation)
config: openrisc-randconfig-s031-20201214 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
# https://github.com/hnaz/linux-mm/commit/07b12d9b4d4dfc2f4708b795d5abeab31...
git remote add hnaz-linux-mm https://github.com/hnaz/linux-mm
git fetch --no-tags hnaz-linux-mm master
git checkout 07b12d9b4d4dfc2f4708b795d5abeab3131278f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/mailbox/bcm-pdc-mailbox.c:682:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:682:28: sparse: expected void const [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:682:28: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:792:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:792:42: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:792:42: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:793:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:793:42: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:793:42: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1031:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1031:32: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1031:32: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1033:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1033:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1033:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1034:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1034:23: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1034:23: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1035:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1035:23: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1035:23: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1039:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1039:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1039:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1041:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1041:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1041:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1044:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1044:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1044:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1046:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1046:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1046:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1049:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1049:48: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1049:48: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1051:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1051:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1051:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1058:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1058:48: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1058:48: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1062:63: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1062:63: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1062:63: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1068:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1068:48: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1068:48: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1072:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1072:48: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1072:48: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1296:23: sparse: sparse: cast removes address space '__iomem' of expression
drivers/mailbox/bcm-pdc-mailbox.c:1298:16: sparse: sparse: cast removes address space '__iomem' of expression
drivers/mailbox/bcm-pdc-mailbox.c:1301:16: sparse: sparse: cast removes address space '__iomem' of expression
drivers/mailbox/bcm-pdc-mailbox.c:1308:27: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1308:27: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1308:27: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1313:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1313:32: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1313:32: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1316:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1316:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1316:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1319:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1319:23: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1319:23: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1320:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1320:23: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1320:23: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1337:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1337:32: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1337:32: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1339:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1339:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1339:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrlow @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: expected unsigned int [usertype] addrlow
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrhigh @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: expected unsigned int [usertype] addrhigh
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctrl1 @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: expected unsigned int [usertype] ctrl1
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctrl2 @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: expected unsigned int [usertype] ctrl2
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrlow @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: expected unsigned int [usertype] addrlow
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrhigh @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: expected unsigned int [usertype] addrhigh
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctrl1 @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: expected unsigned int [usertype] ctrl1
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctrl2 @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: expected unsigned int [usertype] ctrl2
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:530:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrlow @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:530:22: sparse: expected unsigned int [usertype] addrlow
vim +682 drivers/mailbox/bcm-pdc-mailbox.c
e004c7e7d3b873a Rob Rice 2016-11-14 667
e004c7e7d3b873a Rob Rice 2016-11-14 668 /**
e004c7e7d3b873a Rob Rice 2016-11-14 669 * pdc_receive() - Process as many responses as are available in the rx ring.
e004c7e7d3b873a Rob Rice 2016-11-14 670 * @pdcs: PDC state
e004c7e7d3b873a Rob Rice 2016-11-14 671 *
e004c7e7d3b873a Rob Rice 2016-11-14 672 * Called within the hard IRQ.
e004c7e7d3b873a Rob Rice 2016-11-14 673 * Return:
e004c7e7d3b873a Rob Rice 2016-11-14 674 */
e004c7e7d3b873a Rob Rice 2016-11-14 675 static int
e004c7e7d3b873a Rob Rice 2016-11-14 676 pdc_receive(struct pdc_state *pdcs)
e004c7e7d3b873a Rob Rice 2016-11-14 677 {
e004c7e7d3b873a Rob Rice 2016-11-14 678 int rx_status;
e004c7e7d3b873a Rob Rice 2016-11-14 679
e004c7e7d3b873a Rob Rice 2016-11-14 680 /* read last_rx_curr from register once */
e004c7e7d3b873a Rob Rice 2016-11-14 681 pdcs->last_rx_curr =
cf17581340d7301 Rob Rice 2016-11-14 @682 (ioread32(&pdcs->rxregs_64->status0) &
e004c7e7d3b873a Rob Rice 2016-11-14 683 CRYPTO_D64_RS0_CD_MASK) / RING_ENTRY_SIZE;
e004c7e7d3b873a Rob Rice 2016-11-14 684
e004c7e7d3b873a Rob Rice 2016-11-14 685 do {
e004c7e7d3b873a Rob Rice 2016-11-14 686 /* Could be many frames ready */
e004c7e7d3b873a Rob Rice 2016-11-14 687 rx_status = pdc_receive_one(pdcs);
e004c7e7d3b873a Rob Rice 2016-11-14 688 } while (rx_status == PDC_SUCCESS);
e004c7e7d3b873a Rob Rice 2016-11-14 689
e004c7e7d3b873a Rob Rice 2016-11-14 690 return 0;
a24532f8d17b721 Rob Rice 2016-06-30 691 }
a24532f8d17b721 Rob Rice 2016-06-30 692
:::::: The code at line 682 was first introduced by commit
:::::: cf17581340d730175f1f3f4ce6e90ae434154e37 mailbox: bcm-pdc: Remove unnecessary void* casts
:::::: TO: Rob Rice <rob.rice(a)broadcom.com>
:::::: CC: Jassi Brar <jaswinder.singh(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months