From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 98154CCFA13 for ; Fri, 1 May 2026 18:00:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2EBC910E551; Fri, 1 May 2026 18:00:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="LHSpIVEa"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id ADC2710E275; Fri, 1 May 2026 18:00:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777658402; x=1809194402; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8iJivf5umra0xCIcfq7ia+HXn2g2A7Ai+/hGBZz0EYE=; b=LHSpIVEaXPrr0bAdZ1OM1N94YQAhOEiGFaG2OUliXvwJU+R9iOwq2O11 qNTW0ael7JFLwoZlNq5JubJyOROSG+dn6QAyC9L3n8VBNsI3qZ8wVCqvr lRym0ZEF7wpmDhjVm/8oswz/5IPAd5qhUD57buTsUO+tiBCjCUEV/Hz12 emU8gBXX2chenh7DvNtVDBAk0CNiA0VtBQbnaMqss7uvGK9bLbrHLbvFq fgAtZIZeR1Od4am0cC8ss/bzODjex9WH4wRFdXG6WcyblY65UDGLrAESG qru4eU8/yqnBjgOkI+1RgnrOjQq1ynwcKEx7tBq6GPWNMPR5QBOPDGoE1 g==; X-CSE-ConnectionGUID: rUTo6wMVS4WXoxNxztmEBw== X-CSE-MsgGUID: miotPfYdQleTHqMJv8tDyQ== X-IronPort-AV: E=McAfee;i="6800,10657,11773"; a="90082840" X-IronPort-AV: E=Sophos;i="6.23,210,1770624000"; d="scan'208";a="90082840" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2026 11:00:01 -0700 X-CSE-ConnectionGUID: xpGig08CTYaLmDVQxt/FeA== X-CSE-MsgGUID: OvRiDKR+RJKAoq6+Pda/Yg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,210,1770624000"; d="scan'208";a="234985280" Received: from osgcshtiger.sh.intel.com ([10.239.81.49]) by orviesa009.jf.intel.com with ESMTP; 01 May 2026 10:59:59 -0700 From: Shuicheng Lin To: dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: Shuicheng Lin , Matthew Auld Subject: [PATCH v3] drm/gpusvm: Drop redundant @flags.* kernel-doc on struct drm_gpusvm_pages Date: Fri, 1 May 2026 17:59:56 +0000 Message-Id: <20260501175956.4054088-1-shuicheng.lin@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" The kernel-doc block above struct drm_gpusvm_pages duplicates the descriptions of the bit-flags that live in struct drm_gpusvm_pages_flags using dotted notation (@flags.migrate_devmem, @flags.unmapped, ...). That dotted notation is intended for nested anonymous structs/unions that the parser flattens into the parent's parameter list. Here, however, flags is of a named external type, so the parser does not flatten its members and the dotted entries do not match any member of drm_gpusvm_pages. They also duplicate the canonical descriptions already present in the kernel-doc of struct drm_gpusvm_pages_flags itself. Drop the five @flags.* lines and replace them with a single @flags entry that cross-references the type via kernel-doc's "&struct ..." syntax. This eliminates the redundancy and removes warnings emitted by the new parameterdescs check in scripts/kernel-doc: Excess struct member 'flags.migrate_devmem' description in 'drm_gpusvm_pages' Excess struct member 'flags.unmapped' description in 'drm_gpusvm_pages' Excess struct member 'flags.partial_unmap' description in 'drm_gpusvm_pages' Excess struct member 'flags.has_devmem_pages' description in 'drm_gpusvm_pages' Excess struct member 'flags.has_dma_mapping' description in 'drm_gpusvm_pages' No functional change. Assisted-by: Claude:claude-opus-4.6 Cc: Matthew Auld Signed-off-by: Shuicheng Lin --- v2: change base to drm-misc. v3: correct the assisted-by tag. The failure is reported by the new kernel-doc check in: https://patchwork.freedesktop.org/series/164948/ --- include/drm/drm_gpusvm.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/drm/drm_gpusvm.h b/include/drm/drm_gpusvm.h index cd94bb2ee6ee..8a4d7134a9a7 100644 --- a/include/drm/drm_gpusvm.h +++ b/include/drm/drm_gpusvm.h @@ -140,12 +140,7 @@ struct drm_gpusvm_pages_flags { * @state: DMA IOVA state for mapping. * @state_offset: DMA IOVA offset for mapping. * @notifier_seq: Notifier sequence number of the range's pages - * @flags: Flags for range - * @flags.migrate_devmem: Flag indicating whether the range can be migrated to device memory - * @flags.unmapped: Flag indicating if the range has been unmapped - * @flags.partial_unmap: Flag indicating if the range has been partially unmapped - * @flags.has_devmem_pages: Flag indicating if the range has devmem pages - * @flags.has_dma_mapping: Flag indicating if the range has a DMA mapping + * @flags: Flags for the range; see &struct drm_gpusvm_pages_flags */ struct drm_gpusvm_pages { struct drm_pagemap_addr *dma_addr; -- 2.43.0