From patchwork Tue Mar 31 13:24:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boaz Harrosh X-Patchwork-Id: 6129841 Return-Path: X-Original-To: patchwork-linux-nvdimm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E95C3BF4A6 for ; Tue, 31 Mar 2015 13:24:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10440201F4 for ; Tue, 31 Mar 2015 13:24:15 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 32A97201EF for ; Tue, 31 Mar 2015 13:24:14 +0000 (UTC) Received: from ml01.vlan14.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 285E980F81; Tue, 31 Mar 2015 06:24:14 -0700 (PDT) X-Original-To: linux-nvdimm@ml01.01.org Delivered-To: linux-nvdimm@ml01.01.org Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7F44480F80 for ; Tue, 31 Mar 2015 06:24:12 -0700 (PDT) Received: by wgbdm7 with SMTP id dm7so19084603wgb.1 for ; Tue, 31 Mar 2015 06:24:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=3C2w0WSRK3qB5xjRgIjAt+5zFZ9ex+645bfbPQ3UK00=; b=BXqJ3oq9WLCcaQ8ToAkiioQjOdSFp9Ebb8jjkheAK4T2b8pOLeXjWR+4mw2Q8weM41 7kIjgByi73MgXB00Qtin28pLsbkVFWfSAyhRFbWuww1wR8q7IHY65IByNTWfjxLS6Qhu v1rl5zzLZsj8J1xZoRwAJsPG02aspqyChoM96xUFpkpixRDsO73KTGiynKkw1F8fdqmx 0N6yf0iFIuG7BZmeSpr5l9cq7dPhtEU/YDvOZN7UHshuJd6KDWlxI7kXDiVPkLJhSQzd NCMnTGh2uGh2yhLwxDUnMPVuiYBSiXqioUgVn8zkMoAHwLmbMc+WiWs0tgNiKUxYXDYD 9jDQ== X-Gm-Message-State: ALoCoQnMnHt8YpMxtOToXxw+vxhN+W7dx+sHXnHkNC+6ApjBAiuG5hx4BadhJmXT2YmiA8AmMTRe X-Received: by 10.180.13.145 with SMTP id h17mr5605608wic.38.1427808251209; Tue, 31 Mar 2015 06:24:11 -0700 (PDT) Received: from [10.0.0.5] ([207.232.55.62]) by mx.google.com with ESMTPSA id g2sm24704800wib.1.2015.03.31.06.24.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 06:24:10 -0700 (PDT) Message-ID: <551A9FF9.80509@plexistor.com> Date: Tue, 31 Mar 2015 16:24:09 +0300 From: Boaz Harrosh User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Christoph Hellwig References: <1427358764-6126-1-git-send-email-hch@lst.de> <55143A8B.2060304@plexistor.com> <20150331092526.GA25958@lst.de> <551A9EB3.8000605@plexistor.com> In-Reply-To: <551A9EB3.8000605@plexistor.com> Cc: axboe@kernel.dk, linux-nvdimm@ml01.01.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [Linux-nvdimm] [PATCH 2/6] SQUASHME: pmem: Remove getgeo X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove getgeo. It is not needed for modern fdisk and was never needed for libgparted and cfdisk. Signed-off-by: Boaz Harrosh --- drivers/block/pmem.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/block/pmem.c b/drivers/block/pmem.c index 545b13b..dcb524f 100644 --- a/drivers/block/pmem.c +++ b/drivers/block/pmem.c @@ -44,15 +44,6 @@ struct pmem_device { static int pmem_major; static atomic_t pmem_index; -static int pmem_getgeo(struct block_device *bd, struct hd_geometry *geo) -{ - /* some standard values */ - geo->heads = 1 << 6; - geo->sectors = 1 << 5; - geo->cylinders = get_capacity(bd->bd_disk) >> 11; - return 0; -} - /* * direct translation from (pmem,sector) => void* * We do not require that sector be page aligned. @@ -214,7 +205,6 @@ static const struct block_device_operations pmem_fops = { .owner = THIS_MODULE, .rw_page = pmem_rw_page, .direct_access = pmem_direct_access, - .getgeo = pmem_getgeo, }; /* pmem->phys_addr and pmem->size need to be set.