Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp81345pxa; Fri, 21 Aug 2020 01:33:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiNhPjUKB1OBR8PUz37BMTVqJob+VrutBbNsgn3V7hMNQuMHaxYbroFnXdjS2Z5wwFK+Of X-Received: by 2002:a17:906:5206:: with SMTP id g6mr1907783ejm.292.1597998797245; Fri, 21 Aug 2020 01:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597998797; cv=none; d=google.com; s=arc-20160816; b=sPxw8C87EG/1UxGvlR12CW2MQJY7oyp5kYJHOih0XPpInPVsv7TaddV5PNM0S84InS pXpDpWbDKdCZ7pfAFDg81O8LBWZdZ3XHSnF7iBSUl4zXIByvoDxP7I/I6ZKgXiq48soe FoKEfBnefs+QrvDpCNeI5zU5EF1A+fo0yNk29GYxmfqnSZQdzn2fvs0U3ijYQv0gQlu+ HsHxnZBMI9QjoNkaLtvEFlNklBRB5LD7lBd04QbBzIgAtyJYysGObvhXynbDkRDrvM8X manzOfDzc/xHyEP3KtchB9oFdRrf0Fwxtv7ePie6sCDjd60ewT8kcJL+FOTptVKXEG+j DtKQ== 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=KMEAgxnLavJYQ3i7i0cZ9PJqwCosdeDVQ11vARt76rw=; b=Nv3JQSz3GiPZW6yxqrCQJ3RKc1VbsZ6/FKKqYlzs0001lljp7uwQosZthpg3RWjxNw 022Vjz2eYv/xMzYbRNUyXEdKPduSo2xuVtR19nAkMjmea+OxsQl7Q1ScxsfrgVAmkGPi 4xM4xijmv9kFdTgBxCvnAZdBwZKqXJnx+fAxs/aFXtq99P0kdrXzDxiFwLE4TzwAki5M n4TQ5mmbJqwAPB7YjlSeoET1wl3WvIygsFpT5PWxV7hTnP+R3go9Pr5ilHegi0gK/NbZ yRqi8ArLzn8KB9P3qhkmsdGVSFQLpod3FNsBuvY66hN8dw8K6g+mUTO8DImkr/tOj53R 2yjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rCloECpY; 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 n6si711877edr.494.2020.08.21.01.32.53; Fri, 21 Aug 2020 01:33:17 -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=rCloECpY; 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 S1727988AbgHUIcG (ORCPT + 99 others); Fri, 21 Aug 2020 04:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbgHUIcG (ORCPT ); Fri, 21 Aug 2020 04:32:06 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB9A2C061385; Fri, 21 Aug 2020 01:32:05 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id t11so570638plr.5; Fri, 21 Aug 2020 01:32:05 -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=KMEAgxnLavJYQ3i7i0cZ9PJqwCosdeDVQ11vARt76rw=; b=rCloECpYonB62tNgFfIMULBA2l11JvstqurZvSoGX36qItHs8DIN1qsnEfoVaTaES+ IGdSc4WgHoKYgJbeYmtL6DxV3M7Ifjnbt23iDuSa3BA7Szy2838CCveQQs/XElpWznN8 alcOACr6VrPT9+DmM8ROYMm5EqY+Lno+QZ6omVbihWH1N0SwX+qjrNAPiHoNOly44DkK Hub0pOmgLfn+T62btisPy5NXMhDEqtt9ATNtdjQsfZ6fpnLyLnPZTenRV9yWkHRoATjJ Uewm1JxRSh83BjAYUUJVCrs396P6orRjfC0nh/pkBFgMKUplbZFsnmJw1vRLI2KXNHCf SFPA== 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=KMEAgxnLavJYQ3i7i0cZ9PJqwCosdeDVQ11vARt76rw=; b=YRizbMu+ZimRXzIbPpDAmwsf27GStFf+CwWdYFRggjKAwl8ukBxnSixS/FOsYtAcF4 CdGH0WbqK7NugCJTbDv3+gbD7wq7G4gEOvx1n7EtQAy5ESWPVR4C8yvVXnAJvYKjx5uK P73Aw8zpPC6rLnA7owRZoM0Ci71hHgeRdEh6kJPj2cjOTosgt3iEI/UDZkxw5rfuH/7N aAX+Qdtu0X4rsaNqnFIkWgm0+sJsFZf64QehfyaMYU+gZFQwoPj16ZLWS7jdWTyh99Ez woPBz4S+bglTG0eJ3PrZcdVzKIvfZYREwqGv9Cu3wjE+yoOowj/Z07jberuda/DG3IIS JjgA== X-Gm-Message-State: AOAM533qSzuzfqKak3n5RJPYzS6N3Txw5sQk0o5eiYiVrvZmldKzjKR9 OMGp9vq+1rJEJQu090oyj08= X-Received: by 2002:a17:90a:1a42:: with SMTP id 2mr1569913pjl.16.1597998725448; Fri, 21 Aug 2020 01:32:05 -0700 (PDT) Received: from f3 (ae055068.dynamic.ppp.asahi-net.or.jp. [14.3.55.68]) by smtp.gmail.com with ESMTPSA id x23sm1617741pfi.60.2020.08.21.01.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 01:32:04 -0700 (PDT) Date: Fri, 21 Aug 2020 17:31:59 +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: <20200821083159.GA16579@f3> References: <20200821070334.738358-1-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200821070334.738358-1-coiby.xu@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-21 15:03 +0800, Coiby Xu wrote: > This fixes commit 0107635e15ac > ("staging: qlge: replace pr_err with netdev_err") which introduced an > build breakage with dumping enabled, i.e., > > $ QL_ALL_DUMP=1 QL_OB_DUMP=1 QL_CB_DUMP=1 QL_REG_DUMP=1 \ > QL_IB_DUMP=1 QL_DEV_DUMP=1 make M=drivers/staging/qlge > > Fixes: 0107635e15ac ("taging: qlge: replace pr_err with netdev_err") ^ staging > Reported-by: Benjamin Poirier > Signed-off-by: Coiby Xu > --- > drivers/staging/qlge/qlge.h | 42 ++++++++++++++++---------------- > drivers/staging/qlge/qlge_dbg.c | 36 +++++++++++++-------------- > drivers/staging/qlge/qlge_main.c | 4 +-- > 3 files changed, 41 insertions(+), 41 deletions(-) > [...] > @@ -1615,7 +1615,7 @@ void ql_dump_qdev(struct ql_adapter *qdev) > #endif > > #ifdef QL_CB_DUMP > -void ql_dump_wqicb(struct wqicb *wqicb) > +void ql_dump_wqicb(struct ql_adapter *qdev, struct wqicb *wqicb) > { This can be fixed without adding another argument: struct tx_ring *tx_ring = container_of(wqicb, struct tx_ring, wqicb); struct ql_adapter *qdev = tx_ring->qdev; > netdev_err(qdev->ndev, "Dumping wqicb stuff...\n"); > netdev_err(qdev->ndev, "wqicb->len = 0x%x\n", le16_to_cpu(wqicb->len)); > @@ -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.