All of lore.kernel.org
 help / color / mirror / Atom feed
* [mchinth:sep_socwatch_linux_5_9 19/41] drivers/platform/x86/socperf/socperfdrv.c:1336:63: error: too few arguments to function call, expected 4, have 3
@ 2020-09-25 21:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-25 21:08 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 14686 bytes --]

tree:   https://github.com/mchinth/linux sep_socwatch_linux_5_9
head:   7296486889985b9d9895a39f551764a4b0425bea
commit: e65547c5a9bb37e907edecece4da7cb12dadea96 [19/41] platform/x86: Use $(srctree) instead of $(src) to adapt to kbuild regression
config: x86_64-randconfig-r036-20200925 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c32e69b2ce7abfb151a87ba363ac9e25abf7d417)
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
        # https://github.com/mchinth/linux/commit/e65547c5a9bb37e907edecece4da7cb12dadea96
        git remote add mchinth https://github.com/mchinth/linux
        git fetch --no-tags mchinth sep_socwatch_linux_5_9
        git checkout e65547c5a9bb37e907edecece4da7cb12dadea96
        # 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@intel.com>

All errors (new ones prefixed by >>):

   drivers/platform/x86/socperf/socperfdrv.c:203:13: warning: no previous prototype for function 'SOCPERF_Read_Data3' [-Wmissing-prototypes]
   extern VOID SOCPERF_Read_Data3(PVOID data_buffer)
               ^
   drivers/platform/x86/socperf/socperfdrv.c:203:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
   extern VOID SOCPERF_Read_Data3(PVOID data_buffer)
          ^
   drivers/platform/x86/socperf/socperfdrv.c:885:1: warning: no previous prototype for function 'SOCPERF_Switch_Group3' [-Wmissing-prototypes]
   SOCPERF_Switch_Group3(VOID)
   ^
   drivers/platform/x86/socperf/socperfdrv.c:884:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
   extern OS_STATUS
          ^
   drivers/platform/x86/socperf/include/lwpmudrv_defines.h:372:19: note: expanded from macro 'OS_STATUS'
   #define OS_STATUS int
                     ^
   drivers/platform/x86/socperf/socperfdrv.c:1070:6: warning: no previous prototype for function 'lwpmudrv_Stop_Mem' [-Wmissing-prototypes]
   VOID lwpmudrv_Stop_Mem(VOID)
        ^
   drivers/platform/x86/socperf/socperfdrv.c:1070:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   VOID lwpmudrv_Stop_Mem(VOID)
   ^
   static 
   drivers/platform/x86/socperf/socperfdrv.c:1155:15: warning: no previous prototype for function 'socperf_Service_IOCTL' [-Wmissing-prototypes]
   IOCTL_OP_TYPE socperf_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
                 ^
   drivers/platform/x86/socperf/socperfdrv.c:1155:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   IOCTL_OP_TYPE socperf_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
   ^
   static 
   drivers/platform/x86/socperf/inc/control.h:84:23: note: expanded from macro 'IOCTL_OP_TYPE'
   #define IOCTL_OP_TYPE S32
                         ^
   drivers/platform/x86/socperf/socperfdrv.c:1299:33: error: expected expression
           status = socperf_Service_IOCTL(IOCTL_USE_INODE filp, _IOC_NR(cmd),
                                          ^
   drivers/platform/x86/socperf/inc/control.h:85:25: note: expanded from macro 'IOCTL_USE_INODE'
   #define IOCTL_USE_INODE struct inode *inode,
                           ^
   drivers/platform/x86/socperf/socperfdrv.c:1274:6: warning: no previous prototype for function 'socperf_Device_Control' [-Wmissing-prototypes]
   long socperf_Device_Control(IOCTL_USE_INODE struct file *filp,
        ^
   drivers/platform/x86/socperf/socperfdrv.c:1274:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   long socperf_Device_Control(IOCTL_USE_INODE struct file *filp,
   ^
   static 
>> drivers/platform/x86/socperf/socperfdrv.c:1336:63: error: too few arguments to function call, expected 4, have 3
           status = socperf_Service_IOCTL(filp, _IOC_NR(cmd), local_args);
                    ~~~~~~~~~~~~~~~~~~~~~                               ^
   drivers/platform/x86/socperf/socperfdrv.c:1155:15: note: 'socperf_Service_IOCTL' declared here
   IOCTL_OP_TYPE socperf_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
                 ^
   drivers/platform/x86/socperf/socperfdrv.c:1307:6: warning: no previous prototype for function 'socperf_Device_Control_Compat' [-Wmissing-prototypes]
   long socperf_Device_Control_Compat(struct file *filp, unsigned int cmd,
        ^
   drivers/platform/x86/socperf/socperfdrv.c:1307:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   long socperf_Device_Control_Compat(struct file *filp, unsigned int cmd,
   ^
   static 
   drivers/platform/x86/socperf/socperfdrv.c:1358:5: warning: no previous prototype for function 'SOCPERF_Abnormal_Terminate' [-Wmissing-prototypes]
   int SOCPERF_Abnormal_Terminate(void)
       ^
   drivers/platform/x86/socperf/socperfdrv.c:1358:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int SOCPERF_Abnormal_Terminate(void)
   ^
   static 
   drivers/platform/x86/socperf/socperfdrv.c:1389:2: error: field designator 'ioctl' does not refer to any field in type 'struct file_operations'
           IOCTL_OP = socperf_Device_Control,
           ^
   drivers/platform/x86/socperf/inc/control.h:83:19: note: expanded from macro 'IOCTL_OP'
   #define IOCTL_OP .ioctl
                     ^
   7 warnings and 3 errors generated.
--
   drivers/platform/x86/sepdk/sep/lwpmudrv.c:6962:31: error: expected expression
           status = lwpmu_Service_IOCTL(IOCTL_USE_INODE filp, _IOC_NR(cmd),
                                        ^
   drivers/platform/x86/sepdk/inc/control.h:64:25: note: expanded from macro 'IOCTL_USE_INODE'
   #define IOCTL_USE_INODE struct inode *inode,
                           ^
>> drivers/platform/x86/sepdk/sep/lwpmudrv.c:7003:61: error: too few arguments to function call, expected 4, have 3
           status = lwpmu_Service_IOCTL(filp, _IOC_NR(cmd), local_args);
                    ~~~~~~~~~~~~~~~~~~~                               ^
   drivers/platform/x86/sepdk/sep/lwpmudrv.c:6485:22: note: 'lwpmu_Service_IOCTL' declared here
   static IOCTL_OP_TYPE lwpmu_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
                        ^
   drivers/platform/x86/sepdk/sep/lwpmudrv.c:7083:2: error: field designator 'ioctl' does not refer to any field in type 'struct file_operations'
           IOCTL_OP = lwpmu_Device_Control,
           ^
   drivers/platform/x86/sepdk/inc/control.h:62:19: note: expanded from macro 'IOCTL_OP'
   #define IOCTL_OP .ioctl
                     ^
   drivers/platform/x86/sepdk/sep/lwpmudrv.c:7099:2: error: field designator 'ioctl' does not refer to any field in type 'struct file_operations'
           IOCTL_OP = NULL, //None needed
           ^
   drivers/platform/x86/sepdk/inc/control.h:62:19: note: expanded from macro 'IOCTL_OP'
   #define IOCTL_OP .ioctl
                     ^
   drivers/platform/x86/sepdk/sep/lwpmudrv.c:7112:2: error: field designator 'ioctl' does not refer to any field in type 'struct file_operations'
           IOCTL_OP = NULL, //None needed
           ^
   drivers/platform/x86/sepdk/inc/control.h:62:19: note: expanded from macro 'IOCTL_OP'
   #define IOCTL_OP .ioctl
                     ^
   drivers/platform/x86/sepdk/sep/lwpmudrv.c:7125:2: error: field designator 'ioctl' does not refer to any field in type 'struct file_operations'
           IOCTL_OP = NULL, //None needed
           ^
   drivers/platform/x86/sepdk/inc/control.h:62:19: note: expanded from macro 'IOCTL_OP'
   #define IOCTL_OP .ioctl
                     ^
   drivers/platform/x86/sepdk/sep/lwpmudrv.c:7138:2: error: field designator 'ioctl' does not refer to any field in type 'struct file_operations'
           IOCTL_OP = NULL, //None needed
           ^
   drivers/platform/x86/sepdk/inc/control.h:62:19: note: expanded from macro 'IOCTL_OP'
   #define IOCTL_OP .ioctl
                     ^
   7 errors generated.
--
   drivers/platform/x86/sepdk/pax/pax.c:724:29: error: expected expression
           status = pax_Service_IOCTL(IOCTL_USE_INODE filp, cmd, local_args);
                                      ^
   drivers/platform/x86/sepdk/inc/control.h:64:25: note: expanded from macro 'IOCTL_USE_INODE'
   #define IOCTL_USE_INODE struct inode *inode,
                           ^
>> drivers/platform/x86/sepdk/pax/pax.c:753:13: error: use of undeclared identifier 'PAX_IOCTL_COMPAT_INFO'
           if (cmd == PAX_IOCTL_COMPAT_INFO) {
                      ^
>> drivers/platform/x86/sepdk/pax/pax.c:758:50: error: too few arguments to function call, expected 4, have 3
           status = pax_Service_IOCTL(filp, cmd, local_args);
                    ~~~~~~~~~~~~~~~~~                      ^
   drivers/platform/x86/sepdk/pax/pax.c:672:22: note: 'pax_Service_IOCTL' declared here
   static IOCTL_OP_TYPE pax_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
                        ^
   drivers/platform/x86/sepdk/pax/pax.c:776:2: error: field designator 'ioctl' does not refer to any field in type 'struct file_operations'
           IOCTL_OP = pax_Device_Control,
           ^
   drivers/platform/x86/sepdk/inc/control.h:62:19: note: expanded from macro 'IOCTL_OP'
   #define IOCTL_OP .ioctl
                     ^
>> drivers/platform/x86/sepdk/pax/pax.c:778:18: error: incompatible function pointer types initializing 'long (*)(struct file *, unsigned int, unsigned long)' with an expression of type 'S32 (struct file *, unsigned int, unsigned long)' (aka 'int (struct file *, unsigned int, unsigned long)') [-Werror,-Wincompatible-function-pointer-types]
           .compat_ioctl = pax_Device_Control_Compat,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/platform/x86/sepdk/pax/pax.c:891:39: error: incompatible pointer types passing 'struct file_operations *' to parameter of type 'const struct proc_ops *' [-Werror,-Wincompatible-pointer-types]
                   proc_create("pax_version", 0, NULL, &pax_version_ops);
                                                       ^~~~~~~~~~~~~~~~
   include/linux/proc_fs.h:107:122: note: passing argument to parameter 'proc_ops' here
   struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
                                                                                                                            ^
   6 errors generated.

vim +1336 drivers/platform/x86/socperf/socperfdrv.c

f57492d07625ddd Manisha Chinthapally 2019-05-01  1305  
f57492d07625ddd Manisha Chinthapally 2019-05-01  1306  #if defined(CONFIG_COMPAT) && defined(DRV_EM64T)
f57492d07625ddd Manisha Chinthapally 2019-05-01  1307  long socperf_Device_Control_Compat(struct file *filp, unsigned int cmd,
f57492d07625ddd Manisha Chinthapally 2019-05-01  1308  					  unsigned long arg)
f57492d07625ddd Manisha Chinthapally 2019-05-01  1309  {
f57492d07625ddd Manisha Chinthapally 2019-05-01  1310  	int status = OS_SUCCESS;
f57492d07625ddd Manisha Chinthapally 2019-05-01  1311  	IOCTL_COMPAT_ARGS_NODE local_args_compat;
f57492d07625ddd Manisha Chinthapally 2019-05-01  1312  	IOCTL_ARGS_NODE local_args;
f57492d07625ddd Manisha Chinthapally 2019-05-01  1313  
f57492d07625ddd Manisha Chinthapally 2019-05-01  1314  	memset(&local_args_compat, 0, sizeof(IOCTL_COMPAT_ARGS_NODE));
f57492d07625ddd Manisha Chinthapally 2019-05-01  1315  	SOCPERF_PRINT_DEBUG("Compat: type: %d, subcommand: %d\n",
f57492d07625ddd Manisha Chinthapally 2019-05-01  1316  			    _IOC_TYPE(cmd), _IOC_NR(cmd));
f57492d07625ddd Manisha Chinthapally 2019-05-01  1317  
f57492d07625ddd Manisha Chinthapally 2019-05-01  1318  	if (_IOC_TYPE(cmd) != LWPMU_IOC_MAGIC) {
f57492d07625ddd Manisha Chinthapally 2019-05-01  1319  		SOCPERF_PRINT_ERROR("Unknown IOCTL magic:%d\n", _IOC_TYPE(cmd));
f57492d07625ddd Manisha Chinthapally 2019-05-01  1320  		return OS_ILLEGAL_IOCTL;
f57492d07625ddd Manisha Chinthapally 2019-05-01  1321  	}
f57492d07625ddd Manisha Chinthapally 2019-05-01  1322  
f57492d07625ddd Manisha Chinthapally 2019-05-01  1323  	MUTEX_LOCK(ioctl_lock);
f57492d07625ddd Manisha Chinthapally 2019-05-01  1324  	if (arg) {
f57492d07625ddd Manisha Chinthapally 2019-05-01  1325  		status = copy_from_user(&local_args_compat,
f57492d07625ddd Manisha Chinthapally 2019-05-01  1326  					(void __user *)arg,
f57492d07625ddd Manisha Chinthapally 2019-05-01  1327  					sizeof(IOCTL_COMPAT_ARGS_NODE));
f57492d07625ddd Manisha Chinthapally 2019-05-01  1328  	}
f57492d07625ddd Manisha Chinthapally 2019-05-01  1329  	local_args.len_drv_to_usr = local_args_compat.len_drv_to_usr;
f57492d07625ddd Manisha Chinthapally 2019-05-01  1330  	local_args.len_usr_to_drv = local_args_compat.len_usr_to_drv;
f57492d07625ddd Manisha Chinthapally 2019-05-01  1331  	local_args.buf_drv_to_usr =
f57492d07625ddd Manisha Chinthapally 2019-05-01  1332  		(char *)compat_ptr(local_args_compat.buf_drv_to_usr);
f57492d07625ddd Manisha Chinthapally 2019-05-01  1333  	local_args.buf_usr_to_drv =
f57492d07625ddd Manisha Chinthapally 2019-05-01  1334  		(char *)compat_ptr(local_args_compat.buf_usr_to_drv);
f57492d07625ddd Manisha Chinthapally 2019-05-01  1335  
f57492d07625ddd Manisha Chinthapally 2019-05-01 @1336  	status = socperf_Service_IOCTL(filp, _IOC_NR(cmd), local_args);
f57492d07625ddd Manisha Chinthapally 2019-05-01  1337  	MUTEX_UNLOCK(ioctl_lock);
f57492d07625ddd Manisha Chinthapally 2019-05-01  1338  
f57492d07625ddd Manisha Chinthapally 2019-05-01  1339  	return status;
f57492d07625ddd Manisha Chinthapally 2019-05-01  1340  }
f57492d07625ddd Manisha Chinthapally 2019-05-01  1341  #endif
f57492d07625ddd Manisha Chinthapally 2019-05-01  1342  

:::::: The code at line 1336 was first introduced by commit
:::::: f57492d07625dddac7920eccdb5be08c55ee16fa platform/x86: SOCPERF3 support for sep & socwatch

:::::: TO: Manisha Chinthapally <manisha.chinthapally@intel.com>
:::::: CC: Faycal Benmlih <faycal.benmlih@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33535 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-25 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 21:08 [mchinth:sep_socwatch_linux_5_9 19/41] drivers/platform/x86/socperf/socperfdrv.c:1336:63: error: too few arguments to function call, expected 4, have 3 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.