[jolsa-perf:bpf/fprobe_link_5 3/10] kernel/bpf/syscall.c:4337: undefined reference to `bpf_fprobe_link_attach'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/fprobe_link_5
head: 9149abfa25286fdf715525babec5150939c9ac96
commit: 32adbf1760d4cccb9702863371d50b625ae7ee1d [3/10] bpf: Add support to attach kprobe program with fprobe
config: i386-randconfig-c021 (https://download.01.org/0day-ci/archive/20220214/202202140713.Pklmh3QR-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id...
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/fprobe_link_5
git checkout 32adbf1760d4cccb9702863371d50b625ae7ee1d
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
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 >>):
ld: kernel/bpf/syscall.o: in function `link_create':
>> kernel/bpf/syscall.c:4337: undefined reference to `bpf_fprobe_link_attach'
vim +4337 kernel/bpf/syscall.c
4258
4259 #define BPF_LINK_CREATE_LAST_FIELD link_create.fprobe.flags
4260 static int link_create(union bpf_attr *attr, bpfptr_t uattr)
4261 {
4262 enum bpf_prog_type ptype;
4263 struct bpf_prog *prog;
4264 int ret;
4265
4266 if (CHECK_ATTR(BPF_LINK_CREATE))
4267 return -EINVAL;
4268
4269 prog = bpf_prog_get(attr->link_create.prog_fd);
4270 if (IS_ERR(prog))
4271 return PTR_ERR(prog);
4272
4273 ret = bpf_prog_attach_check_attach_type(prog,
4274 attr->link_create.attach_type);
4275 if (ret)
4276 goto out;
4277
4278 switch (prog->type) {
4279 case BPF_PROG_TYPE_EXT:
4280 ret = tracing_bpf_link_attach(attr, uattr, prog);
4281 goto out;
4282 case BPF_PROG_TYPE_PERF_EVENT:
4283 case BPF_PROG_TYPE_TRACEPOINT:
4284 if (attr->link_create.attach_type != BPF_PERF_EVENT) {
4285 ret = -EINVAL;
4286 goto out;
4287 }
4288 ptype = prog->type;
4289 break;
4290 case BPF_PROG_TYPE_KPROBE:
4291 if (attr->link_create.attach_type != BPF_PERF_EVENT &&
4292 attr->link_create.attach_type != BPF_TRACE_FPROBE) {
4293 ret = -EINVAL;
4294 goto out;
4295 }
4296 ptype = prog->type;
4297 break;
4298 default:
4299 ptype = attach_type_to_prog_type(attr->link_create.attach_type);
4300 if (ptype == BPF_PROG_TYPE_UNSPEC || ptype != prog->type) {
4301 ret = -EINVAL;
4302 goto out;
4303 }
4304 break;
4305 }
4306
4307 switch (ptype) {
4308 case BPF_PROG_TYPE_CGROUP_SKB:
4309 case BPF_PROG_TYPE_CGROUP_SOCK:
4310 case BPF_PROG_TYPE_CGROUP_SOCK_ADDR:
4311 case BPF_PROG_TYPE_SOCK_OPS:
4312 case BPF_PROG_TYPE_CGROUP_DEVICE:
4313 case BPF_PROG_TYPE_CGROUP_SYSCTL:
4314 case BPF_PROG_TYPE_CGROUP_SOCKOPT:
4315 ret = cgroup_bpf_link_attach(attr, prog);
4316 break;
4317 case BPF_PROG_TYPE_TRACING:
4318 ret = tracing_bpf_link_attach(attr, uattr, prog);
4319 break;
4320 case BPF_PROG_TYPE_FLOW_DISSECTOR:
4321 case BPF_PROG_TYPE_SK_LOOKUP:
4322 ret = netns_bpf_link_create(attr, prog);
4323 break;
4324 #ifdef CONFIG_NET
4325 case BPF_PROG_TYPE_XDP:
4326 ret = bpf_xdp_link_attach(attr, prog);
4327 break;
4328 #endif
4329 case BPF_PROG_TYPE_PERF_EVENT:
4330 case BPF_PROG_TYPE_TRACEPOINT:
4331 ret = bpf_perf_link_attach(attr, prog);
4332 break;
4333 case BPF_PROG_TYPE_KPROBE:
4334 if (attr->link_create.attach_type == BPF_PERF_EVENT)
4335 ret = bpf_perf_link_attach(attr, prog);
4336 else
> 4337 ret = bpf_fprobe_link_attach(attr, prog);
4338 break;
4339 default:
4340 ret = -EINVAL;
4341 }
4342
4343 out:
4344 if (ret < 0)
4345 bpf_prog_put(prog);
4346 return ret;
4347 }
4348
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[linux-next:master 5127/5417] mm/page-writeback.c:93:28: error: unused variable 'dirty_bytes_min'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6d9bd4ad4ca08b1114e814c2c42383b8b13be631
commit: 3eb7a613cb25789b954064cf6e310f6b5ca92c03 [5127/5417] mm: move page-writeback sysctls to their own file
config: hexagon-randconfig-r041-20220213 (https://download.01.org/0day-ci/archive/20220214/202202140744.t6UIHhn5-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 3eb7a613cb25789b954064cf6e310f6b5ca92c03
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash
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 >>):
>> mm/page-writeback.c:93:28: error: unused variable 'dirty_bytes_min' [-Werror,-Wunused-const-variable]
static const unsigned long dirty_bytes_min = 2 * PAGE_SIZE;
^
mm/page-writeback.c:509:12: error: unused function 'dirty_background_ratio_handler' [-Werror,-Wunused-function]
static int dirty_background_ratio_handler(struct ctl_table *table, int write,
^
mm/page-writeback.c:520:12: error: unused function 'dirty_background_bytes_handler' [-Werror,-Wunused-function]
static int dirty_background_bytes_handler(struct ctl_table *table, int write,
^
mm/page-writeback.c:531:12: error: unused function 'dirty_ratio_handler' [-Werror,-Wunused-function]
static int dirty_ratio_handler(struct ctl_table *table, int write, void *buffer,
^
mm/page-writeback.c:545:12: error: unused function 'dirty_bytes_handler' [-Werror,-Wunused-function]
static int dirty_bytes_handler(struct ctl_table *table, int write,
^
mm/page-writeback.c:2002:12: error: unused function 'dirty_writeback_centisecs_handler' [-Werror,-Wunused-function]
static int dirty_writeback_centisecs_handler(struct ctl_table *table, int write,
^
6 errors generated.
vim +/dirty_bytes_min +93 mm/page-writeback.c
91
92 /* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */
> 93 static const unsigned long dirty_bytes_min = 2 * PAGE_SIZE;
94
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[ammarfaizi2-block:broonie/sound/for-5.18 33/48] sound/soc/sof/compress.c:91:5: error: no previous prototype for 'sof_compr_open'
by kernel test robot
tree: https://github.com/ammarfaizi2/linux-block broonie/sound/for-5.18
head: e7c799e76f070b4ac13498e532574466064ad6a5
commit: 6324cf901e14c6662be508f30485e0f09c54694d [33/48] ASoC: SOF: compr: Add compress ops implementation
config: nios2-randconfig-r011-20220213 (https://download.01.org/0day-ci/archive/20220214/202202140753.sthmNjlK-lk...)
compiler: nios2-linux-gcc (GCC) 11.2.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/ammarfaizi2/linux-block/commit/6324cf901e14c6662be508f...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block broonie/sound/for-5.18
git checkout 6324cf901e14c6662be508f30485e0f09c54694d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash sound/soc/sof/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the ammarfaizi2-block/broonie/sound/for-5.18 HEAD e7c799e76f070b4ac13498e532574466064ad6a5 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
>> sound/soc/sof/compress.c:91:5: error: no previous prototype for 'sof_compr_open' [-Werror=missing-prototypes]
91 | int sof_compr_open(struct snd_soc_component *component,
| ^~~~~~~~~~~~~~
>> sound/soc/sof/compress.c:127:5: error: no previous prototype for 'sof_compr_free' [-Werror=missing-prototypes]
127 | int sof_compr_free(struct snd_soc_component *component,
| ^~~~~~~~~~~~~~
>> sound/soc/sof/compress.c:161:5: error: no previous prototype for 'sof_compr_set_params' [-Werror=missing-prototypes]
161 | int sof_compr_set_params(struct snd_soc_component *component,
| ^~~~~~~~~~~~~~~~~~~~
>> sound/soc/sof/compress.c:224:5: error: no previous prototype for 'sof_compr_get_params' [-Werror=missing-prototypes]
224 | int sof_compr_get_params(struct snd_soc_component *component,
| ^~~~~~~~~~~~~~~~~~~~
>> sound/soc/sof/compress.c:233:5: error: no previous prototype for 'sof_compr_trigger' [-Werror=missing-prototypes]
233 | int sof_compr_trigger(struct snd_soc_component *component,
| ^~~~~~~~~~~~~~~~~
>> sound/soc/sof/compress.c:273:5: error: no previous prototype for 'sof_compr_copy' [-Werror=missing-prototypes]
273 | int sof_compr_copy(struct snd_soc_component *component,
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/sof_compr_open +91 sound/soc/sof/compress.c
90
> 91 int sof_compr_open(struct snd_soc_component *component,
92 struct snd_compr_stream *cstream)
93 {
94 struct snd_soc_pcm_runtime *rtd = cstream->private_data;
95 struct snd_compr_runtime *crtd = cstream->runtime;
96 struct snd_compr_tstamp *tstamp;
97 struct snd_sof_pcm *spcm;
98 int dir;
99
100 tstamp = kzalloc(sizeof(*tstamp), GFP_KERNEL);
101 if (!tstamp)
102 return -ENOMEM;
103
104 spcm = snd_sof_find_spcm_dai(component, rtd);
105 if (!spcm) {
106 kfree(tstamp);
107 return -EINVAL;
108 }
109
110 dir = cstream->direction;
111
112 if (spcm->stream[dir].cstream) {
113 kfree(tstamp);
114 return -EBUSY;
115 }
116
117 spcm->stream[dir].cstream = cstream;
118 spcm->stream[dir].posn.host_posn = 0;
119 spcm->stream[dir].posn.dai_posn = 0;
120 spcm->prepared[dir] = false;
121
122 crtd->private_data = tstamp;
123
124 return 0;
125 }
126
> 127 int sof_compr_free(struct snd_soc_component *component,
128 struct snd_compr_stream *cstream)
129 {
130 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
131 struct snd_compr_tstamp *tstamp = cstream->runtime->private_data;
132 struct snd_soc_pcm_runtime *rtd = cstream->private_data;
133 struct sof_ipc_stream stream;
134 struct sof_ipc_reply reply;
135 struct snd_sof_pcm *spcm;
136 int ret = 0;
137
138 spcm = snd_sof_find_spcm_dai(component, rtd);
139 if (!spcm)
140 return -EINVAL;
141
142 stream.hdr.size = sizeof(stream);
143 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE;
144 stream.comp_id = spcm->stream[cstream->direction].comp_id;
145
146 if (spcm->prepared[cstream->direction]) {
147 ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd,
148 &stream, sizeof(stream),
149 &reply, sizeof(reply));
150 if (!ret)
151 spcm->prepared[cstream->direction] = false;
152 }
153
154 cancel_work_sync(&spcm->stream[cstream->direction].period_elapsed_work);
155 spcm->stream[cstream->direction].cstream = NULL;
156 kfree(tstamp);
157
158 return ret;
159 }
160
> 161 int sof_compr_set_params(struct snd_soc_component *component,
162 struct snd_compr_stream *cstream, struct snd_compr_params *params)
163 {
164 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
165 struct snd_soc_pcm_runtime *rtd = cstream->private_data;
166 struct snd_compr_runtime *crtd = cstream->runtime;
167 struct sof_ipc_pcm_params_reply ipc_params_reply;
168 struct snd_compr_tstamp *tstamp;
169 struct sof_ipc_pcm_params pcm;
170 struct snd_sof_pcm *spcm;
171 int ret;
172
173 tstamp = crtd->private_data;
174
175 spcm = snd_sof_find_spcm_dai(component, rtd);
176
177 if (!spcm)
178 return -EINVAL;
179
180 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG;
181 cstream->dma_buffer.dev.dev = sdev->dev;
182 ret = snd_compr_malloc_pages(cstream, crtd->buffer_size);
183 if (ret < 0)
184 return ret;
185
186 ret = create_page_table(component, cstream, crtd->dma_area, crtd->dma_bytes);
187 if (ret < 0)
188 return ret;
189
190 memset(&pcm, 0, sizeof(pcm));
191
192 pcm.params.buffer.pages = PFN_UP(crtd->dma_bytes);
193 pcm.hdr.size = sizeof(pcm);
194 pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS;
195
196 pcm.comp_id = spcm->stream[cstream->direction].comp_id;
197 pcm.params.hdr.size = sizeof(pcm.params);
198 pcm.params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr;
199 pcm.params.buffer.size = crtd->dma_bytes;
200 pcm.params.direction = cstream->direction;
201 pcm.params.channels = params->codec.ch_out;
202 pcm.params.rate = params->codec.sample_rate;
203 pcm.params.buffer_fmt = SOF_IPC_BUFFER_INTERLEAVED;
204 pcm.params.frame_fmt = SOF_IPC_FRAME_S32_LE;
205 pcm.params.sample_container_bytes =
206 snd_pcm_format_physical_width(SNDRV_PCM_FORMAT_S32) >> 3;
207 pcm.params.host_period_bytes = params->buffer.fragment_size;
208
209 ret = sof_ipc_tx_message(sdev->ipc, pcm.hdr.cmd, &pcm, sizeof(pcm),
210 &ipc_params_reply, sizeof(ipc_params_reply));
211 if (ret < 0) {
212 dev_err(component->dev, "error ipc failed\n");
213 return ret;
214 }
215
216 tstamp->byte_offset = sdev->stream_box.offset + ipc_params_reply.posn_offset;
217 tstamp->sampling_rate = params->codec.sample_rate;
218
219 spcm->prepared[cstream->direction] = true;
220
221 return 0;
222 }
223
> 224 int sof_compr_get_params(struct snd_soc_component *component,
225 struct snd_compr_stream *cstream, struct snd_codec *params)
226 {
227 /* TODO: we don't query the supported codecs for now, if the
228 * application asks for an unsupported codec the set_params() will fail.
229 */
230 return 0;
231 }
232
> 233 int sof_compr_trigger(struct snd_soc_component *component,
234 struct snd_compr_stream *cstream, int cmd)
235 {
236 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
237 struct snd_soc_pcm_runtime *rtd = cstream->private_data;
238 struct sof_ipc_stream stream;
239 struct sof_ipc_reply reply;
240 struct snd_sof_pcm *spcm;
241
242 spcm = snd_sof_find_spcm_dai(component, rtd);
243 if (!spcm)
244 return -EINVAL;
245
246 stream.hdr.size = sizeof(stream);
247 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG;
248 stream.comp_id = spcm->stream[cstream->direction].comp_id;
249
250 switch (cmd) {
251 case SNDRV_PCM_TRIGGER_START:
252 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_START;
253 break;
254 case SNDRV_PCM_TRIGGER_STOP:
255 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_STOP;
256 break;
257 case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
258 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_PAUSE;
259 break;
260 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
261 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_RELEASE;
262 break;
263 default:
264 dev_err(component->dev, "error: unhandled trigger cmd %d\n", cmd);
265 break;
266 }
267
268 return sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd,
269 &stream, sizeof(stream),
270 &reply, sizeof(reply));
271 }
272
> 273 int sof_compr_copy(struct snd_soc_component *component,
274 struct snd_compr_stream *cstream,
275 char __user *buf, size_t count)
276 {
277 struct snd_compr_runtime *rtd = cstream->runtime;
278 unsigned int offset, n;
279 void *ptr;
280 int ret;
281
282 if (count > rtd->buffer_size)
283 count = rtd->buffer_size;
284
285 div_u64_rem(rtd->total_bytes_available, rtd->buffer_size, &offset);
286 ptr = rtd->dma_area + offset;
287 n = rtd->buffer_size - offset;
288
289 if (count < n) {
290 ret = copy_from_user(ptr, buf, count);
291 } else {
292 ret = copy_from_user(ptr, buf, n);
293 ret += copy_from_user(rtd->dma_area, buf + n, count - n);
294 }
295
296 return count - ret;
297 }
298
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[ammarfaizi2-block:axboe/linux-block/for-next 2/27] fs/io_uring.c:9406:9: error: variable 'ret' is uninitialized when used here
by kernel test robot
tree: https://github.com/ammarfaizi2/linux-block axboe/linux-block/for-next
head: 9c63ffcf47865ad2d20e09d6d6531c4611674cf1
commit: 1a75fac9a0f920a13418c88e4deaa9aa005381f5 [2/27] io_uring: avoid ring quiesce while registering/unregistering eventfd
config: arm-randconfig-c002-20220213 (https://download.01.org/0day-ci/archive/20220214/202202140741.cSdNc5dQ-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/ammarfaizi2/linux-block/commit/1a75fac9a0f920a13418c88...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block axboe/linux-block/for-next
git checkout 1a75fac9a0f920a13418c88e4deaa9aa005381f5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the ammarfaizi2-block/axboe/linux-block/for-next HEAD 9c63ffcf47865ad2d20e09d6d6531c4611674cf1 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
>> fs/io_uring.c:9406:9: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
return ret;
^~~
fs/io_uring.c:9384:13: note: initialize the variable 'ret' to silence this warning
int fd, ret;
^
= 0
1 error generated.
vim +/ret +9406 fs/io_uring.c
9379
9380 static int io_eventfd_register(struct io_ring_ctx *ctx, void __user *arg)
9381 {
9382 struct io_ev_fd *ev_fd;
9383 __s32 __user *fds = arg;
9384 int fd, ret;
9385
9386 ev_fd = rcu_dereference_protected(ctx->io_ev_fd,
9387 lockdep_is_held(&ctx->uring_lock));
9388 if (ev_fd)
9389 return -EBUSY;
9390
9391 if (copy_from_user(&fd, fds, sizeof(*fds)))
9392 return -EFAULT;
9393
9394 ev_fd = kmalloc(sizeof(*ev_fd), GFP_KERNEL);
9395 if (!ev_fd)
9396 return -ENOMEM;
9397
9398 ev_fd->cq_ev_fd = eventfd_ctx_fdget(fd);
9399 if (IS_ERR(ev_fd->cq_ev_fd)) {
9400 ret = PTR_ERR(ev_fd->cq_ev_fd);
9401 kfree(ev_fd);
9402 return ret;
9403 }
9404
9405 rcu_assign_pointer(ctx->io_ev_fd, ev_fd);
> 9406 return ret;
9407 }
9408
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[jic23-iio:testing 87/92] drivers/iio/accel/mma8452.c:1515:34: error: 'mma8452_dt_ids' defined but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git testing
head: a383b88d051c387eac8cd12b636e5c177e39cf0e
commit: 90adc57bd55a64d5b24ac3afc1b7dd98508ead7b [87/92] iio: mma8452: Fix probe failing when an i2c_device_id is used
config: arm-randconfig-r025-20220213 (https://download.01.org/0day-ci/archive/20220214/202202140655.BClq5vSX-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?id=...
git remote add jic23-iio https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git
git fetch --no-tags jic23-iio testing
git checkout 90adc57bd55a64d5b24ac3afc1b7dd98508ead7b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/iio/accel/
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/iio/accel/mma8452.c:1515:34: error: 'mma8452_dt_ids' defined but not used [-Werror=unused-const-variable=]
1515 | static const struct of_device_id mma8452_dt_ids[] = {
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/mma8452_dt_ids +1515 drivers/iio/accel/mma8452.c
ecabae71319695 Martin Fuzzey 2015-05-13 1514
c3cdd6e48e35b7 Martin Kepplinger 2015-09-01 @1515 static const struct of_device_id mma8452_dt_ids[] = {
244a93f651937a Martin Kepplinger 2016-01-16 1516 { .compatible = "fsl,mma8451", .data = &mma_chip_info_table[mma8451] },
c3cdd6e48e35b7 Martin Kepplinger 2015-09-01 1517 { .compatible = "fsl,mma8452", .data = &mma_chip_info_table[mma8452] },
c5ea1b58e8f51d Martin Kepplinger 2015-09-01 1518 { .compatible = "fsl,mma8453", .data = &mma_chip_info_table[mma8453] },
417e008ba9db7c Martin Kepplinger 2015-09-01 1519 { .compatible = "fsl,mma8652", .data = &mma_chip_info_table[mma8652] },
417e008ba9db7c Martin Kepplinger 2015-09-01 1520 { .compatible = "fsl,mma8653", .data = &mma_chip_info_table[mma8653] },
e8731180fbf6fd Martin Kepplinger 2016-03-09 1521 { .compatible = "fsl,fxls8471", .data = &mma_chip_info_table[fxls8471] },
c3cdd6e48e35b7 Martin Kepplinger 2015-09-01 1522 { }
c3cdd6e48e35b7 Martin Kepplinger 2015-09-01 1523 };
c3cdd6e48e35b7 Martin Kepplinger 2015-09-01 1524 MODULE_DEVICE_TABLE(of, mma8452_dt_ids);
c3cdd6e48e35b7 Martin Kepplinger 2015-09-01 1525
:::::: The code at line 1515 was first introduced by commit
:::::: c3cdd6e48e35b7a02f28e301ef30a87ff3cd6527 iio: mma8452: refactor for seperating chip specific data
:::::: TO: Martin Kepplinger <martink(a)posteo.de>
:::::: CC: Jonathan Cameron <jic23(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
mm/memcontrol.c:2774:20: error: unused function 'cancel_charge'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 754e0b0e35608ed5206d6a67a791563c631cec07
commit: 58056f77502f3567b760c9a8fc8d2e9081515b2d memcg, kmem: further deprecate kmem.limit_in_bytes
date: 3 months ago
config: arm-randconfig-r005-20220213 (https://download.01.org/0day-ci/archive/20220214/202202140629.MxlIbXOG-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# 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 fetch --no-tags linus master
git checkout 58056f77502f3567b760c9a8fc8d2e9081515b2d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
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 >>):
>> mm/memcontrol.c:2774:20: error: unused function 'cancel_charge' [-Werror,-Wunused-function]
static inline void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
^
mm/memcontrol.c:3339:19: error: unused function 'mem_cgroup_move_swap_account' [-Werror,-Wunused-function]
static inline int mem_cgroup_move_swap_account(swp_entry_t entry,
^
2 errors generated.
vim +/cancel_charge +2774 mm/memcontrol.c
2773
> 2774 static inline void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
2775 {
2776 if (mem_cgroup_is_root(memcg))
2777 return;
2778
2779 page_counter_uncharge(&memcg->memory, nr_pages);
2780 if (do_memsw_account())
2781 page_counter_uncharge(&memcg->memsw, nr_pages);
2782 }
2783
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week