All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-4.19 7/7] drivers/gpu/arm/bifrost/mali_kbase_mem.c:839:6: error: no previous prototype for 'kbase_region_tracker_has_allocs'
@ 2021-05-18 19:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-18 19:30 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head:   d2a70c94acf9ec8c2f7b73c0b000d2303de18781
commit: d2a70c94acf9ec8c2f7b73c0b000d2303de18781 [7/7] CHROMIUM: MALI: GPUSWERRATA-1078
config: arm64-chromiumos-mediatek-customedconfig-chrome-os:chromeos-4.19:d2a70c94acf9ec8c2f7b73c0b000d2303de18781 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
        git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
        git fetch --no-tags chrome-os chromeos-4.19
        git checkout d2a70c94acf9ec8c2f7b73c0b000d2303de18781
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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/gpu/arm/bifrost/mali_kbase_mem.c:839:6: error: no previous prototype for 'kbase_region_tracker_has_allocs' [-Werror=missing-prototypes]
     839 | bool kbase_region_tracker_has_allocs(struct kbase_context *kctx)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/arm/bifrost/mali_kbase_defs.h:37,
                    from drivers/gpu/arm/bifrost/mali_kbase.h:57,
                    from drivers/gpu/arm/bifrost/mali_kbase_mem.c:37:
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:625:33: error: 'base_hw_issues_model_tE2x' defined but not used [-Werror=unused-const-variable=]
     625 | static const enum base_hw_issue base_hw_issues_model_tE2x[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:615:33: error: 'base_hw_issues_tE2x_r0p0' defined but not used [-Werror=unused-const-variable=]
     615 | static const enum base_hw_issue base_hw_issues_tE2x_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:607:33: error: 'base_hw_issues_model_tTUx' defined but not used [-Werror=unused-const-variable=]
     607 | static const enum base_hw_issue base_hw_issues_model_tTUx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:600:33: error: 'base_hw_issues_tTUx_r0p0' defined but not used [-Werror=unused-const-variable=]
     600 | static const enum base_hw_issue base_hw_issues_tTUx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:592:33: error: 'base_hw_issues_model_tVAx' defined but not used [-Werror=unused-const-variable=]
     592 | static const enum base_hw_issue base_hw_issues_model_tVAx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:585:33: error: 'base_hw_issues_tVAx_r0p0' defined but not used [-Werror=unused-const-variable=]
     585 | static const enum base_hw_issue base_hw_issues_tVAx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:577:33: error: 'base_hw_issues_model_tGRx' defined but not used [-Werror=unused-const-variable=]
     577 | static const enum base_hw_issue base_hw_issues_model_tGRx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:570:33: error: 'base_hw_issues_tGRx_r0p0' defined but not used [-Werror=unused-const-variable=]
     570 | static const enum base_hw_issue base_hw_issues_tGRx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:562:33: error: 'base_hw_issues_model_tODx' defined but not used [-Werror=unused-const-variable=]
     562 | static const enum base_hw_issue base_hw_issues_model_tODx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:555:33: error: 'base_hw_issues_tODx_r0p0' defined but not used [-Werror=unused-const-variable=]
     555 | static const enum base_hw_issue base_hw_issues_tODx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:545:33: error: 'base_hw_issues_model_tDUx' defined but not used [-Werror=unused-const-variable=]
     545 | static const enum base_hw_issue base_hw_issues_model_tDUx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:535:33: error: 'base_hw_issues_tDUx_r0p0' defined but not used [-Werror=unused-const-variable=]
     535 | static const enum base_hw_issue base_hw_issues_tDUx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:522:33: error: 'base_hw_issues_lBEx_r1p1' defined but not used [-Werror=unused-const-variable=]
     522 | static const enum base_hw_issue base_hw_issues_lBEx_r1p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:508:33: error: 'base_hw_issues_lBEx_r1p0' defined but not used [-Werror=unused-const-variable=]
     508 | static const enum base_hw_issue base_hw_issues_lBEx_r1p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:496:33: error: 'base_hw_issues_model_tBEx' defined but not used [-Werror=unused-const-variable=]
     496 | static const enum base_hw_issue base_hw_issues_model_tBEx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:483:33: error: 'base_hw_issues_tBEx_r1p1' defined but not used [-Werror=unused-const-variable=]
     483 | static const enum base_hw_issue base_hw_issues_tBEx_r1p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:470:33: error: 'base_hw_issues_tBEx_r1p0' defined but not used [-Werror=unused-const-variable=]
     470 | static const enum base_hw_issue base_hw_issues_tBEx_r1p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:457:33: error: 'base_hw_issues_tBEx_r0p1' defined but not used [-Werror=unused-const-variable=]
     457 | static const enum base_hw_issue base_hw_issues_tBEx_r0p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:443:33: error: 'base_hw_issues_tBEx_r0p0' defined but not used [-Werror=unused-const-variable=]
     443 | static const enum base_hw_issue base_hw_issues_tBEx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:431:33: error: 'base_hw_issues_model_tNAx' defined but not used [-Werror=unused-const-variable=]
     431 | static const enum base_hw_issue base_hw_issues_model_tNAx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:416:33: error: 'base_hw_issues_tNAx_r0p1' defined but not used [-Werror=unused-const-variable=]
     416 | static const enum base_hw_issue base_hw_issues_tNAx_r0p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:400:33: error: 'base_hw_issues_tNAx_r0p0' defined but not used [-Werror=unused-const-variable=]
     400 | static const enum base_hw_issue base_hw_issues_tNAx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:388:33: error: 'base_hw_issues_model_tTRx' defined but not used [-Werror=unused-const-variable=]
     388 | static const enum base_hw_issue base_hw_issues_model_tTRx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:373:33: error: 'base_hw_issues_tTRx_r0p2' defined but not used [-Werror=unused-const-variable=]
     373 | static const enum base_hw_issue base_hw_issues_tTRx_r0p2[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:357:33: error: 'base_hw_issues_tTRx_r0p1' defined but not used [-Werror=unused-const-variable=]
     357 | static const enum base_hw_issue base_hw_issues_tTRx_r0p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:341:33: error: 'base_hw_issues_tTRx_r0p0' defined but not used [-Werror=unused-const-variable=]
     341 | static const enum base_hw_issue base_hw_issues_tTRx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:331:33: error: 'base_hw_issues_model_tGOx' defined but not used [-Werror=unused-const-variable=]
     331 | static const enum base_hw_issue base_hw_issues_model_tGOx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:319:33: error: 'base_hw_issues_tGOx_r1p0' defined but not used [-Werror=unused-const-variable=]
     319 | static const enum base_hw_issue base_hw_issues_tGOx_r1p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:307:33: error: 'base_hw_issues_tGOx_r0p0' defined but not used [-Werror=unused-const-variable=]
     307 | static const enum base_hw_issue base_hw_issues_tGOx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:297:33: error: 'base_hw_issues_model_tNOx' defined but not used [-Werror=unused-const-variable=]
     297 | static const enum base_hw_issue base_hw_issues_model_tNOx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:285:33: error: 'base_hw_issues_tNOx_r0p0' defined but not used [-Werror=unused-const-variable=]
     285 | static const enum base_hw_issue base_hw_issues_tNOx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:275:33: error: 'base_hw_issues_model_tDVx' defined but not used [-Werror=unused-const-variable=]
     275 | static const enum base_hw_issue base_hw_issues_model_tDVx[] = {


vim +/kbase_region_tracker_has_allocs +839 drivers/gpu/arm/bifrost/mali_kbase_mem.c

   822	
   823	/**
   824	 * Determine if any allocations have been made on a context's region tracker
   825	 * @kctx: KBase context
   826	 *
   827	 * Check the context to determine if any allocations have been made yet from
   828	 * any of its zones. This check should be done before resizing a zone, e.g. to
   829	 * make space to add a second zone.
   830	 *
   831	 * Whilst a zone without allocations can be resized whilst other zones have
   832	 * allocations, we still check all of @kctx 's zones anyway: this is a stronger
   833	 * guarantee and should be adhered to when creating new zones anyway.
   834	 *
   835	 * Allocations from kbdev zones are not counted.
   836	 *
   837	 * Return: true if any allocs exist on any zone, false otherwise
   838	 */
 > 839	bool kbase_region_tracker_has_allocs(struct kbase_context *kctx)
   840	{
   841		unsigned int zone_idx;
   842	
   843		lockdep_assert_held(&kctx->reg_lock);
   844	
   845		for (zone_idx = 0; zone_idx < KBASE_REG_ZONE_MAX; ++zone_idx) {
   846			struct kbase_reg_zone *zone;
   847			struct kbase_va_region *reg;
   848			u64 zone_base_addr;
   849			unsigned long zone_bits = KBASE_REG_ZONE(zone_idx);
   850			unsigned long reg_zone;
   851	
   852			zone = kbase_ctx_reg_zone_get(kctx, zone_bits);
   853			zone_base_addr = zone->base_pfn << PAGE_SHIFT;
   854	
   855			reg = kbase_region_tracker_find_region_base_address(
   856				kctx, zone_base_addr);
   857	
   858			if (!zone->va_size_pages) {
   859				WARN(reg,
   860				     "Should not have found a region that starts at 0x%.16llx for zone 0x%lx",
   861				     (unsigned long long)zone_base_addr, zone_bits);
   862				continue;
   863			}
   864	
   865			if (WARN(!reg,
   866				 "There should always be a region that starts at 0x%.16llx for zone 0x%lx, couldn't find it",
   867				 (unsigned long long)zone_base_addr, zone_bits))
   868				return true; /* Safest return value */
   869	
   870			reg_zone = reg->flags & KBASE_REG_ZONE_MASK;
   871			if (WARN(reg_zone != zone_bits,
   872				 "The region that starts at 0x%.16llx should be in zone 0x%lx but was found in the wrong zone 0x%lx",
   873				 (unsigned long long)zone_base_addr, zone_bits,
   874				 reg_zone))
   875				return true; /* Safest return value */
   876	
   877			/* Unless the region is completely free, of the same size as
   878			 * the original zone, then it has allocs
   879			 */
   880			if ((!(reg->flags & KBASE_REG_FREE)) ||
   881			    (reg->nr_pages != zone->va_size_pages))
   882				return true;
   883		}
   884	
   885		/* All zones are the same size as originally made, so there are no
   886		 * allocs
   887		 */
   888		return false;
   889	}
   890	

---
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: 33960 bytes --]

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

only message in thread, other threads:[~2021-05-18 19:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 19:30 [chrome-os:chromeos-4.19 7/7] drivers/gpu/arm/bifrost/mali_kbase_mem.c:839:6: error: no previous prototype for 'kbase_region_tracker_has_allocs' 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.