Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3014354pxu; Sat, 10 Oct 2020 16:08:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDLJAIcFCAQGIIp7RqYLbGW+AJjfajX7A1gDDDpht6zjsGU3SrSg18InuSksuYDR4dU3yv X-Received: by 2002:a17:906:791:: with SMTP id l17mr20373873ejc.361.1602371335077; Sat, 10 Oct 2020 16:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602371335; cv=none; d=google.com; s=arc-20160816; b=TdDwiXsk0YqTEiQPYLJ9NNA7xbJR7Mm460ZUekNNnUnb1Pdkda2wNiC79j11GVz2L+ PA9uSmV9314OElKh4O+y7yyKY97tMArn8lsX8beP4o87voQRoz6SD7ejb3pSH0e8Luyh PczqTpClbtO6IY9GPUk5PxuCTQKHP95E/LHy5TXEQ01LDhqCsaS1tYWap7XEaiUeeX8+ szRetV8h68jFgs46Hp0S2Gh0DsV4xZU64KQKGBDAc5792NG0IgD6xrR3E27FRVbN6MjX LpIypBtiaXsV/peSmS8xjzY/unV7bkWuHlqO0ro6GUZMf8Wi2Aeq0L+xtJhLXDRuCy0C R0eg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iPYmzILO99gWQ7KmTRCw8HqpXWlZMMEv9MgwDntuYfI=; b=mITU4Ov+CKHnC27xYWYRIA+D09HiF+qemP/0JJ0+CA++hJ+GJcxKsd7mVI7NULQ7MS NDawYKyf2CpECGedH7YKL7G8nMnN8lXsw9Wya7er62PL/FI3Mvjswh8hXnoGxietL+SM 5ySo3wWt3onu5Xk+vgX+E53r09yIMWZNuJTL0DVfKmV1rORpuFIfbzjFsLys1NfYmQme gFKCYJdbd6qqkXqLmnYOVEtp+VkeFLH4h1tAZBsp9MltMzbTB7rvRICENfom0lQiyh29 CMz9br0XanugDrOLHglre9ngRy9i4XHzrt9vb/r26h00+3ZcAoAaCo66drXs7MgCiyg0 TPFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gw8bu7Yb; 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 d20si8011869ejz.615.2020.10.10.16.08.32; Sat, 10 Oct 2020 16:08:55 -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=Gw8bu7Yb; 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 S1731895AbgJJW7B (ORCPT + 99 others); Sat, 10 Oct 2020 18:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731590AbgJJTyJ (ORCPT ); Sat, 10 Oct 2020 15:54:09 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6D3EC05BD0E; Sat, 10 Oct 2020 06:22:36 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id r10so9676838pgb.10; Sat, 10 Oct 2020 06:22:36 -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=iPYmzILO99gWQ7KmTRCw8HqpXWlZMMEv9MgwDntuYfI=; b=Gw8bu7YbCE7B1Uazh09OPacu+3M9+9er0UlkwZG3KBiuR21iWSsVfiPxnmhBVUj5Ka bUH4RJPVe3EXtdlNv9f9Ymiaafh0Rb0A32U1Z2Vvcm1I7R/4rNqNwzzz6II3xe42bA+R jnEKchK2eQOmusHphedK8luW/CNukfLM3YDJ7XTcFDJVbh/rohI80LmVzkUBhKFzKCAr cHbxY0P8x9gQZ+XzrGNQK8QXlw7ujPRC/LOZMnMqpT97op87oRjecDtToQ2HoOyB01TH 1zGe/hWa77lcPqdUmpdWemQ0XypVB5x8pNpsRcW5eHDelCOnGrc7F03lgKSeo6dZJwL2 n+2g== 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=iPYmzILO99gWQ7KmTRCw8HqpXWlZMMEv9MgwDntuYfI=; b=IyanyqnmTCMKB4RqbQSFHPjDGVvmzphtNi714G7xbuBqtTJl8J/hGsc5qRph0VDM/g FwyN/ZEBAQ56D12UXd4gvrfn8DKlc0jhjUZTMKj4iV1GRokdpQmlt3bGTgCmIq0MwgLN syOLWwcs0J0adkKtdyKUsBLB39o2EP4R7CNOMfM0OD1aoQXjdSl24GpmhmjXt0bQoI92 0ex1RLfOxjbbA124Czs7C4NqONbb1Ft+7/dS/HJbODVjPX+aZSLB5bxVd52EDakerF9x kB2yNgFonVqw28/IQgGZ0S2x1KLI2ib5mm8+ZXxYq2aGEh0sOJtpMmaax0lNkbOPgNKu 7teg== X-Gm-Message-State: AOAM530/8sElxmpvTdtvaTSjJpG6JfMIitdfdJxerMMBHswrQmCiROLj 7lFUBznVS34TrESMfm6Fw2Q= X-Received: by 2002:a17:90a:dd46:: with SMTP id u6mr10740023pjv.67.1602336156275; Sat, 10 Oct 2020 06:22:36 -0700 (PDT) Received: from f3 (ae055068.dynamic.ppp.asahi-net.or.jp. [14.3.55.68]) by smtp.gmail.com with ESMTPSA id in6sm14805090pjb.42.2020.10.10.06.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Oct 2020 06:22:35 -0700 (PDT) Date: Sat, 10 Oct 2020 22:22:30 +0900 From: Benjamin Poirier To: Coiby Xu Cc: devel@driverdev.osuosl.org, Shung-Hsi Yu , Manish Chopra , "supporter:QLOGIC QLGE 10Gb ETHERNET DRIVER" , Greg Kroah-Hartman , "open list:QLOGIC QLGE 10Gb ETHERNET DRIVER" , open list Subject: Re: [PATCH v1 2/6] staging: qlge: coredump via devlink health reporter Message-ID: <20201010132230.GA17351@f3> References: <20201008115808.91850-1-coiby.xu@gmail.com> <20201008115808.91850-3-coiby.xu@gmail.com> <20201010074809.GB14495@f3> <20201010100258.px2go6nugsfbwoq7@Rk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201010100258.px2go6nugsfbwoq7@Rk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-10 18:02 +0800, Coiby Xu wrote: [...] > > > + do { \ > > > + err = fill_seg_(fmsg, &dump->seg_hdr, dump->seg_regs); \ > > > + if (err) { \ > > > + kvfree(dump); \ > > > + return err; \ > > > + } \ > > > + } while (0) > > > + > > > +static int qlge_reporter_coredump(struct devlink_health_reporter *reporter, > > > + struct devlink_fmsg *fmsg, void *priv_ctx, > > > + struct netlink_ext_ack *extack) > > > +{ > > > + int err = 0; > > > + > > > + struct qlge_devlink *dev = devlink_health_reporter_priv(reporter); > > > > Please name this variable ql_devlink, like in qlge_probe(). > > I happened to find the following text in drivers/staging/qlge/TODO > > * in terms of namespace, the driver uses either qlge_, ql_ (used by > > other qlogic drivers, with clashes, ex: ql_sem_spinlock) or nothing (with > > clashes, ex: struct ob_mac_iocb_req). Rename everything to use the "qlge_" > > prefix. This comment applies to global identifiers, not local variables. > > So I will adopt qlge_ instead. Besides I prefer qlge_dl to ql_devlink. Up to you but personally, I think ql_devlink is better. In any case, "dev" is too general and often used for struct net_device pointers instead.