tree: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git rotary-encoder head: 5482d0aad3b3f05b8296510a3d43071e8c13e7cc commit: 2c80af7e52dc44204643efe61a536aaeaceb43b4 [6/7] Input: rotary_encoder - move away from platform data structure config: arm-raumfeld_defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 2c80af7e52dc44204643efe61a536aaeaceb43b4 # save the attached .config to linux build tree make.cross ARCH=arm All error/warnings (new ones prefixed by >>): >> arch/arm/mach-pxa/raumfeld.c:387:3: warning: missing braces around initializer [-Wmissing-braces] DEV_PROP_U32, 1, &raumfeld_rotary_encoder_steps, }, ^ arch/arm/mach-pxa/raumfeld.c:387:3: warning: (near initialization for 'raumfeld_rotary_properties[0].value') [-Wmissing-braces] >> arch/arm/mach-pxa/raumfeld.c:391:3: warning: initialization makes pointer from integer without a cast DEV_PROP_U32, 1, &raumfeld_rotary_encoder_relative_axis, }, ^ arch/arm/mach-pxa/raumfeld.c:391:3: warning: (near initialization for 'raumfeld_rotary_properties[3].name') arch/arm/mach-pxa/raumfeld.c:391:3: warning: initialization makes integer from pointer without a cast arch/arm/mach-pxa/raumfeld.c:391:3: warning: (near initialization for 'raumfeld_rotary_properties[3].nval') >> arch/arm/mach-pxa/raumfeld.c:392:2: error: expected identifier or '(' before '{' token { NULL } ^ arch/arm/mach-pxa/raumfeld.c:393:1: error: expected identifier or '(' before '}' token }; ^ >> arch/arm/mach-pxa/raumfeld.c:396:2: error: unknown field 'properties' specified in initializer .properties = raumfeld_rotary_properties, ^ >> arch/arm/mach-pxa/raumfeld.c:396:2: warning: initialization from incompatible pointer type arch/arm/mach-pxa/raumfeld.c:396:2: warning: (near initialization for 'raumfeld_rotary_property_set.name') arch/arm/mach-pxa/raumfeld.c: In function 'raumfeld_controller_init': >> arch/arm/mach-pxa/raumfeld.c:1073:2: warning: passing argument 2 of 'device_add_property_set' from incompatible pointer type device_add_property_set(&rotary_encoder_device.dev, ^ In file included from arch/arm/mach-pxa/raumfeld.c:21:0: include/linux/property.h:175:6: note: expected 'struct property_set *' but argument is of type 'struct property_entry *' void device_add_property_set(struct device *dev, struct property_set *pset); ^ arch/arm/mach-pxa/raumfeld.c: In function 'raumfeld_speaker_init': arch/arm/mach-pxa/raumfeld.c:1113:2: warning: passing argument 2 of 'device_add_property_set' from incompatible pointer type device_add_property_set(&rotary_encoder_device.dev, ^ In file included from arch/arm/mach-pxa/raumfeld.c:21:0: include/linux/property.h:175:6: note: expected 'struct property_set *' but argument is of type 'struct property_entry *' void device_add_property_set(struct device *dev, struct property_set *pset); ^ vim +392 arch/arm/mach-pxa/raumfeld.c 381 static u32 raumfeld_rotary_encoder_steps = 24; 382 static u32 raumfeld_rotary_encoder_axis = REL_X; 383 static u32 raumfeld_rotary_encoder_relative_axis = 1; 384 385 static struct property_entry raumfeld_rotary_properties[] = { 386 { "rotary-encoder,steps-per-period", > 387 DEV_PROP_U32, 1, &raumfeld_rotary_encoder_steps, }, 388 { "linux,axis", 389 DEV_PROP_U32, 1, &raumfeld_rotary_encoder_axis, }, 390 { "rotary-encoder,relative_axis", 1, }, > 391 DEV_PROP_U32, 1, &raumfeld_rotary_encoder_relative_axis, }, > 392 { NULL } > 393 }; 394 395 static struct property_entry raumfeld_rotary_property_set = { > 396 .properties = raumfeld_rotary_properties, 397 }; 398 399 static struct platform_device rotary_encoder_device = { --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data