Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6999563imu; Thu, 27 Dec 2018 10:15:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/VHi9B4xjypD0cJVz8knQI6r4pmcbqWJBgTh8P1gOl/f1AJz2RfNPqDb5H8naSd20R8jUNe X-Received: by 2002:a62:710a:: with SMTP id m10mr24930148pfc.69.1545934541123; Thu, 27 Dec 2018 10:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545934541; cv=none; d=google.com; s=arc-20160816; b=RAiv31GYsyV1SS7QDHwk4Kq7Qlp3tWfGdyeC/3/bBkbWXs3lZbUyfK7i/OBlv+5u3q /gN19FTgsqJbszmmeWZd1TTsTqZG0MBWGKTk7TvjUHH04QdMfdgerVMdvTUJqe7HpN2W HxQh5aMLJZVdz6Ja47itBn2gP2d4C1Oz3yYPKPLzXdwPrXrDAOr04L/h+wTz/8Z6G2gQ 5A42vaWnWQwShQsWxSfG/op383c9Ehxb37qv5zLoYzE+qWcdZoNbL3AaLae2jdOzNutZ sriDlrPERwoec4/N1h/l2DficiCkK+5lQHhyQNTpvSrSSt7sDnyghusVFC+aPEc6JYY3 G7+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=KeVv32bGkUuTRg8SKGw8xfAylL9AHbMgwPH9UpzWHrk=; b=rI4Fv5ZA8g/naz0vFUtlOb5jY3/7PbPdWiIufTtTd/BTsSRNiO62n1K6EX6cucQXKC my80mDiv4of0YHO/niEsHSrASyDBtyCvVVSstjIlFkQxVWccCFf7OTl9+6yJB4EBqR0E 4ELUxGxb5ZOju+6Kk8Dga23hMeM8jZL/30qOYdqzG+oZxlwKUaxLRqDY/eIWbtU2TBjV R6bbfU7ObanuoivF89khx/fjLsbLZZpordkPPoG+f4PutYMR48fTWvKBV2Izh+MoHcJK TRKUP5Ew2hwjyU1BGlStOQB8KIGAJmeHPsubbkGPwos55NYPndAHobsPEBeq2gotiWuX OKNg== 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 k20si1365400pfb.215.2018.12.27.10.15.24; Thu, 27 Dec 2018 10:15:41 -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 S1729147AbeL0F1r (ORCPT + 99 others); Thu, 27 Dec 2018 00:27:47 -0500 Received: from ozlabs.org ([203.11.71.1]:57791 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbeL0F1r (ORCPT ); Thu, 27 Dec 2018 00:27:47 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43QJJJ14NFz9s3l; Thu, 27 Dec 2018 16:27:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Benjamin Herrenschmidt , Paul Mackerras , Tyrel Datwyler Subject: Re: [PATCH 04/10] pseries: ibmebus.c: convert to use BUS_ATTR_WO In-Reply-To: <20181221075442.17109-5-gregkh@linuxfoundation.org> References: <20181221075442.17109-1-gregkh@linuxfoundation.org> <20181221075442.17109-5-gregkh@linuxfoundation.org> Date: Thu, 27 Dec 2018 16:27:50 +1100 Message-ID: <87tvizy1wp.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greg Kroah-Hartman writes: > We are trying to get rid of BUS_ATTR() and the usage of that in > ibmebus.c can be trivially converted to use BUS_ATTR_WO(), so use that > instead. > > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: Tyrel Datwyler > Signed-off-by: Greg Kroah-Hartman > --- > arch/powerpc/platforms/pseries/ibmebus.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) LGTM. Acked-by: Michael Ellerman (powerpc) cheers > diff --git a/arch/powerpc/platforms/pseries/ibmebus.c b/arch/powerpc/platforms/pseries/ibmebus.c > index 5b4a56131904..84e8ec4011ba 100644 > --- a/arch/powerpc/platforms/pseries/ibmebus.c > +++ b/arch/powerpc/platforms/pseries/ibmebus.c > @@ -261,8 +261,7 @@ static char *ibmebus_chomp(const char *in, size_t count) > return out; > } > > -static ssize_t ibmebus_store_probe(struct bus_type *bus, > - const char *buf, size_t count) > +static ssize_t probe_store(struct bus_type *bus, const char *buf, size_t count) > { > struct device_node *dn = NULL; > struct device *dev; > @@ -298,10 +297,9 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus, > return rc; > return count; > } > -static BUS_ATTR(probe, 0200, NULL, ibmebus_store_probe); > +static BUS_ATTR_WO(probe); > > -static ssize_t ibmebus_store_remove(struct bus_type *bus, > - const char *buf, size_t count) > +static ssize_t remove_store(struct bus_type *bus, const char *buf, size_t count) > { > struct device *dev; > char *path; > @@ -325,7 +323,7 @@ static ssize_t ibmebus_store_remove(struct bus_type *bus, > return -ENODEV; > } > } > -static BUS_ATTR(remove, 0200, NULL, ibmebus_store_remove); > +static BUS_ATTR_WO(remove); > > static struct attribute *ibmbus_bus_attrs[] = { > &bus_attr_probe.attr, > -- > 2.20.1