Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756498Ab0FQBOB (ORCPT ); Wed, 16 Jun 2010 21:14:01 -0400 Received: from cantor2.suse.de ([195.135.220.15]:38349 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755582Ab0FQBN7 (ORCPT ); Wed, 16 Jun 2010 21:13:59 -0400 Subject: bnx2 fails to compile on parisc because of missing get_dma_ops() From: James Bottomley To: netdev@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, FUJITA Tomonori Cc: Michael Chan Content-Type: text/plain; charset="UTF-8" Date: Wed, 16 Jun 2010 20:13:49 -0500 Message-ID: <1276737229.2847.853.camel@mulgrave.site> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 915 Lines: 34 I'm not quite sure whose fault this one is. However, this code in bnx2.c: if (!get_dma_ops(&pdev->dev)->sync_single_for_cpu) { next_rx_buf = &rxr->rx_buf_ring[ RX_RING_IDX(NEXT_RX_BD(sw_cons))]; prefetch(next_rx_buf->desc); } Looks remarkably fragile: what exactly is it trying to do? The commit that causes the problem: commit a33fa66bcf365ffe5b79d1ae1d3582cc261ae56e Author: Michael Chan Date: Thu May 6 08:58:13 2010 +0000 bnx2: Add prefetches to rx path. Looks fairly innocuous by the description. Should parisc have a get_dma_ops()? We don't need one because our dma ops are per platform not per bus. James -- 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/