Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3453819rdb; Wed, 27 Dec 2023 07:55:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2V3eG1OBIVUtEVN914ZN/AeRr03mQRPNSPOsh86iGkFb6ovBUqYOtFZ/H9upVHvOt8m9S X-Received: by 2002:a17:906:2:b0:a26:98ee:9fc0 with SMTP id 2-20020a170906000200b00a2698ee9fc0mr4722250eja.43.1703692508670; Wed, 27 Dec 2023 07:55:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703692508; cv=none; d=google.com; s=arc-20160816; b=jPbm2C1JlMEOvhFazSNJTmnmH2q7h5Jiau7hGPdgCsJF8EE4OOlRaedCQpJ6FjgEYM fSrZ1ywxdLGNHGwZ37tOtr1Khgoa9WRj7XLD982S5Ha3ZPO00gARCEhQQn4CPdWnb0ID wUSMdjh42lAo3uGger0LtaODRip+jMFrC9ERQ/KcZoolyDDPg0ePVtJ8m1Yzams0ytyY dd9hRK7Jh49ON/vc4oIxbBoGeIlKom5CyI3HW0DCvAkKho/UE6bscw5bgGl8WwJDyCun IKOqKK3W5PV2GWwcCis9oT8bzh6JmtrZXcW8xQD/JhFq6YA23kVPHHugdtVzJTF+tD/C KaLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=uolAWVT59bPtiueLF/MOoVKueUwhx3RymzzyGJVW3pY=; fh=sDizP1Dx+BVRZHcruW5TNvTxUIWHuPL59OhH6TUmlQc=; b=VMK1oqtyKfyNaNyvYGbqRuJypLphA6q/I6ejX31AwxnCU3+Y1UZeeDlAIDYm7uwdd7 SQ+zLlp6duUO8LBJhQIEwXuF+sFdFQ0sX8LmV0Gfb/yblnUK9OGTXxRsRPENsC2q/BQf j7XKABQQ47fMMigQYec71bLN2iJXiPKkPv4RuNh8TLYMSnWAzVOW/q3bUroc9kxugm+z +JKlYPyZIZCiTRAPpMMTAgrKmAkphgozQUVd/6eJBwxGKnszgIjlp02uEwOe1W941LIw AqP/qkvxaBuc6JkKRd81SOxmUIc/6Lz0rIVFr5vxr9DlAshlxG4V2c35aLybXJ7K8pc2 UOUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kKFJvYrq; spf=pass (google.com: domain of linux-kernel+bounces-12094-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12094-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lo27-20020a170906fa1b00b00a2356f7d169si6389238ejb.352.2023.12.27.07.55.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 07:55:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12094-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=@intel.com header.s=Intel header.b=kKFJvYrq; spf=pass (google.com: domain of linux-kernel+bounces-12094-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12094-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 6E2DC1F21E5A for ; Wed, 27 Dec 2023 15:55:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14C9D45BE5; Wed, 27 Dec 2023 15:54:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kKFJvYrq" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) (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 6BF3545944; Wed, 27 Dec 2023 15:54:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703692496; x=1735228496; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=Kt+PoKLue3EeaX8V4OySRQxkfd3AdJlStYxInfcd38Q=; b=kKFJvYrqt+/8o7hqlHfxrSZ05Jl9d7aSW7O1ywZVf719BQ3xKFSrjNz2 O46i5prgdSAQqbz6WbKQDQ12m1utpPBLcbFbmJuh8zeRJpUNPTWZjKb18 ix6P/+RGfNvTjqkf8wtuoUz7Z9WQeSP2vZexJZuC0bqy4MPrQPcLWZWfD oSawrzPuyeEgdNn/xYFXQQ8AdaAOVKXNBZ5H0PIjfj9vU9hf+6mmQGHt5 L6ZdBJLcQx0q59tk5thuyo/iejAoCUi3V8aKXgFfARAV93692ObCVBZAK ZHJy6Ytap91JHG2ONzpawavzRt+G6ZXrUfzlRWyYkxoGBnurT7wWvXd7P A==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="462878155" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="462878155" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 07:54:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="951528702" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="951528702" Received: from hrmarapi-mobl1.ger.corp.intel.com ([10.249.35.233]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 07:54:52 -0800 Date: Wed, 27 Dec 2023 17:54:50 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Andy Shevchenko cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , =?ISO-8859-2?Q?Krzysztof_Wilczy=F1ski?= , Igor Mammedov , Lukas Wunner , Mika Westerberg , "Rafael J . Wysocki" , LKML Subject: Re: [PATCH 4/7] resource: Use typedef for alignf callback In-Reply-To: Message-ID: <8161e59d-2122-562c-dcc7-f772ddbcbdf@linux.intel.com> References: <20231222122901.49538-1-ilpo.jarvinen@linux.intel.com> <20231222122901.49538-5-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: /** * typedef resource_alignf - Resource alignment callback ...otherwise scripts/kernel-doc attempts to parse it as a function kerneldoc. -- i.