arch/powerpc/mm/mem.c:53:12: error: no previous prototype for 'create_section_mapping'
by kernel test robot
Hi Christophe,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c3d0e3fd41b7f0f5d5d5b6022ab7e813f04ea727
commit: b26e8f27253a47bff90972b987112fd8396e9b8d powerpc/mem: Move cache flushing functions into mm/cacheflush.c
date: 5 weeks ago
config: powerpc-randconfig-r013-20210519 (attached as .config)
compiler: powerpc64-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://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 b26e8f27253a47bff90972b987112fd8396e9b8d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
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 >>):
>> arch/powerpc/mm/mem.c:53:12: error: no previous prototype for 'create_section_mapping' [-Werror=missing-prototypes]
53 | int __weak create_section_mapping(unsigned long start, unsigned long end,
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/create_section_mapping +53 arch/powerpc/mm/mem.c
bc02af93dd2bbd Yasunori Goto 2006-06-27 52
4e00c5affdd4b0 Logan Gunthorpe 2020-04-10 @53 int __weak create_section_mapping(unsigned long start, unsigned long end,
4e00c5affdd4b0 Logan Gunthorpe 2020-04-10 54 int nid, pgprot_t prot)
fecbfabe1dc940 Benjamin Herrenschmidt 2016-07-05 55 {
fecbfabe1dc940 Benjamin Herrenschmidt 2016-07-05 56 return -ENODEV;
fecbfabe1dc940 Benjamin Herrenschmidt 2016-07-05 57 }
fecbfabe1dc940 Benjamin Herrenschmidt 2016-07-05 58
:::::: The code at line 53 was first introduced by commit
:::::: 4e00c5affdd4b04e6392001716333971932f3d0c powerpc/mm: thread pgprot_t through create_section_mapping()
:::::: TO: Logan Gunthorpe <logang(a)deltatee.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, 4 months
[android-goldfish:android-3.18 396/1051] arch/arm64/xen/../../arm/xen/enlighten.c:228:55: sparse: sparse: Using plain integer as NULL pointer
by kernel test robot
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: dd54b61f1458c03f68fc019b4874d98f2f0ae3a5
commit: 8214bf079208b146e63cd0a3ce0ed335a87ce7b3 [396/1051] scripts/dtc: Export YYLOC global declaration
config: arm64-randconfig-s032-20210519 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 5.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-341-g8af24329-dirty
git remote add android-goldfish https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout 8214bf079208b146e63cd0a3ce0ed335a87ce7b3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=arm64
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 >>)
arch/arm64/xen/../../arm/xen/enlighten.c:30:19: sparse: sparse: symbol '_xen_start_info' was not declared. Should it be static?
arch/arm64/xen/../../arm/xen/enlighten.c:51:5: sparse: sparse: symbol 'xen_platform_pci_unplug' was not declared. Should it be static?
>> arch/arm64/xen/../../arm/xen/enlighten.c:228:55: sparse: sparse: Using plain integer as NULL pointer
In file included from arch/arm64/xen/../../arm/xen/enlighten.c:4:0:
include/xen/hvm.h: In function 'param_name':
include/xen/hvm.h:30:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (op >= ARRAY_SIZE(names))
^
In file included from arch/arm64/include/asm/mmu.h:24:0,
from include/linux/mm_types.h:18,
from include/asm-generic/pgtable.h:7,
from arch/arm64/include/asm/pgtable.h:525,
from arch/arm64/include/../../arm/include/asm/xen/page.h:5,
from arch/arm64/include/asm/xen/page.h:1,
from include/xen/page.h:4,
from arch/arm64/xen/../../arm/xen/enlighten.c:12:
arch/arm64/include/asm/cpufeature.h: In function 'arm64_ftr_value':
arch/arm64/include/asm/cpufeature.h:153:68: warning: signed and unsigned type in conditional expression [-Wsign-compare]
cpuid_feature_extract_field_width(val, ftrp->shift, ftrp->width) :
^
arch/arm64/xen/../../arm/xen/enlighten.c: In function 'xen_guest_init':
arch/arm64/xen/../../arm/xen/enlighten.c:243:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (strlen(xen_prefix) + 3 < len &&
^
vim +228 arch/arm64/xen/../../arm/xen/enlighten.c
8b271d57b57585 Julien Grall 2014-01-30 219
2e01f16601d892 Stefano Stabellini 2012-09-14 220 /*
2e01f16601d892 Stefano Stabellini 2012-09-14 221 * see Documentation/devicetree/bindings/arm/xen.txt for the
2e01f16601d892 Stefano Stabellini 2012-09-14 222 * documentation of the Xen Device Tree format.
2e01f16601d892 Stefano Stabellini 2012-09-14 223 */
b3b52fd87e8f75 Stefano Stabellini 2012-09-13 224 #define GRANT_TABLE_PHYSADDR 0
2e01f16601d892 Stefano Stabellini 2012-09-14 225 static int __init xen_guest_init(void)
2e01f16601d892 Stefano Stabellini 2012-09-14 226 {
2e01f16601d892 Stefano Stabellini 2012-09-14 227 struct xen_add_to_physmap xatp;
2e01f16601d892 Stefano Stabellini 2012-09-14 @228 static struct shared_info *shared_info_page = 0;
2e01f16601d892 Stefano Stabellini 2012-09-14 229 struct device_node *node;
2e01f16601d892 Stefano Stabellini 2012-09-14 230 int len;
2e01f16601d892 Stefano Stabellini 2012-09-14 231 const char *s = NULL;
2e01f16601d892 Stefano Stabellini 2012-09-14 232 const char *version = NULL;
2e01f16601d892 Stefano Stabellini 2012-09-14 233 const char *xen_prefix = "xen,xen-";
b3b52fd87e8f75 Stefano Stabellini 2012-09-13 234 struct resource res;
47c542050d306e Julien Grall 2014-01-30 235 phys_addr_t grant_frames;
2e01f16601d892 Stefano Stabellini 2012-09-14 236
2e01f16601d892 Stefano Stabellini 2012-09-14 237 node = of_find_compatible_node(NULL, NULL, "xen,xen");
2e01f16601d892 Stefano Stabellini 2012-09-14 238 if (!node) {
2e01f16601d892 Stefano Stabellini 2012-09-14 239 pr_debug("No Xen support\n");
2e01f16601d892 Stefano Stabellini 2012-09-14 240 return 0;
2e01f16601d892 Stefano Stabellini 2012-09-14 241 }
2e01f16601d892 Stefano Stabellini 2012-09-14 242 s = of_get_property(node, "compatible", &len);
2e01f16601d892 Stefano Stabellini 2012-09-14 243 if (strlen(xen_prefix) + 3 < len &&
2e01f16601d892 Stefano Stabellini 2012-09-14 244 !strncmp(xen_prefix, s, strlen(xen_prefix)))
2e01f16601d892 Stefano Stabellini 2012-09-14 245 version = s + strlen(xen_prefix);
2e01f16601d892 Stefano Stabellini 2012-09-14 246 if (version == NULL) {
2e01f16601d892 Stefano Stabellini 2012-09-14 247 pr_debug("Xen version not found\n");
2e01f16601d892 Stefano Stabellini 2012-09-14 248 return 0;
2e01f16601d892 Stefano Stabellini 2012-09-14 249 }
b3b52fd87e8f75 Stefano Stabellini 2012-09-13 250 if (of_address_to_resource(node, GRANT_TABLE_PHYSADDR, &res))
b3b52fd87e8f75 Stefano Stabellini 2012-09-13 251 return 0;
efaf30a3357872 Konrad Rzeszutek Wilk 2014-01-06 252 grant_frames = res.start;
0ec53ecf38bcbf Stefano Stabellini 2012-09-14 253 xen_events_irq = irq_of_parse_and_map(node, 0);
47c542050d306e Julien Grall 2014-01-30 254 pr_info("Xen %s support found, events_irq=%d gnttab_frame=%pa\n",
47c542050d306e Julien Grall 2014-01-30 255 version, xen_events_irq, &grant_frames);
8b271d57b57585 Julien Grall 2014-01-30 256
8b271d57b57585 Julien Grall 2014-01-30 257 if (xen_events_irq < 0)
8b271d57b57585 Julien Grall 2014-01-30 258 return -ENODEV;
8b271d57b57585 Julien Grall 2014-01-30 259
2e01f16601d892 Stefano Stabellini 2012-09-14 260 xen_domain_type = XEN_HVM_DOMAIN;
2e01f16601d892 Stefano Stabellini 2012-09-14 261
ef61ee0dc7ba04 Stefano Stabellini 2012-08-08 262 xen_setup_features();
5ebc77de83c7b7 Stefano Stabellini 2014-09-10 263
5ebc77de83c7b7 Stefano Stabellini 2014-09-10 264 if (!xen_feature(XENFEAT_grant_map_identity)) {
5ebc77de83c7b7 Stefano Stabellini 2014-09-10 265 pr_warn("Please upgrade your Xen.\n"
5ebc77de83c7b7 Stefano Stabellini 2014-09-10 266 "If your platform has any non-coherent DMA devices, they won't work properly.\n");
5ebc77de83c7b7 Stefano Stabellini 2014-09-10 267 }
5ebc77de83c7b7 Stefano Stabellini 2014-09-10 268
ef61ee0dc7ba04 Stefano Stabellini 2012-08-08 269 if (xen_feature(XENFEAT_dom0))
ef61ee0dc7ba04 Stefano Stabellini 2012-08-08 270 xen_start_info->flags |= SIF_INITDOMAIN|SIF_PRIVILEGED;
ef61ee0dc7ba04 Stefano Stabellini 2012-08-08 271 else
ef61ee0dc7ba04 Stefano Stabellini 2012-08-08 272 xen_start_info->flags &= ~(SIF_INITDOMAIN|SIF_PRIVILEGED);
ef61ee0dc7ba04 Stefano Stabellini 2012-08-08 273
2e01f16601d892 Stefano Stabellini 2012-09-14 274 if (!shared_info_page)
2e01f16601d892 Stefano Stabellini 2012-09-14 275 shared_info_page = (struct shared_info *)
2e01f16601d892 Stefano Stabellini 2012-09-14 276 get_zeroed_page(GFP_KERNEL);
2e01f16601d892 Stefano Stabellini 2012-09-14 277 if (!shared_info_page) {
2e01f16601d892 Stefano Stabellini 2012-09-14 278 pr_err("not enough memory\n");
2e01f16601d892 Stefano Stabellini 2012-09-14 279 return -ENOMEM;
2e01f16601d892 Stefano Stabellini 2012-09-14 280 }
2e01f16601d892 Stefano Stabellini 2012-09-14 281 xatp.domid = DOMID_SELF;
2e01f16601d892 Stefano Stabellini 2012-09-14 282 xatp.idx = 0;
2e01f16601d892 Stefano Stabellini 2012-09-14 283 xatp.space = XENMAPSPACE_shared_info;
2e01f16601d892 Stefano Stabellini 2012-09-14 284 xatp.gpfn = __pa(shared_info_page) >> PAGE_SHIFT;
2e01f16601d892 Stefano Stabellini 2012-09-14 285 if (HYPERVISOR_memory_op(XENMEM_add_to_physmap, &xatp))
2e01f16601d892 Stefano Stabellini 2012-09-14 286 BUG();
2e01f16601d892 Stefano Stabellini 2012-09-14 287
2e01f16601d892 Stefano Stabellini 2012-09-14 288 HYPERVISOR_shared_info = (struct shared_info *)shared_info_page;
2e01f16601d892 Stefano Stabellini 2012-09-14 289
2e01f16601d892 Stefano Stabellini 2012-09-14 290 /* xen_vcpu is a pointer to the vcpu_info struct in the shared_info
2e01f16601d892 Stefano Stabellini 2012-09-14 291 * page, we use it in the event channel upcall and in some pvclock
9a9ab3cc00dc0c Stefano Stabellini 2013-04-25 292 * related functions.
2e01f16601d892 Stefano Stabellini 2012-09-14 293 * The shared info contains exactly 1 CPU (the boot CPU). The guest
2e01f16601d892 Stefano Stabellini 2012-09-14 294 * is required to use VCPUOP_register_vcpu_info to place vcpu info
9a9ab3cc00dc0c Stefano Stabellini 2013-04-25 295 * for secondary CPUs as they are brought up.
9a9ab3cc00dc0c Stefano Stabellini 2013-04-25 296 * For uniformity we use VCPUOP_register_vcpu_info even on cpu0.
9a9ab3cc00dc0c Stefano Stabellini 2013-04-25 297 */
16691059c77a6a Julien Grall 2016-12-07 298 xen_vcpu_info = alloc_percpu(struct vcpu_info);
9a9ab3cc00dc0c Stefano Stabellini 2013-04-25 299 if (xen_vcpu_info == NULL)
9a9ab3cc00dc0c Stefano Stabellini 2013-04-25 300 return -ENOMEM;
b3b52fd87e8f75 Stefano Stabellini 2012-09-13 301
efaf30a3357872 Konrad Rzeszutek Wilk 2014-01-06 302 if (gnttab_setup_auto_xlat_frames(grant_frames)) {
efaf30a3357872 Konrad Rzeszutek Wilk 2014-01-06 303 free_percpu(xen_vcpu_info);
efaf30a3357872 Konrad Rzeszutek Wilk 2014-01-06 304 return -ENOMEM;
efaf30a3357872 Konrad Rzeszutek Wilk 2014-01-06 305 }
b3b52fd87e8f75 Stefano Stabellini 2012-09-13 306 gnttab_init();
b3b52fd87e8f75 Stefano Stabellini 2012-09-13 307 if (!xen_initial_domain())
b3b52fd87e8f75 Stefano Stabellini 2012-09-13 308 xenbus_probe(NULL);
b3b52fd87e8f75 Stefano Stabellini 2012-09-13 309
e1a9c16b303725 Julien Grall 2013-09-09 310 /*
e1a9c16b303725 Julien Grall 2013-09-09 311 * Making sure board specific code will not set up ops for
e1a9c16b303725 Julien Grall 2013-09-09 312 * cpu idle and cpu freq.
e1a9c16b303725 Julien Grall 2013-09-09 313 */
e1a9c16b303725 Julien Grall 2013-09-09 314 disable_cpuidle();
e1a9c16b303725 Julien Grall 2013-09-09 315 disable_cpufreq();
e1a9c16b303725 Julien Grall 2013-09-09 316
8b271d57b57585 Julien Grall 2014-01-30 317 xen_init_IRQ();
8b271d57b57585 Julien Grall 2014-01-30 318
8b271d57b57585 Julien Grall 2014-01-30 319 if (request_percpu_irq(xen_events_irq, xen_arm_callback,
8b271d57b57585 Julien Grall 2014-01-30 320 "events", &xen_vcpu)) {
8b271d57b57585 Julien Grall 2014-01-30 321 pr_err("Error request IRQ %d\n", xen_events_irq);
8b271d57b57585 Julien Grall 2014-01-30 322 return -EINVAL;
8b271d57b57585 Julien Grall 2014-01-30 323 }
8b271d57b57585 Julien Grall 2014-01-30 324
8b271d57b57585 Julien Grall 2014-01-30 325 xen_percpu_init();
8b271d57b57585 Julien Grall 2014-01-30 326
8b271d57b57585 Julien Grall 2014-01-30 327 register_cpu_notifier(&xen_cpu_notifier);
8b271d57b57585 Julien Grall 2014-01-30 328
1aa3d8d9935dfb Stefano Stabellini 2013-05-08 329 return 0;
1aa3d8d9935dfb Stefano Stabellini 2013-05-08 330 }
8b271d57b57585 Julien Grall 2014-01-30 331 early_initcall(xen_guest_init);
1aa3d8d9935dfb Stefano Stabellini 2013-05-08 332
:::::: The code at line 228 was first introduced by commit
:::::: 2e01f16601d8924b12b1acf1cdc49a0d1cc1cfb2 xen/arm: Xen detection and shared_info page mapping
:::::: TO: Stefano Stabellini <stefano.stabellini(a)eu.citrix.com>
:::::: CC: Stefano Stabellini <stefano.stabellini(a)eu.citrix.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[media-next:master 180/181] drivers/staging/media/hantro/hantro_drv.c:175:2: error: expected identifier or '(' before 'return'
by kernel test robot
Hi Mauro,
FYI, the error/warning still remains.
tree: git://linuxtv.org/mchehab/media-next.git master
head: c4fb2697f420b3c752230d8060801681bc486c04
commit: 9454974c75ddbe0ec82c1bb3f0b5d6f3ce65b8fd [180/181] media: hantro: use pm_runtime_resume_and_get()
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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 media-next git://linuxtv.org/mchehab/media-next.git
git fetch --no-tags media-next master
git checkout 9454974c75ddbe0ec82c1bb3f0b5d6f3ce65b8fd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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/staging/media/hantro/hantro_drv.c: In function 'device_run':
drivers/staging/media/hantro/hantro_drv.c:165:3: error: label 'err_cancel_job' used but not defined
165 | goto err_cancel_job;
| ^~~~
drivers/staging/media/hantro/hantro_drv.c:157:32: warning: variable 'dst' set but not used [-Wunused-but-set-variable]
157 | struct vb2_v4l2_buffer *src, *dst;
| ^~~
drivers/staging/media/hantro/hantro_drv.c:157:26: warning: variable 'src' set but not used [-Wunused-but-set-variable]
157 | struct vb2_v4l2_buffer *src, *dst;
| ^~~
drivers/staging/media/hantro/hantro_drv.c: At top level:
drivers/staging/media/hantro/hantro_drv.c:168:2: warning: data definition has no type or storage class
168 | ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks);
| ^~~
drivers/staging/media/hantro/hantro_drv.c:168:2: error: type defaults to 'int' in declaration of 'ret' [-Werror=implicit-int]
drivers/staging/media/hantro/hantro_drv.c:168:24: error: 'ctx' undeclared here (not in a function)
168 | ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks);
| ^~~
drivers/staging/media/hantro/hantro_drv.c:169:2: error: expected identifier or '(' before 'if'
169 | if (ret)
| ^~
drivers/staging/media/hantro/hantro_drv.c:172:2: warning: data definition has no type or storage class
172 | v4l2_m2m_buf_copy_metadata(src, dst, true);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/media/hantro/hantro_drv.c:172:2: error: type defaults to 'int' in declaration of 'v4l2_m2m_buf_copy_metadata' [-Werror=implicit-int]
drivers/staging/media/hantro/hantro_drv.c:172:2: warning: parameter names (without types) in function declaration
drivers/staging/media/hantro/hantro_drv.c:172:2: error: conflicting types for 'v4l2_m2m_buf_copy_metadata'
In file included from drivers/staging/media/hantro/hantro_drv.c:23:
include/media/v4l2-mem2mem.h:830:6: note: previous declaration of 'v4l2_m2m_buf_copy_metadata' was here
830 | void v4l2_m2m_buf_copy_metadata(const struct vb2_v4l2_buffer *out_vb,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/media/hantro/hantro_drv.c:174:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token
174 | ctx->codec_ops->run(ctx);
| ^~
>> drivers/staging/media/hantro/hantro_drv.c:175:2: error: expected identifier or '(' before 'return'
175 | return;
| ^~~~~~
drivers/staging/media/hantro/hantro_drv.c:177:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
177 | err_cancel_job:
| ^
drivers/staging/media/hantro/hantro_drv.c:179:1: error: expected identifier or '(' before '}' token
179 | }
| ^
cc1: some warnings being treated as errors
vim +175 drivers/staging/media/hantro/hantro_drv.c
932a9317ac492d drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-07-25 153
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 154 static void device_run(void *priv)
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 155 {
a29add8c9bb29d drivers/staging/media/hantro/hantro_drv.c Philipp Zabel 2019-06-12 156 struct hantro_ctx *ctx = priv;
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 157 struct vb2_v4l2_buffer *src, *dst;
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 158 int ret;
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 159
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 160 src = hantro_get_src_buf(ctx);
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 161 dst = hantro_get_dst_buf(ctx);
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 162
9454974c75ddbe drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-26 163 ret = pm_runtime_resume_and_get(ctx->dev->dev);
9454974c75ddbe drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-26 164 if (ret < 0)
892bb6ecead9b8 drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-28 165 goto err_cancel_job;
892bb6ecead9b8 drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-28 166 }
892bb6ecead9b8 drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-28 167
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 168 ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks);
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 169 if (ret)
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 170 goto err_cancel_job;
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 171
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 172 v4l2_m2m_buf_copy_metadata(src, dst, true);
6c2eb77bf5667c drivers/staging/media/hantro/hantro_drv.c Boris Brezillon 2019-08-16 173
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 174 ctx->codec_ops->run(ctx);
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 @175 return;
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 176
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 177 err_cancel_job:
892bb6ecead9b8 drivers/staging/media/hantro/hantro_drv.c Mauro Carvalho Chehab 2021-04-28 178 hantro_job_finish_no_pm(ctx->dev, ctx, VB2_BUF_STATE_ERROR);
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 179 }
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 180
:::::: The code at line 175 was first introduced by commit
:::::: 775fec69008d30ed5e4ce9fa7701c5591e424c87 media: add Rockchip VPU JPEG encoder driver
:::::: TO: Ezequiel Garcia <ezequiel(a)collabora.com>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[rppt-memblock:for-kernelci 3/3] arch/arm/mm/init.c:143:25: error: expected ')' before ';' token
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git for-kernelci
head: a67db182d2b2007db563e1c95519fabd15d52095
commit: a67db182d2b2007db563e1c95519fabd15d52095 [3/3] arm: extend pfn_valid to take into accound freed memory map alignment
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-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://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git/commit/...
git remote add rppt-memblock git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git
git fetch --no-tags rppt-memblock for-kernelci
git checkout a67db182d2b2007db563e1c95519fabd15d52095
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>):
arch/arm/mm/init.c:97:13: warning: no previous prototype for 'setup_dma_zone' [-Wmissing-prototypes]
97 | void __init setup_dma_zone(const struct machine_desc *mdesc)
| ^~~~~~~~~~~~~~
arch/arm/mm/init.c: In function 'pfn_valid':
>> arch/arm/mm/init.c:143:25: error: expected ')' before ';' token
143 | pageblock_size);
| ^
| )
arch/arm/mm/init.c:141:5: note: to match this '('
141 | if (memblock_overlaps_region(&memblock.memory,
| ^
>> arch/arm/mm/init.c:147:1: error: expected expression before '}' token
147 | }
| ^
arch/arm/mm/init.c:147:1: error: control reaches end of non-void function [-Werror=return-type]
147 | }
| ^
cc1: some warnings being treated as errors
vim +143 arch/arm/mm/init.c
123
124 #ifdef CONFIG_HAVE_ARCH_PFN_VALID
125 int pfn_valid(unsigned long pfn)
126 {
127 phys_addr_t addr = __pfn_to_phys(pfn);
128 unsigned long pageblock_size = PAGE_SIZE * pageblock_nr_pages;
129
130 if (__phys_to_pfn(addr) != pfn)
131 return 0;
132
133 if (memblock_is_map_memory(addr))
134 return 1;
135
136 /*
137 * If address less than pageblock_size bytes away from a present
138 * memory chunk there still will be a memory map entry for it
139 * because we round freed memory map to the pageblock boundaries
140 */
141 if (memblock_overlaps_region(&memblock.memory,
142 ALIGN_DOWN(addr, pageblock_size),
> 143 pageblock_size);
144 return 1;
145
146 return 0;
> 147 }
148 EXPORT_SYMBOL(pfn_valid);
149 #endif
150
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[mark-rutland:atomics/arch-atomic 14/33] include/linux/atomic-arch-fallback.h:1829:1: error: redefinition of 'arch_atomic64_andnot'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git atomics/arch-atomic
head: ffa1c2419a83eb27f90bd40391e6a5e7c81c4f90
commit: 1a80930beed6830c1b36894c6181b7e060d5da26 [14/33] locking/atomic: arc: move to ARCH_ATOMIC
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id...
git remote add mark-rutland https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark-rutland atomics/arch-atomic
git checkout 1a80930beed6830c1b36894c6181b7e060d5da26
# 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: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/atomic.h:81,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/atomic-arch-fallback.h:1829:1: error: redefinition of 'arch_atomic64_andnot'
1829 | arch_atomic64_andnot(s64 i, atomic64_t *v)
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/arc/include/asm/atomic.h:272:20: note: previous definition of 'arch_atomic64_andnot' was here
272 | static inline void arch_atomic64_##op(s64 a, atomic64_t *v) \
| ^~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:335:2: note: in expansion of macro 'ATOMIC64_OP'
335 | ATOMIC64_OP(op, op1, op2) \
| ^~~~~~~~~~~
arch/arc/include/asm/atomic.h:342:1: note: in expansion of macro 'ATOMIC64_OPS'
342 | ATOMIC64_OPS(andnot, bic, bic)
| ^~~~~~~~~~~~
In file included from include/linux/atomic.h:81,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/atomic-arch-fallback.h:1845:1: error: redefinition of 'arch_atomic64_fetch_andnot'
1845 | arch_atomic64_fetch_andnot(s64 i, atomic64_t *v)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/arc/include/asm/atomic.h:312:19: note: previous definition of 'arch_atomic64_fetch_andnot' was here
312 | static inline s64 arch_atomic64_fetch_##op(s64 a, atomic64_t *v) \
| ^~~~~~~~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:337:2: note: in expansion of macro 'ATOMIC64_FETCH_OP'
337 | ATOMIC64_FETCH_OP(op, op1, op2)
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:342:1: note: in expansion of macro 'ATOMIC64_OPS'
342 | ATOMIC64_OPS(andnot, bic, bic)
| ^~~~~~~~~~~~
--
In file included from include/linux/atomic.h:81,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/linux/delay.h:22,
from kernel//trace/preemptirq_delay_test.c:9:
>> include/linux/atomic-arch-fallback.h:1829:1: error: redefinition of 'arch_atomic64_andnot'
1829 | arch_atomic64_andnot(s64 i, atomic64_t *v)
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/linux/delay.h:22,
from kernel//trace/preemptirq_delay_test.c:9:
arch/arc/include/asm/atomic.h:272:20: note: previous definition of 'arch_atomic64_andnot' was here
272 | static inline void arch_atomic64_##op(s64 a, atomic64_t *v) \
| ^~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:335:2: note: in expansion of macro 'ATOMIC64_OP'
335 | ATOMIC64_OP(op, op1, op2) \
| ^~~~~~~~~~~
arch/arc/include/asm/atomic.h:342:1: note: in expansion of macro 'ATOMIC64_OPS'
342 | ATOMIC64_OPS(andnot, bic, bic)
| ^~~~~~~~~~~~
In file included from include/linux/atomic.h:81,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/linux/delay.h:22,
from kernel//trace/preemptirq_delay_test.c:9:
>> include/linux/atomic-arch-fallback.h:1845:1: error: redefinition of 'arch_atomic64_fetch_andnot'
1845 | arch_atomic64_fetch_andnot(s64 i, atomic64_t *v)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/linux/delay.h:22,
from kernel//trace/preemptirq_delay_test.c:9:
arch/arc/include/asm/atomic.h:312:19: note: previous definition of 'arch_atomic64_fetch_andnot' was here
312 | static inline s64 arch_atomic64_fetch_##op(s64 a, atomic64_t *v) \
| ^~~~~~~~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:337:2: note: in expansion of macro 'ATOMIC64_FETCH_OP'
337 | ATOMIC64_FETCH_OP(op, op1, op2)
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:342:1: note: in expansion of macro 'ATOMIC64_OPS'
342 | ATOMIC64_OPS(andnot, bic, bic)
| ^~~~~~~~~~~~
In file included from include/linux/mmzone.h:19,
from include/linux/topology.h:33,
from include/linux/irq.h:19,
from include/asm-generic/hardirq.h:17,
from ./arch/arc/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from kernel//trace/preemptirq_delay_test.c:10:
include/linux/page-flags-layout.h:6:10: fatal error: generated/bounds.h: No such file or directory
6 | #include <generated/bounds.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
--
In file included from include/linux/atomic.h:81,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/atomic-arch-fallback.h:1829:1: error: redefinition of 'arch_atomic64_andnot'
1829 | arch_atomic64_andnot(s64 i, atomic64_t *v)
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/arc/include/asm/atomic.h:272:20: note: previous definition of 'arch_atomic64_andnot' was here
272 | static inline void arch_atomic64_##op(s64 a, atomic64_t *v) \
| ^~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:335:2: note: in expansion of macro 'ATOMIC64_OP'
335 | ATOMIC64_OP(op, op1, op2) \
| ^~~~~~~~~~~
arch/arc/include/asm/atomic.h:342:1: note: in expansion of macro 'ATOMIC64_OPS'
342 | ATOMIC64_OPS(andnot, bic, bic)
| ^~~~~~~~~~~~
In file included from include/linux/atomic.h:81,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/atomic-arch-fallback.h:1845:1: error: redefinition of 'arch_atomic64_fetch_andnot'
1845 | arch_atomic64_fetch_andnot(s64 i, atomic64_t *v)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/arc/include/asm/atomic.h:312:19: note: previous definition of 'arch_atomic64_fetch_andnot' was here
312 | static inline s64 arch_atomic64_fetch_##op(s64 a, atomic64_t *v) \
| ^~~~~~~~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:337:2: note: in expansion of macro 'ATOMIC64_FETCH_OP'
337 | ATOMIC64_FETCH_OP(op, op1, op2)
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:342:1: note: in expansion of macro 'ATOMIC64_OPS'
342 | ATOMIC64_OPS(andnot, bic, bic)
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from include/linux/atomic.h:81,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/atomic-arch-fallback.h:1829:1: error: redefinition of 'arch_atomic64_andnot'
1829 | arch_atomic64_andnot(s64 i, atomic64_t *v)
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/arc/include/asm/atomic.h:272:20: note: previous definition of 'arch_atomic64_andnot' was here
272 | static inline void arch_atomic64_##op(s64 a, atomic64_t *v) \
| ^~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:335:2: note: in expansion of macro 'ATOMIC64_OP'
335 | ATOMIC64_OP(op, op1, op2) \
| ^~~~~~~~~~~
arch/arc/include/asm/atomic.h:342:1: note: in expansion of macro 'ATOMIC64_OPS'
342 | ATOMIC64_OPS(andnot, bic, bic)
| ^~~~~~~~~~~~
In file included from include/linux/atomic.h:81,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/atomic-arch-fallback.h:1845:1: error: redefinition of 'arch_atomic64_fetch_andnot'
1845 | arch_atomic64_fetch_andnot(s64 i, atomic64_t *v)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/arc/include/asm/bitops.h:370,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/arc/include/asm/atomic.h:312:19: note: previous definition of 'arch_atomic64_fetch_andnot' was here
312 | static inline s64 arch_atomic64_fetch_##op(s64 a, atomic64_t *v) \
| ^~~~~~~~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:337:2: note: in expansion of macro 'ATOMIC64_FETCH_OP'
337 | ATOMIC64_FETCH_OP(op, op1, op2)
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/atomic.h:342:1: note: in expansion of macro 'ATOMIC64_OPS'
342 | ATOMIC64_OPS(andnot, bic, bic)
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/arch_atomic64_andnot +1829 include/linux/atomic-arch-fallback.h
37f8173dd84936 Peter Zijlstra 2020-01-24 1826
37f8173dd84936 Peter Zijlstra 2020-01-24 1827 #ifndef arch_atomic64_andnot
37f8173dd84936 Peter Zijlstra 2020-01-24 1828 static __always_inline void
37f8173dd84936 Peter Zijlstra 2020-01-24 @1829 arch_atomic64_andnot(s64 i, atomic64_t *v)
37f8173dd84936 Peter Zijlstra 2020-01-24 1830 {
37f8173dd84936 Peter Zijlstra 2020-01-24 1831 arch_atomic64_and(~i, v);
37f8173dd84936 Peter Zijlstra 2020-01-24 1832 }
37f8173dd84936 Peter Zijlstra 2020-01-24 1833 #define arch_atomic64_andnot arch_atomic64_andnot
37f8173dd84936 Peter Zijlstra 2020-01-24 1834 #endif
37f8173dd84936 Peter Zijlstra 2020-01-24 1835
37f8173dd84936 Peter Zijlstra 2020-01-24 1836 #ifndef arch_atomic64_fetch_andnot_relaxed
37f8173dd84936 Peter Zijlstra 2020-01-24 1837 #ifdef arch_atomic64_fetch_andnot
37f8173dd84936 Peter Zijlstra 2020-01-24 1838 #define arch_atomic64_fetch_andnot_acquire arch_atomic64_fetch_andnot
37f8173dd84936 Peter Zijlstra 2020-01-24 1839 #define arch_atomic64_fetch_andnot_release arch_atomic64_fetch_andnot
37f8173dd84936 Peter Zijlstra 2020-01-24 1840 #define arch_atomic64_fetch_andnot_relaxed arch_atomic64_fetch_andnot
37f8173dd84936 Peter Zijlstra 2020-01-24 1841 #endif /* arch_atomic64_fetch_andnot */
37f8173dd84936 Peter Zijlstra 2020-01-24 1842
37f8173dd84936 Peter Zijlstra 2020-01-24 1843 #ifndef arch_atomic64_fetch_andnot
37f8173dd84936 Peter Zijlstra 2020-01-24 1844 static __always_inline s64
37f8173dd84936 Peter Zijlstra 2020-01-24 @1845 arch_atomic64_fetch_andnot(s64 i, atomic64_t *v)
37f8173dd84936 Peter Zijlstra 2020-01-24 1846 {
37f8173dd84936 Peter Zijlstra 2020-01-24 1847 return arch_atomic64_fetch_and(~i, v);
37f8173dd84936 Peter Zijlstra 2020-01-24 1848 }
37f8173dd84936 Peter Zijlstra 2020-01-24 1849 #define arch_atomic64_fetch_andnot arch_atomic64_fetch_andnot
37f8173dd84936 Peter Zijlstra 2020-01-24 1850 #endif
37f8173dd84936 Peter Zijlstra 2020-01-24 1851
:::::: The code at line 1829 was first introduced by commit
:::::: 37f8173dd84936ea78000ed1cad24f8b18d48ebb locking/atomics: Flip fallbacks and instrumentation
:::::: TO: Peter Zijlstra <peterz(a)infradead.org>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[zx2c4-wireguard-linux:jd/deferred-aip-removal 1/2] lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for function 'poly1305_selftest'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git jd/deferred-aip-removal
head: 50073367890b563640c71d37a5fc030f6edf1181
commit: 4dba81742f8b5aedaaa379109e86d3cbe937f01d [1/2] crypto: poly1305 - add library selftests
config: arm64-randconfig-r005-20210519 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8e93d10633d751a3e9169bf9fa68326925ffa097)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git...
git remote add zx2c4-wireguard-linux https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git
git fetch --no-tags zx2c4-wireguard-linux jd/deferred-aip-removal
git checkout 4dba81742f8b5aedaaa379109e86d3cbe937f01d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
>> lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for function 'poly1305_selftest' [-Wmissing-prototypes]
bool __init poly1305_selftest(void)
^
lib/crypto/poly1305-selftest.c:1043:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool __init poly1305_selftest(void)
^
static
1 warning generated.
vim +/poly1305_selftest +1043 lib/crypto/poly1305-selftest.c
1042
> 1043 bool __init poly1305_selftest(void)
1044 {
1045 bool success = true;
1046 size_t i, j;
1047
1048 for (i = 0; i < ARRAY_SIZE(poly1305_testvecs); ++i) {
1049 struct poly1305_desc_ctx poly1305;
1050 u8 out[POLY1305_DIGEST_SIZE];
1051
1052 memset(out, 0, sizeof(out));
1053 memset(&poly1305, 0, sizeof(poly1305));
1054 poly1305_init(&poly1305, poly1305_testvecs[i].key);
1055 poly1305_update(&poly1305, poly1305_testvecs[i].input,
1056 poly1305_testvecs[i].ilen);
1057 poly1305_final(&poly1305, out);
1058 if (memcmp(out, poly1305_testvecs[i].output,
1059 POLY1305_DIGEST_SIZE)) {
1060 pr_err("poly1305 self-test %zu: FAIL\n", i + 1);
1061 success = false;
1062 }
1063
1064 if (poly1305_testvecs[i].ilen <= 1)
1065 continue;
1066
1067 for (j = 1; j < poly1305_testvecs[i].ilen - 1; ++j) {
1068 memset(out, 0, sizeof(out));
1069 memset(&poly1305, 0, sizeof(poly1305));
1070 poly1305_init(&poly1305, poly1305_testvecs[i].key);
1071 poly1305_update(&poly1305, poly1305_testvecs[i].input, j);
1072 poly1305_update(&poly1305,
1073 poly1305_testvecs[i].input + j,
1074 poly1305_testvecs[i].ilen - j);
1075 poly1305_final(&poly1305, out);
1076 if (memcmp(out, poly1305_testvecs[i].output,
1077 POLY1305_DIGEST_SIZE)) {
1078 pr_err("poly1305 self-test %zu (split %zu): FAIL\n",
1079 i + 1, j);
1080 success = false;
1081 }
1082
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[zx2c4-wireguard-linux:jd/deferred-aip-removal 1/2] lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git jd/deferred-aip-removal
head: 50073367890b563640c71d37a5fc030f6edf1181
commit: 4dba81742f8b5aedaaa379109e86d3cbe937f01d [1/2] crypto: poly1305 - add library selftests
config: sparc-randconfig-r023-20210519 (attached as .config)
compiler: sparc64-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://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git...
git remote add zx2c4-wireguard-linux https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git
git fetch --no-tags zx2c4-wireguard-linux jd/deferred-aip-removal
git checkout 4dba81742f8b5aedaaa379109e86d3cbe937f01d
# 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: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest' [-Wmissing-prototypes]
1043 | bool __init poly1305_selftest(void)
| ^~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/poly1305_selftest +1043 lib/crypto/poly1305-selftest.c
1042
> 1043 bool __init poly1305_selftest(void)
1044 {
1045 bool success = true;
1046 size_t i, j;
1047
1048 for (i = 0; i < ARRAY_SIZE(poly1305_testvecs); ++i) {
1049 struct poly1305_desc_ctx poly1305;
1050 u8 out[POLY1305_DIGEST_SIZE];
1051
1052 memset(out, 0, sizeof(out));
1053 memset(&poly1305, 0, sizeof(poly1305));
1054 poly1305_init(&poly1305, poly1305_testvecs[i].key);
1055 poly1305_update(&poly1305, poly1305_testvecs[i].input,
1056 poly1305_testvecs[i].ilen);
1057 poly1305_final(&poly1305, out);
1058 if (memcmp(out, poly1305_testvecs[i].output,
1059 POLY1305_DIGEST_SIZE)) {
1060 pr_err("poly1305 self-test %zu: FAIL\n", i + 1);
1061 success = false;
1062 }
1063
1064 if (poly1305_testvecs[i].ilen <= 1)
1065 continue;
1066
1067 for (j = 1; j < poly1305_testvecs[i].ilen - 1; ++j) {
1068 memset(out, 0, sizeof(out));
1069 memset(&poly1305, 0, sizeof(poly1305));
1070 poly1305_init(&poly1305, poly1305_testvecs[i].key);
1071 poly1305_update(&poly1305, poly1305_testvecs[i].input, j);
1072 poly1305_update(&poly1305,
1073 poly1305_testvecs[i].input + j,
1074 poly1305_testvecs[i].ilen - j);
1075 poly1305_final(&poly1305, out);
1076 if (memcmp(out, poly1305_testvecs[i].output,
1077 POLY1305_DIGEST_SIZE)) {
1078 pr_err("poly1305 self-test %zu (split %zu): FAIL\n",
1079 i + 1, j);
1080 success = false;
1081 }
1082
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[chrome-os:chromeos-5.10 4/7] drivers/soc/mediatek/mtk-svs.c:1618:34: warning: unused variable 'mtk_svs_of_match'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: 86e254a7bd3d3fcf5abbc987c8e0bb1f59b25b40
commit: 8cafd5ac5f113cb45e075c67cdf1217569d93a36 [4/7] FROMLIST: soc: mediatek: SVS: introduce MTK SVS engine
config: x86_64-randconfig-r003-20210519 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8e93d10633d751a3e9169bf9fa68326925ffa097)
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 chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 8cafd5ac5f113cb45e075c67cdf1217569d93a36
# 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 warnings (new ones prefixed by >>):
drivers/soc/mediatek/mtk-svs.c:1345:12: warning: unused function 'svs_suspend' [-Wunused-function]
static int svs_suspend(struct device *dev)
^
drivers/soc/mediatek/mtk-svs.c:1384:12: warning: unused function 'svs_resume' [-Wunused-function]
static int svs_resume(struct device *dev)
^
>> drivers/soc/mediatek/mtk-svs.c:1618:34: warning: unused variable 'mtk_svs_of_match' [-Wunused-const-variable]
static const struct of_device_id mtk_svs_of_match[] = {
^
3 warnings generated.
vim +/mtk_svs_of_match +1618 drivers/soc/mediatek/mtk-svs.c
1617
> 1618 static const struct of_device_id mtk_svs_of_match[] = {
1619 {
1620 .compatible = "mediatek,mt8183-svs",
1621 .data = &svs_get_svs_mt8183_platform_data,
1622 }, {
1623 /* Sentinel */
1624 },
1625 };
1626
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months