lkml.org 
[lkml]   [2020]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] SPI LPC information kernel module
Hi Daniel,

I love your patch! Perhaps something to improve:

[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on soc/for-next linus/master v5.8-rc3 next-20200629]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Daniel-Gutson/SPI-LPC-information-kernel-module/20200630-070234
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git ba2104c24aba1fa7e19d53f08c985526a6786d8b
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

In file included from drivers/misc/vmw_vmci/vmci_context.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/spi_lpc/low_level_access.c: In function 'mmio_read_byte':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>> drivers/misc/spi_lpc/low_level_access.c:8:21: note: in expansion of macro 'KBUILD_MODNAME'
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:419:2: note: in expansion of macro 'dynamic_pr_debug'
419 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:20:3: note: in expansion of macro 'pr_debug'
20 | pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
| ^~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:32:1: note: in expansion of macro 'GENERIC_MMIO_READ'
32 | GENERIC_MMIO_READ(u8, byte, readb)
| ^~~~~~~~~~~~~~~~~
drivers/misc/spi_lpc/low_level_access.c: In function 'mmio_read_word':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>> drivers/misc/spi_lpc/low_level_access.c:8:21: note: in expansion of macro 'KBUILD_MODNAME'
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:419:2: note: in expansion of macro 'dynamic_pr_debug'
419 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:20:3: note: in expansion of macro 'pr_debug'
20 | pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
| ^~~~~~~~
drivers/misc/spi_lpc/low_level_access.c:33:1: note: in expansion of macro 'GENERIC_MMIO_READ'
33 | GENERIC_MMIO_READ(u16, word, readw)
| ^~~~~~~~~~~~~~~~~
drivers/misc/spi_lpc/low_level_access.c: In function 'mmio_read_dword':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>> drivers/misc/spi_lpc/low_level_access.c:8:21: note: in expansion of macro 'KBUILD_MODNAME'
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:419:2: note: in expansion of macro 'dynamic_pr_debug'
419 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:20:3: note: in expansion of macro 'pr_debug'
20 | pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
| ^~~~~~~~
drivers/misc/spi_lpc/low_level_access.c:34:1: note: in expansion of macro 'GENERIC_MMIO_READ'
34 | GENERIC_MMIO_READ(u32, dword, readl)
| ^~~~~~~~~~~~~~~~~
drivers/misc/ibmasm/event.c:44: warning: Function parameter or member 'sp' not described in 'ibmasm_receive_event'
drivers/misc/ibmasm/event.c:44: warning: Function parameter or member 'data' not described in 'ibmasm_receive_event'
drivers/misc/ibmasm/event.c:44: warning: Function parameter or member 'data_size' not described in 'ibmasm_receive_event'
drivers/misc/ibmasm/event.c:78: warning: Function parameter or member 'sp' not described in 'ibmasm_get_next_event'
drivers/misc/ibmasm/event.c:78: warning: Function parameter or member 'reader' not described in 'ibmasm_get_next_event'
drivers/misc/ibmasm/command.c:106: warning: Function parameter or member 'sp' not described in 'ibmasm_exec_command'
drivers/misc/ibmasm/command.c:106: warning: Function parameter or member 'cmd' not described in 'ibmasm_exec_command'
drivers/misc/ibmasm/command.c:149: warning: Function parameter or member 'cmd' not described in 'ibmasm_wait_for_response'
drivers/misc/ibmasm/command.c:149: warning: Function parameter or member 'timeout' not described in 'ibmasm_wait_for_response'
drivers/misc/ibmasm/command.c:162: warning: Function parameter or member 'sp' not described in 'ibmasm_receive_command_response'
drivers/misc/ibmasm/command.c:162: warning: Function parameter or member 'response' not described in 'ibmasm_receive_command_response'
drivers/misc/ibmasm/command.c:162: warning: Function parameter or member 'size' not described in 'ibmasm_receive_command_response'
In file included from drivers/misc/vmw_vmci/vmci_datagram.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/pti.c:747: warning: Function parameter or member 'port' not described in 'pti_port_activate'
drivers/misc/pti.c:747: warning: Function parameter or member 'tty' not described in 'pti_port_activate'
drivers/misc/pti.c:764: warning: Function parameter or member 'port' not described in 'pti_port_shutdown'
drivers/misc/pti.c:792: warning: Function parameter or member 'pdev' not described in 'pti_pci_probe'
drivers/misc/pti.c:792: warning: Function parameter or member 'ent' not described in 'pti_pci_probe'
drivers/misc/pti.c:901: warning: Cannot understand *
on line 901 - I thought it was a doc line
In file included from drivers/misc/vmw_vmci/vmci_driver.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/ibmasm/r_heartbeat.c:49: warning: Function parameter or member 'sp' not described in 'ibmasm_start_reverse_heartbeat'
drivers/misc/ibmasm/r_heartbeat.c:49: warning: Function parameter or member 'rhb' not described in 'ibmasm_start_reverse_heartbeat'
In file included from drivers/misc/vmw_vmci/vmci_handle_array.h:11,
from drivers/misc/vmw_vmci/vmci_handle_array.c:9:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/vmw_vmci/vmci_event.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/ibmasm/dot_command.c:18: warning: Function parameter or member 'sp' not described in 'ibmasm_receive_message'
drivers/misc/ibmasm/dot_command.c:18: warning: Function parameter or member 'message' not described in 'ibmasm_receive_message'
drivers/misc/ibmasm/dot_command.c:18: warning: Function parameter or member 'message_size' not described in 'ibmasm_receive_message'
drivers/misc/ibmasm/dot_command.c:55: warning: Function parameter or member 'sp' not described in 'ibmasm_send_driver_vpd'
drivers/misc/ibmasm/dot_command.c:111: warning: Function parameter or member 'sp' not described in 'ibmasm_send_os_state'
drivers/misc/ibmasm/dot_command.c:111: warning: Function parameter or member 'os_state' not described in 'ibmasm_send_os_state'
In file included from drivers/misc/vmw_vmci/vmci_resource.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/vmw_vmci/vmci_route.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/vmw_vmci/vmci_host.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/habanalabs/irq.c:24: warning: Function parameter or member 'eq_work' not described in 'hl_eqe_work'
drivers/misc/habanalabs/irq.c:24: warning: Function parameter or member 'hdev' not described in 'hl_eqe_work'
drivers/misc/habanalabs/irq.c:24: warning: Function parameter or member 'eq_entry' not described in 'hl_eqe_work'
drivers/misc/enclosure.c:115: warning: Function parameter or member 'name' not described in 'enclosure_register'
drivers/misc/enclosure.c:115: warning: Function parameter or member 'cb' not described in 'enclosure_register'
drivers/misc/enclosure.c:283: warning: Function parameter or member 'number' not described in 'enclosure_component_alloc'
drivers/misc/enclosure.c:283: warning: Excess function parameter 'num' description in 'enclosure_component_alloc'
drivers/misc/enclosure.c:363: warning: Function parameter or member 'component' not described in 'enclosure_add_device'
drivers/misc/enclosure.c:363: warning: Excess function parameter 'num' description in 'enclosure_add_device'
drivers/misc/enclosure.c:398: warning: Function parameter or member 'dev' not described in 'enclosure_remove_device'
drivers/misc/enclosure.c:398: warning: Excess function parameter 'num' description in 'enclosure_remove_device'
drivers/misc/lattice-ecp3-config.c: In function 'firmware_load':
drivers/misc/lattice-ecp3-config.c:70:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
70 | int ret;
| ^~~
drivers/misc/pch_phub.c:145: warning: Function parameter or member 'chip' not described in 'pch_phub_read_modify_write_reg'
drivers/misc/pch_phub.c:280: warning: Function parameter or member 'chip' not described in 'pch_phub_read_serial_rom'
drivers/misc/pch_phub.c:294: warning: Function parameter or member 'chip' not described in 'pch_phub_write_serial_rom'
drivers/misc/pch_phub.c:332: warning: Function parameter or member 'chip' not described in 'pch_phub_read_serial_rom_val'
drivers/misc/pch_phub.c:348: warning: Function parameter or member 'chip' not described in 'pch_phub_write_serial_rom_val'
drivers/misc/pch_phub.c:448: warning: Function parameter or member 'chip' not described in 'pch_phub_read_gbe_mac_addr'
drivers/misc/pch_phub.c:448: warning: Excess function parameter 'offset_address' description in 'pch_phub_read_gbe_mac_addr'
drivers/misc/pch_phub.c:460: warning: Function parameter or member 'chip' not described in 'pch_phub_write_gbe_mac_addr'
drivers/misc/pch_phub.c:460: warning: Excess function parameter 'offset_address' description in 'pch_phub_write_gbe_mac_addr'
In file included from drivers/misc/vmw_balloon.c:35:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/habanalabs/firmware_if.c:26: warning: Function parameter or member 'fw_name' not described in 'hl_fw_load_fw_to_device'
drivers/misc/habanalabs/firmware_if.c:26: warning: Function parameter or member 'dst' not described in 'hl_fw_load_fw_to_device'
drivers/misc/habanalabs/goya/goya.c: In function 'goya_debugfs_read32':
drivers/misc/habanalabs/goya/goya.c:3945:19: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
3945 | } else if ((addr >= DRAM_PHYS_BASE) &&
| ^~
drivers/misc/habanalabs/goya/goya.c: In function 'goya_debugfs_write32':
drivers/misc/habanalabs/goya/goya.c:4002:19: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
4002 | } else if ((addr >= DRAM_PHYS_BASE) &&
| ^~
drivers/misc/habanalabs/goya/goya.c: In function 'goya_debugfs_read64':
--
drivers/misc/spi_lpc/low_level_access.c: In function 'mmio_read_byte':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>> drivers/misc/spi_lpc/low_level_access.c:8:21: note: in expansion of macro 'KBUILD_MODNAME'
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:419:2: note: in expansion of macro 'dynamic_pr_debug'
419 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:20:3: note: in expansion of macro 'pr_debug'
20 | pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
| ^~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:32:1: note: in expansion of macro 'GENERIC_MMIO_READ'
32 | GENERIC_MMIO_READ(u8, byte, readb)
| ^~~~~~~~~~~~~~~~~
drivers/misc/spi_lpc/low_level_access.c: In function 'mmio_read_word':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>> drivers/misc/spi_lpc/low_level_access.c:8:21: note: in expansion of macro 'KBUILD_MODNAME'
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:419:2: note: in expansion of macro 'dynamic_pr_debug'
419 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:20:3: note: in expansion of macro 'pr_debug'
20 | pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
| ^~~~~~~~
drivers/misc/spi_lpc/low_level_access.c:33:1: note: in expansion of macro 'GENERIC_MMIO_READ'
33 | GENERIC_MMIO_READ(u16, word, readw)
| ^~~~~~~~~~~~~~~~~
drivers/misc/spi_lpc/low_level_access.c: In function 'mmio_read_dword':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>> drivers/misc/spi_lpc/low_level_access.c:8:21: note: in expansion of macro 'KBUILD_MODNAME'
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:419:2: note: in expansion of macro 'dynamic_pr_debug'
419 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:20:3: note: in expansion of macro 'pr_debug'
20 | pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
| ^~~~~~~~
drivers/misc/spi_lpc/low_level_access.c:34:1: note: in expansion of macro 'GENERIC_MMIO_READ'
34 | GENERIC_MMIO_READ(u32, dword, readl)
| ^~~~~~~~~~~~~~~~~
--
drivers/misc/ibmasm/command.c:106: warning: Function parameter or member 'sp' not described in 'ibmasm_exec_command'
drivers/misc/ibmasm/command.c:106: warning: Function parameter or member 'cmd' not described in 'ibmasm_exec_command'
drivers/misc/ibmasm/command.c:149: warning: Function parameter or member 'cmd' not described in 'ibmasm_wait_for_response'
drivers/misc/ibmasm/command.c:149: warning: Function parameter or member 'timeout' not described in 'ibmasm_wait_for_response'
drivers/misc/ibmasm/command.c:162: warning: Function parameter or member 'sp' not described in 'ibmasm_receive_command_response'
drivers/misc/ibmasm/command.c:162: warning: Function parameter or member 'response' not described in 'ibmasm_receive_command_response'
drivers/misc/ibmasm/command.c:162: warning: Function parameter or member 'size' not described in 'ibmasm_receive_command_response'
drivers/misc/ibmasm/event.c:44: warning: Function parameter or member 'sp' not described in 'ibmasm_receive_event'
drivers/misc/ibmasm/event.c:44: warning: Function parameter or member 'data' not described in 'ibmasm_receive_event'
drivers/misc/ibmasm/event.c:44: warning: Function parameter or member 'data_size' not described in 'ibmasm_receive_event'
drivers/misc/ibmasm/event.c:78: warning: Function parameter or member 'sp' not described in 'ibmasm_get_next_event'
drivers/misc/ibmasm/event.c:78: warning: Function parameter or member 'reader' not described in 'ibmasm_get_next_event'
drivers/misc/pti.c:747: warning: Function parameter or member 'port' not described in 'pti_port_activate'
drivers/misc/pti.c:747: warning: Function parameter or member 'tty' not described in 'pti_port_activate'
drivers/misc/pti.c:764: warning: Function parameter or member 'port' not described in 'pti_port_shutdown'
drivers/misc/pti.c:792: warning: Function parameter or member 'pdev' not described in 'pti_pci_probe'
drivers/misc/pti.c:792: warning: Function parameter or member 'ent' not described in 'pti_pci_probe'
drivers/misc/pti.c:901: warning: Cannot understand *
on line 901 - I thought it was a doc line
drivers/misc/enclosure.c:115: warning: Function parameter or member 'name' not described in 'enclosure_register'
drivers/misc/enclosure.c:115: warning: Function parameter or member 'cb' not described in 'enclosure_register'
drivers/misc/enclosure.c:283: warning: Function parameter or member 'number' not described in 'enclosure_component_alloc'
drivers/misc/enclosure.c:283: warning: Excess function parameter 'num' description in 'enclosure_component_alloc'
drivers/misc/enclosure.c:363: warning: Function parameter or member 'component' not described in 'enclosure_add_device'
drivers/misc/enclosure.c:363: warning: Excess function parameter 'num' description in 'enclosure_add_device'
drivers/misc/enclosure.c:398: warning: Function parameter or member 'dev' not described in 'enclosure_remove_device'
drivers/misc/enclosure.c:398: warning: Excess function parameter 'num' description in 'enclosure_remove_device'
drivers/misc/ibmasm/r_heartbeat.c:49: warning: Function parameter or member 'sp' not described in 'ibmasm_start_reverse_heartbeat'
drivers/misc/ibmasm/r_heartbeat.c:49: warning: Function parameter or member 'rhb' not described in 'ibmasm_start_reverse_heartbeat'
drivers/misc/ibmasm/dot_command.c:18: warning: Function parameter or member 'sp' not described in 'ibmasm_receive_message'
drivers/misc/ibmasm/dot_command.c:18: warning: Function parameter or member 'message' not described in 'ibmasm_receive_message'
drivers/misc/ibmasm/dot_command.c:18: warning: Function parameter or member 'message_size' not described in 'ibmasm_receive_message'
drivers/misc/ibmasm/dot_command.c:55: warning: Function parameter or member 'sp' not described in 'ibmasm_send_driver_vpd'
drivers/misc/ibmasm/dot_command.c:111: warning: Function parameter or member 'sp' not described in 'ibmasm_send_os_state'
drivers/misc/ibmasm/dot_command.c:111: warning: Function parameter or member 'os_state' not described in 'ibmasm_send_os_state'
In file included from drivers/misc/vmw_balloon.c:35:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/lattice-ecp3-config.c: In function 'firmware_load':
drivers/misc/lattice-ecp3-config.c:70:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
70 | int ret;
| ^~~
In file included from drivers/misc/vmw_vmci/vmci_context.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/pch_phub.c:145: warning: Function parameter or member 'chip' not described in 'pch_phub_read_modify_write_reg'
drivers/misc/pch_phub.c:280: warning: Function parameter or member 'chip' not described in 'pch_phub_read_serial_rom'
drivers/misc/pch_phub.c:294: warning: Function parameter or member 'chip' not described in 'pch_phub_write_serial_rom'
drivers/misc/pch_phub.c:332: warning: Function parameter or member 'chip' not described in 'pch_phub_read_serial_rom_val'
drivers/misc/pch_phub.c:348: warning: Function parameter or member 'chip' not described in 'pch_phub_write_serial_rom_val'
drivers/misc/pch_phub.c:448: warning: Function parameter or member 'chip' not described in 'pch_phub_read_gbe_mac_addr'
drivers/misc/pch_phub.c:448: warning: Excess function parameter 'offset_address' description in 'pch_phub_read_gbe_mac_addr'
drivers/misc/pch_phub.c:460: warning: Function parameter or member 'chip' not described in 'pch_phub_write_gbe_mac_addr'
drivers/misc/pch_phub.c:460: warning: Excess function parameter 'offset_address' description in 'pch_phub_write_gbe_mac_addr'
In file included from drivers/misc/vmw_vmci/vmci_datagram.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/vmw_balloon.c:262: warning: Function parameter or member '5' not described in 'vmballoon_batch_entry'
In file included from drivers/misc/vmw_vmci/vmci_event.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/vmw_vmci/vmci_driver.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/vmw_vmci/vmci_handle_array.h:11,
from drivers/misc/vmw_vmci/vmci_handle_array.c:9:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/vmw_vmci/vmci_host.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/vmw_vmci/vmci_resource.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/vmw_vmci/vmci_route.c:8:
include/linux/vmw_vmci_defs.h:162:33: warning: 'VMCI_ANON_SRC_HANDLE' defined but not used [-Wunused-const-variable=]
162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mei/mei-trace.h:83,
from drivers/misc/mei/mei-trace.c:11:
include/trace/define_trace.h:95:42: fatal error: ./mei-trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
make[3]: *** [scripts/Makefile.build:281: drivers/misc/mei/mei-trace.o] Error 1
drivers/misc/spi_lpc/low_level_access.c: In function 'mmio_read_byte':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>> drivers/misc/spi_lpc/low_level_access.c:8:21: note: in expansion of macro 'KBUILD_MODNAME'
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:419:2: note: in expansion of macro 'dynamic_pr_debug'
419 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:20:3: note: in expansion of macro 'pr_debug'
20 | pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
| ^~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:32:1: note: in expansion of macro 'GENERIC_MMIO_READ'
32 | GENERIC_MMIO_READ(u8, byte, readb)
| ^~~~~~~~~~~~~~~~~
drivers/misc/spi_lpc/low_level_access.c: In function 'mmio_read_word':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>> drivers/misc/spi_lpc/low_level_access.c:8:21: note: in expansion of macro 'KBUILD_MODNAME'
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:419:2: note: in expansion of macro 'dynamic_pr_debug'
419 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:20:3: note: in expansion of macro 'pr_debug'
20 | pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
| ^~~~~~~~
drivers/misc/spi_lpc/low_level_access.c:33:1: note: in expansion of macro 'GENERIC_MMIO_READ'
33 | GENERIC_MMIO_READ(u16, word, readw)
| ^~~~~~~~~~~~~~~~~
drivers/misc/spi_lpc/low_level_access.c: In function 'mmio_read_dword':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
>> drivers/misc/spi_lpc/low_level_access.c:8:21: note: in expansion of macro 'KBUILD_MODNAME'
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:419:2: note: in expansion of macro 'dynamic_pr_debug'
419 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
>> drivers/misc/spi_lpc/low_level_access.c:20:3: note: in expansion of macro 'pr_debug'
20 | pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
| ^~~~~~~~
drivers/misc/spi_lpc/low_level_access.c:34:1: note: in expansion of macro 'GENERIC_MMIO_READ'
34 | GENERIC_MMIO_READ(u32, dword, readl)
| ^~~~~~~~~~~~~~~~~
In file included from drivers/misc/habanalabs/goya/goya.c:8:
drivers/misc/habanalabs/goya/goyaP.h:12:10: fatal error: habanalabs.h: No such file or directory
12 | #include "habanalabs.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:280: drivers/misc/habanalabs/goya/goya.o] Error 1
In file included from drivers/misc/habanalabs/goya/goya_security.c:8:
drivers/misc/habanalabs/goya/goyaP.h:12:10: fatal error: habanalabs.h: No such file or directory
12 | #include "habanalabs.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:281: drivers/misc/habanalabs/goya/goya_security.o] Error 1
In file included from drivers/misc/habanalabs/goya/goya_hwmgr.c:8:
drivers/misc/habanalabs/goya/goyaP.h:12:10: fatal error: habanalabs.h: No such file or directory
12 | #include "habanalabs.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:281: drivers/misc/habanalabs/goya/goya_hwmgr.o] Error 1
In file included from drivers/misc/habanalabs/goya/goya_coresight.c:8:
drivers/misc/habanalabs/goya/goyaP.h:12:10: fatal error: habanalabs.h: No such file or directory
12 | #include "habanalabs.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:281: drivers/misc/habanalabs/goya/goya_coresight.o] Error 1
In file included from drivers/misc/habanalabs/gaudi/gaudi.c:8:
drivers/misc/habanalabs/gaudi/gaudiP.h:12:10: fatal error: habanalabs.h: No such file or directory
12 | #include "habanalabs.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:281: drivers/misc/habanalabs/gaudi/gaudi.o] Error 1
make[3]: *** [scripts/Makefile.build:281: drivers/misc/habanalabs/gaudi/gaudi_security.o] Error 1
In file included from drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c:8:
drivers/misc/habanalabs/gaudi/gaudiP.h:12:10: fatal error: habanalabs.h: No such file or directory
12 | #include "habanalabs.h"
| ^~~~~~~~~~~~~~
compilation terminated.
In file included from drivers/misc/habanalabs/gaudi/gaudi_security.c:8:
drivers/misc/habanalabs/gaudi/gaudiP.h:12:10: fatal error: habanalabs.h: No such file or directory
12 | #include "habanalabs.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:281: drivers/misc/habanalabs/gaudi/gaudi_hwmgr.o] Error 1
In file included from drivers/misc/habanalabs/gaudi/gaudi_coresight.c:8:
drivers/misc/habanalabs/gaudi/gaudiP.h:12:10: fatal error: habanalabs.h: No such file or directory
12 | #include "habanalabs.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:281: drivers/misc/habanalabs/gaudi/gaudi_coresight.o] Error 1
drivers/misc/habanalabs/irq.c:24: warning: Function parameter or member 'eq_work' not described in 'hl_eqe_work'
drivers/misc/habanalabs/irq.c:24: warning: Function parameter or member 'hdev' not described in 'hl_eqe_work'
drivers/misc/habanalabs/irq.c:24: warning: Function parameter or member 'eq_entry' not described in 'hl_eqe_work'
make[2]: *** [scripts/Makefile.build:497: drivers/misc/mei] Error 2
make[3]: Target '__build' not remade because of errors.
drivers/misc/habanalabs/pci.c:27: warning: Function parameter or member 'name' not described in 'hl_pci_bars_map'
drivers/misc/habanalabs/pci.c:27: warning: Excess function parameter 'bar_name' description in 'hl_pci_bars_map'
drivers/misc/habanalabs/pci.c:147: warning: Function parameter or member 'addr' not described in 'hl_pci_iatu_write'
drivers/misc/habanalabs/pci.c:147: warning: Function parameter or member 'data' not described in 'hl_pci_iatu_write'
drivers/misc/habanalabs/pci.c:324: warning: Excess function parameter 'dma_mask' description in 'hl_pci_set_dma_mask'
drivers/misc/habanalabs/firmware_if.c:26: warning: Function parameter or member 'fw_name' not described in 'hl_fw_load_fw_to_device'
drivers/misc/habanalabs/firmware_if.c:26: warning: Function parameter or member 'dst' not described in 'hl_fw_load_fw_to_device'
make[3]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1756: drivers/misc] Error 2
make[1]: Target '__all' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: drivers/misc/habanalabs] Error 2
make[2]: Target '__build' not remade because of errors.
..

vim +/KBUILD_MODNAME +8 drivers/misc/spi_lpc/low_level_access.c

> 8 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
9
10 #include <linux/version.h>
11 #include <linux/pci.h>
12 #include "low_level_access.h"
13
14 #define GENERIC_MMIO_READ(Type, Suffix, function) \
15 int mmio_read_##Suffix(u64 phys_address, Type *value) \
16 { \
17 int ret = 0; \
18 void __iomem *mapped_address = \
19 ioremap(phys_address, sizeof(Type)); \
> 20 pr_debug("Reading MMIO 0x%llx 0x%lx\n", phys_address, \
21 sizeof(Type)); \
22 if (mapped_address != NULL) { \
23 *value = function(mapped_address); \
24 iounmap(mapped_address); \
25 } else { \
26 pr_err("Failed to MAP IO memory: 0x%llx\n", \
27 phys_address); \
28 ret = -EIO; \
29 } \
30 return ret; \
31 }
> 32 GENERIC_MMIO_READ(u8, byte, readb)
33 GENERIC_MMIO_READ(u16, word, readw)
34 GENERIC_MMIO_READ(u32, dword, readl)
35 #undef GENERIC_MMIO_READ
36

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2020-06-30 10:10    [W:0.123 / U:5.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site