From patchwork Fri Oct 14 23:58:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 13007527 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B51BC4332F for ; Fri, 14 Oct 2022 23:58:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D5BF76B0075; Fri, 14 Oct 2022 19:58:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D0BBA6B007B; Fri, 14 Oct 2022 19:58:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BD32B6B0080; Fri, 14 Oct 2022 19:58:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id AB07F6B0075 for ; Fri, 14 Oct 2022 19:58:17 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 87C93C0EE9 for ; Fri, 14 Oct 2022 23:58:17 +0000 (UTC) X-FDA: 80021221434.03.968224F Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf28.hostedemail.com (Postfix) with ESMTP id BE2C8C0025 for ; Fri, 14 Oct 2022 23:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665791896; x=1697327896; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OlpG3VRQCEZ3qIcp9NWr5Pa3mRwDZ2m4hWtsSsuZz64=; b=lio0Y68O1C9r86Q1iN3iGRzKMR4lLkF0crYiAxJycbNXzBQX4V8zHAF6 izmYKPEqQwWaFlsRo4hNiwQT3cAobfn3KMyM27uypvnLgJKja8lGjrEPf WNhPzba4Pz7bAR9i8HSjEJZV9H3SV6lve4i8hARvcL42gFMsLCLzsSmI8 OSwvzZ6XkXbBfeJxW2++cbs/+6fJBQhXu9btF6i9l0JpvlO8OxcR7h3C/ k2WvnYOfrk9Ztl+v8sY19tv6RTKFZUByH1CYAI6HcP2sCPaAQM8cU+e50 jjZSCXyl5WKPgfSNdEe9/Jz0hG8gwFqjqTR4CemuLSeytKUTsVStcuORg Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10500"; a="305485739" X-IronPort-AV: E=Sophos;i="5.95,185,1661842800"; d="scan'208";a="305485739" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 16:58:15 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10500"; a="630113460" X-IronPort-AV: E=Sophos;i="5.95,185,1661842800"; d="scan'208";a="630113460" Received: from uyoon-mobl.amr.corp.intel.com (HELO dwillia2-xfh.jf.intel.com) ([10.209.90.112]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 16:58:14 -0700 Subject: [PATCH v3 13/25] devdax: Minor warning fixups From: Dan Williams To: linux-mm@kvack.org Cc: david@fromorbit.com, hch@lst.de, nvdimm@lists.linux.dev, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org Date: Fri, 14 Oct 2022 16:58:14 -0700 Message-ID: <166579189421.2236710.9800883307049200257.stgit@dwillia2-xfh.jf.intel.com> In-Reply-To: <166579181584.2236710.17813547487183983273.stgit@dwillia2-xfh.jf.intel.com> References: <166579181584.2236710.17813547487183983273.stgit@dwillia2-xfh.jf.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=lio0Y68O; spf=pass (imf28.hostedemail.com: domain of dan.j.williams@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1665791897; a=rsa-sha256; cv=none; b=aAeTGtFidg1dETDlm629R6QGJ0hM2OxfH/xIxLqrzNXnKQouzBiCaqm/lgJCdozWnLda5M UHh32tWmt3eDT+szvEiPjJJfxuMFY0se4UnHy0SldC4CvTGP8GuaRQQEZYgiw3muC7DywN ZGpBoNDGPM8nA4rQw1UOUOsFtV/ZAzU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1665791897; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=v05IosCNqJNFc5WZNd75kkfaDrA32p/5jG35re+aPa8=; b=AbfHUA5qBU9TxSqYmjmYNoNfPItj30uyT1j9NpNYjbCq7OY75+akAjS6oZVnRMQs+6ZqAB tBc+7RFC7Hto/jg8V+nr5MEozqD89J8oO1m4hR4PuZwJhdeyv7wbvUUXnnRElzLKfrzlqx dX/1SfRqkdqxZ8sjjj9ofRlE1XQfpFc= X-Rspam-User: X-Stat-Signature: xrkq5g9qhi3w153iwzj19soz3tdynku7 X-Rspamd-Queue-Id: BE2C8C0025 Authentication-Results: imf28.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=lio0Y68O; spf=pass (imf28.hostedemail.com: domain of dan.j.williams@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam07 X-HE-Tag: 1665791896-747461 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Fix a missing prototype warning for dev_dax_probe(), and fix dax_holder() comment block format. These are holdover fixes that are now being addressed as some fsdax infrastructure is being moved into the dax core. Signed-off-by: Dan Williams --- drivers/dax/dax-private.h | 1 + drivers/dax/super.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h index 1c974b7caae6..202cafd836e8 100644 --- a/drivers/dax/dax-private.h +++ b/drivers/dax/dax-private.h @@ -87,6 +87,7 @@ static inline struct dax_mapping *to_dax_mapping(struct device *dev) } phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, unsigned long size); +int dev_dax_probe(struct dev_dax *dev_dax); #ifdef CONFIG_TRANSPARENT_HUGEPAGE static inline bool dax_align_valid(unsigned long align) diff --git a/drivers/dax/super.c b/drivers/dax/super.c index 9b5e2a5eb0ae..4909ad945a49 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c @@ -475,7 +475,7 @@ EXPORT_SYMBOL_GPL(put_dax); /** * dax_holder() - obtain the holder of a dax device * @dax_dev: a dax_device instance - + * * Return: the holder's data which represents the holder if registered, * otherwize NULL. */