linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Will Deacon <will@kernel.org>,
	Ryan Roberts <ryan.roberts@arm.com>,
	Jason Gunthorpe <jgg@nvidia.com>,
	Kevin Tian <kevin.tian@intel.com>
Subject: [linux-next:master 9539/12880] drivers/iommu/io-pgtable-arm.c:772:50: error: 'IOMMU_DIRTY_NO_CLEAR' undeclared
Date: Fri, 12 Jul 2024 16:20:49 +0800	[thread overview]
Message-ID: <202407121602.HL9ih1it-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3fe121b622825ff8cc995a1e6b026181c48188db
commit: 4fe88fd8b4aecb7f9680bf898811db76b94095a9 [9539/12880] iommu/io-pgtable-arm: Add read_and_clear_dirty() support
config: arm-buildonly-randconfig-r005-20220402 (https://download.01.org/0day-ci/archive/20240712/202407121602.HL9ih1it-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240712/202407121602.HL9ih1it-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407121602.HL9ih1it-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/iommu/io-pgtable-arm.c: In function 'io_pgtable_visit_dirty':
>> drivers/iommu/io-pgtable-arm.c:772:50: error: 'IOMMU_DIRTY_NO_CLEAR' undeclared (first use in this function)
     772 |                         if (!(walk_data->flags & IOMMU_DIRTY_NO_CLEAR))
         |                                                  ^~~~~~~~~~~~~~~~~~~~
   drivers/iommu/io-pgtable-arm.c:772:50: note: each undeclared identifier is reported only once for each function it appears in


vim +/IOMMU_DIRTY_NO_CLEAR +772 drivers/iommu/io-pgtable-arm.c

   753	
   754	static int __arm_lpae_iopte_walk_dirty(struct arm_lpae_io_pgtable *data,
   755					       struct io_pgtable_walk_data *walk_data,
   756					       arm_lpae_iopte *ptep,
   757					       int lvl);
   758	
   759	static int io_pgtable_visit_dirty(struct arm_lpae_io_pgtable *data,
   760					  struct io_pgtable_walk_data *walk_data,
   761					  arm_lpae_iopte *ptep, int lvl)
   762	{
   763		struct io_pgtable *iop = &data->iop;
   764		arm_lpae_iopte pte = READ_ONCE(*ptep);
   765	
   766		if (iopte_leaf(pte, lvl, iop->fmt)) {
   767			size_t size = ARM_LPAE_BLOCK_SIZE(lvl, data);
   768	
   769			if (iopte_writeable_dirty(pte)) {
   770				iommu_dirty_bitmap_record(walk_data->dirty,
   771							  walk_data->addr, size);
 > 772				if (!(walk_data->flags & IOMMU_DIRTY_NO_CLEAR))
   773					iopte_set_writeable_clean(ptep);
   774			}
   775			walk_data->addr += size;
   776			return 0;
   777		}
   778	
   779		if (WARN_ON(!iopte_table(pte, lvl)))
   780			return -EINVAL;
   781	
   782		ptep = iopte_deref(pte, data);
   783		return __arm_lpae_iopte_walk_dirty(data, walk_data, ptep, lvl + 1);
   784	}
   785	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


             reply	other threads:[~2024-07-12  8:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-12  8:20 kernel test robot [this message]
2024-07-12 10:22 ` Shameerali Kolothum Thodi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202407121602.HL9ih1it-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jgg@nvidia.com \
    --cc=kevin.tian@intel.com \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ryan.roberts@arm.com \
    --cc=shameerali.kolothum.thodi@huawei.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox