Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4074770ybz; Tue, 28 Apr 2020 05:26:37 -0700 (PDT) X-Google-Smtp-Source: APiQypLRLJRny1RETjM6hs57tbXyhDFofxUchKz4MHZ0te8leYYA2I4kQtSQS0Nwbt/JeRsHdJcT X-Received: by 2002:a05:6402:88a:: with SMTP id e10mr21875264edy.252.1588076797657; Tue, 28 Apr 2020 05:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588076797; cv=none; d=google.com; s=arc-20160816; b=MCGCKrciyouNQDBd51JTOwhJT3LrJcTcKw1hKtV48ul4gGsQHwLms+YqHwuGzeT9EL det5EgymyMJz7AKFHXmUT/E/HSRO7s9KgrSDpUaM7eO2Ngdj9f7tLhFWwW6Lqvrl2a1u L2C4Q7p0VCNRiW8lC67M9JogiGlBgjGDA0sDEaMakfHs3AV0OGevaByvbGeQ4s+Pw6N8 AHozuHbhIeKwlrNbIb5z0DNv89Tx8V3vKH4t9RKpsaQ5xut2BN9UDYk8iq7/Kx/CqBbm RPBgF3IFFLRP2w5/27y0yhRGt095OFV7wmhTkbc0fh4+RdPIl0nFVEcPcMVnkaFQfWDl azTg== 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=3c26Gsl1bPtlvbKim9yQlgXfmP8IOUzy7/xXI0A8FQY=; b=M22ZQ7Ys42DD1oRuIgGtHJJSiGOquj+nd7SL0BbC6p0cMpT4uTuTy8oMjaY7IAP8yl VD6u9gK2GaNahFXJlRU1iD5YUiFAqhyZv1R7mLAsQjhLpk4JEL1Oj3AziOKG4m5V7G4d sODa4MkcLtlj/kfFxpzMHukakHcgmmFtn2JzatkOOn9VDeKnJuaLcfMAy1GqRT86//jQ tqzP3y7pFTCiCPq1c7JOBxKLg9yYvU9nXSkwJnnLfRudDcI45862CX3A4cLtxWEnIdOC Dc9DrxnfxmVOoPteXuJCA56lOYb0/Fr8Vg7MoFUwPaCI9KneWLUIVpDdlDPGZsY+Gx25 aEkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gjRjCj3E; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si1764476ejq.363.2020.04.28.05.26.14; Tue, 28 Apr 2020 05:26:37 -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=@kernel.org header.s=default header.b=gjRjCj3E; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726746AbgD1MYr (ORCPT + 99 others); Tue, 28 Apr 2020 08:24:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:58324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726361AbgD1MYr (ORCPT ); Tue, 28 Apr 2020 08:24:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FEE2206A1; Tue, 28 Apr 2020 12:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588076687; bh=v3DgtmSId2rTIqTuXLUCM4ll+1xF/+qucisJtHmJLms=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gjRjCj3EJ+e4zbnwYzOHx2FWHVrfmyqtxQjIAUTjAWlE3B80++82vUEyFofkur8+5 r1LJp2BO3Os377GlnhwKOzatZoHHhLEe9guFj+TTmTbbbSA5EBDm7fPo+7IUrKbYA6 mQyZWunYErUrZzvOzBeVSLavPU/OULpsNbkjuwAM= Date: Tue, 28 Apr 2020 14:24:44 +0200 From: Greg Kroah-Hartman To: Sidong Yang Cc: Christoph Hellwig , Manish Chopra , GR-Linux-NIC-Dev@marvell.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: qlge: change prefix to qlge_* Message-ID: <20200428122444.GA1244536@kroah.com> References: <20200426084120.28295-1-realwakka@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200426084120.28295-1-realwakka@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 26, 2020 at 05:41:20PM +0900, Sidong Yang wrote: > In terms of namespace, The driver uses either qlge_, ql_ or nothing. > also there is macro using QL_. This can make crash with other qlogic > drivers. Rename everything to use the qlge_ or QLGE_ prefix. How can it crash anything? I can see changing global functions to a common namespace like this, but you are changing a _lot_ of things here: > --- > drivers/staging/qlge/qlge.h | 488 +++++------ > drivers/staging/qlge/qlge_dbg.c | 638 +++++++------- > drivers/staging/qlge/qlge_ethtool.c | 484 +++++------ > drivers/staging/qlge/qlge_main.c | 1200 +++++++++++++-------------- > drivers/staging/qlge/qlge_mpi.c | 386 ++++----- > 5 files changed, 1598 insertions(+), 1598 deletions(-) > > diff --git a/drivers/staging/qlge/qlge.h b/drivers/staging/qlge/qlge.h > index fc8c5ca8935d..a8da06c978ff 100644 > --- a/drivers/staging/qlge/qlge.h > +++ b/drivers/staging/qlge/qlge.h > @@ -955,7 +955,7 @@ enum { > MB_CMD_GET_PORT_CFG = 0x00000123, > MB_CMD_GET_LINK_STS = 0x00000124, > MB_CMD_SET_LED_CFG = 0x00000125, /* Set LED Configuration Register */ > - QL_LED_BLINK = 0x03e803e8, > + QLGE_LED_BLINK = 0x03e803e8, > MB_CMD_GET_LED_CFG = 0x00000126, /* Get LED Configuration Register */ > MB_CMD_SET_MGMNT_TFK_CTL = 0x00000160, /* Set Mgmnt Traffic Control */ > MB_SET_MPI_TFK_STOP = (1 << 0), > @@ -986,14 +986,14 @@ enum { > MB_CMD_STS_PARAM_ERR = 0x00004006, /* Parameter Error. */ > }; > > -struct mbox_params { > +struct qlge_mbox_params { > u32 mbox_in[MAILBOX_COUNT]; > u32 mbox_out[MAILBOX_COUNT]; > int in_count; > int out_count; > }; Why change local structure names that are local to the specific driver? That "namespace" can not escape out of the driver, so lots of these changes are unneeded. I will gladly take a patch that fixes up the global symbols, but that's all that needs to be done here, right? thanks, greg k-h