Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9326498imu; Wed, 5 Dec 2018 03:01:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/UWPdRpT+dcgVd8j9TzWQz9jXl+4GqEb32BRGPcW53x5egRX2BRgiJ4P7kCgiwawiHPe1X5 X-Received: by 2002:a63:dc54:: with SMTP id f20mr20238592pgj.410.1544007683520; Wed, 05 Dec 2018 03:01:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544007683; cv=none; d=google.com; s=arc-20160816; b=f5ZUQLrjh8+VNHJR0bHrbqi4JiHBJ/EWLUby3JIAepVBCrPWAQILM2qA5zesObsOjB r0cSZX+183psNycjkVdfzF/ACNfl2kAwfSGEGD906+N0r9SWwqw3iSjq777LwmiVBzHo TqQIp/whC5WKb6c7L3ZDM42fMwWKGnuDtz5nJJYgN9nYFiYcz6Mm/w/MsHhcRZm7kuUN Z8dWYDES+WTs+JVW0hdN0wCk044kJKqFGAnotRqpM6A2jgemQNA5pj8C3XjLF2jsanxJ NEqkJ0j+LyE2AEAU7iA+wUWwhVijNRcVSX/9zHb5rGHquIa2zDdbtTC7BzB5IhVcW42i ND+Q== 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=A0bf53GufV7Cvqnr6CafsDOZBOXFpiuoq2jqonAllPY=; b=N+ymd/q0PkNqLYO6ztWeEtlJAjVTitUEQwnFTT+gxgnFH+HbOqUlVAAoGtwqIes/kV ezGQ+HxCL5w3jy3PXwqq68bYvzjhPJvFUK4/V2nED+xQlzQ+UpCJC5tAt0G2iYoeoDQB RZtlI+uoLrYa7N/j58zf552DPaalnEiXt70nHK8OpKM5nYtiEIu5ghpEprPEyzRql7wO W3CqNHU1O34kWh2W//7HP6oqLhwY4miBKDmCj3KSX4efYM+iR0ScfONuepCgID4y4r0O ImxoxLtrqNvo/6T+VGvhZFfGihfCS01Wm5Z8JAQQogvPm60rRHtwEyrM98yXbiMMx5dD fnbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AHrbjQvd; 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 o85si19914856pfa.162.2018.12.05.03.01.07; Wed, 05 Dec 2018 03:01:23 -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=AHrbjQvd; 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 S1727588AbeLEK7w (ORCPT + 99 others); Wed, 5 Dec 2018 05:59:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:45342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727358AbeLEK7v (ORCPT ); Wed, 5 Dec 2018 05:59:51 -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 ECF2720672; Wed, 5 Dec 2018 10:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544007591; bh=4UCfhVE7qjH3wAFUwDyhGpdlk4DkxQMshy2TW0f5emk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AHrbjQvdqG6AaUeXOqZzg5vM0OkGo1jGX/py6RbPI+Sq9BRGHZ+86zjD0r4PFjwBn hcnICQGdFbHWm4rbRaiOKlGHCYgR2vLrpDqGOnEg6gOxBfeJ7B1zA7dv0DIwey2a7S SqF+L+1VwY8rQSFzRnqYH0/rVInvBrvjv/2qAvd0= Date: Wed, 5 Dec 2018 11:59:49 +0100 From: Greg Kroah-Hartman To: David Hildenbrand Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Andrew Morton , Ingo Molnar , Pavel Tatashin , Oscar Salvador , Michal Hocko , Wei Yang Subject: Re: [PATCH v1] drivers/base/memory.c: Use DEVICE_ATTR_RO and friends Message-ID: <20181205105949.GD16376@kroah.com> References: <20181203111611.10633-1-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181203111611.10633-1-david@redhat.com> User-Agent: Mutt/1.11.0 (2018-11-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 03, 2018 at 12:16:11PM +0100, David Hildenbrand wrote: > Let's use the easier to read (and not mess up) variants: > - Use DEVICE_ATTR_RO > - Use DEVICE_ATTR_WO > - Use DEVICE_ATTR_RW > instead of the more generic DEVICE_ATTR() we're using right now. > > We have to rename most callback functions. By fixing the intendations we > can even save some LOCs. > > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" > Cc: Andrew Morton > Cc: Ingo Molnar > Cc: Pavel Tatashin > Cc: Oscar Salvador > Cc: Michal Hocko > Cc: Wei Yang > Signed-off-by: David Hildenbrand > Reviewed-by: Wei Yang > --- > drivers/base/memory.c | 79 ++++++++++++++++++++----------------------- > 1 file changed, 36 insertions(+), 43 deletions(-) Thanks, I'll take this through my tree. greg k-h