mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* arch/x86/platform/efi/quirks.c:609:5: warning: no previous declaration for 'efi_capsule_setup_info'
@ 2022-03-04  2:47 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-03-04  2:47 UTC (permalink / raw)
  To: Jan Kiszka
  Cc: kbuild-all, linux-kernel, Ingo Molnar, Ard Biesheuvel, Andy Shevchenko

Hi Jan,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b08968f196d498b19e9d0841d76a03862258f2d8
commit: 2959c95d510cc45b246ba727eb8fdf8b601c6eec efi/capsule: Add support for Quark security header
date:   4 years, 9 months ago
config: i386-defconfig (https://download.01.org/0day-ci/archive/20220304/202203040947.9FLycm7z-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2959c95d510cc45b246ba727eb8fdf8b601c6eec
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2959c95d510cc45b246ba727eb8fdf8b601c6eec
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/platform/efi/ drivers/gpu/drm/i915/ kernel/power/

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 >>):

   arch/x86/platform/efi/quirks.c:242:13: warning: no previous declaration for 'efi_arch_mem_reserve' [-Wmissing-declarations]
    void __init efi_arch_mem_reserve(phys_addr_t addr, u64 size)
                ^~~~~~~~~~~~~~~~~~~~
>> arch/x86/platform/efi/quirks.c:609:5: warning: no previous declaration for 'efi_capsule_setup_info' [-Wmissing-declarations]
    int efi_capsule_setup_info(struct capsule_info *cap_info, void *kbuff,
        ^~~~~~~~~~~~~~~~~~~~~~


vim +/efi_capsule_setup_info +609 arch/x86/platform/efi/quirks.c

   608	
 > 609	int efi_capsule_setup_info(struct capsule_info *cap_info, void *kbuff,
   610				   size_t hdr_bytes)
   611	{
   612		int (*quirk_handler)(struct capsule_info *, void **, size_t);
   613		const struct x86_cpu_id *id;
   614		int ret;
   615	
   616		if (hdr_bytes < sizeof(efi_capsule_header_t))
   617			return 0;
   618	
   619		cap_info->total_size = 0;
   620	
   621		id = x86_match_cpu(efi_capsule_quirk_ids);
   622		if (id) {
   623			/*
   624			 * The quirk handler is supposed to return
   625			 *  - a value > 0 if the setup should continue, after advancing
   626			 *    kbuff as needed
   627			 *  - 0 if not enough hdr_bytes are available yet
   628			 *  - a negative error code otherwise
   629			 */
   630			quirk_handler = (typeof(quirk_handler))id->driver_data;
   631			ret = quirk_handler(cap_info, &kbuff, hdr_bytes);
   632			if (ret <= 0)
   633				return ret;
   634		}
   635	
   636		memcpy(&cap_info->header, kbuff, sizeof(cap_info->header));
   637	
   638		cap_info->total_size += cap_info->header.imagesize;
   639	
   640		return __efi_capsule_setup_info(cap_info);
   641	}
   642	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* arch/x86/platform/efi/quirks.c:609:5: warning: no previous declaration for 'efi_capsule_setup_info'
@ 2022-04-08 20:09 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-04-08 20:09 UTC (permalink / raw)
  To: Jan Kiszka
  Cc: kbuild-all, linux-kernel, Ingo Molnar, Ard Biesheuvel, Andy Shevchenko

Hi Jan,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1a3b1bba7c7a5eb8a11513cf88427cb9d77bc60a
commit: 2959c95d510cc45b246ba727eb8fdf8b601c6eec efi/capsule: Add support for Quark security header
date:   4 years, 10 months ago
config: i386-randconfig-a005 (https://download.01.org/0day-ci/archive/20220409/202204090417.McieYWb5-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2959c95d510cc45b246ba727eb8fdf8b601c6eec
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2959c95d510cc45b246ba727eb8fdf8b601c6eec
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/platform/efi/ drivers/net/dsa/ fs/f2fs/ fs/xfs/ net/sunrpc/xprtrdma/

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 >>):

   arch/x86/platform/efi/quirks.c:242:13: warning: no previous declaration for 'efi_arch_mem_reserve' [-Wmissing-declarations]
    void __init efi_arch_mem_reserve(phys_addr_t addr, u64 size)
                ^~~~~~~~~~~~~~~~~~~~
>> arch/x86/platform/efi/quirks.c:609:5: warning: no previous declaration for 'efi_capsule_setup_info' [-Wmissing-declarations]
    int efi_capsule_setup_info(struct capsule_info *cap_info, void *kbuff,
        ^~~~~~~~~~~~~~~~~~~~~~


vim +/efi_capsule_setup_info +609 arch/x86/platform/efi/quirks.c

   608	
 > 609	int efi_capsule_setup_info(struct capsule_info *cap_info, void *kbuff,
   610				   size_t hdr_bytes)
   611	{
   612		int (*quirk_handler)(struct capsule_info *, void **, size_t);
   613		const struct x86_cpu_id *id;
   614		int ret;
   615	
   616		if (hdr_bytes < sizeof(efi_capsule_header_t))
   617			return 0;
   618	
   619		cap_info->total_size = 0;
   620	
   621		id = x86_match_cpu(efi_capsule_quirk_ids);
   622		if (id) {
   623			/*
   624			 * The quirk handler is supposed to return
   625			 *  - a value > 0 if the setup should continue, after advancing
   626			 *    kbuff as needed
   627			 *  - 0 if not enough hdr_bytes are available yet
   628			 *  - a negative error code otherwise
   629			 */
   630			quirk_handler = (typeof(quirk_handler))id->driver_data;
   631			ret = quirk_handler(cap_info, &kbuff, hdr_bytes);
   632			if (ret <= 0)
   633				return ret;
   634		}
   635	
   636		memcpy(&cap_info->header, kbuff, sizeof(cap_info->header));
   637	
   638		cap_info->total_size += cap_info->header.imagesize;
   639	
   640		return __efi_capsule_setup_info(cap_info);
   641	}
   642	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-08 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04  2:47 arch/x86/platform/efi/quirks.c:609:5: warning: no previous declaration for 'efi_capsule_setup_info' kernel test robot
2022-04-08 20:09 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®