Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp391209ybn; Tue, 1 Oct 2019 23:12:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2HSlw9YQbweDl7rz9MdVkyTMhLfIpqn0sUxLp9EOi0Kl/9Iu9bTXBGmvjnX+VmSiF+5eA X-Received: by 2002:a05:6402:1e4:: with SMTP id i4mr2016948edy.31.1569996722836; Tue, 01 Oct 2019 23:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569996722; cv=none; d=google.com; s=arc-20160816; b=taKfj+9YTX3S9658PG6aWnQjsmCR1OyhO5g3gN6HeKF0dLhzPWrmFBCzhBlCSsVNzW uQQRTPsEqOvDdwn+8pwuZcsTacqK9vw0Z327c9Q8nZ17Y8MXURjMECQSXTCL4hL/IgCT 1WT/9FrctI5EhrC8Kfif+69FMw0TmvORVfkiGFv5geJ5rtz0W0G7Ma/wr+dk8YH+wqGg xIVq8VG1gZI8O36pJd3U4LWcdpzRM2oikF1/7jqnincfgybyrp+KSgfkdfEQ6Y0eRBcS KWaYStckoGwLxp4f2asUHVSkrMwHiyIWSTFrV0vm8NxYpAMqmiC38TRg0lDIW7ugwIK1 ExFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=YHyxmCK3gJCufPyDGUVDaFvVqhCyn3wEK1tFJbfkto8=; b=eqVbhmSNsTLhdm3NoHGz0rNiwXsqsLgtBCAXOKgaz4Exi5/+UUtKjvNx66OlexoK2+ D1rfTE09shALd174+/Y1Dlj+nGMl1nRQ/w5PB+/xSIH3mtP1CPAtjo6qRkvNcmJ/2bo+ ySk8hUyWWljRnTRomyPtg1ybPwt8AIpO+PIMWc1hzHZ77ugviHNsE5vscThIn57aVMtl jTXE7v0nQFSPm0c0kBT2ksiDVrVCiqgSN90jBmEA51Q1TytPWEl8uLIcC+NZF02ClocP O71x9jPqtryZxm7TgTND4UOLYb/RjQ6rzGLpD2sAeU1S7Ly4DVJ0kRJ1H4+CZZq08x9L koeA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16si9807237ejx.141.2019.10.01.23.11.38; Tue, 01 Oct 2019 23:12:02 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729134AbfJAXhh (ORCPT + 99 others); Tue, 1 Oct 2019 19:37:37 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40366 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729050AbfJAXhh (ORCPT ); Tue, 1 Oct 2019 19:37:37 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x91NaiiK104729 for ; Tue, 1 Oct 2019 19:37:36 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vcgk402qx-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 01 Oct 2019 19:37:35 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 2 Oct 2019 00:37:33 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 2 Oct 2019 00:37:29 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x91NbRx136372604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 1 Oct 2019 23:37:28 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE242AE04D; Tue, 1 Oct 2019 23:37:27 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 35D86AE051; Tue, 1 Oct 2019 23:37:25 +0000 (GMT) Received: from swastik.ibm.com (unknown [9.80.224.222]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 1 Oct 2019 23:37:25 +0000 (GMT) From: Nayna Jain To: linuxppc-dev@ozlabs.org, linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Ard Biesheuvel , Jeremy Kerr , Matthew Garret , Mimi Zohar , Greg Kroah-Hartman , Claudio Carvalho , George Wilson , Elaine Palmer , Eric Ricther , "Oliver O'Halloran" , Nayna Jain Subject: [PATCH] sysfs: Fixes __BIN_ATTR_WO() macro Date: Tue, 1 Oct 2019 19:37:18 -0400 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 19100123-0020-0000-0000-000003742318 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19100123-0021-0000-0000-000021CA2488 Message-Id: <1569973038-2710-1-git-send-email-nayna@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-01_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=740 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910010201 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the size and write parameter for the macro __BIN_ATTR_WO(). Fixes: 7f905761e15a8 ("sysfs: add BIN_ATTR_WO() macro") Signed-off-by: Nayna Jain --- include/linux/sysfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 5420817ed317..fa7ee503fb76 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -196,9 +196,9 @@ struct bin_attribute { .size = _size, \ } -#define __BIN_ATTR_WO(_name) { \ +#define __BIN_ATTR_WO(_name, _size) { \ .attr = { .name = __stringify(_name), .mode = 0200 }, \ - .store = _name##_store, \ + .write = _name##_write, \ .size = _size, \ } -- 2.20.1