Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2900439pxk; Sun, 4 Oct 2020 17:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFaGcY1g1AZA/2nFrBm/vdSZ+f2/mGaDYlucA7eE4DPwQ5PZ2G3/3gOBREOLBMKnPP7bfI X-Received: by 2002:a17:906:b4e:: with SMTP id v14mr12593301ejg.179.1601856087555; Sun, 04 Oct 2020 17:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601856087; cv=none; d=google.com; s=arc-20160816; b=AbveWCA2pxXalXr0cg5VGYBJp9VRZKZAcOCUfez4IKii9K/Zje1L5bfcUGBN4vgNPC TCW42Jlm1dD83glcQ9A+1cl9rrGUGH/+LlfZeMEsySNpJLSpbJFEIycwAM2oeLT/xHJ7 NNp33bHrwiqEuoThFYRunJtB5HsZwZqHO+J3lg+/PZI95OZKFAE4n8Ubk3GrLriAYthC bQsoz/cdes/C6Z6nhv7EVosra0TlQQfInThMKMdklYjl2AkIY4Cxeu++hMyImoB57l8U 96Zc21pkI56QBId+kDUxMzJvTpL3W860X/hhxisEYwGvc2iiem36uTLvgWIAG1/mBBeU pPWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D0XrjGNpHDFsmwtiuJ2IjixWsPGZ7fiNnf/mc72+SJU=; b=x+iE7px+8K/1oPV8ZXrD4WNU0Hsw/nswqQKOZbeIKYlJlvGFuh2ZxNH4mL5IIEH8pl M3iBeLaz40FP3wN6cM0zswV2KcnbaL4VszZ5mEQgrspE70847GWd65aWTLYo7mS0BJFc 5d2fWeJ+Gd8SCw2FmaT+aRvCu/OJseamoGUeqRQiLobT05Ti9hnwKZQiSaygEDdCtA7G hqV4CUB9fQVhHh1diefeikif6vbKkk43l8PrQzpd/oaxncn6iwjOmwU6KG23HSVXTdHy 1uw8X24GGU9MI+rx3THGy7vHLEJUbYBnow/J//Y4IUG5y+mdR0X0Bf7DSYyLMEiw22QY kutA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KuhOwWCI; 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 w19si5515934ejz.162.2020.10.04.17.00.49; Sun, 04 Oct 2020 17:01:27 -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=KuhOwWCI; 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 S1725849AbgJDX7Y (ORCPT + 99 others); Sun, 4 Oct 2020 19:59:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbgJDX7X (ORCPT ); Sun, 4 Oct 2020 19:59:23 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6B7AC0613CE; Sun, 4 Oct 2020 16:59:23 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id x2so4345266pjk.0; Sun, 04 Oct 2020 16:59:23 -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:content-transfer-encoding:in-reply-to; bh=D0XrjGNpHDFsmwtiuJ2IjixWsPGZ7fiNnf/mc72+SJU=; b=KuhOwWCI11VVGNZg8HT8PDuLKMByoX64pq0TNg+CFYEhRcOWnY5scWFQi6a9HjuvFL /byE5nFgjyXeRHP7lRDahUyKKs1dVx0anjOfYLTbna+zv4QYvmmiLuTEcS+4dNgmtZXl 2efgAj34C1uw4KNahhp7x1TeARbVkCklfu3Cy13jprAKzRY3cHcMzcSR62VxVv91PqKV Bdb3JDvLO2wO20ZEekmxPI9zrxJ2TdOlFrVxh9uVHYTTB82FosIKFRp3aK29av8esAwu ls2S7PpsDx3xmWewKu4hNhuiPVXeV/ukk5+b+4PT/aPDxdoQlfTShXI0gPnk/y6hEJEF NP9A== 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:content-transfer-encoding :in-reply-to; bh=D0XrjGNpHDFsmwtiuJ2IjixWsPGZ7fiNnf/mc72+SJU=; b=fzbD9Nb+9G681TcWURBpD3pWKRXqyP+TwIEs4JY3c23waMcFqEv4BsBe2+WcOOf9DP 5G647t5DXnpD6aE0c5A4wSwJeXz4CyIpjUpcXKi5CHzidVrAUQGWd5AhHK9vbbmWb+dj evhC3wA5NktbnQi4I0JUGgz/9Xc1EkBtW+xEcpgQXOgEnXNsqAtLgGaBAf/+PW/2t8iD wTteqyhS1/rMIRTVzTt/rojuDinVmFLpx3ztHiKt4JcTrlD7cp5v8xQO3k6DT8srfh4d dH6lTJvrMNxnOvKE4vXMpUs9smDbhExPH5bLTvx8cLqnPMLIAKHWHgu9uWOjhsR3yZXU wHGg== X-Gm-Message-State: AOAM533GbhkCF2KD+zscC0ptK77NEaqBLFFhbBVCar22QXzCwOXOGHQ/ zF1RVjn1zJXxuaksYUfK+DDHFCMlLbBceQ== X-Received: by 2002:a17:90a:b285:: with SMTP id c5mr13486274pjr.44.1601855963238; Sun, 04 Oct 2020 16:59:23 -0700 (PDT) Received: from f3 (ae055068.dynamic.ppp.asahi-net.or.jp. [14.3.55.68]) by smtp.gmail.com with ESMTPSA id g4sm8623298pgg.75.2020.10.04.16.59.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Oct 2020 16:59:21 -0700 (PDT) Date: Mon, 5 Oct 2020 08:59:16 +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 v4] staging: qlge: fix build breakage with dumping enabled Message-ID: <20201004235916.GA25722@f3> References: <20201002235941.77062-1-coiby.xu@gmail.com> <20201003055348.GA100061@f3> <20201004152230.s2kxna2jl2uzlink@Rk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201004152230.s2kxna2jl2uzlink@Rk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-04 23:22 +0800, Coiby Xu wrote: > On Sat, Oct 03, 2020 at 02:53:48PM +0900, Benjamin Poirier wrote: > > On 2020-10-03 07:59 +0800, Coiby Xu wrote: > > > This fixes commit 0107635e15ac > > > ("staging: qlge: replace pr_err with netdev_err") which introduced an > > > build breakage of missing `struct ql_adapter *qdev` for some functions > > > and a warning of type mismatch with dumping enabled, i.e., > > > > > > $ make CFLAGS_MODULE="-DQL_ALL_DUMP -DQL_OB_DUMP -DQL_CB_DUMP \ > > > -DQL_IB_DUMP -DQL_REG_DUMP -DQL_DEV_DUMP" M=drivers/staging/qlge > > > > > > qlge_dbg.c: In function ‘ql_dump_ob_mac_rsp’: > > > qlge_dbg.c:2051:13: error: ‘qdev’ undeclared (first use in this function); did you mean ‘cdev’? > > > 2051 | netdev_err(qdev->ndev, "%s\n", __func__); > > > | ^~~~ > > > qlge_dbg.c: In function ‘ql_dump_routing_entries’: > > > qlge_dbg.c:1435:10: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=] > > > 1435 | "%s: Routing Mask %d = 0x%.08x\n", > > > | ~^ > > > | | > > > | char * > > > | %d > > > 1436 | i, value); > > > | ~ > > > | | > > > | int > > > qlge_dbg.c:1435:37: warning: format ‘%x’ expects a matching ‘unsigned int’ argument [-Wformat=] > > > 1435 | "%s: Routing Mask %d = 0x%.08x\n", > > > | ~~~~^ > > > | | > > > | unsigned int > > > > > > Note that now ql_dump_rx_ring/ql_dump_tx_ring won't check if the passed > > > parameter is a null pointer. > > > > > > Fixes: 0107635e15ac ("staging: qlge: replace pr_err with netdev_err") > > > Reported-by: Benjamin Poirier > > > Suggested-by: Benjamin Poirier > > > Signed-off-by: Coiby Xu > > > --- > > > > Reviewed-by: Benjamin Poirier > > Thank you! Btw, I guess when this patch is picked, the "Reviewed-by" tag > will also be included. So I needn't to send another patch, am I right? I think so. Maintainers usually take care of adding attribution tags from followup emails and that's what Greg has done for your previous qlge patch it looks like.