From patchwork Mon Feb 6 01:03:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 13129239 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 19DDBC636CD for ; Mon, 6 Feb 2023 01:03:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A79326B0078; Sun, 5 Feb 2023 20:03:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A2A866B0083; Sun, 5 Feb 2023 20:03:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 918496B0085; Sun, 5 Feb 2023 20:03:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 8393C6B0078 for ; Sun, 5 Feb 2023 20:03:50 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 612291C2E96 for ; Mon, 6 Feb 2023 01:03:50 +0000 (UTC) X-FDA: 80435069820.29.A09F16A Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf18.hostedemail.com (Postfix) with ESMTP id 52AE51C0010 for ; Mon, 6 Feb 2023 01:03:48 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=gx6W2Yk7; spf=pass (imf18.hostedemail.com: domain of dan.j.williams@intel.com designates 192.55.52.151 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=1675645428; a=rsa-sha256; cv=none; b=Gz6v2FywrcNJoSZCPEh5/mBk2tvV8rMCu5EM0e/O7QIfOJYkrpe7B/d5FvAuthMZrnSX32 kSwKCoIiPnmar9sA4cxWTUwDE++UFm0+79I5VkqGwf20zvdpd9d23DnpODh+IJyKJ9VnxZ tvl5LZaL2bUHtapLiR2XVbEmkFmaEtM= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=gx6W2Yk7; spf=pass (imf18.hostedemail.com: domain of dan.j.williams@intel.com designates 192.55.52.151 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1675645428; 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=PDQ4VDXVLgXkGdPLT1+87HpZN513nvknBCEh5IvZ+p4=; b=Z+Q/mP1kZeU3REznatznNKhYpRFBkkQHEk15eQbCtIGL73XD0BBMPXt8SGCLrwEmqgnanO yq3+eCb8pk8JfjvZkSwnxDfI0ApVxbClx4YkRqLPzrvx7HxS5OAQnVNF+UM26/Gulq672Y WgA9ndWBJPHA77x8xxgBkJJTKrEn2dk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675645428; x=1707181428; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ME8XRCvN/v2Itlb7KzpHyRZDGDqzMok/X5JUlaNFKjM=; b=gx6W2Yk7XxUKIxbtRO/Apx7OhpEQTJ0eQl6sXp0DGths2dlKfgaZ1P4r 0D2q2vibkUfC6QgEdK5GRqChWGVIMrOzisFzB9Zf8wxbjcID73o89BksI Ksz0ca6bY8e7LUixQLwHvXt0ggbUdx4c6OqVRG4RVs6ovr/1XSy3wYUfN zx16ZDXa1ABvplS9N76bKv7VbSQbAKOrQZSc32Wa7acroDOhOcnZufNsC g6zjwEf6PxeGynkPREXyfhGKqfVWEANJrNgCyulAPx4UavrwVeADpR1QV hVYJbz6AaJgT9rIXsUO9vIc9NrjnWKLc55Z0SlV8z72qCoOZkBmi2iMQ3 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10612"; a="309442677" X-IronPort-AV: E=Sophos;i="5.97,276,1669104000"; d="scan'208";a="309442677" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2023 17:03:48 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10612"; a="775006679" X-IronPort-AV: E=Sophos;i="5.97,276,1669104000"; d="scan'208";a="775006679" Received: from mkrysak-mobl.amr.corp.intel.com (HELO dwillia2-xfh.jf.intel.com) ([10.212.255.187]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2023 17:03:47 -0800 Subject: [PATCH 14/18] dax/hmem: Drop unnecessary dax_hmem_remove() From: Dan Williams To: linux-cxl@vger.kernel.org Cc: dave.hansen@linux.intel.com, linux-mm@kvack.org, linux-acpi@vger.kernel.org Date: Sun, 05 Feb 2023 17:03:46 -0800 Message-ID: <167564542679.847146.17174404738816053065.stgit@dwillia2-xfh.jf.intel.com> In-Reply-To: <167564534874.847146.5222419648551436750.stgit@dwillia2-xfh.jf.intel.com> References: <167564534874.847146.5222419648551436750.stgit@dwillia2-xfh.jf.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 52AE51C0010 X-Rspamd-Server: rspam01 X-Stat-Signature: zsyhotekjs1cjohrh5pwso9zdkwirpyu X-HE-Tag: 1675645428-130711 X-HE-Meta: U2FsdGVkX1+8+OdFegyN3153owIuMc/UATABVr2tJuUye0yhwbQ+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2j++CMySDokXxhFPqTEBhczliu7uR88PAz+MVBQPkfwFWm4Pndqp5GqlXbD5Lj2+LCWpHg1n+Z0mDHj55FNOXR8M9a1xwcj7wS0= 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: Empty driver remove callbacks can just be elided. Signed-off-by: Dan Williams Reviewed-by: Gregory Price Reviewed-by: Jonathan Cameron --- drivers/dax/hmem/hmem.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/dax/hmem/hmem.c b/drivers/dax/hmem/hmem.c index 1bf040dbc834..c7351e0dc8ff 100644 --- a/drivers/dax/hmem/hmem.c +++ b/drivers/dax/hmem/hmem.c @@ -44,15 +44,8 @@ static int dax_hmem_probe(struct platform_device *pdev) return 0; } -static int dax_hmem_remove(struct platform_device *pdev) -{ - /* devm handles teardown */ - return 0; -} - static struct platform_driver dax_hmem_driver = { .probe = dax_hmem_probe, - .remove = dax_hmem_remove, .driver = { .name = "hmem", },