From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89352C169C4 for ; Mon, 11 Feb 2019 13:21:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3F8BA218A6 for ; Mon, 11 Feb 2019 13:21:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="QLU/53kW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727623AbfBKNUL (ORCPT ); Mon, 11 Feb 2019 08:20:11 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:57188 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727281AbfBKNUK (ORCPT ); Mon, 11 Feb 2019 08:20:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZyMF3gLLFt208wrapaFmuLi0mloRRDfBEOoJTVoQ5OE=; b=QLU/53kWxylggpvo0q8/f0upd YxxEq4VRj9jwBqV9gxTBvsa9/Nh2+4+Uq5Gk9XWIzTwMR/xUs6la60gvP92Bpb1or9BJ/NmVTMF1H 1fPTIW9OEqPA8gbfLhDR2G+SKedu3fWu9PJI/Yt1xjgycsxz3jSTX4nKM0xwS+zRQrXaav0UXnSu+ J4klZBOCxvD+/0KynmW5wi0Psp6x/tym5QclwR4gvYTf81te2Huow3oruEOdp40pl8OYvCXI8vf6B 7JFu3tkoQjEByycUkI9OAwwEY9jEJvHRstkpYCPM/vfSd7UOkN8zgYf+i6UJMJ35R5sbldoZYdx6I hz+DYnR3w==; Received: from 089144210182.atnat0019.highway.a1.net ([89.144.210.182] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtBVI-0007ga-81; Mon, 11 Feb 2019 13:20:08 +0000 From: Christoph Hellwig To: "David S. Miller" , netdev@vger.kernel.org Cc: Nicolas Ferre , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: net: don't pass a NULL struct device to DMA API functions v2 Date: Mon, 11 Feb 2019 14:19:56 +0100 Message-Id: <20190211132004.29143-1-hch@lst.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org We still have a few drivers which pass a NULL struct device pointer to DMA API functions, which generally is a bad idea as the API implementations rely on the device not only for ops selection, but also the dma mask and various other attributes. This series contains all easy conversions to pass a struct device, besides that there also is some arch code that needs separate handling, a driver that should not use the DMA API at all, and one that is a complete basket case to be deal with separately. Changes since v1: - fix an inverted ifdef in CAIF - update the smc911x changelog - split the series, this only contains the networking patches