From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3807631F99D for ; Wed, 8 Jul 2026 22:38:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783550339; cv=none; b=aZ9MJ5HKGYKcx7erzycvVaEQz1XJBIDxOIqugUPcL2g3FVdwRhsPDM4JT0qLvlhyjtQFFLNw7vMNLuLKKujaHlxtqbODQYvALqs52+321FnYfCrm2gV7uR+GylsJpXOlnldNMfh/Tg+l4BK4+JvUz1CQitHd64VtQvM0VvOqxwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783550339; c=relaxed/simple; bh=xiO4/29hJPd4xNO+7+Yn6ewwC+ZM/3wv+Z9z/CqqqS8=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=Ayt3FMyT4odj+NsPx60C258tMSfejIJAgf/hiiVHpakLISej+Dj8i8H4j6uMH8J1BNOqQzH/gPwFvn/gUZz1WRPUQ8l6VO/MRchQRMCivHmLiNc6Kynl6xyNv255SOn2PzkQSoqoDw0Q5HqJ58IdPf5tBga+wU/0sWNYQvHrGx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lkXemduk; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lkXemduk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1783550337; x=1815086337; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=xiO4/29hJPd4xNO+7+Yn6ewwC+ZM/3wv+Z9z/CqqqS8=; b=lkXemduk6Yoz7JdTDCD4lpyrhMCTdfDUJ2kZhJmN8JtNAoLWSPOjAjiu FxRVdefvGLzDgXQ2mCdlboFa4JlLlnsqRqjCovqDE6objrlINAGq34OTE 5EyweYkyjSSEkvNsWG1qazJ/K9lKgIqegaKnamQ/XvC7yMPAd8vEvOWht RR+q1lkYtFiTXQ18lzkXxDF8jQ8ZBHddBRFQlhEptqnuJAhvZbF1hbEfi s/gpWSv8gKMAxev5kWPZxE6zsmh9QQlRq/491SjvaJPXDPysqVyji7czF mpaOaibttuC963lHsl+hqWqbL8D6Co46srHP3q14a+gdkAmIpUJBhfTjd A==; X-CSE-ConnectionGUID: ZsUYomGOSc+u+72kUCGjTw== X-CSE-MsgGUID: aORb+dK7SFOP0tkGhRCGog== X-IronPort-AV: E=McAfee;i="6800,10657,11841"; a="84198886" X-IronPort-AV: E=Sophos;i="6.25,153,1779174000"; d="scan'208";a="84198886" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2026 15:38:57 -0700 X-CSE-ConnectionGUID: EMl4v87UTfWXx1W9LhQuTA== X-CSE-MsgGUID: xwMz77DQRYGf3O6U/Z2NQQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,153,1779174000"; d="scan'208";a="258008067" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by orviesa003.jf.intel.com with ESMTP; 08 Jul 2026 15:38:55 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1whauq-00000000Gwf-0zA0; Wed, 08 Jul 2026 22:38:52 +0000 Date: Thu, 09 Jul 2026 06:38:18 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android17-6.18-2026-06 0/4] drivers/gpu/drm/drm_pagemap.c:459:21: warning: parameter 'addr' set but not used Message-ID: <202607090643.zi3q46ER-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Francois, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android17-6.18-2026-= 06 head: 5b9136b9d339e45260ca901c1a3fb5857763df8a commit: ddeda6136038b4b313bb6f9b44f2d363e1233814 [0/4] drm/pagemap: Allocat= e folios when possible config: x86_64-buildonly-randconfig-005-20260709 (https://download.01.org/0= day-ci/archive/20260709/202607090643.zi3q46ER-lkp@intel.com/config) compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e98466= 48fd6183ee6d8cbdb4502213fcf902a211) reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/archive= /20260709/202607090643.zi3q46ER-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new versio= n of the same patch/commit), kindly add following tags | Fixes: ddeda6136038 ("drm/pagemap: Allocate folios when possible") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202607090643.zi3q46ER-lkp@i= ntel.com/ All warnings (new ones prefixed by >>): In file included from :3: In file included from include/linux/compiler_types.h:171: include/linux/compiler-clang.h:28:9: warning: '__SANITIZE_ADDRESS__' mac= ro redefined [-Wmacro-redefined] 28 | #define __SANITIZE_ADDRESS__ | ^ :353:9: note: previous definition is here 353 | #define __SANITIZE_ADDRESS__ 1 | ^ >> drivers/gpu/drm/drm_pagemap.c:459:21: warning: parameter 'addr' set but = not used [-Wunused-but-set-parameter] 459 | unsigned long ad= dr) | ^ 2 warnings generated. vim +/addr +459 drivers/gpu/drm/drm_pagemap.c f86ad0ed620cb3 Matthew Brost 2025-06-19 435 =20 f86ad0ed620cb3 Matthew Brost 2025-06-19 436 /** f86ad0ed620cb3 Matthew Brost 2025-06-19 437 * drm_pagemap_migrate_popu= late_ram_pfn() - Populate RAM PFNs for a VM area f86ad0ed620cb3 Matthew Brost 2025-06-19 438 * @vas: Pointer to the VM = area structure, can be NULL f86ad0ed620cb3 Matthew Brost 2025-06-19 439 * @fault_page: Fault page f86ad0ed620cb3 Matthew Brost 2025-06-19 440 * @npages: Number of pages= to populate f86ad0ed620cb3 Matthew Brost 2025-06-19 441 * @mpages: Number of pages= to migrate f86ad0ed620cb3 Matthew Brost 2025-06-19 442 * @src_mpfn: Source array = of migrate PFNs f86ad0ed620cb3 Matthew Brost 2025-06-19 443 * @mpfn: Array of migrate = PFNs to populate f86ad0ed620cb3 Matthew Brost 2025-06-19 444 * @addr: Start address for= PFN allocation f86ad0ed620cb3 Matthew Brost 2025-06-19 445 * f86ad0ed620cb3 Matthew Brost 2025-06-19 446 * This function populates = the RAM migrate page frame numbers (PFNs) for the f86ad0ed620cb3 Matthew Brost 2025-06-19 447 * specified VM area struct= ure. It allocates and locks pages in the VM area for f86ad0ed620cb3 Matthew Brost 2025-06-19 448 * RAM usage. If vas is non= -NULL use alloc_page_vma for allocation, if NULL use f86ad0ed620cb3 Matthew Brost 2025-06-19 449 * alloc_page for allocatio= n. f86ad0ed620cb3 Matthew Brost 2025-06-19 450 * f86ad0ed620cb3 Matthew Brost 2025-06-19 451 * Return: 0 on success, ne= gative error code on failure. f86ad0ed620cb3 Matthew Brost 2025-06-19 452 */ f86ad0ed620cb3 Matthew Brost 2025-06-19 453 static int drm_pagemap_migr= ate_populate_ram_pfn(struct vm_area_struct *vas, f86ad0ed620cb3 Matthew Brost 2025-06-19 454 struct page *fault_pa= ge, f86ad0ed620cb3 Matthew Brost 2025-06-19 455 unsigned long npages, f86ad0ed620cb3 Matthew Brost 2025-06-19 456 unsigned long *mpages, f86ad0ed620cb3 Matthew Brost 2025-06-19 457 unsigned long *src_mp= fn, f86ad0ed620cb3 Matthew Brost 2025-06-19 458 unsigned long *mpfn, f86ad0ed620cb3 Matthew Brost 2025-06-19 @459 unsigned long addr) f86ad0ed620cb3 Matthew Brost 2025-06-19 460 { f86ad0ed620cb3 Matthew Brost 2025-06-19 461 unsigned long i; f86ad0ed620cb3 Matthew Brost 2025-06-19 462 =20 ddeda6136038b4 Francois Dugast 2025-08-05 463 for (i =3D 0; i < npages;)= { ddeda6136038b4 Francois Dugast 2025-08-05 464 struct page *page =3D NUL= L, *src_page; ddeda6136038b4 Francois Dugast 2025-08-05 465 struct folio *folio; ddeda6136038b4 Francois Dugast 2025-08-05 466 unsigned int order =3D 0; f86ad0ed620cb3 Matthew Brost 2025-06-19 467 =20 f86ad0ed620cb3 Matthew Brost 2025-06-19 468 if (!(src_mpfn[i] & MIGRA= TE_PFN_MIGRATE)) ddeda6136038b4 Francois Dugast 2025-08-05 469 goto next; f86ad0ed620cb3 Matthew Brost 2025-06-19 470 =20 f86ad0ed620cb3 Matthew Brost 2025-06-19 471 src_page =3D migrate_pfn_= to_page(src_mpfn[i]); f86ad0ed620cb3 Matthew Brost 2025-06-19 472 if (!src_page) ddeda6136038b4 Francois Dugast 2025-08-05 473 goto next; f86ad0ed620cb3 Matthew Brost 2025-06-19 474 =20 f86ad0ed620cb3 Matthew Brost 2025-06-19 475 if (fault_page) { f86ad0ed620cb3 Matthew Brost 2025-06-19 476 if (src_page->zone_devic= e_data !=3D f86ad0ed620cb3 Matthew Brost 2025-06-19 477 fault_page->zone_dev= ice_data) ddeda6136038b4 Francois Dugast 2025-08-05 478 goto next; f86ad0ed620cb3 Matthew Brost 2025-06-19 479 } f86ad0ed620cb3 Matthew Brost 2025-06-19 480 =20 ddeda6136038b4 Francois Dugast 2025-08-05 481 order =3D folio_order(pag= e_folio(src_page)); ddeda6136038b4 Francois Dugast 2025-08-05 482 =20 ddeda6136038b4 Francois Dugast 2025-08-05 483 /* TODO: Support fallback= to single pages if THP allocation fails */ f86ad0ed620cb3 Matthew Brost 2025-06-19 484 if (vas) ddeda6136038b4 Francois Dugast 2025-08-05 485 folio =3D vma_alloc_foli= o(GFP_HIGHUSER, order, vas, addr); f86ad0ed620cb3 Matthew Brost 2025-06-19 486 else ddeda6136038b4 Francois Dugast 2025-08-05 487 folio =3D folio_alloc(GF= P_HIGHUSER, order); f86ad0ed620cb3 Matthew Brost 2025-06-19 488 =20 ddeda6136038b4 Francois Dugast 2025-08-05 489 if (!folio) f86ad0ed620cb3 Matthew Brost 2025-06-19 490 goto free_pages; f86ad0ed620cb3 Matthew Brost 2025-06-19 491 =20 ddeda6136038b4 Francois Dugast 2025-08-05 492 page =3D folio_page(folio= , 0); f86ad0ed620cb3 Matthew Brost 2025-06-19 493 mpfn[i] =3D migrate_pfn(p= age_to_pfn(page)); ddeda6136038b4 Francois Dugast 2025-08-05 494 =20 ddeda6136038b4 Francois Dugast 2025-08-05 495 next: ddeda6136038b4 Francois Dugast 2025-08-05 496 if (page) ddeda6136038b4 Francois Dugast 2025-08-05 497 addr +=3D page_size(page= ); ddeda6136038b4 Francois Dugast 2025-08-05 498 else ddeda6136038b4 Francois Dugast 2025-08-05 499 addr +=3D PAGE_SIZE; ddeda6136038b4 Francois Dugast 2025-08-05 500 =20 ddeda6136038b4 Francois Dugast 2025-08-05 501 i +=3D NR_PAGES(order); f86ad0ed620cb3 Matthew Brost 2025-06-19 502 } f86ad0ed620cb3 Matthew Brost 2025-06-19 503 =20 ddeda6136038b4 Francois Dugast 2025-08-05 504 for (i =3D 0; i < npages;)= { f86ad0ed620cb3 Matthew Brost 2025-06-19 505 struct page *page =3D mig= rate_pfn_to_page(mpfn[i]); ddeda6136038b4 Francois Dugast 2025-08-05 506 unsigned int order =3D 0; f86ad0ed620cb3 Matthew Brost 2025-06-19 507 =20 f86ad0ed620cb3 Matthew Brost 2025-06-19 508 if (!page) ddeda6136038b4 Francois Dugast 2025-08-05 509 goto next_lock; ddeda6136038b4 Francois Dugast 2025-08-05 510 =20 ddeda6136038b4 Francois Dugast 2025-08-05 511 WARN_ON_ONCE(!folio_trylo= ck(page_folio(page))); f86ad0ed620cb3 Matthew Brost 2025-06-19 512 =20 ddeda6136038b4 Francois Dugast 2025-08-05 513 order =3D folio_order(pag= e_folio(page)); ddeda6136038b4 Francois Dugast 2025-08-05 514 *mpages +=3D NR_PAGES(ord= er); ddeda6136038b4 Francois Dugast 2025-08-05 515 =20 ddeda6136038b4 Francois Dugast 2025-08-05 516 next_lock: ddeda6136038b4 Francois Dugast 2025-08-05 517 i +=3D NR_PAGES(order); f86ad0ed620cb3 Matthew Brost 2025-06-19 518 } f86ad0ed620cb3 Matthew Brost 2025-06-19 519 =20 f86ad0ed620cb3 Matthew Brost 2025-06-19 520 return 0; f86ad0ed620cb3 Matthew Brost 2025-06-19 521 =20 f86ad0ed620cb3 Matthew Brost 2025-06-19 522 free_pages: ddeda6136038b4 Francois Dugast 2025-08-05 523 for (i =3D 0; i < npages;)= { f86ad0ed620cb3 Matthew Brost 2025-06-19 524 struct page *page =3D mig= rate_pfn_to_page(mpfn[i]); ddeda6136038b4 Francois Dugast 2025-08-05 525 unsigned int order =3D 0; f86ad0ed620cb3 Matthew Brost 2025-06-19 526 =20 f86ad0ed620cb3 Matthew Brost 2025-06-19 527 if (!page) ddeda6136038b4 Francois Dugast 2025-08-05 528 goto next_put; f86ad0ed620cb3 Matthew Brost 2025-06-19 529 =20 f86ad0ed620cb3 Matthew Brost 2025-06-19 530 put_page(page); f86ad0ed620cb3 Matthew Brost 2025-06-19 531 mpfn[i] =3D 0; ddeda6136038b4 Francois Dugast 2025-08-05 532 =20 ddeda6136038b4 Francois Dugast 2025-08-05 533 order =3D folio_order(pag= e_folio(page)); ddeda6136038b4 Francois Dugast 2025-08-05 534 =20 ddeda6136038b4 Francois Dugast 2025-08-05 535 next_put: ddeda6136038b4 Francois Dugast 2025-08-05 536 i +=3D NR_PAGES(order); f86ad0ed620cb3 Matthew Brost 2025-06-19 537 } f86ad0ed620cb3 Matthew Brost 2025-06-19 538 return -ENOMEM; f86ad0ed620cb3 Matthew Brost 2025-06-19 539 } f86ad0ed620cb3 Matthew Brost 2025-06-19 540 =20 :::::: The code at line 459 was first introduced by commit :::::: f86ad0ed620cb3c91ec7d5468e93ac68d727539d drm/gpusvm, drm/pagemap: Mo= ve migration functionality to drm_pagemap :::::: TO: Matthew Brost :::::: CC: Thomas Hellstr=C3=B6m -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki