Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2687411pxk; Sun, 4 Oct 2020 08:24:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu6kow6Eccl6dokGhy/gtbqJoU6en61Apmr3hHRktu0ab4KDGe99R8KblmQs2RdOi8Ns6P X-Received: by 2002:a17:906:7113:: with SMTP id x19mr11192433ejj.59.1601825083786; Sun, 04 Oct 2020 08:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601825083; cv=none; d=google.com; s=arc-20160816; b=MMxyw7GpU06B4YsCB+AgwzXwuPheGfjtoMJLD60oxANRMzYbH3kAASj+nfE7Q2uk++ i12ViVBHqCQU22uVgs4Ox8EymmzN8j8tcgL3+TcIylOr/Hjy0W0Cm8ulk7SXwVHPjrqO kR/Tgglo6npUTlHHJy26HIc136atKx7C7TjRbKqgNm3Gswrzfj9sZ9WwLqyntgZO1m8z xygnhpnaikFETf2dDTq7kZMrc978JS8XlXqgbaiV4Sxg6uegOWqi3OiqSzJ8qtZLk1tX ug1yKImzcMC5hUxRdlhJueQAv4oYvxkXq1BFQYxHfEuPVAw7P5OEESyoXvEyiZVmK8ms wojg== 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:date:from:dkim-signature; bh=pvroqbRx5SZxuMfn0fG0rh4X/fjh+1NFwkBq33dVcTw=; b=WkJIgYYDcUAs4qmMp7dTsDAs3esDge6Aqx2RiwW4R+uglkV7x34Q9Je2DeIQBYHIeM pHD8SZywD8y26+aK31XaFhGurUNyxeZUneHjwSf6OiZuqnfAJ6ktDZRZD7WLddapnAUF xqnNF4m43/pYIM4dMEmKMPV+Yjlq5YNXQjx2bGoae6xojhW/ON5/5fPpsWy/EUMRg8Zh /868u6RygqL7/dshataYeb85AS3xzoIghmHH3auL4QDNzjEBv1cs6Fx7ZPBTQNACaK7t cC8eh3WontCpU2aErB0h8wNJz8UVO+F1ft9u0PcT5dgS+QTXxZ8eQX8KytdjIaZ/MPIn 9P5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=teHOIbjD; 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 t6si469803edy.233.2020.10.04.08.24.07; Sun, 04 Oct 2020 08:24:43 -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=teHOIbjD; 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 S1725868AbgJDPWh (ORCPT + 99 others); Sun, 4 Oct 2020 11:22:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbgJDPWh (ORCPT ); Sun, 4 Oct 2020 11:22:37 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17490C0613CE; Sun, 4 Oct 2020 08:22:35 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id d6so4827938pfn.9; Sun, 04 Oct 2020 08:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=pvroqbRx5SZxuMfn0fG0rh4X/fjh+1NFwkBq33dVcTw=; b=teHOIbjDcZXuU0nUYWE4sWIOTDMmcgFzJolY1eVD1IqXtyQGdwIYNkjY5LSvLBVIfQ 9xxL8xeL637nIbZ2soBH425Zyrm4sU9FuhZMB4wdNDMQaoDob+lX8MkI2kSoz9p1hScT KIwaDC4pX77y3n1Z2TRwd+4tktfnuc/DzrrdWiOhsEtFgyEBxZYDclGkWs4cRWplRCZP 9Vyu1dM+Mh3zXcKjk/zSS2tesdI4heh9I0LEwjW7h2Yhp08ei+jQRkRTcv4xAwjrVqft CqXwd6MM8zutCWlCX3HPTxOTFA+63brlP0Q8LeDKYgQy3N89QbWpN8eu8bqJL+Gq+iaN JxPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=pvroqbRx5SZxuMfn0fG0rh4X/fjh+1NFwkBq33dVcTw=; b=Sx9NsFSyjz7pxxUZQe/YK3eAcYlFguMeF90/JtURb6rlMlvOn2dLyWA6DAZ4Af+eSW fd3v4Nq+XMs/ok//DVx7OUrdii+l3c5vhwCrIqzZlwH3Q2Oav4ouWDdMsgjOTM4T5z9M GPrG0Q1xPJJWeiRgQIsjwEdKioxhu1sKithfGfH/tMhBD/TdLpMEILdiy56JxRDpFCYw rhnfKAHMjhOyC4ZU/Ngd3xtvosnXXlLPuxysL2/3MjcRa2oFuAp50Vvrhb7qlP+AtL6S 8Osh1MQoCgvsjUgErl/bD7PcSd1C3UJ4wZHErkV4sRCjankWQzVYoOXNdmCd9WTaNLeK IkbQ== X-Gm-Message-State: AOAM533Cg+kqJGudytaO//q4pzYa+n/A0sfaRZ4igCYgpWPLM0tlgB8S IrupTUZivuUPDoOqt9GIJ3E= X-Received: by 2002:a63:a546:: with SMTP id r6mr10326072pgu.160.1601824955325; Sun, 04 Oct 2020 08:22:35 -0700 (PDT) Received: from localhost ([2001:e42:102:1532:160:16:113:140]) by smtp.gmail.com with ESMTPSA id c12sm9156251pfj.164.2020.10.04.08.22.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Oct 2020 08:22:34 -0700 (PDT) From: Coiby Xu X-Google-Original-From: Coiby Xu Date: Sun, 4 Oct 2020 23:22:30 +0800 To: Benjamin Poirier 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: <20201004152230.s2kxna2jl2uzlink@Rk> References: <20201002235941.77062-1-coiby.xu@gmail.com> <20201003055348.GA100061@f3> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201003055348.GA100061@f3> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Best regards, Coiby