Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3613944rdb; Wed, 27 Dec 2023 13:21:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8Skunsz/yvQA2bsoOudH/bM9Li+PPTjH/e+esZXWhoKbMeGO4ytiFCSgG6DvFBFD4xZLl X-Received: by 2002:a17:907:9058:b0:a23:1c51:40a6 with SMTP id az24-20020a170907905800b00a231c5140a6mr3568400ejc.104.1703712092351; Wed, 27 Dec 2023 13:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703712092; cv=none; d=google.com; s=arc-20160816; b=WZGjZJZhkFdwLzialNiRIe1J8eLOd1UpH8w0KLclJv53iKh7lQTETBhxvojv6cm2LB WlYL/jeT25O3ZEXstd76XkFxDivWoXsl6dZx3wwXAeDkHeJcNi75dcec+Iqj+MZVY3+c CoilVou8voGd1DxtH0d4QzN5K+XXAjZHylKZwCXhB929uqLP/jEcNw4NFmlNe38wmVVB Uwu5/JPZ6wp1uNTSYgcDj0Z8xVRWF0WKIaLfOyi4sA1gQPcjuPPjLTznlYDJL/V6E9+4 PwaFpIZpz6HSVo6MML5+JcY3Q8FS3fRCtC8e9HkZAoSz6OQ3+aCxIxJm2i3vvKVZ0hGO 4jvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=HCosurRW6yUv7qxc0Aw6J2XZAhZw5XHFPIkEQJBxiBA=; fh=EhSXUu2RDkwgFDz7dR3MhsAo0mrMUHkW4nWiJiiKnbQ=; b=qaSDAj3EAv/Zh5d2RkwNb1nBciwf+wMm1nRHAptYXM3mbxIGEcud5swc8CtTlvsYIw V7f9zPOxHvy2+9odmQeKjzfFwU7HzpNh4PSTyCBh7K9Cs2o2MsPN3kzcCSRTs1wrg7iV gL4uIjtPLdL1O89+Ff3PMp3+37LyUgiB5KwreZzKLwZZbDh+PsrOksj2yy2OTs0ImCUD 1quF6+IGz1dk01WX/BZoXHyyqWFtHV6gCf0aMDdKd/snB+w4AGQY5rqfr7XBWvCL3o28 Tb4znxkgPzZbapMgIYImZUX3Cwf7R95KfHMFTNPOhbu5kKves2qfJTlcD+KfTdD4M5oc YV4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=LLxrhLs2; spf=pass (google.com: domain of linux-kernel+bounces-12272-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12272-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p9-20020a170906604900b00a26e651c66asi3496429ejj.45.2023.12.27.13.21.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 13:21:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12272-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=LLxrhLs2; spf=pass (google.com: domain of linux-kernel+bounces-12272-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12272-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 17E981F2302E for ; Wed, 27 Dec 2023 21:21:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 277D7481C1; Wed, 27 Dec 2023 21:21:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="LLxrhLs2" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A885945945; Wed, 27 Dec 2023 21:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=HCosurRW6yUv7qxc0Aw6J2XZAhZw5XHFPIkEQJBxiBA=; b=LLxrhLs2Od+xYkbwxREDMUjrEl lJafovGRc3uINC/tv8CpNM01fWSnC8Jko3VfrgBHinBVFihxHhmj3nMPpP4BO5fpIRhnarLiItNHP /IT+eOreTmub39N1/oc2Ec6vN0blQRpL/2ROXX91e3N7ef77Wi3U1AU7QzGiPHAKzwvTQ4x7+euh6 Wf21bkT9SzouS0jT2Pgj309S4ZtaXTraAOlviTL4sCGL69mValcSJglXeXQNWIghGm8/uDzdZgo/H yS97LOo4Jn+9sCRGFsXjsPYXvkvB8HYoEbyepQccMkxnXXJx9I5liBvQFywKE4F1rypY/bq9ecpTO xN6/LZFw==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rIbKt-00FWn3-27; Wed, 27 Dec 2023 21:21:07 +0000 Message-ID: Date: Wed, 27 Dec 2023 13:21:05 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/7] resource: Use typedef for alignf callback Content-Language: en-US To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Andy Shevchenko Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Igor Mammedov , Lukas Wunner , Mika Westerberg , "Rafael J . Wysocki" , LKML References: <20231222122901.49538-1-ilpo.jarvinen@linux.intel.com> <20231222122901.49538-5-ilpo.jarvinen@linux.intel.com> <8161e59d-2122-562c-dcc7-f772ddbcbdf@linux.intel.com> From: Randy Dunlap In-Reply-To: <8161e59d-2122-562c-dcc7-f772ddbcbdf@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12/27/23 07:54, Ilpo Järvinen wrote: > On Fri, 22 Dec 2023, Andy Shevchenko wrote: > >>> +/** >>> + * resource_alignf - Resource alignment callback >>> + * @data: Private data used by the callback >>> + * @res: Resource candidate range (an empty resource slot) >>> + * @size: The minimum size of the empty slot >>> + * @align: Alignment from the constraints >>> + * >>> + * Callback allows calculating resource placement and alignment beyond min, >>> + * max, and align fields in the struct resource_constraint. >>> + * >>> + * Return: Start address for the resource. >>> + */ >>> +typedef resource_size_t (*resource_alignf)(void *data, >>> + const struct resource *res, >>> + resource_size_t size, >>> + resource_size_t align); >> >> Never saw typedef kernel-doc before, so hopefully this will be rendered >> just fine. > > This was a good point. It seems that one has to prefix the name with > typedef like this: That's correct. > > /** > * typedef resource_alignf - Resource alignment callback > > ...otherwise scripts/kernel-doc attempts to parse it as a function > kerneldoc. ack. Thanks. -- #Randy