From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753422AbdLDHgj (ORCPT ); Mon, 4 Dec 2017 02:36:39 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:57446 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbdLDHgg (ORCPT ); Mon, 4 Dec 2017 02:36:36 -0500 Date: Mon, 4 Dec 2017 08:36:42 +0100 From: Greg Kroah-Hartman To: Dave Young Cc: Matt Fleming , Ard Biesheuvel , Linus Torvalds , "Tobin C. Harding" , LKML , "linux-efi@vger.kernel.org" Subject: Re: [GIT PULL] hash addresses printed with %p Message-ID: <20171204073642.GC19596@kroah.com> References: <20171129210848.GF6217@eros> <20171130163235.GA27849@kroah.com> <20171130171036.GB31817@kroah.com> <20171201094846.GE9353@kroah.com> <20171202222244.GA3799@codeblueprint.co.uk> <20171204020216.GA2436@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171204020216.GA2436@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 04, 2017 at 10:02:16AM +0800, Dave Young wrote: > +#define __ATTR_IRUSR(_name) { \ > + .attr = { .name = __stringify(_name), .mode = S_IRUSR }, \ > + .show = _name##_show, \ > +} Ick, no, as others, including Linus, have said, using IRUSER is a pain in the ass to try to look up and remember what it is... Just use __ATTR() please, it should be fine for what you need to do, which is special-case a sysfs attribute. thanks, greg k-h