Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3235966pxa; Tue, 25 Aug 2020 15:39:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHpH0Rh0Lhrf8sVNQBN0DQy0kl5x0GfCT4JUNCKwWXFXDJgp8YYnewdxr6EdDIa8ot8xeg X-Received: by 2002:a17:907:9cf:: with SMTP id bx15mr4835760ejc.511.1598395151524; Tue, 25 Aug 2020 15:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598395151; cv=none; d=google.com; s=arc-20160816; b=SBQkpWbMr2evUQDViCUoqW+i8Q52qYmASLpPj/wLLQXAjjyvtvydOfQCjlyqUsr9A0 mrMjQuYnzJZXOz45sW81ZdGbq90plQce1bpir032R11B6nbDfDdEn1DRgyLKl2ZI8dma 7mBcNs3yjyvjcDo3MBptTqOJtMTqRk3UxVtOpKqcNDyTfzU7x/Zt31+RVlJaSqxmOeIi LH58ZnvJ4BHkYaWW27TSV6Ea5O5I++WQlzo/gWnT7ttX36y4gY6uX6OnT5XENFtWjKRU r6R80oXmjTvWm1qcJae/f6gHQ2/BnNeZsdTltY24bAkAKga5RvMvXZzxmo38V8oMb45a Zs8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=h8BiWXKFvIak7oPavGawDbOmOCv+Pubth92AHOwlC00=; b=HVUnDyCRrA3Sb7MlM62qlvvfQkHFD3EL2tyNQRWSc3mgY6vMlwQbQX+c2d057nghqz KN2Srz40ROKsgaf58QEVnFi21ZufBy0j6Zc7MBOly/6FZeU8kauG6j1E/xWxL//xwJPn 7/8fBEyxHSTTZeY3U+Ekyje2yR7TCT4t9Pyut6WXtfVjMeAgZLhaUYV7b/KDEPMr9WX6 nNWZWOBeXCo7o1FD+wj17bvg+fSZpzER8OnTytSBwL3UPAnA+zXxL8fvRKKZTiLODgE/ 74fqjEdHUdtutuHPdeZLQUzzr+aJdNFRS+xSFs+/1bGB8CDyKKGm2oxtJ0sXSaEBxBYv /pDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=boHTh43d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si165459edy.540.2020.08.25.15.38.47; Tue, 25 Aug 2020 15:39:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=boHTh43d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726716AbgHYWhL (ORCPT + 99 others); Tue, 25 Aug 2020 18:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbgHYWhK (ORCPT ); Tue, 25 Aug 2020 18:37:10 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37A19C061574; Tue, 25 Aug 2020 15:37:09 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id nv17so228608pjb.3; Tue, 25 Aug 2020 15:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=h8BiWXKFvIak7oPavGawDbOmOCv+Pubth92AHOwlC00=; b=boHTh43dogQAH2Bqfwv2AXfykfHy0x+RV5X91Wvme+uBeXNlBq5si0yT4R4yZOsUq0 AH3lxzT7SvATWjNuMg1kjKCEEFsOjKd1lgW8cq2MWgthIcn3onDVdPGYx8mLCRRxD8dh kIGSn7sDjz/48b6H4eof22zY3NeSMJQOr9sJLRMrfaUWu9jCrL8RbQrk41RLLHKv0LdG fYeIG0UVr1DHBU7HT6ANghU+yok1k+s0BdOcgUv9SD6OKdMQfsnP9P52t2o4LG0mbY48 HdioEbfSIXJ94G8ooWpib8U3fTF5NCo89lFIyMXeTaCiEPlpQGjyxs3ZHpEpkZ4Gu1YR niLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=h8BiWXKFvIak7oPavGawDbOmOCv+Pubth92AHOwlC00=; b=gQba3nRwHCIAzwVUfO80YfTS2X1v+VilANXtBwZgNOkOg76vZ2l4HXgxtHg3rgqcAp IBRGndilD3ZfrhbWc0bXb/w88HdajVlpda9Ij+wH56ODzvp5nAdfotdGisMBX6uOsGEK 03xOHvzpvZnUAWcUFtR6Oq4jYemfVDiDpabXCqnOwPiIgPZB33ZOxkDvTF7Z6Z7z9tAo 73j53jfmwjQQAUGTqVYB4gtJodX5UBawTTE5Lnwz9ktr6AAlsMHxLmIGtOJuTJheEdRQ t70yQkMJrvaJXo50j98s3vG/DuAJ2f7KEq9UWluIJM1325gHrEjnwc/tJe+jQlJVJpFP gi5A== X-Gm-Message-State: AOAM533Ecg+v8wSV7pJZ6WOo2diFQtboa2DPIdaRuqm+JcCIYq2u967t o6n2peSjzkng9dAOnqnx9o0QcqZu9Ozg7g== X-Received: by 2002:a17:90b:298:: with SMTP id az24mr3536902pjb.192.1598395028675; Tue, 25 Aug 2020 15:37:08 -0700 (PDT) Received: from f3 (ae055068.dynamic.ppp.asahi-net.or.jp. [14.3.55.68]) by smtp.gmail.com with ESMTPSA id z25sm268312pfg.150.2020.08.25.15.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 15:37:07 -0700 (PDT) Date: Wed, 26 Aug 2020 07:37:02 +0900 From: Benjamin Poirier To: Coiby Xu Cc: devel@driverdev.osuosl.org, Manish Chopra , "supporter:QLOGIC QLGE 10Gb ETHERNET DRIVER" , Greg Kroah-Hartman , Dan Carpenter , "open list:QLOGIC QLGE 10Gb ETHERNET DRIVER" , open list Subject: Re: [PATCH] staging: qlge: fix build breakage with dumping enabled Message-ID: <20200825223702.GA24803@f3> References: <20200821070334.738358-1-coiby.xu@gmail.com> <20200821083159.GA16579@f3> <20200825111608.2hi52kcqcdjaenki@Rk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200825111608.2hi52kcqcdjaenki@Rk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-25 19:16 +0800, Coiby Xu wrote: [...] > > > @@ -1630,7 +1630,7 @@ void ql_dump_wqicb(struct wqicb *wqicb) > > > (unsigned long long)le64_to_cpu(wqicb->cnsmr_idx_addr)); > > > } > > > > > > -void ql_dump_tx_ring(struct tx_ring *tx_ring) > > > +void ql_dump_tx_ring(struct ql_adapter *qdev, struct tx_ring *tx_ring) > > > { > > > > This can be fixed without adding another argument: > > struct ql_adapter *qdev; > > > > if (!tx_ring) > > return; > > > > qdev = tx_ring->qdev; > > > > ... similar comment for the other instances. > > Thank you for the simpler solution! > > For QL_OB_DUMP and QL_IB_DUMP, `struct ql_adapter *qdev` can't be > obtained via container_of. So qdev are still directly passed to these > functions. That's right; sorry I didn't check those functions earlier.