Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5563391rwn; Mon, 12 Sep 2022 10:52:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7r6pTmpCtmnCDxchsvhNjT4GpduPO1a3JtwnhI7OUnXgUuxS4A6YXUa/cMqAgAYOEOuIZG X-Received: by 2002:a17:90b:1c82:b0:1ee:eb41:b141 with SMTP id oo2-20020a17090b1c8200b001eeeb41b141mr25633076pjb.143.1663005165339; Mon, 12 Sep 2022 10:52:45 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a056a00239200b0052e677b7052si9043302pfc.244.2022.09.12.10.52.33; Mon, 12 Sep 2022 10:52:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mRSSho9R; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229761AbiILRT1 (ORCPT + 99 others); Mon, 12 Sep 2022 13:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbiILRTZ (ORCPT ); Mon, 12 Sep 2022 13:19:25 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656733F1D0 for ; Mon, 12 Sep 2022 10:19:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663003163; x=1694539163; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=B1eYrGmza941Es8Ptg1eOzS/GZDvSllr4K9x63V2mPA=; b=mRSSho9RZpP3/ZaJbRScr/12KT5CTTUTvur5kyvSVqPeap1JvFpbIcuF ouzEtXz+tH9s76L76kI5UnhbqVaGqP9CESKxn5fAcm5etq+kuuHGnh7VM TR5QyKbnqCyNwjzk2QLAYmM1PTr+0xeLuy89z0mDYjA6c0AUGicHgSbFY YDkbRw7l2iznb6RzMLSZa0QOPserhSsh+kNsREoaXh2DTAIDmbDe3Jztf 91SuUYsBXyOfTW7jNBPkcPfILX/P3tp27ef3L7fLPEPVwXXfwrx9PjwIh KWj7QEY3gJwOwxRXFgngLqEOK1Rbn9wu5IlbDHxBEJSF/s6N+ZMLK6gZU Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="297925377" X-IronPort-AV: E=Sophos;i="5.93,310,1654585200"; d="scan'208";a="297925377" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2022 10:19:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,310,1654585200"; d="scan'208";a="649336509" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga001.jf.intel.com with ESMTP; 12 Sep 2022 10:19:21 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 12 Sep 2022 10:19:20 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 12 Sep 2022 10:19:20 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.40) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 12 Sep 2022 10:19:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EoanPlzMV1llfbJX+9jhXUrIQooUza5NSyNN2t3ScHWgu4Z1cdYbZC5QaDOiYMK/2X/i5YOBu2SuDx6BR2daZmtq5QZwuxm9Kv9+OE7RsFLA8gjrnC982SLbMMQ7r2gwhSv//J1oMN+jXjHpp2ez/XUt91VY5/B9Ldj6iXURcnEYY6bh1GyF315917LFP5YSnBb/xTR4JvNIMKn6eabFABfgwQxySA8PWDuK107+9NrJQ4q1htUlZOpHINM0JVzY8N8M4Byw31lMMCxRBqed18hlI4LULei+fIJBu5Y/lKfK077qpMYZMJHV5QbTuMZ3dYcWQcOt5bMuLUjExf/3jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZONWdsIFNZoFvZJc38R+FmMra4O/xflVUscOXTrn+48=; b=aHJRxSSVer+KAdmJJHzncYeTT34mJ7rkBy4Gy4N4+WD99mkqOx4qe6teM+LDJL2Wk4FY4rxdyiWqHnjrMGLlgxWOmMTwtjcjbfDDiPKFJOymtb+cVUGazENiIFqdxE3qlFYaZClR20uVerA/av5fNHcebmo3YUIIa6mwmHS4QqAqtpnBVnWmB7veSQ9oayetCc+zS3e1qWOhrLuhjSwdM7BlGue5RxkuONtdsCRJgJCSgKggjOMfgKqXi2JsC0xE7EZOtpaIYWCSQPy6x/wSU7h1xxlm63ULQ3uzjrroIkw99+gU47eWWGRieOomgHi5kz0m0uFAIiBVOY2iHpVj+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MWHPR11MB1632.namprd11.prod.outlook.com (2603:10b6:301:11::11) by BL3PR11MB6434.namprd11.prod.outlook.com (2603:10b6:208:3ba::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 17:19:08 +0000 Received: from MWHPR11MB1632.namprd11.prod.outlook.com ([fe80::ecc9:50cb:5951:2514]) by MWHPR11MB1632.namprd11.prod.outlook.com ([fe80::ecc9:50cb:5951:2514%12]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 17:19:08 +0000 Date: Mon, 12 Sep 2022 10:19:04 -0700 From: Matt Roper To: Mauro Carvalho Chehab CC: Rodrigo Vivi , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Alan Previn , Andi Shyti , Ashutosh Dixit , Chris Wilson , Daniel Vetter , Daniele Ceraolo Spurio , David Airlie , Imre Deak , Jani Nikula , John Harrison , Joonas Lahtinen , Lucas De Marchi , Matthew Auld , "Matthew Brost" , Stanislav Lisovskiy , Tomas Winkler , Tvrtko Ursulin , Umesh Nerlige Ramappa , , , Subject: Re: [PATCH v3 19/37] drm/i915: stop using kernel-doc markups for something else Message-ID: References: <6405f00c4ba03987abf7635f4c62d86b40a0e521.1662708705.git.mchehab@kernel.org> <20220912184756.61492ad1@coco.lan> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220912184756.61492ad1@coco.lan> X-ClientProxiedBy: SJ0PR03CA0152.namprd03.prod.outlook.com (2603:10b6:a03:338::7) To MWHPR11MB1632.namprd11.prod.outlook.com (2603:10b6:301:11::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR11MB1632:EE_|BL3PR11MB6434:EE_ X-MS-Office365-Filtering-Correlation-Id: 77a06d1a-5efb-43ca-390d-08da94e2e673 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xEjwuHMFTA9jqLrnmFM8Zr0bbUi7qM3C5PtFHantwqCCzbjlxf5N0mTdRC7Fg8f9iMTGqAphv7pRZ1Q2+ed2NyA52gB+4lb8lYSU7jMjB2FjpcsbwuAIDiU1txJLoZ9zzBlj7UGGM3cqOg79WTiRzGX0NFFbxjVKiN5v2YHUsPr3PJcFhxT8p6XrF6Syx+Le4rthCMLM27h3N3PT5B21M+c/4ZR7hsemJGQixl744WbbC8lY8+g46opb8XXIMze8k5ew3MINtFhk1HZjcxUlvUr/tZeDm5ju/Wi5dzh9PqPPmcYxY0ZooJis2VJZS4YNeImbbICW78hVSt3376ZuVsHCG/xmiQN6vjnVWTDh2CbAjpC7Lr1nMDyVNdTRfD0Zv+96mXQDa2ZHI8ZpOfzz6jVvmsLdv/+kbVmyniu4ppMw9MLy/acVlQ2Y7lT5I7RHqP4LlWMqHkpsoRuyYDSyGVJnUC3y/SsWPxZkb096zW+oSWLSvmEMN4r9K/5EfZyiJjSETDLCqQ2lYmKz67IL/LyxzBmtobsMBG6KBy0fEdJLXK3gft0BDZa55XSNHCTbinYQ0ug3KzqZrrD7GyXERB7LK45tiR0D34SZhw/u7FvvR5BmLaJsXyNR1RyxAmHmlnyNjM45B+IYyNonq7xHmqVkg0V4BkVMjXVcZAQ7J9s= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1632.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230019)(39860400002)(396003)(366004)(346002)(376002)(136003)(451199012)(41300700001)(82960400001)(6486002)(6506007)(966005)(478600001)(26005)(4326008)(66556008)(66946007)(38100700002)(8936002)(5660300002)(7416002)(2906002)(186003)(6512007)(83380400001)(86362001)(6666004)(66476007)(8676002)(54906003)(316002)(6916009);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?wCogdo0EZpV7p+kwaxMkMv3VqzTyN1d4xWyBIC9kZFfh4KWLXculjPhUAZXX?= =?us-ascii?Q?1So6ZcA2gUkSKQOSkmKY+nGvoYykjYdbTnUtUfQhd/pZ5GQwEM7a+Uqrvrpx?= =?us-ascii?Q?Cj6m2JI0s5w7Ag3H0fOI633cK98bdKikuQooWpZpeeHfu+0FwJqBsiVzrXT+?= =?us-ascii?Q?H7tpXS4BblqEmh22r4WBDn0MT1xxvC2CWOAIRWU/jFaEpcFNYhuopaTaYKWU?= =?us-ascii?Q?9GUp9bfubfy7fSOqRavWpnKiyM0sckgFQjtD+kHCkJAvPtodSZZ2HheSTgRA?= =?us-ascii?Q?6qapfDUbpZVLUSxAMcZ4JnqtnWyrTeDgpy+edT1Tc5RKC2xSlNRtOTRS1+4F?= =?us-ascii?Q?I2QiGJj5yHbUIBeG5paW+OwODmcPkFY3XkcC8Q1YzRVJT8xbBZYNLYvtV6fs?= =?us-ascii?Q?IzoSnUMRYfIGOW5jlbvg51WhrrUzSpcnL3IRDcWI0Cj1Ak6lEomlDMCk4KAN?= =?us-ascii?Q?fotN5FPMOT3bfL7vJ20YD0CPDdYgd7d2q2VCnl1BhISltngaFnj+Zmidx4iv?= =?us-ascii?Q?0/lnYakeuKy0o/7GzgoY5vEHTvUfxo8ZYAlyv5JnzQqVcLC69V0EihtWr3pE?= =?us-ascii?Q?yoOBQ0TJLsZiYvFQpa3StscWoUAQPAAYzBtNIsg22UoYcAaFU4Glikm5FLoZ?= =?us-ascii?Q?pnf4v8ufKeaQBP6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+xsJQpDgpYFLAL2?= =?us-ascii?Q?IEGu/LGSxzLd0osl+YMxc54h7Z+/C3pN30jhsQzSE24YhFbE2xlMIZJz8F3S?= =?us-ascii?Q?FA=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 77a06d1a-5efb-43ca-390d-08da94e2e673 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1632.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 17:19:07.8833 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZTkb5ExnHK2IaUd1k68WJEuB8pHzuSdUf7nOdrZr/uUOx/eQSC0NqUUAnXdvYShyex2k+oUFrhfAhICOyXE08+wk9YvxZUGm4V+uKhd/bW8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR11MB6434 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 12, 2022 at 06:47:56PM +0200, Mauro Carvalho Chehab wrote: > Hi Matt, > > Em Mon, 12 Sep 2022 08:09:57 -0700 > Matt Roper escreveu: > > > > --- a/drivers/gpu/drm/i915/gt/intel_context_types.h > > > +++ b/drivers/gpu/drm/i915/gt/intel_context_types.h > > > > Several of the comments in this file do appear to be kerneldoc (in fact > > kerneldoc that was specifically requested during code review at > > https://patchwork.freedesktop.org/patch/448456/#comment_804252) and this > > file is included from Documentation/gpu/i915.rst, so I think some of > > these changes might be moving in the wrong direction. Should we instead > > focus on fixing up the comments that aren't quite formatted properly? > > Those *appear* to be kernel-doc markups, but they aren't, because > the structs themselves are not properly marked. See, for instance > struct intel_context. > > scripts/kerneldoc will *only* consider what's there as a proper > comment if you add: > > /** > * struct intel_context - describes an i915 context > * > */ > struct intel_context { > union { > /** @ref: a kernel object reference */ > struct kref ref; /* no kref_get_unless_zero()! */ > /** @rcu: a rcu header */ > struct rcu_head rcu; > }; > ... > } > > Describing all fields inside the struct. Just placing > /** something */ > on some random places in the middle doesn't make it a kernel-doc. Right, what we have today is incomplete/incorrect. But I think we should be fixing that by adding the missing documentation on the structure, rather than giving up and removing the kerneldoc. The end goal should be to have proper generated documentation, not just silence the warnings while leaving the actual output incomplete. Matt > > If you actually run kernel-doc in Werror mode: > > ./scripts/kernel-doc -Werror -sphinx-version 2.4.4 drivers/gpu/drm/i915/gt/intel_context_types.h | echo "ERROR!" > ERROR! > drivers/gpu/drm/i915/gt/intel_context_types.h:1: warning: no structured comments found > 1 warnings as Errors > > you'll see that this is currently broken. > > Thanks, > Mauro -- Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation