[Intel-gfx] [drm-intel:topic/designware-baytrail 2/12] arch/x86/include/asm/iosf_mbi.h:137:55: warning: 'struct notifier_block' declared inside parameter list

kbuild test robot fengguang.wu at intel.com
Thu Mar 2 04:32:32 UTC 2017


tree:   git://anongit.freedesktop.org/drm-intel topic/designware-baytrail
head:   ca9b131b63aaf21419725bcf90497877d6bf6271
commit: 26363e10f680194a71c8d4287c8e2886ed539c4e [2/12] x86/platform/intel/iosf_mbi: Add a PMIC bus access notifier
config: i386-randconfig-c0-03021134 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 26363e10f680194a71c8d4287c8e2886ed539c4e
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from arch/x86/platform/intel-quark/imr.c:30:0:
>> arch/x86/include/asm/iosf_mbi.h:137:55: warning: 'struct notifier_block' declared inside parameter list
    int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb);
                                                          ^
>> arch/x86/include/asm/iosf_mbi.h:137:55: warning: its scope is only this definition or declaration, which is probably not what you want
   arch/x86/include/asm/iosf_mbi.h:144:57: warning: 'struct notifier_block' declared inside parameter list
    int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb);
                                                            ^

vim +137 arch/x86/include/asm/iosf_mbi.h

   121	
   122	/**
   123	 * iosf_mbi_register_pmic_bus_access_notifier - Register PMIC bus notifier
   124	 *
   125	 * This function can be used by drivers which may need to acquire P-Unit
   126	 * managed resources from interrupt context, where iosf_mbi_punit_acquire()
   127	 * can not be used.
   128	 *
   129	 * This function allows a driver to register a notifier to get notified (in a
   130	 * process context) before other drivers start accessing the PMIC bus.
   131	 *
   132	 * This allows the driver to acquire any resources, which it may need during
   133	 * the window the other driver is accessing the PMIC, before hand.
   134	 *
   135	 * @nb: notifier_block to register
   136	 */
 > 137	int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb);
   138	
   139	/**
   140	 * iosf_mbi_register_pmic_bus_access_notifier - Unregister PMIC bus notifier
   141	 *
   142	 * @nb: notifier_block to unregister
   143	 */
   144	int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb);
   145	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 27528 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170302/daafa8b7/attachment-0001.gz>


More information about the Intel-gfx mailing list