Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752286AbbBQSdy (ORCPT ); Tue, 17 Feb 2015 13:33:54 -0500 Received: from na3sys010aog109.obsmtp.com ([74.125.245.86]:35357 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751543AbbBQSdw (ORCPT ); Tue, 17 Feb 2015 13:33:52 -0500 MIME-Version: 1.0 In-Reply-To: <20150204140911.GA23076@sloth> References: <20150204140911.GA23076@sloth> From: Roland Dreier Date: Tue, 17 Feb 2015 10:33:30 -0800 X-Google-Sender-Auth: SSMAcE8rN6XtTxuZachIrMnOuSw Message-ID: Subject: Re: [PATCH 1/1] IB/mthca: remove deprecated use of pci api To: Quentin Lambert Cc: Sean Hefty , Hal Rosenstock , "kernel-janitors@vger.kernel.org" , "linux-rdma@vger.kernel.org" , LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1212 Lines: 29 On Wed, Feb 4, 2015 at 6:09 AM, Quentin Lambert wrote: > - dev->eq_table.icm_dma = pci_map_page(dev->pdev, dev->eq_table.icm_page, 0, > - PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); > - if (pci_dma_mapping_error(dev->pdev, dev->eq_table.icm_dma)) { > + dev->eq_table.icm_dma = dma_map_page(&dev->pdev->dev, > + dev->eq_table.icm_page, 0, > + PAGE_SIZE, > + (enum dma_data_direction)PCI_DMA_BIDIRECTIONAL); Surely this can't be right? Shouldn't the direction just change to DMA_BIDIRECTIONAL? Are we really sweeping through the kernel and getting rid of pci_map_ etc. calls? If so please respin your semantic patch so that it doesn't add crazy stuff like (enum dma_data_direction)PCI_DMA_BIDIRECTIONAL and resend the change. Thanks, Roland -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/