Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964961AbdGTNrf (ORCPT ); Thu, 20 Jul 2017 09:47:35 -0400 Received: from mail-db5eur01on0045.outbound.protection.outlook.com ([104.47.2.45]:46293 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964840AbdGTNrd (ORCPT ); Thu, 20 Jul 2017 09:47:33 -0400 From: Laurentiu Tudor To: kbuild test robot CC: "kbuild-all@01.org" , "gregkh@linuxfoundation.org" , "stuyoder@gmail.com" , "devel@driverdev.osuosl.org" , "arnd@arndb.de" , "marc.zyngier@arm.com" , Roy Pledge , "linux-kernel@vger.kernel.org" , "agraf@suse.de" , "Catalin Horghidan" , Ioana Ciornei , Leo Li , Bharat Bhushan , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 7/7] staging: fsl-mc: allow the driver compile multi-arch Thread-Topic: [PATCH 7/7] staging: fsl-mc: allow the driver compile multi-arch Thread-Index: AQHS/wB3jVAw02GHKU+Imw3WwwqmNqJba7eAgAFTuoA= Date: Thu, 20 Jul 2017 13:47:27 +0000 Message-ID: <5970B46F.2000807@nxp.com> References: <201707200109.nheGR4xf%fengguang.wu@intel.com> In-Reply-To: <201707200109.nheGR4xf%fengguang.wu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.146.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0401MB2558;7:qCo9t0K226Yhiaio8JESalVnzwyEkLlnQQj2zKgOYksFL5AbXVh43rqbbx+hCh5hubE3VKxsz+tWxw4Nc9vglhun2dcjfde/9ya2tY71fJoTJXgGbwTKrY2BG//AGx8JN/+aA2g2krEST+TYbkOVDO4Z4NmSmIMI9YCWabhzoD7uigQiA3qaskFyLYgPRNBBZHdEhF3T00odQxMqhoaSFt3RelA2yo07rLiqMjssCzWZEVCunNvm+89KNj087Pn9xPD+Hl8zo/iHx853HGAZr9h7LLp39TfNuEWq2n9wKP6jwWzB1ovRZyMTNDUglvgIY2IJoHvmCLs64+Mf6k4omhPcoNqPbSnKyUK12ICZYgfiJiryeeFTTQvEuFdJN0O9uXi6llicHu+RrRORHKMPD1yYshxB8Oo4XJ9ylgQeE+npq+bp4cVVUcQHiA6dJR2iPa0Y/5U+6iUSXwyCQlr6fDfdZTP61MXkz81X2wXpwwfLggaQmeSinWDiEscFRRRmg56W7eDnmjQh1FweGxow3Jlhso4ZL1HaJYLhBE9fVpf7G6xa0BlmMphPDBZvERq38PGBqLjs/Qpm5qK4jiMJF+Iw3+Gf6uR5MfneZvMtEemumkNdgVxAp1wZT9ISm/1Muj4WhoYMONzn4pia9rIJ4nXC4q79Zqltvhi1Adtft8kT2snn1ysJ9r1vg2PBfu5AaXp58+lF50O6jw8nXzoQilyHEgKOklPs4Uob5apqfg2q+bqGT6aApti547aD0vamWY1C3GbkDDlBJ3dyy6l/Sd6KPjrZdgiOT98J2v/wTF4= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(39400400002)(39450400003)(39860400002)(39840400002)(39850400002)(39410400002)(24454002)(377454003)(377424004)(6116002)(2906002)(3846002)(86362001)(102836003)(575784001)(7416002)(8936002)(80316001)(5660300001)(2950100002)(189998001)(3280700002)(3660700001)(7736002)(2900100001)(6916009)(8676002)(81166006)(33656002)(4326008)(45080400002)(6506006)(66066001)(229853002)(25786009)(53936002)(305945005)(99286003)(6306002)(54906002)(6246003)(6436002)(59896002)(38730400002)(4001150100001)(966005)(76176999)(65816999)(5890100001)(54356999)(478600001)(110136004)(53946003)(87266999)(36756003)(53546010)(50986999)(6512007)(5250100002)(6486002)(14454004)(39060400002)(559001)(579004);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2558;H:VI1PR0401MB1856.eurprd04.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; x-ms-office365-filtering-correlation-id: 6bcd4f79-2ad2-40fb-5f34-08d4cf75dc7c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:VI1PR0401MB2558; x-ms-traffictypediagnostic: VI1PR0401MB2558: x-exchange-antispam-report-test: UriScan:(236129657087228)(189930954265078)(131327999870524)(48057245064654)(45079756050767)(228905959029699)(164587983369549); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR0401MB2558;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR0401MB2558; x-forefront-prvs: 0374433C81 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: <3B970C2DCB7DDF4AB26E547CB1B3B179@eurprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2017 13:47:28.0051 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2558 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v6KDlgUT026666 Content-Length: 27084 Lines: 457 Hi, Sparc seems to be broken in multiple places, including generic code. Is this a known issue? Is there something I could/should do? --- Thanks & Best Regards, Laurentiu On 07/19/2017 08:31 PM, kbuild test robot wrote: > Hi Laurentiu, > > [auto build test ERROR on staging/staging-testing] > [also build test ERROR on v4.13-rc1 next-20170718] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2F0day-ci%2Flinux%2Fcommits%2Flaurentiu-tudor-nxp-com%2Fstaging-fsl-mc-make-the-driver-compile-on-other-architectures%2F20170718-021715&data=01%7C01%7Claurentiu.tudor%40nxp.com%7C66f7c5619d664f88ce6108d4cecc14f5%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=HgKrckHRkhwe6PrGHc%2B1UfoT1rCyMw5C5%2B7wdEuvS5s%3D&reserved=0 > config: sparc-allyesconfig (attached as .config) > compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 > reproduce: > wget https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2F01org%2Flkp-tests%2Fmaster%2Fsbin%2Fmake.cross&data=01%7C01%7Claurentiu.tudor%40nxp.com%7C66f7c5619d664f88ce6108d4cecc14f5%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=kFjtWysm4LCK%2BnLcmpogI%2FHRRApSDRcl7QWofLo0%2FDY%3D&reserved=0 -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > make.cross ARCH=sparc > > All error/warnings (new ones prefixed by >>): > > In file included from kernel/irq/chip.c:14:0: >>> include/linux/msi.h:225:10: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:229:9: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:238:12: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:239:22: error: unknown type name 'msi_alloc_info_t' > void (*msi_finish)(msi_alloc_info_t *arg, int retval); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:240:20: error: unknown type name 'msi_alloc_info_t' > void (*set_desc)(msi_alloc_info_t *arg, > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:308:18: error: unknown type name 'msi_alloc_info_t' > int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:310:29: error: unknown type name 'msi_alloc_info_t' > int virq, int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > -- > In file included from kernel/irq/msi.c:16:0: >>> include/linux/msi.h:225:10: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:229:9: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:238:12: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:239:22: error: unknown type name 'msi_alloc_info_t' > void (*msi_finish)(msi_alloc_info_t *arg, int retval); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:240:20: error: unknown type name 'msi_alloc_info_t' > void (*set_desc)(msi_alloc_info_t *arg, > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:308:18: error: unknown type name 'msi_alloc_info_t' > int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:310:29: error: unknown type name 'msi_alloc_info_t' > int virq, int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > kernel/irq/msi.c: In function 'msi_domain_alloc': >>> kernel/irq/msi.c:126:29: error: 'struct msi_domain_ops' has no member named 'get_hwirq' > irq_hw_number_t hwirq = ops->get_hwirq(info, arg); > ^~ >>> kernel/irq/msi.c:139:12: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); > ^~ > kernel/irq/msi.c: At top level: >>> kernel/irq/msi.c:201:11: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg) > ^~~~~~~~~~~~~~~~ >>> kernel/irq/msi.c:221:2: error: unknown field 'get_hwirq' specified in initializer > .get_hwirq = msi_domain_ops_get_hwirq, > ^ >>> kernel/irq/msi.c:222:2: error: unknown field 'msi_init' specified in initializer > .msi_init = msi_domain_ops_init, > ^ >>> kernel/irq/msi.c:222:14: error: 'msi_domain_ops_init' undeclared here (not in a function) > .msi_init = msi_domain_ops_init, > ^~~~~~~~~~~~~~~~~~~ >>> kernel/irq/msi.c:224:2: error: unknown field 'msi_prepare' specified in initializer > .msi_prepare = msi_domain_ops_prepare, > ^ >>> kernel/irq/msi.c:225:2: error: unknown field 'set_desc' specified in initializer > .set_desc = msi_domain_ops_set_desc, > ^ > In file included from include/uapi/linux/posix_types.h:4:0, > from include/uapi/linux/types.h:13, > from include/linux/types.h:5, > from kernel/irq/msi.c:12: > include/linux/stddef.h:7:14: warning: excess elements in struct initializer > #define NULL ((void *)0) > ^ >>> kernel/irq/msi.c:195:34: note: in expansion of macro 'NULL' > #define msi_domain_ops_set_desc NULL > ^~~~ >>> kernel/irq/msi.c:225:14: note: in expansion of macro 'msi_domain_ops_set_desc' > .set_desc = msi_domain_ops_set_desc, > ^~~~~~~~~~~~~~~~~~~~~~~ > include/linux/stddef.h:7:14: note: (near initialization for 'msi_domain_ops_default') > #define NULL ((void *)0) > ^ >>> kernel/irq/msi.c:195:34: note: in expansion of macro 'NULL' > #define msi_domain_ops_set_desc NULL > ^~~~ >>> kernel/irq/msi.c:225:14: note: in expansion of macro 'msi_domain_ops_set_desc' > .set_desc = msi_domain_ops_set_desc, > ^~~~~~~~~~~~~~~~~~~~~~~ > kernel/irq/msi.c: In function 'msi_domain_update_dom_ops': > kernel/irq/msi.c:237:9: error: 'struct msi_domain_ops' has no member named 'get_hwirq' > if (ops->get_hwirq == NULL) > ^~ > kernel/irq/msi.c:238:6: error: 'struct msi_domain_ops' has no member named 'get_hwirq' > ops->get_hwirq = msi_domain_ops_default.get_hwirq; > ^~ > kernel/irq/msi.c:238:42: error: 'struct msi_domain_ops' has no member named 'get_hwirq' > ops->get_hwirq = msi_domain_ops_default.get_hwirq; > ^ > kernel/irq/msi.c:239:9: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > if (ops->msi_init == NULL) > ^~ > kernel/irq/msi.c:240:6: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > ops->msi_init = msi_domain_ops_default.msi_init; > ^~ > kernel/irq/msi.c:240:41: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > ops->msi_init = msi_domain_ops_default.msi_init; > ^ >>> kernel/irq/msi.c:243:9: error: 'struct msi_domain_ops' has no member named 'msi_prepare'; did you mean 'msi_free'? > if (ops->msi_prepare == NULL) > ^~ > kernel/irq/msi.c:244:6: error: 'struct msi_domain_ops' has no member named 'msi_prepare'; did you mean 'msi_free'? > ops->msi_prepare = msi_domain_ops_default.msi_prepare; > ^~ > kernel/irq/msi.c:244:44: error: 'struct msi_domain_ops' has no member named 'msi_prepare'; did you mean 'msi_free'? > ops->msi_prepare = msi_domain_ops_default.msi_prepare; > ^ >>> kernel/irq/msi.c:245:9: error: 'struct msi_domain_ops' has no member named 'set_desc' > if (ops->set_desc == NULL) > ^~ > kernel/irq/msi.c:246:6: error: 'struct msi_domain_ops' has no member named 'set_desc' > ops->set_desc = msi_domain_ops_default.set_desc; > ^~ > kernel/irq/msi.c:246:41: error: 'struct msi_domain_ops' has no member named 'set_desc' > ops->set_desc = msi_domain_ops_default.set_desc; > ^ > kernel/irq/msi.c: At top level: > kernel/irq/msi.c:285:18: error: unknown type name 'msi_alloc_info_t' > int nvec, msi_alloc_info_t *arg) > ^~~~~~~~~~~~~~~~ > kernel/irq/msi.c:299:29: error: unknown type name 'msi_alloc_info_t' > int virq, int nvec, msi_alloc_info_t *arg) > ^~~~~~~~~~~~~~~~ > kernel/irq/msi.c: In function 'msi_domain_alloc_irqs': > kernel/irq/msi.c:352:2: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t arg; > ^~~~~~~~~~~~~~~~ >>> kernel/irq/msi.c:356:8: error: implicit declaration of function 'msi_domain_prepare_irqs' [-Werror=implicit-function-declaration] > ret = msi_domain_prepare_irqs(domain, dev, nvec, &arg); > ^~~~~~~~~~~~~~~~~~~~~~~ > kernel/irq/msi.c:361:6: error: 'struct msi_domain_ops' has no member named 'set_desc' > ops->set_desc(&arg, desc); > ^~ >>> kernel/irq/msi.c:370:11: error: 'struct msi_domain_ops' has no member named 'msi_finish'; did you mean 'msi_free'? > if (ops->msi_finish) > ^~ > kernel/irq/msi.c:371:8: error: 'struct msi_domain_ops' has no member named 'msi_finish'; did you mean 'msi_free'? > ops->msi_finish(&arg, ret); > ^~ > kernel/irq/msi.c:379:9: error: 'struct msi_domain_ops' has no member named 'msi_finish'; did you mean 'msi_free'? > if (ops->msi_finish) > ^~ > kernel/irq/msi.c:380:6: error: 'struct msi_domain_ops' has no member named 'msi_finish'; did you mean 'msi_free'? > ops->msi_finish(&arg, 0); > ^~ > cc1: some warnings being treated as errors > -- > In file included from drivers//staging/fsl-mc/bus/fsl-mc-msi.c:17:0: >>> include/linux/msi.h:225:10: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:229:9: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:238:12: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:239:22: error: unknown type name 'msi_alloc_info_t' > void (*msi_finish)(msi_alloc_info_t *arg, int retval); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:240:20: error: unknown type name 'msi_alloc_info_t' > void (*set_desc)(msi_alloc_info_t *arg, > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:308:18: error: unknown type name 'msi_alloc_info_t' > int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:310:29: error: unknown type name 'msi_alloc_info_t' > int virq, int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > drivers//staging/fsl-mc/bus/fsl-mc-msi.c: In function 'fsl_mc_msi_update_dom_ops': >>> drivers//staging/fsl-mc/bus/fsl-mc-msi.c:56:10: error: 'struct msi_domain_ops' has no member named 'set_desc' > if (!ops->set_desc) > ^~ > drivers//staging/fsl-mc/bus/fsl-mc-msi.c:57:6: error: 'struct msi_domain_ops' has no member named 'set_desc' > ops->set_desc = fsl_mc_msi_set_desc; > ^~ > -- > In file included from drivers//staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c:15:0: >>> include/linux/msi.h:225:10: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:229:9: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:238:12: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:239:22: error: unknown type name 'msi_alloc_info_t' > void (*msi_finish)(msi_alloc_info_t *arg, int retval); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:240:20: error: unknown type name 'msi_alloc_info_t' > void (*set_desc)(msi_alloc_info_t *arg, > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:308:18: error: unknown type name 'msi_alloc_info_t' > int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:310:29: error: unknown type name 'msi_alloc_info_t' > int virq, int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ >>> drivers//staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c:30:17: error: unknown type name 'msi_alloc_info_t' > int nvec, msi_alloc_info_t *info) > ^~~~~~~~~~~~~~~~ >>> drivers//staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c:56:2: error: unknown field 'msi_prepare' specified in initializer > .msi_prepare = its_fsl_mc_msi_prepare, > ^ >>> drivers//staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c:56:17: error: 'its_fsl_mc_msi_prepare' undeclared here (not in a function) > .msi_prepare = its_fsl_mc_msi_prepare, > ^~~~~~~~~~~~~~~~~~~~~~ > -- > In file included from drivers//base/platform-msi.c:24:0: >>> include/linux/msi.h:225:10: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:229:9: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:238:12: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:239:22: error: unknown type name 'msi_alloc_info_t' > void (*msi_finish)(msi_alloc_info_t *arg, int retval); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:240:20: error: unknown type name 'msi_alloc_info_t' > void (*set_desc)(msi_alloc_info_t *arg, > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:308:18: error: unknown type name 'msi_alloc_info_t' > int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:310:29: error: unknown type name 'msi_alloc_info_t' > int virq, int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ >>> drivers//base/platform-msi.c:37:2: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t arg; > ^~~~~~~~~~~~~~~~ > drivers//base/platform-msi.c: In function 'platform_msi_update_dom_ops': >>> drivers//base/platform-msi.c:84:9: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > if (ops->msi_init == NULL) > ^~ > drivers//base/platform-msi.c:85:6: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > ops->msi_init = platform_msi_init; > ^~ >>> drivers//base/platform-msi.c:86:9: error: 'struct msi_domain_ops' has no member named 'set_desc' > if (ops->set_desc == NULL) > ^~ > drivers//base/platform-msi.c:87:6: error: 'struct msi_domain_ops' has no member named 'set_desc' > ops->set_desc = platform_msi_set_desc; > ^~ > drivers//base/platform-msi.c: In function 'platform_msi_create_device_domain': >>> drivers//base/platform-msi.c:352:8: error: implicit declaration of function 'msi_domain_prepare_irqs' [-Werror=implicit-function-declaration] > err = msi_domain_prepare_irqs(domain->parent, dev, nvec, &data->arg); > ^~~~~~~~~~~~~~~~~~~~~~~ > drivers//base/platform-msi.c: In function 'platform_msi_domain_alloc': >>> drivers//base/platform-msi.c:410:8: error: implicit declaration of function 'msi_domain_populate_irqs' [-Werror=implicit-function-declaration] > err = msi_domain_populate_irqs(domain->parent, data->dev, > ^~~~~~~~~~~~~~~~~~~~~~~~ > cc1: some warnings being treated as errors > -- > In file included from kernel//irq/msi.c:16:0: >>> include/linux/msi.h:225:10: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:229:9: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:238:12: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:239:22: error: unknown type name 'msi_alloc_info_t' > void (*msi_finish)(msi_alloc_info_t *arg, int retval); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:240:20: error: unknown type name 'msi_alloc_info_t' > void (*set_desc)(msi_alloc_info_t *arg, > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:308:18: error: unknown type name 'msi_alloc_info_t' > int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > include/linux/msi.h:310:29: error: unknown type name 'msi_alloc_info_t' > int virq, int nvec, msi_alloc_info_t *args); > ^~~~~~~~~~~~~~~~ > kernel//irq/msi.c: In function 'msi_domain_alloc': > kernel//irq/msi.c:126:29: error: 'struct msi_domain_ops' has no member named 'get_hwirq' > irq_hw_number_t hwirq = ops->get_hwirq(info, arg); > ^~ > kernel//irq/msi.c:139:12: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); > ^~ > kernel//irq/msi.c: At top level: > kernel//irq/msi.c:201:11: error: unknown type name 'msi_alloc_info_t' > msi_alloc_info_t *arg) > ^~~~~~~~~~~~~~~~ > kernel//irq/msi.c:221:2: error: unknown field 'get_hwirq' specified in initializer > .get_hwirq = msi_domain_ops_get_hwirq, > ^ > kernel//irq/msi.c:222:2: error: unknown field 'msi_init' specified in initializer > .msi_init = msi_domain_ops_init, > ^ > kernel//irq/msi.c:222:14: error: 'msi_domain_ops_init' undeclared here (not in a function) > .msi_init = msi_domain_ops_init, > ^~~~~~~~~~~~~~~~~~~ > kernel//irq/msi.c:224:2: error: unknown field 'msi_prepare' specified in initializer > .msi_prepare = msi_domain_ops_prepare, > ^ > kernel//irq/msi.c:225:2: error: unknown field 'set_desc' specified in initializer > .set_desc = msi_domain_ops_set_desc, > ^ > In file included from include/uapi/linux/posix_types.h:4:0, > from include/uapi/linux/types.h:13, > from include/linux/types.h:5, > from kernel//irq/msi.c:12: > include/linux/stddef.h:7:14: warning: excess elements in struct initializer > #define NULL ((void *)0) > ^ > kernel//irq/msi.c:195:34: note: in expansion of macro 'NULL' > #define msi_domain_ops_set_desc NULL > ^~~~ > kernel//irq/msi.c:225:14: note: in expansion of macro 'msi_domain_ops_set_desc' > .set_desc = msi_domain_ops_set_desc, > ^~~~~~~~~~~~~~~~~~~~~~~ > include/linux/stddef.h:7:14: note: (near initialization for 'msi_domain_ops_default') > #define NULL ((void *)0) > ^ > kernel//irq/msi.c:195:34: note: in expansion of macro 'NULL' > #define msi_domain_ops_set_desc NULL > ^~~~ > kernel//irq/msi.c:225:14: note: in expansion of macro 'msi_domain_ops_set_desc' > .set_desc = msi_domain_ops_set_desc, > ^~~~~~~~~~~~~~~~~~~~~~~ > kernel//irq/msi.c: In function 'msi_domain_update_dom_ops': > kernel//irq/msi.c:237:9: error: 'struct msi_domain_ops' has no member named 'get_hwirq' > if (ops->get_hwirq == NULL) > ^~ > kernel//irq/msi.c:238:6: error: 'struct msi_domain_ops' has no member named 'get_hwirq' > ops->get_hwirq = msi_domain_ops_default.get_hwirq; > ^~ > kernel//irq/msi.c:238:42: error: 'struct msi_domain_ops' has no member named 'get_hwirq' > ops->get_hwirq = msi_domain_ops_default.get_hwirq; > ^ > kernel//irq/msi.c:239:9: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > if (ops->msi_init == NULL) > ^~ > kernel//irq/msi.c:240:6: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > ops->msi_init = msi_domain_ops_default.msi_init; > ^~ > kernel//irq/msi.c:240:41: error: 'struct msi_domain_ops' has no member named 'msi_init'; did you mean 'msi_free'? > ops->msi_init = msi_domain_ops_default.msi_init; > ^ > kernel//irq/msi.c:243:9: error: 'struct msi_domain_ops' has no member named 'msi_prepare'; did you mean 'msi_free'? > if (ops->msi_prepare == NULL) > ^~ > kernel//irq/msi.c:244:6: error: 'struct msi_domain_ops' has no member named 'msi_prepare'; did you mean 'msi_free'? > ops->msi_prepare = msi_domain_ops_default.msi_prepare; > ^~ > kernel//irq/msi.c:244:44: error: 'struct msi_domain_ops' has no member named 'msi_prepare'; did you mean 'msi_free'? > ops->msi_prepare = msi_domain_ops_default.msi_prepare; > ^ > kernel//irq/msi.c:245:9: error: 'struct msi_domain_ops' has no member named 'set_desc' > if (ops->set_desc == NULL) > ^~ > kernel//irq/msi.c:246:6: error: 'struct msi_domain_ops' has no member named 'set_desc' > .. > > vim +/msi_alloc_info_t +225 include/linux/msi.h > > f3cf8bb0 Jiang Liu 2014-11-12 204 > f3cf8bb0 Jiang Liu 2014-11-12 205 /** > f3cf8bb0 Jiang Liu 2014-11-12 206 * struct msi_domain_ops - MSI interrupt domain callbacks > f3cf8bb0 Jiang Liu 2014-11-12 207 * @get_hwirq: Retrieve the resulting hw irq number > f3cf8bb0 Jiang Liu 2014-11-12 208 * @msi_init: Domain specific init function for MSI interrupts > f3cf8bb0 Jiang Liu 2014-11-12 209 * @msi_free: Domain specific function to free a MSI interrupts > d9109698 Jiang Liu 2014-11-15 210 * @msi_check: Callback for verification of the domain/info/dev data > d9109698 Jiang Liu 2014-11-15 211 * @msi_prepare: Prepare the allocation of the interrupts in the domain > 1d1e8cdc Thomas Petazzoni 2015-12-21 212 * @msi_finish: Optional callback to finalize the allocation > d9109698 Jiang Liu 2014-11-15 213 * @set_desc: Set the msi descriptor for an interrupt > d9109698 Jiang Liu 2014-11-15 214 * @handle_error: Optional error handler if the allocation fails > d9109698 Jiang Liu 2014-11-15 215 * > d9109698 Jiang Liu 2014-11-15 216 * @get_hwirq, @msi_init and @msi_free are callbacks used by > d9109698 Jiang Liu 2014-11-15 217 * msi_create_irq_domain() and related interfaces > d9109698 Jiang Liu 2014-11-15 218 * > d9109698 Jiang Liu 2014-11-15 219 * @msi_check, @msi_prepare, @msi_finish, @set_desc and @handle_error > 1d1e8cdc Thomas Petazzoni 2015-12-21 220 * are callbacks used by msi_domain_alloc_irqs() and related > d9109698 Jiang Liu 2014-11-15 221 * interfaces which are based on msi_desc. > f3cf8bb0 Jiang Liu 2014-11-12 222 */ > f3cf8bb0 Jiang Liu 2014-11-12 223 struct msi_domain_ops { > aeeb5965 Jiang Liu 2014-11-15 224 irq_hw_number_t (*get_hwirq)(struct msi_domain_info *info, > aeeb5965 Jiang Liu 2014-11-15 @225 msi_alloc_info_t *arg); > f3cf8bb0 Jiang Liu 2014-11-12 226 int (*msi_init)(struct irq_domain *domain, > f3cf8bb0 Jiang Liu 2014-11-12 227 struct msi_domain_info *info, > f3cf8bb0 Jiang Liu 2014-11-12 228 unsigned int virq, irq_hw_number_t hwirq, > aeeb5965 Jiang Liu 2014-11-15 229 msi_alloc_info_t *arg); > f3cf8bb0 Jiang Liu 2014-11-12 230 void (*msi_free)(struct irq_domain *domain, > f3cf8bb0 Jiang Liu 2014-11-12 231 struct msi_domain_info *info, > f3cf8bb0 Jiang Liu 2014-11-12 232 unsigned int virq); > d9109698 Jiang Liu 2014-11-15 233 int (*msi_check)(struct irq_domain *domain, > d9109698 Jiang Liu 2014-11-15 234 struct msi_domain_info *info, > d9109698 Jiang Liu 2014-11-15 235 struct device *dev); > d9109698 Jiang Liu 2014-11-15 236 int (*msi_prepare)(struct irq_domain *domain, > d9109698 Jiang Liu 2014-11-15 237 struct device *dev, int nvec, > d9109698 Jiang Liu 2014-11-15 238 msi_alloc_info_t *arg); > d9109698 Jiang Liu 2014-11-15 239 void (*msi_finish)(msi_alloc_info_t *arg, int retval); > d9109698 Jiang Liu 2014-11-15 240 void (*set_desc)(msi_alloc_info_t *arg, > d9109698 Jiang Liu 2014-11-15 241 struct msi_desc *desc); > d9109698 Jiang Liu 2014-11-15 242 int (*handle_error)(struct irq_domain *domain, > d9109698 Jiang Liu 2014-11-15 243 struct msi_desc *desc, int error); > f3cf8bb0 Jiang Liu 2014-11-12 244 }; > f3cf8bb0 Jiang Liu 2014-11-12 245 > > :::::: The code at line 225 was first introduced by commit > :::::: aeeb59657c35da64068336c20068da237f41ab76 genirq: Provide default callbacks for msi_domain_ops > > :::::: TO: Jiang Liu > :::::: CC: Thomas Gleixner > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.01.org%2Fpipermail%2Fkbuild-all&data=01%7C01%7Claurentiu.tudor%40nxp.com%7C66f7c5619d664f88ce6108d4cecc14f5%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=hceaX47eTei7tR91loXYyGufa3dPQhBqyS7R212VcUw%3D&reserved=0 Intel Corporation >