tree: git://git.armlinux.org.uk/~rmk/linux-arm net-queue head: 3efad2b93827306a8610b681caf7d5476d743ddf commit: ec6e49acc31bf34758702b964268566bc7f7fa58 [54/113] net: sfp: clean up i2c-bus property parsing config: ia64-allyesconfig compiler: ia64-linux-gcc (GCC) 12.1.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 rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm git fetch --no-tags rmk-arm net-queue git checkout ec6e49acc31bf34758702b964268566bc7f7fa58 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/net/phy/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/acpi.h:32, from drivers/net/phy/sfp.c:2: drivers/net/phy/sfp.c: In function 'sfp_i2c_get': drivers/net/phy/sfp.c:2643:50: error: 'args' undeclared (first use in this function) 2643 | acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode); | ^~~~ include/acpi/acpi_bus.h:417:24: note: in definition of macro 'to_acpi_device_node' 417 | typeof(__fwnode) __to_acpi_device_node_fwnode = __fwnode; \ | ^~~~~~~~ drivers/net/phy/sfp.c:2643:31: note: in expansion of macro 'ACPI_HANDLE_FWNODE' 2643 | acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode); | ^~~~~~~~~~~~~~~~~~ drivers/net/phy/sfp.c:2643:50: note: each undeclared identifier is reported only once for each function it appears in 2643 | acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode); | ^~~~ include/acpi/acpi_bus.h:417:24: note: in definition of macro 'to_acpi_device_node' 417 | typeof(__fwnode) __to_acpi_device_node_fwnode = __fwnode; \ | ^~~~~~~~ drivers/net/phy/sfp.c:2643:31: note: in expansion of macro 'ACPI_HANDLE_FWNODE' 2643 | acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode); | ^~~~~~~~~~~~~~~~~~ >> include/acpi/acpi_bus.h:419:37: warning: passing argument 1 of 'is_acpi_device_node' makes pointer from integer without a cast [-Wint-conversion] 419 | is_acpi_device_node(__to_acpi_device_node_fwnode) ? \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int include/linux/acpi.h:48:52: note: in expansion of macro 'to_acpi_device_node' 48 | acpi_device_handle(to_acpi_device_node(fwnode)) | ^~~~~~~~~~~~~~~~~~~ drivers/net/phy/sfp.c:2643:31: note: in expansion of macro 'ACPI_HANDLE_FWNODE' 2643 | acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode); | ^~~~~~~~~~~~~~~~~~ include/acpi/acpi_bus.h:407:54: note: expected 'const struct fwnode_handle *' but argument is of type 'int' 407 | bool is_acpi_device_node(const struct fwnode_handle *fwnode); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from include/linux/list.h:5, from include/linux/kobject.h:19, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13: >> include/linux/container_of.h:18:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 18 | void *__mptr = (void *)(ptr); \ | ^ include/acpi/acpi_bus.h:420:25: note: in expansion of macro 'container_of' 420 | container_of(__to_acpi_device_node_fwnode, \ | ^~~~~~~~~~~~ include/linux/acpi.h:48:52: note: in expansion of macro 'to_acpi_device_node' 48 | acpi_device_handle(to_acpi_device_node(fwnode)) | ^~~~~~~~~~~~~~~~~~~ drivers/net/phy/sfp.c:2643:31: note: in expansion of macro 'ACPI_HANDLE_FWNODE' 2643 | acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode); | ^~~~~~~~~~~~~~~~~~ In file included from include/linux/bits.h:22, from include/linux/ioport.h:13, from include/linux/acpi.h:12: include/linux/container_of.h:19:35: error: invalid type argument of unary '*' (have 'int') 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:19:9: note: in expansion of macro 'static_assert' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:19:23: note: in expansion of macro '__same_type' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ include/acpi/acpi_bus.h:420:25: note: in expansion of macro 'container_of' 420 | container_of(__to_acpi_device_node_fwnode, \ | ^~~~~~~~~~~~ include/linux/acpi.h:48:52: note: in expansion of macro 'to_acpi_device_node' 48 | acpi_device_handle(to_acpi_device_node(fwnode)) | ^~~~~~~~~~~~~~~~~~~ drivers/net/phy/sfp.c:2643:31: note: in expansion of macro 'ACPI_HANDLE_FWNODE' 2643 | acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode); | ^~~~~~~~~~~~~~~~~~ include/linux/container_of.h:20:35: error: invalid type argument of unary '*' (have 'int') 20 | __same_type(*(ptr), void), \ | ^~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:19:9: note: in expansion of macro 'static_assert' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ include/acpi/acpi_bus.h:420:25: note: in expansion of macro 'container_of' 420 | container_of(__to_acpi_device_node_fwnode, \ | ^~~~~~~~~~~~ include/linux/acpi.h:48:52: note: in expansion of macro 'to_acpi_device_node' 48 | acpi_device_handle(to_acpi_device_node(fwnode)) | ^~~~~~~~~~~~~~~~~~~ drivers/net/phy/sfp.c:2643:31: note: in expansion of macro 'ACPI_HANDLE_FWNODE' 2643 | acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode); | ^~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:295:27: error: expression in static assertion is not an integer 295 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:19:9: note: in expansion of macro 'static_assert' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:19:23: note: in expansion of macro '__same_type' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ include/acpi/acpi_bus.h:420:25: note: in expansion of macro 'container_of' 420 | container_of(__to_acpi_device_node_fwnode, \ | ^~~~~~~~~~~~ include/linux/acpi.h:48:52: note: in expansion of macro 'to_acpi_device_node' 48 | acpi_device_handle(to_acpi_device_node(fwnode)) | ^~~~~~~~~~~~~~~~~~~ drivers/net/phy/sfp.c:2643:31: note: in expansion of macro 'ACPI_HANDLE_FWNODE' 2643 | acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode); | ^~~~~~~~~~~~~~~~~~ vim +/is_acpi_device_node +419 include/acpi/acpi_bus.h 8a0662d9ed2968 Rafael J. Wysocki 2014-11-04 414 8b9d6802583a1e Sakari Ailus 2017-07-21 415 #define to_acpi_device_node(__fwnode) \ 8b9d6802583a1e Sakari Ailus 2017-07-21 416 ({ \ 8b9d6802583a1e Sakari Ailus 2017-07-21 417 typeof(__fwnode) __to_acpi_device_node_fwnode = __fwnode; \ 8b9d6802583a1e Sakari Ailus 2017-07-21 418 \ 8b9d6802583a1e Sakari Ailus 2017-07-21 @419 is_acpi_device_node(__to_acpi_device_node_fwnode) ? \ 8b9d6802583a1e Sakari Ailus 2017-07-21 420 container_of(__to_acpi_device_node_fwnode, \ 8b9d6802583a1e Sakari Ailus 2017-07-21 421 struct acpi_device, fwnode) : \ 8b9d6802583a1e Sakari Ailus 2017-07-21 422 NULL; \ 8b9d6802583a1e Sakari Ailus 2017-07-21 423 }) 8b9d6802583a1e Sakari Ailus 2017-07-21 424 :::::: The code at line 419 was first introduced by commit :::::: 8b9d6802583a1ef6977e4b059f9fa848e6882253 ACPI: Constify acpi_bus helper functions, switch to macros :::::: TO: Sakari Ailus :::::: CC: Rafael J. Wysocki -- 0-DAY CI Kernel Test Service https://01.org/lkp