Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7457700imu; Tue, 22 Jan 2019 06:24:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN4JRAL6mu5yVtk1Tp35rqpaGO2i/JWxrZ54KxI//rTP5/UasL55PKVWueAxNpS+cuWpEbTj X-Received: by 2002:a62:140a:: with SMTP id 10mr33272770pfu.157.1548167095640; Tue, 22 Jan 2019 06:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548167095; cv=none; d=google.com; s=arc-20160816; b=AbQGaTq6FLB/LmBHFbKUEuk0Yoq/q3KIHv5LhnplIAr4WUlhMIMZTxnATd2gkPOG3I JiLxkOc9JXkUs1ohLXNwwFZWGHtSfalqHYkl4LIgWbXAB9nZSWa4C3qV+PmLyko96CAg bJaQGpLfetDQqwkUKlDezbovhHE7RaydN3QHlRR2VjaKM1n8Rdwd/NO80qj8UJcPJPCL M+fm87OKT/4JERcxJ/tesMkhBCEOuYEv+HfUZQoPWGGDRLoJ1skOhXfT+hy4TQCmAj0g HVeuacyvoVA066X3sPUA1z2iKxJzto/vGDC9wM4uJYyvP61CAeq0kF5p2llbxoQfoq09 ZDlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VrYlauDGOeDt6wtNuvoAyDmi9UF9A+H4mLbjgMtiHoA=; b=sHHYHePIC8LAK2ElhVYcqwFg1B8tcivl72+RWjGXK0qA+HPfCbpXqGSvdPJHrkeK3Y JeMldrHPHItf1CE/sbeWjVyj7n4XB7pIT0Qt3jmt6sbiMIvFdnb4rEdwykZ2g3HQ27S7 xgcVP+yrB1rPWRvFbwU6r6UCS2GkS8Bivrupwn7QZltVmhUmcO/rx9clMhQUbDPpajHG v88zov9MWglSG9JTG2L/QPPnm/v1g0/QQTYwu69JjCin0moNGnqrvJmT9LdWzVLXjjQy SPuEHd8I6PTYpCWSVp4UgvUy7wRiCFfo+kx5TqRWzxI8sHMqaQJF7x2GymHYxW23Odf8 dBTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WtL6zPaJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k135si15728052pgc.574.2019.01.22.06.24.39; Tue, 22 Jan 2019 06:24:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WtL6zPaJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728642AbfAVOWc (ORCPT + 99 others); Tue, 22 Jan 2019 09:22:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:34164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbfAVOWb (ORCPT ); Tue, 22 Jan 2019 09:22:31 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 43BAE20870; Tue, 22 Jan 2019 14:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548166950; bh=Ugm9A63IkmN0PQ9ZZ400uFNrVixmuS+U0eQBkPL1yA4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WtL6zPaJVbDQ1cJf6oSl4G21GWaKDoLMLcQgimfo2hhmUCZbsXy1U8MJc1XEkaXYP 4G0NTJGi8P6Vos6ZMLykZbGrvtcz/4fhBCMU6jG2FZ7ra+ZQi6CxRp/hOLRCx/cMgU s4bwl1l517ayRFm4rBT2voKEHQISOFBBNv8us038= Date: Tue, 22 Jan 2019 15:22:28 +0100 From: Greg Kroah-Hartman To: Hannes Reinecke Cc: James Bottomley , linux-kernel@vger.kernel.org, Johannes Thumshirn , "Martin K. Petersen" , linux-scsi Subject: Re: [PATCH 03/10] SCSI: fcoe: convert to use BUS_ATTR_WO Message-ID: <20190122142228.GA18225@kroah.com> References: <20181221075442.17109-1-gregkh@linuxfoundation.org> <20181221075442.17109-4-gregkh@linuxfoundation.org> <1545406185.2765.8.camel@linux.ibm.com> <5691ac07-ec5d-893f-09e4-ff1acd889abd@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5691ac07-ec5d-893f-09e4-ff1acd889abd@suse.de> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 28, 2018 at 01:50:53PM +0100, Hannes Reinecke wrote: > On 12/21/18 4:29 PM, James Bottomley wrote: > > [scsi list cc added] > > On Fri, 2018-12-21 at 08:54 +0100, Greg Kroah-Hartman wrote: > > > We are trying to get rid of BUS_ATTR() and the usage of that in the > > > fcoe driver can be trivially converted to use BUS_ATTR_WO(), so use > > > that instead. > > > > > > At the same time remove a unneeded EXPORT_SYMBOL() marking for the > > > sysfs callback function we are renaming, no idea of how that got into > > > the tree... > > > > The EXPORT_SYMBOL removal is fine, but > > > > [...] > > > --- a/include/scsi/libfcoe.h > > > +++ b/include/scsi/libfcoe.h > > > @@ -405,10 +405,8 @@ int fcoe_transport_attach(struct fcoe_transport > > > *ft); > > > int fcoe_transport_detach(struct fcoe_transport *ft); > > > > > > /* sysfs store handler for ctrl_control interface */ > > > -ssize_t fcoe_ctlr_create_store(struct bus_type *bus, > > > - const char *buf, size_t count); > > > -ssize_t fcoe_ctlr_destroy_store(struct bus_type *bus, > > > - const char *buf, size_t count); > > > +ssize_t ctlr_create_store(struct bus_type *bus, const char *buf, > > > size_t count); > > > +ssize_t ctlr_destroy_store(struct bus_type *bus, const char *buf, > > > size_t count); > > > > You're really damaging our prefix namespace here. It looks like the > > ctlr_ name is a farly recent addition for sysfs (only myra/b) use it in > > SCSI but it's inviting symbol clashes. > > > Hmm. I was under the impression that all sysfs functions from myrb/myrs are > local, hence I would not need to prefix them. > If this isn't the case I definitely will be fixing them. > > But in any case, if possible any sysfs function should be local to the > driver; no-one else should ever attempt to use them. > And we should be making it so if that's not the case. This is all in the same "driver", just that the driver is spread out over multiple files. James, thanks for the fixup, I'll go respin this and break this up into two patches and resend in a bit. thanks, greg k-h