Re: [RFC PATCH] clk: rework clk_register to use the clk_hw API
by kbuild test robot
Hi Jerome,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on clk/clk-next]
[also build test ERROR on v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Jerome-Brunet/clk-rework-clk_reg...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: i386-debian-10.3 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/clk/clk.c: In function 'clk_register':
>> drivers/clk/clk.c:3868:8: error: implicit declaration of function 'clk_hw_get_clk'; did you mean '__clk_hw_set_clk'? [-Werror=implicit-function-declaration]
clk = clk_hw_get_clk(hw);
^~~~~~~~~~~~~~
__clk_hw_set_clk
drivers/clk/clk.c:3868:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
clk = clk_hw_get_clk(hw);
^
cc1: some warnings being treated as errors
vim +3868 drivers/clk/clk.c
3846
3847 /**
3848 * clk_register - allocate a new clock, register it and return an opaque cookie
3849 * @dev: device that is registering this clock
3850 * @hw: link to hardware-specific clock data
3851 *
3852 * clk_register is the *deprecated* interface for populating the clock tree with
3853 * new clock nodes. Use clk_hw_register() instead.
3854 *
3855 * Returns: a pointer to the newly allocated struct clk which
3856 * cannot be dereferenced by driver code but may be used in conjunction with the
3857 * rest of the clock API. In the event of an error clk_register will return an
3858 * error code; drivers must test for an error code after calling clk_register.
3859 */
3860 struct clk *clk_register(struct device *dev, struct clk_hw *hw)
3861 {
3862 struct clk *clk;
3863 int ret = clk_hw_register(dev, hw);
3864
3865 if (ret < 0)
3866 return ERR_PTR(ret);
3867
> 3868 clk = clk_hw_get_clk(hw);
3869 if (IS_ERR_OR_NULL(clk))
3870 clk_hw_unregister(hw);
3871
3872 return clk;
3873 }
3874 EXPORT_SYMBOL_GPL(clk_register);
3875
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCHv2 4/5] Input: EXC3000: Add support to query model and fw_version
by kbuild test robot
Hi Sebastian,
I love your patch! Yet something to improve:
[auto build test ERROR on input/next]
[also build test ERROR on v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Sebastian-Reichel/EXC3000-Update...
base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 135b877874fae96b4372c8a3fbfaa8ff44ff86e3)
reproduce:
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
# 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: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/input/touchscreen/exc3000.c:51:13: error: use of undeclared identifier 'SZ_4K'
.max_xy = SZ_4K - 1,
^
drivers/input/touchscreen/exc3000.c:55:13: error: use of undeclared identifier 'SZ_16K'
.max_xy = SZ_16K - 1,
^
drivers/input/touchscreen/exc3000.c:59:13: error: use of undeclared identifier 'SZ_16K'
.max_xy = SZ_16K - 1,
^
drivers/input/touchscreen/exc3000.c:107:28: error: use of undeclared identifier 'SZ_16K'
if (data->info->max_xy == SZ_16K - 1)
^
>> drivers/input/touchscreen/exc3000.c:252:8: error: incompatible function pointer types initializing 'ssize_t (*)(struct device *, struct device_attribute *, char *)' (aka 'long (*)(struct device *, struct device_attribute *, char *)') with an expression of type 'int (struct device *, struct device_attribute *, char *)' [-Werror,-Wincompatible-function-pointer-types]
static DEVICE_ATTR_RO(fw_version);
^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h:133:45: note: expanded from macro 'DEVICE_ATTR_RO'
struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
^~~~~~~~~~~~~~~~
include/linux/sysfs.h:117:10: note: expanded from macro '__ATTR_RO'
.show = _name##_show, ^~~~~~~~~~~~
<scratch space>:62:1: note: expanded from here
fw_version_show
^~~~~~~~~~~~~~~
5 errors generated.
vim +252 drivers/input/touchscreen/exc3000.c
47
48 static struct eeti_dev_info exc3000_info[] = {
49 [EETI_EXC3000] = {
50 .name = "EETI EXC3000 Touch Screen",
51 .max_xy = SZ_4K - 1,
52 },
53 [EETI_EXC80H60] = {
54 .name = "EETI EXC80H60 Touch Screen",
> 55 .max_xy = SZ_16K - 1,
56 },
57 [EETI_EXC80H84] = {
58 .name = "EETI EXC80H84 Touch Screen",
59 .max_xy = SZ_16K - 1,
60 },
61 };
62
63 struct exc3000_data {
64 struct i2c_client *client;
65 const struct eeti_dev_info *info;
66 struct input_dev *input;
67 struct touchscreen_properties prop;
68 struct timer_list timer;
69 u8 buf[2 * EXC3000_LEN_FRAME];
70 struct completion wait_event;
71 struct mutex query_lock;
72 int query_result;
73 char model[EXC3000_LEN_MODEL_NAME];
74 char fw_version[EXC3000_LEN_FW_VERSION];
75 };
76
77 static void exc3000_report_slots(struct input_dev *input,
78 struct touchscreen_properties *prop,
79 const u8 *buf, int num)
80 {
81 for (; num--; buf += EXC3000_LEN_POINT) {
82 if (buf[0] & BIT(0)) {
83 input_mt_slot(input, buf[1]);
84 input_mt_report_slot_state(input, MT_TOOL_FINGER, true);
85 touchscreen_report_pos(input, prop,
86 get_unaligned_le16(buf + 2),
87 get_unaligned_le16(buf + 4),
88 true);
89 }
90 }
91 }
92
93 static void exc3000_timer(struct timer_list *t)
94 {
95 struct exc3000_data *data = from_timer(data, t, timer);
96
97 input_mt_sync_frame(data->input);
98 input_sync(data->input);
99 }
100
101 static int exc3000_read_frame(struct exc3000_data *data, u8 *buf)
102 {
103 struct i2c_client *client = data->client;
104 u8 expected_event = EXC3000_MT1_EVENT;
105 int ret;
106
107 if (data->info->max_xy == SZ_16K - 1)
108 expected_event = EXC3000_MT2_EVENT;
109
110 ret = i2c_master_send(client, "'", 2);
111 if (ret < 0)
112 return ret;
113
114 if (ret != 2)
115 return -EIO;
116
117 ret = i2c_master_recv(client, buf, EXC3000_LEN_FRAME);
118 if (ret < 0)
119 return ret;
120
121 if (ret != EXC3000_LEN_FRAME)
122 return -EIO;
123
124 if (get_unaligned_le16(buf) != EXC3000_LEN_FRAME)
125 return -EINVAL;
126
127 if (buf[2] != expected_event)
128 return -EINVAL;
129
130 return 0;
131 }
132
133 static int exc3000_read_data(struct exc3000_data *data,
134 u8 *buf, int *n_slots)
135 {
136 int error;
137
138 error = exc3000_read_frame(data, buf);
139 if (error)
140 return error;
141
142 *n_slots = buf[3];
143 if (!*n_slots || *n_slots > EXC3000_NUM_SLOTS)
144 return -EINVAL;
145
146 if (*n_slots > EXC3000_SLOTS_PER_FRAME) {
147 /* Read 2nd frame to get the rest of the contacts. */
148 error = exc3000_read_frame(data, buf + EXC3000_LEN_FRAME);
149 if (error)
150 return error;
151
152 /* 2nd chunk must have number of contacts set to 0. */
153 if (buf[EXC3000_LEN_FRAME + 3] != 0)
154 return -EINVAL;
155 }
156
157 return 0;
158 }
159
160 static int exc3000_query_interrupt(struct exc3000_data *data)
161 {
162 u8 *buf = data->buf;
163 int err;
164
165 err = i2c_master_recv(data->client, buf, EXC3000_LEN_FRAME);
166 if (err < 0)
167 return err;
168
169 if (buf[0] != 0x42)
170 return -EPROTO;
171
172 if (buf[4] == 'E')
173 strlcpy(data->model, buf+5, sizeof(data->model));
174 else if (buf[4] == 'D')
175 strlcpy(data->fw_version, buf+5, sizeof(data->fw_version));
176 else
177 return -EPROTO;
178
179 return 0;
180 }
181
182 static irqreturn_t exc3000_interrupt(int irq, void *dev_id)
183 {
184 struct exc3000_data *data = dev_id;
185 struct input_dev *input = data->input;
186 u8 *buf = data->buf;
187 int slots, total_slots;
188 int error;
189
190 if (mutex_is_locked(&data->query_lock)) {
191 data->query_result = exc3000_query_interrupt(data);
192 complete(&data->wait_event);
193 goto out;
194 }
195
196 error = exc3000_read_data(data, buf, &total_slots);
197 if (error) {
198 /* Schedule a timer to release "stuck" contacts */
199 mod_timer(&data->timer,
200 jiffies + msecs_to_jiffies(EXC3000_TIMEOUT_MS));
201 goto out;
202 }
203
204 /*
205 * We read full state successfully, no contacts will be "stuck".
206 */
207 del_timer_sync(&data->timer);
208
209 while (total_slots > 0) {
210 slots = min(total_slots, EXC3000_SLOTS_PER_FRAME);
211 exc3000_report_slots(input, &data->prop, buf + 4, slots);
212 total_slots -= slots;
213 buf += EXC3000_LEN_FRAME;
214 }
215
216 input_mt_sync_frame(input);
217 input_sync(input);
218
219 out:
220 return IRQ_HANDLED;
221 }
222
223 static int fw_version_show(struct device *dev,
224 struct device_attribute *attr, char *buf)
225 {
226 struct exc3000_data *data = dev_get_drvdata(dev);
227 static const u8 request[68] = {
228 0x67, 0x00, 0x42, 0x00, 0x03, 0x01, 'D', 0x00
229 };
230 struct i2c_client *client = data->client;
231 int err;
232
233 mutex_lock(&data->query_lock);
234
235 data->query_result = -ETIMEDOUT;
236 reinit_completion(&data->wait_event);
237
238 err = i2c_master_send(client, request, sizeof(request));
239 if (err < 0) {
240 mutex_unlock(&data->query_lock);
241 return err;
242 }
243
244 wait_for_completion_interruptible_timeout(&data->wait_event, 1*HZ);
245 mutex_unlock(&data->query_lock);
246
247 if (data->query_result < 0)
248 return data->query_result;
249
250 return sprintf(buf, "%s\n", data->fw_version);
251 }
> 252 static DEVICE_ATTR_RO(fw_version);
253
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [RESET PATCH v5 5/5] mtd: rawnand: micron: Micron SLC NAND filling block
by kbuild test robot
Hi Bean,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Bean-Huo/Micron-SLC-NAND-filling...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 642b151f45dd54809ea00ecd3976a56c1ec9b53d
config: microblaze-randconfig-r024-20200519 (attached as .config)
compiler: microblaze-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/bits.h:23,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:19,
from ./arch/microblaze/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/mtd/nand/raw/nand_micron.c:9:
drivers/mtd/nand/raw/nand_micron.c: In function 'micron_nand_write_oob':
include/linux/bits.h:26:28: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
26 | __builtin_constant_p((l) > (h)), (l) > (h), 0)))
| ^
include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/mtd/nand/raw/nand_micron.c:506:32: note: in expansion of macro 'GENMASK'
506 | micron->writtenp[first_eb] |= GENMASK(first_p + nb_p, 0) &
| ^~~~~~~
include/linux/bits.h:26:40: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
26 | __builtin_constant_p((l) > (h)), (l) > (h), 0)))
| ^
include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/mtd/nand/raw/nand_micron.c:506:32: note: in expansion of macro 'GENMASK'
506 | micron->writtenp[first_eb] |= GENMASK(first_p + nb_p, 0) &
| ^~~~~~~
include/linux/bits.h:26:28: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
26 | __builtin_constant_p((l) > (h)), (l) > (h), 0)))
| ^
include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/mtd/nand/raw/nand_micron.c:518:27: note: in expansion of macro 'GENMASK'
518 | micron->writtenp[eb] |= GENMASK(remaining_p - 1, 0) &
| ^~~~~~~
include/linux/bits.h:26:40: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
26 | __builtin_constant_p((l) > (h)), (l) > (h), 0)))
| ^
include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/mtd/nand/raw/nand_micron.c:518:27: note: in expansion of macro 'GENMASK'
518 | micron->writtenp[eb] |= GENMASK(remaining_p - 1, 0) &
| ^~~~~~~
In file included from include/asm-generic/bug.h:5,
from ./arch/microblaze/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/mtd/nand/raw/nand_micron.c:9:
>> include/linux/compiler.h:56:23: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~
>> drivers/mtd/nand/raw/nand_micron.c:517:2: note: in expansion of macro 'if'
517 | if (remaining_p)
| ^~
drivers/mtd/nand/raw/nand_micron.c:520:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
520 | return 0;
| ^~~~~~
vim +/if +517 drivers/mtd/nand/raw/nand_micron.c
484
485 static int micron_nand_write_oob(struct nand_chip *chip, loff_t to,
486 struct mtd_oob_ops *ops)
487 {
488 struct micron_nand *micron = nand_get_manufacturer_data(chip);
489 u32 eb_sz = nanddev_eraseblock_size(&chip->base);
490 u32 p_sz = nanddev_page_size(&chip->base);
491 u32 ppeb = nanddev_pages_per_eraseblock(&chip->base);
492 u32 nb_p_tot = ops->len / p_sz;
493 u32 first_eb = DIV_ROUND_DOWN_ULL(to, eb_sz);
494 u32 first_p = DIV_ROUND_UP_ULL(to - (first_eb * eb_sz), p_sz);
495 u32 nb_eb = DIV_ROUND_UP_ULL(first_p + nb_p_tot, ppeb);
496 u32 remaining_p, eb, nb_p;
497 int ret;
498
499 ret = nand_write_oob_nand(chip, to, ops);
500
501 if (ret || ops->len != ops->retlen)
502 return ret;
503
504 /* Mark the last pages of the first erase block to write */
505 nb_p = min(nb_p_tot, ppeb - first_p);
506 micron->writtenp[first_eb] |= GENMASK(first_p + nb_p, 0) &
507 MICRON_PAGE_MASK_TRIGGER;
508 remaining_p = nb_p_tot - nb_p;
509
510 /* Mark all the pages of all "in-the-middle" erase blocks */
511 for (eb = first_eb + 1; eb < first_eb + nb_eb - 1; eb++) {
512 micron->writtenp[eb] |= MICRON_PAGE_MASK_TRIGGER;
513 remaining_p -= ppeb;
514 }
515
516 /* Mark the first pages of the last erase block to write */
> 517 if (remaining_p)
518 micron->writtenp[eb] |= GENMASK(remaining_p - 1, 0) &
519 MICRON_PAGE_MASK_TRIGGER;
520 return 0;
521 }
522
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[ti:ti-android-linux-4.19-y 6022/18941] drivers/gpu/pvr/services4/srvkm/common/devicemem.c:1949:22: warning: variable 'psDeviceNode' set but not used
by kbuild test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-android-linux-4.19.y
head: bbd2d7e083faf8b0168f9885d1abf5012b5f610a
commit: ad863d48d21ef495a51194e580b1f71edd11aa09 [6022/18941] drivers: pvr: Fix build failure due to missing config_kernel.h
config: xtensa-randconfig-r013-20200519 (attached as .config)
compiler: xtensa-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
git checkout ad863d48d21ef495a51194e580b1f71edd11aa09
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/kernel.h:10,
from drivers/gpu/pvr/include4/kernel_types.h:42,
from drivers/gpu/pvr/include4/img_types.h:46,
from drivers/gpu/pvr/include4/img_defs.h:46,
from drivers/gpu/pvr/services4/srvkm/bridged/bridged_pvr_bridge.c:48:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/dma-mapping.h:329:2: note: in expansion of macro 'BUG_ON'
329 | BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
| ^~~~~~
include/linux/dma-mapping.h:329:9: note: in expansion of macro 'pfn_valid'
329 | BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
| ^~~~~~~~~
drivers/gpu/pvr/services4/srvkm/bridged/bridged_pvr_bridge.c: In function 'BridgedDispatchKM':
>> drivers/gpu/pvr/services4/srvkm/bridged/bridged_pvr_bridge.c:5022:73: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
5022 | PVR_DPF((PVR_DBG_MESSAGE, "ui32BridgeID = %d Failed!!", ui32BridgeID));
| ^
--
drivers/gpu/pvr/services4/srvkm/common/devicemem.c: In function 'PVRSRVMapDmaBufKM':
>> drivers/gpu/pvr/services4/srvkm/common/devicemem.c:1949:22: warning: variable 'psDeviceNode' set but not used [-Wunused-but-set-variable]
1949 | PVRSRV_DEVICE_NODE *psDeviceNode;
| ^~~~~~~~~~~~
--
drivers/gpu/pvr/services4/srvkm/devices/sgx/sgxinit.c: In function 'SGXInitialise':
>> drivers/gpu/pvr/services4/srvkm/devices/sgx/sgxinit.c:540:20: warning: variable 'bFirstTime' set but not used [-Wunused-but-set-variable]
540 | static IMG_BOOL bFirstTime = IMG_TRUE;
| ^~~~~~~~~~
drivers/gpu/pvr/services4/srvkm/devices/sgx/sgxinit.c: In function 'SGXGetMiscInfoKM':
>> drivers/gpu/pvr/services4/srvkm/devices/sgx/sgxinit.c:2984:14: warning: variable 'pui32MiscInfoFlags' set but not used [-Wunused-but-set-variable]
2984 | IMG_UINT32 *pui32MiscInfoFlags;
| ^~~~~~~~~~~~~~~~~~
--
drivers/gpu/pvr/services4/srvkm/env/linux/dma_fence_sync_native_server.c: In function 'SyncSWTimelineFenceCreateKM':
>> drivers/gpu/pvr/services4/srvkm/env/linux/dma_fence_sync_native_server.c:26:15: warning: variable 'eError' set but not used [-Wunused-but-set-variable]
26 | PVRSRV_ERROR eError;
| ^~~~~~
--
In file included from drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c:84:
>> drivers/gpu/pvr/services4/srvkm/env/linux/mutils.h:73:4: error: #error Unsupported architecture!
73 | #error Unsupported architecture!
| ^~~~~
In file included from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c:50:
drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c: In function 'DoMapToUser':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
>> drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c:738:9: note: in expansion of macro 'pfn_valid'
738 | if (!pfn_valid(pfn))
| ^~~~~~~~~
drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c: In function 'MMapVAccess':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c:960:8: note: in expansion of macro 'pfn_valid'
960 | if (!pfn_valid(pfn))
| ^~~~~~~~~
--
In file included from drivers/gpu/pvr/services4/srvkm/env/linux/mm.c:78:
>> drivers/gpu/pvr/services4/srvkm/env/linux/mutils.h:73:4: error: #error Unsupported architecture!
73 | #error Unsupported architecture!
| ^~~~~
--
>> drivers/gpu/pvr/services4/srvkm/env/linux/osfunc.c:56:10: fatal error: asm/set_memory.h: No such file or directory
56 | #include <asm/set_memory.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git remote update ti
git checkout ad863d48d21ef495a51194e580b1f71edd11aa09
vim +73 drivers/gpu/pvr/services4/srvkm/env/linux/mutils.h
d2d3c94cd4280d Andrew F. Davis 2018-04-04 59
d2d3c94cd4280d Andrew F. Davis 2018-04-04 60 #if defined(SUPPORT_LINUX_X86_PAT)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 61 pgprot_t pvr_pgprot_writecombine(pgprot_t prot);
d2d3c94cd4280d Andrew F. Davis 2018-04-04 62 #define PGPROT_WC(pv) pvr_pgprot_writecombine(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 63 #else
d2d3c94cd4280d Andrew F. Davis 2018-04-04 64 #if defined(__arm__) || defined(__aarch64__) || defined(__sh__)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 65 #define PGPROT_WC(pv) pgprot_writecombine(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 66 #elif defined(__mips__)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 67 #define PGPROT_WC(pv) pgprot_writecombine(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 68 #elif defined(__i386__) || defined(__x86_64)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 69 /* PAT support supersedes this */
d2d3c94cd4280d Andrew F. Davis 2018-04-04 70 #define PGPROT_WC(pv) pgprot_noncached(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 71 #else
d2d3c94cd4280d Andrew F. Davis 2018-04-04 72 #define PGPROT_WC(pv) pgprot_noncached(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 @73 #error Unsupported architecture!
d2d3c94cd4280d Andrew F. Davis 2018-04-04 74 #endif
d2d3c94cd4280d Andrew F. Davis 2018-04-04 75 #endif
d2d3c94cd4280d Andrew F. Davis 2018-04-04 76
:::::: The code at line 73 was first introduced by commit
:::::: d2d3c94cd4280d63c08c5039be4bf2372f9b2421 drivers: gpu: Add PowerVR SGX544 driver
:::::: TO: Andrew F. Davis <afd(a)ti.com>
:::::: CC: Praneeth Bajjuri <praneeth(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-next:master 9554/10701] arch/arm64/kvm/mmu.c:497:15: warning: variable 'start_pmd' set but not used
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
commit: 9ed24f4b712b855dcf7be3025b75b051cb73a2b7 [9554/10701] KVM: arm64: Move virt/kvm/arm to arch/arm64
config: arm64-randconfig-r031-20200519 (attached as .config)
compiler: aarch64-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
git checkout 9ed24f4b712b855dcf7be3025b75b051cb73a2b7
# 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: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
arch/arm64/kvm/mmu.c: In function 'unmap_hyp_pmds':
>> arch/arm64/kvm/mmu.c:497:15: warning: variable 'start_pmd' set but not used [-Wunused-but-set-variable]
497 | pmd_t *pmd, *start_pmd;
| ^~~~~~~~~
arch/arm64/kvm/mmu.c: In function 'unmap_hyp_puds':
arch/arm64/kvm/mmu.c:514:15: warning: variable 'start_pud' set but not used [-Wunused-but-set-variable]
514 | pud_t *pud, *start_pud;
| ^~~~~~~~~
vim +/start_pmd +497 arch/arm64/kvm/mmu.c
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 493
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 494 static void unmap_hyp_pmds(pud_t *pud, phys_addr_t addr, phys_addr_t end)
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 495 {
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 496 phys_addr_t next;
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 @497 pmd_t *pmd, *start_pmd;
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 498
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 499 start_pmd = pmd = pmd_offset(pud, addr);
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 500 do {
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 501 next = pmd_addr_end(addr, end);
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 502 /* Hyp doesn't use huge pmds */
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 503 if (!pmd_none(*pmd))
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 504 unmap_hyp_ptes(pmd, addr, next);
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 505 } while (pmd++, addr = next, addr != end);
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 506
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 507 if (hyp_pmd_table_empty(start_pmd))
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 508 clear_hyp_pud_entry(pud);
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 509 }
64f324979210d4 arch/arm/kvm/mmu.c Suzuki K Poulose 2016-03-22 510
:::::: The code at line 497 was first introduced by commit
:::::: 64f324979210d4064adf64f19da40c125c9dd137 kvm-arm: Add explicit hyp page table modifiers
:::::: TO: Suzuki K Poulose <suzuki.poulose(a)arm.com>
:::::: CC: Christoffer Dall <christoffer.dall(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
arch/sparc/mm/srmmu.c:300:9: error: variable 'pud' set but not used
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 642b151f45dd54809ea00ecd3976a56c1ec9b53d
commit: 7235db268a2777bc380b99b7db49ff7b19c8fb76 sparc32: use pgtable-nopud instead of 4level-fixup
config: sparc-defconfig (attached as .config)
compiler: sparc-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
git checkout 7235db268a2777bc380b99b7db49ff7b19c8fb76
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
arch/sparc/mm/srmmu.c: In function 'srmmu_nocache_init':
>> arch/sparc/mm/srmmu.c:300:9: error: variable 'pud' set but not used [-Werror=unused-but-set-variable]
300 | pud_t *pud;
| ^~~
arch/sparc/mm/srmmu.c: In function 'poke_hypersparc':
arch/sparc/mm/srmmu.c:1128:25: error: variable 'clear' set but not used [-Werror=unused-but-set-variable]
1128 | volatile unsigned long clear;
| ^~~~~
cc1: all warnings being treated as errors
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 7235db268a2777bc380b99b7db49ff7b19c8fb76
vim +/pud +300 arch/sparc/mm/srmmu.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 293
50215d6511265d Adrian Bunk 2008-06-05 294 static void __init srmmu_nocache_init(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 295 {
e8c29c839b5c9f Sam Ravnborg 2014-04-21 296 void *srmmu_nocache_bitmap;
^1da177e4c3f41 Linus Torvalds 2005-04-16 297 unsigned int bitmap_bits;
^1da177e4c3f41 Linus Torvalds 2005-04-16 298 pgd_t *pgd;
7235db268a2777 Mike Rapoport 2019-12-04 299 p4d_t *p4d;
7235db268a2777 Mike Rapoport 2019-12-04 @300 pud_t *pud;
^1da177e4c3f41 Linus Torvalds 2005-04-16 301 pmd_t *pmd;
^1da177e4c3f41 Linus Torvalds 2005-04-16 302 pte_t *pte;
^1da177e4c3f41 Linus Torvalds 2005-04-16 303 unsigned long paddr, vaddr;
^1da177e4c3f41 Linus Torvalds 2005-04-16 304 unsigned long pteval;
^1da177e4c3f41 Linus Torvalds 2005-04-16 305
^1da177e4c3f41 Linus Torvalds 2005-04-16 306 bitmap_bits = srmmu_nocache_size >> SRMMU_NOCACHE_BITMAP_SHIFT;
^1da177e4c3f41 Linus Torvalds 2005-04-16 307
9415673e3e19f7 Mike Rapoport 2019-03-11 308 srmmu_nocache_pool = memblock_alloc(srmmu_nocache_size,
9415673e3e19f7 Mike Rapoport 2019-03-11 309 SRMMU_NOCACHE_ALIGN_MAX);
b1e1c869ffd1d8 Mike Rapoport 2019-03-11 310 if (!srmmu_nocache_pool)
b1e1c869ffd1d8 Mike Rapoport 2019-03-11 311 panic("%s: Failed to allocate %lu bytes align=0x%x\n",
b1e1c869ffd1d8 Mike Rapoport 2019-03-11 312 __func__, srmmu_nocache_size, SRMMU_NOCACHE_ALIGN_MAX);
^1da177e4c3f41 Linus Torvalds 2005-04-16 313 memset(srmmu_nocache_pool, 0, srmmu_nocache_size);
^1da177e4c3f41 Linus Torvalds 2005-04-16 314
54df2db36c93bb Akinobu Mita 2013-03-29 315 srmmu_nocache_bitmap =
9415673e3e19f7 Mike Rapoport 2019-03-11 316 memblock_alloc(BITS_TO_LONGS(bitmap_bits) * sizeof(long),
9415673e3e19f7 Mike Rapoport 2019-03-11 317 SMP_CACHE_BYTES);
b1e1c869ffd1d8 Mike Rapoport 2019-03-11 318 if (!srmmu_nocache_bitmap)
b1e1c869ffd1d8 Mike Rapoport 2019-03-11 319 panic("%s: Failed to allocate %zu bytes\n", __func__,
b1e1c869ffd1d8 Mike Rapoport 2019-03-11 320 BITS_TO_LONGS(bitmap_bits) * sizeof(long));
^1da177e4c3f41 Linus Torvalds 2005-04-16 321 bit_map_init(&srmmu_nocache_map, srmmu_nocache_bitmap, bitmap_bits);
^1da177e4c3f41 Linus Torvalds 2005-04-16 322
f71a2aacc63e31 Sam Ravnborg 2012-07-26 323 srmmu_swapper_pg_dir = __srmmu_get_nocache(SRMMU_PGD_TABLE_SIZE, SRMMU_PGD_TABLE_SIZE);
^1da177e4c3f41 Linus Torvalds 2005-04-16 324 memset(__nocache_fix(srmmu_swapper_pg_dir), 0, SRMMU_PGD_TABLE_SIZE);
^1da177e4c3f41 Linus Torvalds 2005-04-16 325 init_mm.pgd = srmmu_swapper_pg_dir;
^1da177e4c3f41 Linus Torvalds 2005-04-16 326
^1da177e4c3f41 Linus Torvalds 2005-04-16 327 srmmu_early_allocate_ptable_skeleton(SRMMU_NOCACHE_VADDR, srmmu_nocache_end);
^1da177e4c3f41 Linus Torvalds 2005-04-16 328
^1da177e4c3f41 Linus Torvalds 2005-04-16 329 paddr = __pa((unsigned long)srmmu_nocache_pool);
^1da177e4c3f41 Linus Torvalds 2005-04-16 330 vaddr = SRMMU_NOCACHE_VADDR;
^1da177e4c3f41 Linus Torvalds 2005-04-16 331
^1da177e4c3f41 Linus Torvalds 2005-04-16 332 while (vaddr < srmmu_nocache_end) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 333 pgd = pgd_offset_k(vaddr);
7235db268a2777 Mike Rapoport 2019-12-04 334 p4d = p4d_offset(__nocache_fix(pgd), vaddr);
7235db268a2777 Mike Rapoport 2019-12-04 335 pud = pud_offset(__nocache_fix(p4d), vaddr);
9701b264d3267b Sam Ravnborg 2012-05-13 336 pmd = pmd_offset(__nocache_fix(pgd), vaddr);
9701b264d3267b Sam Ravnborg 2012-05-13 337 pte = pte_offset_kernel(__nocache_fix(pmd), vaddr);
^1da177e4c3f41 Linus Torvalds 2005-04-16 338
^1da177e4c3f41 Linus Torvalds 2005-04-16 339 pteval = ((paddr >> 4) | SRMMU_ET_PTE | SRMMU_PRIV);
^1da177e4c3f41 Linus Torvalds 2005-04-16 340
^1da177e4c3f41 Linus Torvalds 2005-04-16 341 if (srmmu_cache_pagetables)
^1da177e4c3f41 Linus Torvalds 2005-04-16 342 pteval |= SRMMU_CACHE;
^1da177e4c3f41 Linus Torvalds 2005-04-16 343
62875cff73fbb7 David S. Miller 2012-05-12 344 set_pte(__nocache_fix(pte), __pte(pteval));
^1da177e4c3f41 Linus Torvalds 2005-04-16 345
^1da177e4c3f41 Linus Torvalds 2005-04-16 346 vaddr += PAGE_SIZE;
^1da177e4c3f41 Linus Torvalds 2005-04-16 347 paddr += PAGE_SIZE;
^1da177e4c3f41 Linus Torvalds 2005-04-16 348 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 349
^1da177e4c3f41 Linus Torvalds 2005-04-16 350 flush_cache_all();
^1da177e4c3f41 Linus Torvalds 2005-04-16 351 flush_tlb_all();
^1da177e4c3f41 Linus Torvalds 2005-04-16 352 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 353
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-next:master 2550/10701] arch/x86/mm/init.c:75:6: warning: no previous prototype for 'x86_has_pat_wp'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
commit: 1f6f655e01adebf5bd5e6c3da2e843c104ded051 [2550/10701] x86/mm: Add a x86_has_pat_wp() helper
config: i386-randconfig-r015-20200519 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 1f6f655e01adebf5bd5e6c3da2e843c104ded051
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> arch/x86/mm/init.c:75:6: warning: no previous prototype for 'x86_has_pat_wp' [-Wmissing-prototypes]
bool x86_has_pat_wp(void)
^~~~~~~~~~~~~~
arch/x86/mm/init.c:475:21: warning: no previous prototype for 'init_memory_mapping' [-Wmissing-prototypes]
unsigned long __ref init_memory_mapping(unsigned long start,
^~~~~~~~~~~~~~~~~~~
arch/x86/mm/init.c:717:13: warning: no previous prototype for 'poking_init' [-Wmissing-prototypes]
void __init poking_init(void)
^~~~~~~~~~~
arch/x86/mm/init.c:866:13: warning: no previous prototype for 'mem_encrypt_free_decrypted_mem' [-Wmissing-prototypes]
void __weak mem_encrypt_free_decrypted_mem(void) { }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/x86_has_pat_wp +75 arch/x86/mm/init.c
73
74 /* Check that the write-protect PAT entry is set for write-protect */
> 75 bool x86_has_pat_wp(void)
76 {
77 return __pte2cachemode_tbl[_PAGE_CACHE_MODE_WP] == _PAGE_CACHE_MODE_WP;
78 }
79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[dsahern-linux:nexthops/active-backup 3/6] net/ipv4/nexthop.c:487:7: warning: variable 'rc' set but not used
by kbuild test robot
tree: https://github.com/dsahern/linux nexthops/active-backup
head: d812063276459dee9973ef8f4789ca63869ba9ae
commit: 0afee2a54f8fb316a318dd295b21f6608b3154d7 [3/6] nexthops: Refactor nexthop_select_path
config: mips-randconfig-r025-20200519 (attached as .config)
compiler: mipsel-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
git checkout 0afee2a54f8fb316a318dd295b21f6608b3154d7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
net/ipv4/nexthop.c: In function 'good_nh':
>> net/ipv4/nexthop.c:487:7: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
487 | bool rc = false;
| ^~
vim +/rc +487 net/ipv4/nexthop.c
480
481 /* nexthops always check if it is good and does
482 * not rely on a sysctl for this behavior
483 */
484 static bool good_nh(struct nexthop *nh)
485 {
486 struct nh_info *nhi;
> 487 bool rc = false;
488
489 nhi = rcu_dereference(nh->nh_info);
490 switch (nhi->family) {
491 case AF_INET:
492 if (ipv4_good_nh(&nhi->fib_nh))
493 rc = true;
494 break;
495 case AF_INET6:
496 if (ipv6_good_nh(&nhi->fib6_nh))
497 rc = true;
498 break;
499 }
500
501 return true;
502 }
503
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [RFC PATCH] clk: rework clk_register to use the clk_hw API
by kbuild test robot
Hi Jerome,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on clk/clk-next]
[also build test ERROR on v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Jerome-Brunet/clk-rework-clk_reg...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arm-randconfig-r033-20200519 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 135b877874fae96b4372c8a3fbfaa8ff44ff86e3)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/clk/clk.c:3868:8: error: implicit declaration of function 'clk_hw_get_clk' [-Werror,-Wimplicit-function-declaration]
clk = clk_hw_get_clk(hw);
^
drivers/clk/clk.c:3868:8: note: did you mean '__clk_hw_set_clk'?
include/linux/clk-provider.h:1121:20: note: '__clk_hw_set_clk' declared here
static inline void __clk_hw_set_clk(struct clk_hw *dst, struct clk_hw *src)
^
>> drivers/clk/clk.c:3868:6: warning: incompatible integer to pointer conversion assigning to 'struct clk *' from 'int' [-Wint-conversion]
clk = clk_hw_get_clk(hw);
^ ~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +/clk_hw_get_clk +3868 drivers/clk/clk.c
3846
3847 /**
3848 * clk_register - allocate a new clock, register it and return an opaque cookie
3849 * @dev: device that is registering this clock
3850 * @hw: link to hardware-specific clock data
3851 *
3852 * clk_register is the *deprecated* interface for populating the clock tree with
3853 * new clock nodes. Use clk_hw_register() instead.
3854 *
3855 * Returns: a pointer to the newly allocated struct clk which
3856 * cannot be dereferenced by driver code but may be used in conjunction with the
3857 * rest of the clock API. In the event of an error clk_register will return an
3858 * error code; drivers must test for an error code after calling clk_register.
3859 */
3860 struct clk *clk_register(struct device *dev, struct clk_hw *hw)
3861 {
3862 struct clk *clk;
3863 int ret = clk_hw_register(dev, hw);
3864
3865 if (ret < 0)
3866 return ERR_PTR(ret);
3867
> 3868 clk = clk_hw_get_clk(hw);
3869 if (IS_ERR_OR_NULL(clk))
3870 clk_hw_unregister(hw);
3871
3872 return clk;
3873 }
3874 EXPORT_SYMBOL_GPL(clk_register);
3875
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-next:master 9340/10701] arch/arc/mm/init.c:80:6: warning: no previous prototype for 'arch_has_descending_max_zone_pfns'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
commit: aa3238a152d1646868ac81bee4eee08ba39594de [9340/10701] mm: free_area_init: allow defining max_zone_pfn in descending order
config: arc-randconfig-r011-20200519 (attached as .config)
compiler: arc-elf-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
git checkout aa3238a152d1646868ac81bee4eee08ba39594de
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
arch/arc/mm/init.c:39:13: warning: no previous prototype for 'arc_get_mem_sz' [-Wmissing-prototypes]
39 | long __init arc_get_mem_sz(void)
| ^~~~~~~~~~~~~~
>> arch/arc/mm/init.c:80:6: warning: no previous prototype for 'arch_has_descending_max_zone_pfns' [-Wmissing-prototypes]
80 | bool arch_has_descending_max_zone_pfns(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arc/mm/init.c:91:13: warning: no previous prototype for 'setup_arch_memory' [-Wmissing-prototypes]
91 | void __init setup_arch_memory(void)
| ^~~~~~~~~~~~~~~~~
vim +/arch_has_descending_max_zone_pfns +80 arch/arc/mm/init.c
79
> 80 bool arch_has_descending_max_zone_pfns(void)
81 {
82 return true;
83 }
84
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months