Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9636062imu; Wed, 5 Dec 2018 07:59:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/UB4iikYo1UXJa+KmJXRunpFTdoYiiApX8IGYo0nM/7TRs5IFDVI8CVobupmTD95Wd4/2sk X-Received: by 2002:a65:62da:: with SMTP id m26mr21009544pgv.278.1544025545360; Wed, 05 Dec 2018 07:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544025545; cv=none; d=google.com; s=arc-20160816; b=GqNx1aBIMyF3TTvVnJOrn845mV04s1bHolgIRH2wQhfKVQlfQJ16MBTyyMCWDb4w11 VtFNBmGBgtrtlOF1sZK6+/iXLjMXZC3tzbiq5JBfpjzbqqkTrk2JjLgGIptNDoIGHFdU cN05XICJW2aWAZiu9xhEq/DP9AqaLoAAHS/5OZBN1LVOVv5KMjo/NS/N+XAADkd94m1I utAPQTofQ3MHHz+fCgJgHQU5MveDon0n74y3q/NT04ooj9LxflHvZDeKrzgYjA/EE31w Zt4Vpux6WM6hHFJaoYeFP/OnEu7s09lnE5b0fYOKqc3ntHRvuWWvWIUSmdmMuM/7oT45 e9Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=IqD/Ctw+JctvHBtAO2jhCVDQB9b9oYJiQxsHDOXDqbA=; b=NncfGyzKjbBi9+wgnJ1N7/jmCyELg+jiezQdA+vzm8LOWhgyzodIzXJ172maJxk3vo GKxNT2/cj+LLG4DE0ND2aSmzIayXPJjJxYeHzIWlmhtFivyQPBs8BTcUh0/yGZNAm6Th DZCI4t9lChrBLwjIQj5OLVGNlDwEAV9nnMqXOr+O+aGp7G8QD9OoYV/nEK4QkXn4KRhY Jw5XNqe0w1dQuWMH6Mz8lEAAJ9VNQRGJEtElsXisw+Clw97IIzoCa+mpIn4tnIqFnK/2 OjO5w7QfqSjzlwnQtBZY6m8wFUFN42hztBPUzZEI2or4MY13R9T4vF6OHwTIpkIlmA4p 3GMA== 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 n67si20817307pfk.34.2018.12.05.07.58.50; Wed, 05 Dec 2018 07:59:05 -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 S1728215AbeLEP5q (ORCPT + 99 others); Wed, 5 Dec 2018 10:57:46 -0500 Received: from mx2.suse.de ([195.135.220.15]:36626 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727177AbeLEP5q (ORCPT ); Wed, 5 Dec 2018 10:57:46 -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 C70D9B063; Wed, 5 Dec 2018 15:57:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 05 Dec 2018 16:57:44 +0100 From: osalvador@suse.de To: David Hildenbrand Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , Andrew Morton , Ingo Molnar , Pavel Tatashin , Oscar Salvador , Michal Hocko , Wei Yang , owner-linux-mm@kvack.org Subject: Re: [PATCH v1] drivers/base/memory.c: Use DEVICE_ATTR_RO and friends In-Reply-To: <20181203111611.10633-1-david@redhat.com> References: <20181203111611.10633-1-david@redhat.com> Message-ID: X-Sender: osalvador@suse.de User-Agent: Roundcube Webmail Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-12-03 12:16, 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: Oscar Salvador Thanks