Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp733255imm; Mon, 1 Oct 2018 18:15:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV62djkR0AEfBHhhOkoqxIgJ0ugUc0PAuctfeqtgsH1nX1ufDbEkCZDs8HJ+jstbXVq9TZ8lQ X-Received: by 2002:a62:69c9:: with SMTP id e192-v6mr13879421pfc.35.1538442939300; Mon, 01 Oct 2018 18:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538442939; cv=none; d=google.com; s=arc-20160816; b=Be1kIIJgat2PWw2SPwmhcco8YY16v4tjhVoqRnyCT5mJnPtDhJN7sWbLYywnrdsvmO y7EpuC+taqUOmarsUEuoSWatBhIz5Ru01kY82uXo+1UQ4qr/GOol7jZumzfoi+ZUQPqY ldAf46QFpECz58uRfLufJaebVbPZoo9ACdgSP5inhfZNt0dnAcWE9+Yi1NimTFRpCPfz X3NEvVxeuvf8/FUmubFJ8TIpINYa5A6xhkoZf3XQxBVMbpYU6DPbrelm4etEv2F++tk1 zHsaUlc292YmPZrjeR6wFsMpA43mZDkemqLH1LudRlWfHmeCKg0mv16HNXwmkPFmbbQ5 kd0A== 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; bh=WYUzbcUASezY9/q4mZGEDHtZf1POyaVr8Vn50q49ztI=; b=SMJjyJMEzBAOckBilj63Nw/2XEZSlndquOHy8tuiNX14B7aes+4cebK2/1SthR3oZ0 TVhIzAdELSLdlDMw6WJx0fY6a/wq0AyCNuFvQRON42ilGq+znN+b+jAyvLf4WYjmYTna DPv6DfBiahB35flnr/xF7/kd+Xkw+bmfCJ4mcH9P8EOmoRxUA5DyntYl56SLJsbeGdEY mgGczFbbRMTUjIXu3ZL5z88ZhbRd9Dx+BElylgLgiFRaTGvGYgHOS8BaLVmS9xYL+jOM 0rDQvHXK9fbkC+Ud5AaE2PAPVbwMl/mlQ7jGTn58av4YTj7qsHMLD89BRlmkwALnbn2/ GRDQ== 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 u15-v6si14248430pga.23.2018.10.01.18.15.24; Mon, 01 Oct 2018 18:15:39 -0700 (PDT) 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 S1727183AbeJBHyF (ORCPT + 99 others); Tue, 2 Oct 2018 03:54:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37518 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726459AbeJBHyF (ORCPT ); Tue, 2 Oct 2018 03:54:05 -0400 Received: from localhost (24-104-73-23-ip-static.hfc.comcastbusiness.net [24.104.73.23]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E20CD82; Tue, 2 Oct 2018 01:13:29 +0000 (UTC) Date: Mon, 1 Oct 2018 14:08:04 -0700 From: Greg KH To: Ioana Ciornei Cc: idryomov@gmail.com, sage@redhat.com, elder@kernel.org, jth@kernel.org, benh@kernel.crashing.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, ceph-devel@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH] driver core: device: add BUS_ATTR_WO macro Message-ID: <20181001210804.GA24332@kroah.com> References: <1538407972-9340-1-git-send-email-ioana.ciornei@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1538407972-9340-1-git-send-email-ioana.ciornei@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 01, 2018 at 06:32:52PM +0300, Ioana Ciornei wrote: > Add BUS_ATTR_WO macro to make it easier to add attributes without > auditing the mode settings. Also, use the newly added macro where > appropriate. > > Signed-off-by: Ioana Ciornei > --- > arch/powerpc/platforms/pseries/ibmebus.c | 12 ++++---- > drivers/block/rbd.c | 48 ++++++++++++++++---------------- > drivers/scsi/fcoe/fcoe_sysfs.c | 4 +-- > drivers/scsi/fcoe/fcoe_transport.c | 10 +++---- > include/linux/device.h | 2 ++ > include/scsi/libfcoe.h | 8 +++--- > 6 files changed, 43 insertions(+), 41 deletions(-) Nice! This duplicates a lot of the work I did back in July but have not pushed out very far due to the other things that ended up happening around that time: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/log/?h=bus_cleanup As the patch series seen at that link shows, you can do this in more places than just what you did here. Either way, you should break this up into the individual patches, like I did or you can take my patches if you want. Getting the BUS_ATTR_WO() macro added is good to do now, and then you can go and hit up all of the different subsystems that should be converted over to it. thanks, greg k-h