Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8398343imu; Fri, 28 Dec 2018 17:31:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN6EKg8H4EBQ9Qez2J+aX/gw861td0th4db+T7V4kCgJ4aPcYYO1jnQ1Drl48PfDPz9tPkGY X-Received: by 2002:a63:cc12:: with SMTP id x18mr189180pgf.33.1546047105698; Fri, 28 Dec 2018 17:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546047105; cv=none; d=google.com; s=arc-20160816; b=KQfqN5PoToFWHZLyeS9Tob6XiXw/kJmGkX9y1XUhLCTsGizni6DokUFZVg/1gFi3Zc vUi2kg9CicG9MTpoiSm8lR71DNZdhulZZZQOpqfHO0xu1yNLTjve3WMsxBu3YazIWDsR rRQls3qCSDLnsIE+FxGmnsuggfjNRVkovvDwW3GwpuYeV7D/ag9BaxN/BI+q0zVLb0iV YMwJMSCz1+zkK+ZgHIanZQeO7purajgqFczRgNchNW1iEvawfA3qS5PsBed4ncbQDYba TVHUjsHzdbWsUneHnzSqsXWATa5LeXJaagILTxH1GLqjqrnveVHmjK8OvWyyeGYuUIfJ nvgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Xv7i9074voqGor8nc0kQs1WQEDYjuOPPGJWyjkn+6PQ=; b=F4eyF8W3PGAqMzxBi7gSUrpfhto1zOJSPTKgBQFUni9Y/+fsWyEOBUIuaTh6WoFgKh kjC92/0h8OnJ+ysOkkU86srv1BhRWQgUto+E0kk56d0sbiz8lDVHE/la2W2HhKMHizow nou776CzGphyApv9CO5AnrVQaVGhGf6HhQFngIuXku4vMqDKwBg6zlj4CsnvmWBwB2mR yBsF0wPr/qXGHRYfUQVY8nfGsncXxP5c7B1WJpRxKf0U4mGix2L2ZQ6SnpcJo1ySE6pW 6mtu7QDQJ7sCjGTDggDSJjqAwxF3UQB7ULC36o9ArfG79m5j5tPwjAvXaV65o+tC9oXj 0RyA== ARC-Authentication-Results: i=1; mx.google.com; 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 q140si30360524pfc.20.2018.12.28.17.31.25; Fri, 28 Dec 2018 17:31:45 -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; 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 S1730032AbeL1Mu5 (ORCPT + 99 others); Fri, 28 Dec 2018 07:50:57 -0500 Received: from mx2.suse.de ([195.135.220.15]:51184 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729597AbeL1Mu4 (ORCPT ); Fri, 28 Dec 2018 07:50:56 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E358FAEB9; Fri, 28 Dec 2018 12:50:54 +0000 (UTC) Subject: Re: [PATCH 03/10] SCSI: fcoe: convert to use BUS_ATTR_WO To: James Bottomley , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: Johannes Thumshirn , "Martin K. Petersen" , linux-scsi References: <20181221075442.17109-1-gregkh@linuxfoundation.org> <20181221075442.17109-4-gregkh@linuxfoundation.org> <1545406185.2765.8.camel@linux.ibm.com> From: Hannes Reinecke Message-ID: <5691ac07-ec5d-893f-09e4-ff1acd889abd@suse.de> Date: Fri, 28 Dec 2018 13:50:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <1545406185.2765.8.camel@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, Hannes