Received: by 10.213.65.68 with SMTP id h4csp2148843imn; Sun, 8 Apr 2018 20:59:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/PL5KiErMQD0gQOOUxd8P0eppm9i833bnY/0nunmq35X1zXXA3txKFm4soIzFUQ04Cm7pm X-Received: by 10.98.155.137 with SMTP id e9mr27985248pfk.109.1523246380314; Sun, 08 Apr 2018 20:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523246380; cv=none; d=google.com; s=arc-20160816; b=bBPktAF/rF/vDlmNBRpOoZHLNQrie5vBcFp396diG58s3ajtzgrGOlZmIr5moz1QsZ FraKOosXwOWUdwsqG/U2jic5caruZf6EdnT3B7Q3rrgcuYlsmsgXwFCzGmEjYHuXC0ux hDZ6bYBB5FNVSpztRG6qx1XMypVdQFBfRaQ8IuYJXK+evp9hTZDL0xbaFG4fLotYqXv/ lwdBet+7TOpx6PUrg3KWhMUIjC2wshx5Bh4vCM1AkPls27xnNGhvN00XilvBXP1UmW1e 3wlQFBcBd7SjXVFeEJMQ5YtCyEAYubsIVZNzKfNYJ3+WfjTkU9usZuwys/ApqSz+PyMU SOqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=f2vjgcbUyTHDdOMSMdh3QXoSwSUWuqoimVhm2PS+2NQ=; b=dGvzFuTq4EgeZjgtbHWoZ4gKvS03Zf9lCyp/QbwSA5LjWhUqHy8tRNo9ygMXeWLnyh ntkWo8q+xFLFHyOgGOdrERuVCd8JCMk/w97RTltheP+g8Z5z/BIM9YYBcpHBvGK6m5aJ YpdB2gSdrSUwUafsrIdjw7a36lpMPL+yy0r6Ytn/IkguhQbSJaUDEB+voRzSR2f84oKm jqxLwNYhVdV6tNMkr8ohYacLZI9eIf6Mi5W9CCr5APl04H15IoOzCcSRxt951RzgO2VF qYVndV+qmEtJAKC2K+ISGqHgIRbjpTDBiDvCsmSFZO5w9FHH5uh69SFA/VYiT6Oy0qR/ i/ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=YD1c5hQH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si10462908pgz.328.2018.04.08.20.59.03; Sun, 08 Apr 2018 20:59:40 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=YD1c5hQH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754113AbeDIDyH (ORCPT + 99 others); Sun, 8 Apr 2018 23:54:07 -0400 Received: from mail-bn3nam01on0100.outbound.protection.outlook.com ([104.47.33.100]:20288 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753935AbeDIATS (ORCPT ); Sun, 8 Apr 2018 20:19:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=f2vjgcbUyTHDdOMSMdh3QXoSwSUWuqoimVhm2PS+2NQ=; b=YD1c5hQHWoeygHMA90PTfOpIOTA/Fqx5DfY9m8WFx313VkaBofT8wVXyUPtnUMDbUn7swWZ6DaRWcuOxwawF5edP6h0WWN6myMUbUvle5pH1x+kvB3GqmfQCsw85KPwcRlyJVZBZFgGerotCe/fNFUNKUapt/jvwBsE/F05QJis= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1063.namprd21.prod.outlook.com (52.132.128.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:19:15 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:19:15 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Andy Shevchenko , Corey Minyard , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 093/189] device property: Define type of PROPERTY_ENRTY_*() macros Thread-Topic: [PATCH AUTOSEL for 4.15 093/189] device property: Define type of PROPERTY_ENRTY_*() macros Thread-Index: AQHTz5g3ihNIvEFGuUeajcY+VqmGzQ== Date: Mon, 9 Apr 2018 00:17:59 +0000 Message-ID: <20180409001637.162453-93-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1063;7:r9plUxNbL6U4ODJwoVbj7e0Kx97lTw77kZTeA4wQIC9F2ski9/Z896NwcTD3V42djerQrvssPdhWWkAIxU0bKly1zjGe3qcoMXLyziaMlbhejtAk2nQXGuqoLRmSJm9+p9fpQX0oWpFpGyUWeAok2jRVPsxXW4xl2LAKgdBCzLLPcx69HuZcZ1JDNLhlkxzP8RvFNk642/GgSjlZg8SjhALBpI/CYhnvPHpcYiewiNY1zrM2T/NjN9VavF/HGYpl;20:3FFbqVqdUXDmhCo+i80UEAkT6DTg7ZPpU3a7gv33eQdWV01hjNtAoE5d1Pb2DRK2z1f12y/G/FbPCCYXv0BTaqpnn/mhHh33tQBEXge3g5wZKm70LrUOj62E4up/yiNWCPXOBDU90z2Y5VuqwgF38VGTpuCdZqlJ61h3ZN+YJSQ= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 97ba5598-443f-42bc-f66f-08d59daf8746 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1063; x-ms-traffictypediagnostic: DM5PR2101MB1063: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(213716511872227)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1063;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1063; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39380400002)(39860400002)(376002)(396003)(366004)(189003)(199004)(2900100001)(6436002)(7736002)(10090500001)(102836004)(3660700001)(6506007)(76176011)(305945005)(4326008)(5250100002)(97736004)(26005)(25786009)(6512007)(2906002)(81166006)(106356001)(107886003)(68736007)(14454004)(86612001)(66066001)(10290500003)(6666003)(5660300001)(81156014)(478600001)(476003)(486006)(6486002)(72206003)(3280700002)(99286004)(105586002)(36756003)(1076002)(2616005)(11346002)(53936002)(446003)(8676002)(186003)(3846002)(54906003)(6116002)(2501003)(8936002)(316002)(110136005)(86362001)(22452003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1063;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: xvlmbXtC7yVSMZdjvT2NvV6bNt/6IeO6ctoKIP1pQ1tz4W/U2s1pQfyg5ANxyf5gD0j9KB8dqJgsnhA+n5xiP5/4dxP2Py93suB15R1PttgE2UTB26/gGX60pn7KOhe0OmFrhe0Y9P4INqRVeNHgNOP/P4cPrdu+irmdiMpjRV+aGmACHBwu56bunJk75LiOCmBCXMU3p1HlsdfIy9PILw3cVnPY9HqwecDamvhilfH0/22ff50XX9oFYnilgQ6/rVh6ME0vVQGIT9tb09CkbLSsM50hwgLctxJprft8VjAxJafTBJZJHi5kA4FMR2fYUz/4o5UIsZ1zkjmAXdnasAo8HbUvccQa5oYy+Nl8lrwuIgiwg/qaXy6Wut7LRDXXKY9htAuGkttfhcEK2KAvyfuhzzBXb2+CMbFXLJ+m3WI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97ba5598-443f-42bc-f66f-08d59daf8746 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:59.3820 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1063 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko [ Upstream commit c505cbd45f6e9c539d57dd171d95ec7e5e9f9cd0 ] Some of the drivers may use the macro at runtime flow, like struct property_entry p[10]; ... p[index++] =3D PROPERTY_ENTRY_U8("u8 property", u8_data); In that case and absence of the data type compiler fails the build: drivers/char/ipmi/ipmi_dmi.c:79:29: error: Expected ; at end of statement drivers/char/ipmi/ipmi_dmi.c:79:29: error: got { Acked-by: Corey Minyard Cc: Corey Minyard Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- include/linux/property.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/property.h b/include/linux/property.h index f6189a3ac63c..2e3a7c24659e 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -206,7 +206,7 @@ struct property_entry { */ =20 #define PROPERTY_ENTRY_INTEGER_ARRAY(_name_, _type_, _val_) \ -{ \ +(struct property_entry) { \ .name =3D _name_, \ .length =3D ARRAY_SIZE(_val_) * sizeof(_type_), \ .is_array =3D true, \ @@ -224,7 +224,7 @@ struct property_entry { PROPERTY_ENTRY_INTEGER_ARRAY(_name_, u64, _val_) =20 #define PROPERTY_ENTRY_STRING_ARRAY(_name_, _val_) \ -{ \ +(struct property_entry) { \ .name =3D _name_, \ .length =3D ARRAY_SIZE(_val_) * sizeof(const char *), \ .is_array =3D true, \ @@ -233,7 +233,7 @@ struct property_entry { } =20 #define PROPERTY_ENTRY_INTEGER(_name_, _type_, _val_) \ -{ \ +(struct property_entry) { \ .name =3D _name_, \ .length =3D sizeof(_type_), \ .is_string =3D false, \ @@ -250,7 +250,7 @@ struct property_entry { PROPERTY_ENTRY_INTEGER(_name_, u64, _val_) =20 #define PROPERTY_ENTRY_STRING(_name_, _val_) \ -{ \ +(struct property_entry) { \ .name =3D _name_, \ .length =3D sizeof(_val_), \ .is_string =3D true, \ @@ -258,7 +258,7 @@ struct property_entry { } =20 #define PROPERTY_ENTRY_BOOL(_name_) \ -{ \ +(struct property_entry) { \ .name =3D _name_, \ } =20 --=20 2.15.1