lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 4 Oct 2022 04:19:06 +0800
From:   kernel test robot <lkp@...el.com>
To:     Manisha Chinthapally <manisha.chinthapally@...el.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mchinth:sep_linux_6_0 2/4]
 drivers/platform/x86/sepdk/sep/eventmux.c:386:1: warning: no previous
 prototype for 'EVENTMUX_Start'

tree:   https://github.com/mchinth/linux sep_linux_6_0
head:   08ba1bea064c65e8a88c3ab719d1a0c629642768
commit: 769b82bb90ec283e925ed3f7718a1a9d55639206 [2/4] Merge SEP5.36 into Linux tree
config: x86_64-rhel-8.3-kunit
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/mchinth/linux/commit/769b82bb90ec283e925ed3f7718a1a9d55639206
        git remote add mchinth https://github.com/mchinth/linux
        git fetch --no-tags mchinth sep_linux_6_0
        git checkout 769b82bb90ec283e925ed3f7718a1a9d55639206
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/platform/x86/sepdk/pax/ drivers/platform/x86/sepdk/sep/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/platform/x86/sepdk/pax/pax.c:180:1: warning: no previous prototype for 'pax_Disable_NMIWatchdog' [-Wmissing-prototypes]
     180 | pax_Disable_NMIWatchdog(PVOID data)
         | ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/pax/pax.c:249:1: warning: no previous prototype for 'pax_Enable_NMIWatchdog' [-Wmissing-prototypes]
     249 | pax_Enable_NMIWatchdog(PVOID data)
         | ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/pax/pax.c:678:1: warning: no previous prototype for 'pax_Service_IOCTL' [-Wmissing-prototypes]
     678 | pax_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
         | ^~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/pax/pax.c:717:1: warning: no previous prototype for 'pax_Device_Control' [-Wmissing-prototypes]
     717 | pax_Device_Control(IOCTL_USE_INODE struct file *filp,
         | ^~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/pax/pax.c:735:1: warning: no previous prototype for 'pax_Device_Control_Compat' [-Wmissing-prototypes]
     735 | pax_Device_Control_Compat(struct file *filp, unsigned int cmd, unsigned long arg)
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/pax/pax.c:841:1: warning: no previous prototype for 'pax_Load' [-Wmissing-prototypes]
     841 | pax_Load(VOID)
         | ^~~~~~~~
>> drivers/platform/x86/sepdk/pax/pax.c:918:1: warning: no previous prototype for 'pax_Unload' [-Wmissing-prototypes]
     918 | pax_Unload(VOID)
         | ^~~~~~~~~~
--
   drivers/platform/x86/sepdk/sep/lwpmudrv.c: In function 'lwpmudrv_Trigger_Read_Op':
>> drivers/platform/x86/sepdk/sep/lwpmudrv.c:1913:31: warning: variable 'pcpu' set but not used [-Wunused-but-set-variable]
    1913 |         CPU_STATE             pcpu;
         |                               ^~~~
   drivers/platform/x86/sepdk/sep/lwpmudrv.c: At top level:
>> drivers/platform/x86/sepdk/sep/lwpmudrv.c:6699:1: warning: no previous prototype for 'lwpmu_Service_IOCTL' [-Wmissing-prototypes]
    6699 | lwpmu_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
         | ^~~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/sep/lwpmudrv.c:7038:1: warning: no previous prototype for 'lwpmu_Device_Control' [-Wmissing-prototypes]
    7038 | lwpmu_Device_Control(IOCTL_USE_INODE struct file *filp,
         | ^~~~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/sep/lwpmudrv.c:7075:1: warning: no previous prototype for 'lwpmu_Device_Control_Compat' [-Wmissing-prototypes]
    7075 | lwpmu_Device_Control_Compat(struct file  *filp,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/sep/lwpmudrv.c:7131:1: warning: no previous prototype for 'LWPMUDRV_Abnormal_Terminate' [-Wmissing-prototypes]
    7131 | LWPMUDRV_Abnormal_Terminate(void)
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   drivers/platform/x86/sepdk/sep/cpumon.c: In function 'CPUMON_is_Online_Allowed':
>> drivers/platform/x86/sepdk/sep/cpumon.c:143:1: warning: old-style function definition [-Wold-style-definition]
     143 | CPUMON_is_Online_Allowed()
         | ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/platform/x86/sepdk/sep/cpumon.c: In function 'CPUMON_is_Offline_Allowed':
   drivers/platform/x86/sepdk/sep/cpumon.c:182:1: warning: old-style function definition [-Wold-style-definition]
     182 | CPUMON_is_Offline_Allowed()
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
--
>> drivers/platform/x86/sepdk/sep/eventmux.c:386:1: warning: no previous prototype for 'EVENTMUX_Start' [-Wmissing-prototypes]
     386 | EVENTMUX_Start(VOID)
         | ^~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/sep/eventmux.c:416:1: warning: no previous prototype for 'EVENTMUX_Initialize' [-Wmissing-prototypes]
     416 | EVENTMUX_Initialize(VOID)
         | ^~~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/sep/eventmux.c:472:1: warning: no previous prototype for 'EVENTMUX_Destroy' [-Wmissing-prototypes]
     472 | EVENTMUX_Destroy(VOID)
         | ^~~~~~~~~~~~~~~~
--
>> drivers/platform/x86/sepdk/sep/linuxos.c:856:1: warning: no previous prototype for 'linuxos_online_cpu' [-Wmissing-prototypes]
     856 | linuxos_online_cpu(unsigned int cpu)
         | ^~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/sep/linuxos.c:882:1: warning: no previous prototype for 'linuxos_offline_cpu' [-Wmissing-prototypes]
     882 | linuxos_offline_cpu(unsigned int cpu)
         | ^~~~~~~~~~~~~~~~~~~
--
>> drivers/platform/x86/sepdk/sep/pmi.c:90:1: warning: no previous prototype for 'pmi_Get_CSD' [-Wmissing-prototypes]
      90 | pmi_Get_CSD(U32 seg, U32 *low, U32 *high)
         | ^~~~~~~~~~~
--
   drivers/platform/x86/sepdk/sep/sys_info.c: In function 'sys_info_Fill_CPUID':
>> drivers/platform/x86/sepdk/sep/sys_info.c:356:21: warning: variable 'num_cores' set but not used [-Wunused-but-set-variable]
     356 |         U32         num_cores                = 0;
         |                     ^~~~~~~~~
>> drivers/platform/x86/sepdk/sep/sys_info.c:344:21: warning: variable 'family' set but not used [-Wunused-but-set-variable]
     344 |         U32         family                   = 0;
         |                     ^~~~~~
   drivers/platform/x86/sepdk/sep/sys_info.c: In function 'SYS_INFO_Build':
>> drivers/platform/x86/sepdk/sep/sys_info.c:957:30: warning: variable 'me' set but not used [-Wunused-but-set-variable]
     957 |         int                  me;
         |                              ^~
--
   drivers/platform/x86/sepdk/sep/unc_power.c: In function 'unc_rdt_program_autormid':
>> drivers/platform/x86/sepdk/sep/unc_power.c:69:19: warning: variable 'cur_grp' set but not used [-Wunused-but-set-variable]
      69 |         U32       cur_grp;
         |                   ^~~~~~~
   drivers/platform/x86/sepdk/sep/unc_power.c: In function 'unc_power_Trigger_Read':
   drivers/platform/x86/sepdk/sep/unc_power.c:363:14: warning: variable 'cur_grp' set but not used [-Wunused-but-set-variable]
     363 |         U32  cur_grp;
         |              ^~~~~~~
--
   drivers/platform/x86/sepdk/sep/core2.c: In function 'core2_Swap_Group':
>> drivers/platform/x86/sepdk/sep/core2.c:636:22: warning: variable 'cur_grp' set but not used [-Wunused-but-set-variable]
     636 |         U32          cur_grp;
         |                      ^~~~~~~
   drivers/platform/x86/sepdk/sep/core2.c: In function 'corei7_Read_LBRs':
>> drivers/platform/x86/sepdk/sep/core2.c:925:20: warning: variable 'pairs' set but not used [-Wunused-but-set-variable]
     925 |         U32        pairs = 0;
         |                    ^~~~~
--
   drivers/platform/x86/sepdk/sep/perfver4.c: In function 'perfver4_Read_LBRs':
>> drivers/platform/x86/sepdk/sep/perfver4.c:833:11: warning: variable 'pairs' set but not used [-Wunused-but-set-variable]
     833 |     U32   pairs       = 0;
         |           ^~~~~
--
   drivers/platform/x86/sepdk/sep/silvermont.c: In function 'silvermont_Initialize':
>> drivers/platform/x86/sepdk/sep/silvermont.c:764:20: warning: variable 'pcfg' set but not used [-Wunused-but-set-variable]
     764 |         DEV_CONFIG pcfg;
         |                    ^~~~
..


vim +/EVENTMUX_Start +386 drivers/platform/x86/sepdk/sep/eventmux.c

   368	
   369	/* ------------------------------------------------------------------------- */
   370	/*!
   371	 * @fn          VOID EVENTMUX_Start (
   372	 *                         VOID
   373	 *                         )
   374	 *
   375	 * @brief       Start the timers and enable all the threads
   376	 *
   377	 * @param       NONE
   378	 *
   379	 * @return      NONE
   380	 *
   381	 * <I>Special Notes:</I>
   382	 *              if event multiplexing has been enabled, set up the time slices and
   383	 *              start the timer threads for all the timers
   384	 */
   385	extern VOID
 > 386	EVENTMUX_Start(VOID)
   387	{
   388		SEP_DRV_LOG_TRACE_IN("");
   389	
   390		/*
   391	     * Start the timer for all cpus
   392	     */
   393		CONTROL_Invoke_Parallel(eventmux_Start_Timers, NULL);
   394	
   395		SEP_DRV_LOG_TRACE_OUT("");
   396	}
   397	
   398	/* ------------------------------------------------------------------------- */
   399	/*!
   400	 * @fn          VOID EVENTMUX_Initialize (
   401	 *                         VOID
   402	 *                         )
   403	 *
   404	 * @brief       Initialize the event multiplexing module
   405	 *
   406	 * @param       NONE
   407	 *
   408	 * @return      NONE
   409	 *
   410	 * <I>Special Notes:</I>
   411	 *              if event multiplexing has been enabled,
   412	 *              then allocate the memory needed to save and restore all the counter data
   413	 *              set up the timers needed, but do not start them
   414	 */
   415	extern VOID
 > 416	EVENTMUX_Initialize(VOID)
   417	{
   418		S32          size_of_vector;
   419		S32          cpu_num;
   420		CPU_STATE    pcpu;
   421		U32          dev_idx;
   422		EVENT_CONFIG ec;
   423	
   424		SEP_DRV_LOG_TRACE_IN("");
   425	
   426		for (cpu_num = 0; cpu_num < GLOBAL_STATE_num_cpus(driver_state);
   427		     cpu_num++) {
   428			pcpu    = &pcb[cpu_num];
   429			dev_idx = core_to_dev_map[cpu_num];
   430			ec      = LWPMU_DEVICE_ec(&devices[dev_idx]);
   431			if (ec == NULL) {
   432				continue;
   433			}
   434			if (EVENT_CONFIG_mode(ec) == EM_DISABLED ||
   435			    EVENT_CONFIG_num_groups(ec) == 1) {
   436				continue;
   437			}
   438			size_of_vector = EVENT_CONFIG_num_groups(ec) *
   439					 EVENT_CONFIG_max_gp_events(ec) * sizeof(S64);
   440			CPU_STATE_em_table_offset(pcpu) = em_tables_size;
   441			em_tables_size += size_of_vector;
   442		}
   443	
   444		if (em_tables_size) {
   445			em_tables = CONTROL_Allocate_Memory(em_tables_size);
   446		}
   447		CONTROL_Invoke_Parallel(eventmux_Allocate_Groups, NULL);
   448	
   449		CONTROL_Invoke_Parallel(eventmux_Prepare_Timer_Threads,
   450					(VOID *)(size_t)0);
   451	
   452		SEP_DRV_LOG_TRACE_OUT("");
   453	}
   454	
   455	/* ------------------------------------------------------------------------- */
   456	/*!
   457	 * @fn          VOID EVENTMUX_Destroy (
   458	 *                         VOID
   459	 *                         )
   460	 *
   461	 * @brief       Clean up the event multiplexing threads
   462	 *
   463	 * @param       NONE
   464	 *
   465	 * @return      NONE
   466	 *
   467	 * <I>Special Notes:</I>
   468	 *              if event multiplexing has been enabled, then stop and cancel all the timers
   469	 *              free up all the memory that is associated with EM
   470	 */
   471	extern VOID
 > 472	EVENTMUX_Destroy(VOID)
   473	{
   474		SEP_DRV_LOG_TRACE_IN("");
   475	
   476		eventmux_Cancel_Timers();
   477	
   478		if (em_tables) {
   479			em_tables      = CONTROL_Free_Memory(em_tables);
   480			em_tables_size = 0;
   481		}
   482		CONTROL_Invoke_Parallel(eventmux_Deallocate_Groups, (VOID *)(size_t)0);
   483	
   484		SEP_DRV_LOG_TRACE_OUT("");
   485	}
   486	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (165349 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ