* [drm-msm:msm-next 3/4] drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:107:4: note: in expansion of macro 'DPU_ERROR'
@ 2020-03-19 18:22 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-19 18:22 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 18865 bytes --]
tree: https://gitlab.freedesktop.org/drm/msm.git msm-next
head: f0bd6f869de62345a0171ac177dbb88c820d14e0
commit: d139b161b9d464afa6f28a8cc8ecc7a094a98e3a [3/4] drm/msm/dpu: Refactor resource manager
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d139b161b9d464afa6f28a8cc8ecc7a094a98e3a
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/drm/drm_drv.h:30,
from drivers/gpu//drm/msm/disp/dpu1/dpu_kms.h:11,
from drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:7:
drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c: In function 'dpu_rm_init':
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR'
304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
>> drivers/gpu//drm/msm/disp/dpu1/dpu_kms.h:52:29: note: in expansion of macro 'pr_err'
52 | #define DPU_ERROR(fmt, ...) pr_err("[dpu error]" fmt, ##__VA_ARGS__)
| ^~~~~~
>> drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:107:4: note: in expansion of macro 'DPU_ERROR'
107 | DPU_ERROR("failed lm object creation: err %ld\n", rc);
| ^~~~~~~~~
drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:107:48: note: format string is defined here
107 | DPU_ERROR("failed lm object creation: err %ld\n", rc);
| ~~^
| |
| long int
| %d
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/drm/drm_drv.h:30,
from drivers/gpu//drm/msm/disp/dpu1/dpu_kms.h:11,
from drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:7:
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR'
304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
>> drivers/gpu//drm/msm/disp/dpu1/dpu_kms.h:52:29: note: in expansion of macro 'pr_err'
52 | #define DPU_ERROR(fmt, ...) pr_err("[dpu error]" fmt, ##__VA_ARGS__)
| ^~~~~~
drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:136:4: note: in expansion of macro 'DPU_ERROR'
136 | DPU_ERROR("failed pingpong object creation: err %ld\n",
| ^~~~~~~~~
drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:136:54: note: format string is defined here
136 | DPU_ERROR("failed pingpong object creation: err %ld\n",
| ~~^
| |
| long int
| %d
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/drm/drm_drv.h:30,
from drivers/gpu//drm/msm/disp/dpu1/dpu_kms.h:11,
from drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:7:
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR'
304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
>> drivers/gpu//drm/msm/disp/dpu1/dpu_kms.h:52:29: note: in expansion of macro 'pr_err'
52 | #define DPU_ERROR(fmt, ...) pr_err("[dpu error]" fmt, ##__VA_ARGS__)
| ^~~~~~
drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:158:4: note: in expansion of macro 'DPU_ERROR'
158 | DPU_ERROR("failed intf object creation: err %ld\n", rc);
| ^~~~~~~~~
drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:158:50: note: format string is defined here
158 | DPU_ERROR("failed intf object creation: err %ld\n", rc);
| ~~^
| |
| long int
| %d
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/drm/drm_drv.h:30,
from drivers/gpu//drm/msm/disp/dpu1/dpu_kms.h:11,
from drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:7:
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR'
304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
>> drivers/gpu//drm/msm/disp/dpu1/dpu_kms.h:52:29: note: in expansion of macro 'pr_err'
52 | #define DPU_ERROR(fmt, ...) pr_err("[dpu error]" fmt, ##__VA_ARGS__)
| ^~~~~~
drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:175:4: note: in expansion of macro 'DPU_ERROR'
175 | DPU_ERROR("failed ctl object creation: err %ld\n", rc);
| ^~~~~~~~~
drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:175:49: note: format string is defined here
175 | DPU_ERROR("failed ctl object creation: err %ld\n", rc);
| ~~^
| |
| long int
| %d
--
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/drm/drm_drv.h:30,
from drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h:11,
from drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:7:
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c: In function 'dpu_rm_init':
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR'
304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h:52:29: note: in expansion of macro 'pr_err'
52 | #define DPU_ERROR(fmt, ...) pr_err("[dpu error]" fmt, ##__VA_ARGS__)
| ^~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:107:4: note: in expansion of macro 'DPU_ERROR'
107 | DPU_ERROR("failed lm object creation: err %ld\n", rc);
| ^~~~~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:107:48: note: format string is defined here
107 | DPU_ERROR("failed lm object creation: err %ld\n", rc);
| ~~^
| |
| long int
| %d
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/drm/drm_drv.h:30,
from drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h:11,
from drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:7:
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR'
304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h:52:29: note: in expansion of macro 'pr_err'
52 | #define DPU_ERROR(fmt, ...) pr_err("[dpu error]" fmt, ##__VA_ARGS__)
| ^~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:136:4: note: in expansion of macro 'DPU_ERROR'
136 | DPU_ERROR("failed pingpong object creation: err %ld\n",
| ^~~~~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:136:54: note: format string is defined here
136 | DPU_ERROR("failed pingpong object creation: err %ld\n",
| ~~^
| |
| long int
| %d
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/drm/drm_drv.h:30,
from drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h:11,
from drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:7:
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR'
304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h:52:29: note: in expansion of macro 'pr_err'
52 | #define DPU_ERROR(fmt, ...) pr_err("[dpu error]" fmt, ##__VA_ARGS__)
| ^~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:158:4: note: in expansion of macro 'DPU_ERROR'
158 | DPU_ERROR("failed intf object creation: err %ld\n", rc);
| ^~~~~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:158:50: note: format string is defined here
158 | DPU_ERROR("failed intf object creation: err %ld\n", rc);
| ~~^
| |
| long int
| %d
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/drm/drm_drv.h:30,
from drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h:11,
from drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:7:
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR'
304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h:52:29: note: in expansion of macro 'pr_err'
52 | #define DPU_ERROR(fmt, ...) pr_err("[dpu error]" fmt, ##__VA_ARGS__)
| ^~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:175:4: note: in expansion of macro 'DPU_ERROR'
175 | DPU_ERROR("failed ctl object creation: err %ld\n", rc);
| ^~~~~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:175:49: note: format string is defined here
175 | DPU_ERROR("failed ctl object creation: err %ld\n", rc);
| ~~^
| |
| long int
| %d
vim +/DPU_ERROR +107 drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c
73
74 int dpu_rm_init(struct dpu_rm *rm,
75 struct dpu_mdss_cfg *cat,
76 void __iomem *mmio)
77 {
78 int rc, i;
79
80 if (!rm || !cat || !mmio) {
81 DPU_ERROR("invalid kms\n");
82 return -EINVAL;
83 }
84
85 /* Clear, setup lists */
86 memset(rm, 0, sizeof(*rm));
87
88 mutex_init(&rm->rm_lock);
89
90 /* Interrogate HW catalog and create tracking items for hw blocks */
91 for (i = 0; i < cat->mixer_count; i++) {
92 struct dpu_hw_mixer *hw;
93 const struct dpu_lm_cfg *lm = &cat->mixer[i];
94
95 if (lm->pingpong == PINGPONG_MAX) {
96 DPU_DEBUG("skip mixer %d without pingpong\n", lm->id);
97 continue;
98 }
99
100 if (lm->id < LM_0 || lm->id >= LM_MAX) {
101 DPU_ERROR("skip mixer %d with invalid id\n", lm->id);
102 continue;
103 }
104 hw = dpu_hw_lm_init(lm->id, mmio, cat);
105 if (IS_ERR_OR_NULL(hw)) {
106 rc = PTR_ERR(hw);
> 107 DPU_ERROR("failed lm object creation: err %ld\n", rc);
108 goto fail;
109 }
110 rm->mixer_blks[lm->id - LM_0] = &hw->base;
111
112 if (!rm->lm_max_width) {
113 rm->lm_max_width = lm->sblk->maxwidth;
114 } else if (rm->lm_max_width != lm->sblk->maxwidth) {
115 /*
116 * Don't expect to have hw where lm max widths differ.
117 * If found, take the min.
118 */
119 DPU_ERROR("unsupported: lm maxwidth differs\n");
120 if (rm->lm_max_width > lm->sblk->maxwidth)
121 rm->lm_max_width = lm->sblk->maxwidth;
122 }
123 }
124
125 for (i = 0; i < cat->pingpong_count; i++) {
126 struct dpu_hw_pingpong *hw;
127 const struct dpu_pingpong_cfg *pp = &cat->pingpong[i];
128
129 if (pp->id < PINGPONG_0 || pp->id >= PINGPONG_MAX) {
130 DPU_ERROR("skip pingpong %d with invalid id\n", pp->id);
131 continue;
132 }
133 hw = dpu_hw_pingpong_init(pp->id, mmio, cat);
134 if (IS_ERR_OR_NULL(hw)) {
135 rc = PTR_ERR(hw);
136 DPU_ERROR("failed pingpong object creation: err %ld\n",
137 rc);
138 goto fail;
139 }
140 rm->pingpong_blks[pp->id - PINGPONG_0] = &hw->base;
141 }
142
143 for (i = 0; i < cat->intf_count; i++) {
144 struct dpu_hw_intf *hw;
145 const struct dpu_intf_cfg *intf = &cat->intf[i];
146
147 if (intf->type == INTF_NONE) {
148 DPU_DEBUG("skip intf %d with type none\n", i);
149 continue;
150 }
151 if (intf->id < INTF_0 || intf->id >= INTF_MAX) {
152 DPU_ERROR("skip intf %d with invalid id\n", intf->id);
153 continue;
154 }
155 hw = dpu_hw_intf_init(intf->id, mmio, cat);
156 if (IS_ERR_OR_NULL(hw)) {
157 rc = PTR_ERR(hw);
158 DPU_ERROR("failed intf object creation: err %ld\n", rc);
159 goto fail;
160 }
161 rm->intf_blks[intf->id - INTF_0] = &hw->base;
162 }
163
164 for (i = 0; i < cat->ctl_count; i++) {
165 struct dpu_hw_ctl *hw;
166 const struct dpu_ctl_cfg *ctl = &cat->ctl[i];
167
168 if (ctl->id < CTL_0 || ctl->id >= CTL_MAX) {
169 DPU_ERROR("skip ctl %d with invalid id\n", ctl->id);
170 continue;
171 }
172 hw = dpu_hw_ctl_init(ctl->id, mmio, cat);
173 if (IS_ERR_OR_NULL(hw)) {
174 rc = PTR_ERR(hw);
175 DPU_ERROR("failed ctl object creation: err %ld\n", rc);
176 goto fail;
177 }
178 rm->ctl_blks[ctl->id - CTL_0] = &hw->base;
179 }
180
181 return 0;
182
183 fail:
184 dpu_rm_destroy(rm);
185
186 return rc ? rc : -EFAULT;
187 }
188
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 47121 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-19 18:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19 18:22 [drm-msm:msm-next 3/4] drivers/gpu//drm/msm/disp/dpu1/dpu_rm.c:107:4: note: in expansion of macro 'DPU_ERROR' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.