Received: by 10.223.176.5 with SMTP id f5csp2987052wra; Thu, 1 Feb 2018 09:02:18 -0800 (PST) X-Google-Smtp-Source: AH8x224SReEh6uDTyI7+VXfyU+MtYy7gDVK/epWpWWqSz49xJNnQUPrGcdIU828Ky31zWemborWN X-Received: by 10.101.75.193 with SMTP id p1mr13041326pgr.63.1517504538607; Thu, 01 Feb 2018 09:02:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517504538; cv=none; d=google.com; s=arc-20160816; b=nqVZiyFcoWhuNKFftOblGXntwfZSzZogMmTB0ExTUTC4TzXmLcJHIT7QmlBtodIsaK pj9MaZSbEDQiUlhamWVnBCv8rR17heQ9VM26L9pCPQJCbMW6QrOtz1UjqifqhQ51Hlrd 4URfnAsBNiM1zA8drgSulEaPYz4loRT2CmiFGSdEjXXpvsnkoYwUl3GuTsCLWtcXT7vG OAy+kda2HEhoPY8033SvNFYvhS6ZCR8ZD+G21hHsSpE7AgKn2Hu1Z6NUuEwvwLFAgImH zkGIP3M5veNbW/QEB06+SQD0T8LuFnqspcom8tT84tFdjZF6n0IPK1nn+BmC4Q9ZUTYf 5/Zg== 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:arc-authentication-results; bh=6erOawj64bAq3BBQc+DptvXSiqJnXXdcPFZMXLyUa50=; b=LpPmonbUlffms+uuXHpgP5utefCwC92osCNW9Bi0orlPhHzZ2U1kml0Qs52+BcjyhI SQyvmdoaQmNaYnHx2GGYs/u0IGrAYeNXNEvi4VPoUf3FR1iFCNzq6lEL+oJaolBLRsL1 bXZQ6Jwk+iRqkOVQBcLv33EmEoS59VsncIcTNRj9gJCmRXtnmAaQ3GrY9adD0e+Yb74t ZFYFsbklWIPt58wX5S9CREG5St2C2mVuQ6bstyfVHVTwk6zxdRpLWhLDJc7C4cRaLlS5 4dl7mH+B6b/0FEUeGjE8UFhmmQRwNUI0lAKBB0WP0P3NTz54nQbOCLNXvhBJkDqxoijQ b01A== 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 3-v6si3742plx.15.2018.02.01.09.02.03; Thu, 01 Feb 2018 09:02:18 -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 S1752974AbeBARAg (ORCPT + 99 others); Thu, 1 Feb 2018 12:00:36 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47572 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752864AbeBARAc (ORCPT ); Thu, 1 Feb 2018 12:00:32 -0500 Received: from localhost (unknown [37.169.172.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C2B77D33; Thu, 1 Feb 2018 17:00:31 +0000 (UTC) Date: Thu, 1 Feb 2018 18:00:28 +0100 From: Greg KH To: Stanislav Nijnikov Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, jaegeuk@kernel.org, alex.lemberg@wdc.com Subject: Re: [PATCH v4 02/10] ufs: sysfs: device descriptor Message-ID: <20180201170028.GB12838@kroah.com> References: <1517501746-19075-1-git-send-email-stanislav.nijnikov@wdc.com> <1517501746-19075-3-git-send-email-stanislav.nijnikov@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1517501746-19075-3-git-send-email-stanislav.nijnikov@wdc.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 01, 2018 at 06:15:38PM +0200, Stanislav Nijnikov wrote: > +#define UFS_DESC_PARAM(_name, _puname, _duname, _size) \ > +static ssize_t _name##_show(struct device *dev, \ > + struct device_attribute *attr, char *buf) \ > +{ \ > + struct ufs_hba *hba = dev_get_drvdata(dev); \ > + return ufs_sysfs_read_desc_param(hba, QUERY_DESC_IDN_##_duname, \ > + 0, _duname##_DESC_PARAM##_puname, \ > + buf, UFS_PARAM_##_size##_SIZE); \ > +} \ > +static DEVICE_ATTR_RO(_name) Nit, use tabs in your lines here to line up the trailing \ Same for other places in this patch series. thanks, greg k-h