* [rafael-pm:bleeding-edge 39/52] drivers/acpi/apei/einj-core.c:877:43: error: expected identifier
@ 2025-04-09 18:10 kernel test robot
2025-04-09 19:25 ` Sudeep Holla
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-04-09 18:10 UTC (permalink / raw)
To: Sudeep Holla
Cc: llvm, oe-kbuild-all, linux-acpi, devel, linux-pm,
Rafael J. Wysocki
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head: 089d4e79e2c932faef79e0061cb874000f755009
commit: 4ec052af63c58a62a896508cc5f8a0a2f516a590 [39/52] ACPI: APEI: EINJ: Transition to the faux device interface
config: x86_64-buildonly-randconfig-001-20250409 (https://download.01.org/0day-ci/archive/20250410/202504100128.AjbVDQgK-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250410/202504100128.AjbVDQgK-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504100128.AjbVDQgK-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/acpi/apei/einj-core.c:877:43: error: expected identifier
877 | module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
| ^
include/linux/init.h:397:21: note: expanded from macro '__exit_p'
397 | #define __exit_p(x) NULL
| ^
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^
>> drivers/acpi/apei/einj-core.c:877:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
877 | module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
| ^
| int
>> drivers/acpi/apei/einj-core.c:877:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
877 | module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
| ^
| void
3 errors generated.
vim +877 drivers/acpi/apei/einj-core.c
876
> 877 module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
878
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [rafael-pm:bleeding-edge 39/52] drivers/acpi/apei/einj-core.c:877:43: error: expected identifier
2025-04-09 18:10 [rafael-pm:bleeding-edge 39/52] drivers/acpi/apei/einj-core.c:877:43: error: expected identifier kernel test robot
@ 2025-04-09 19:25 ` Sudeep Holla
2025-04-09 19:34 ` Rafael J. Wysocki
0 siblings, 1 reply; 3+ messages in thread
From: Sudeep Holla @ 2025-04-09 19:25 UTC (permalink / raw)
To: kernel test robot
Cc: llvm, oe-kbuild-all, Sudeep Holla, linux-acpi, devel, linux-pm,
Rafael J. Wysocki
On Thu, Apr 10, 2025 at 02:10:04AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
> head: 089d4e79e2c932faef79e0061cb874000f755009
> commit: 4ec052af63c58a62a896508cc5f8a0a2f516a590 [39/52] ACPI: APEI: EINJ: Transition to the faux device interface
> config: x86_64-buildonly-randconfig-001-20250409 (https://download.01.org/0day-ci/archive/20250410/202504100128.AjbVDQgK-lkp@intel.com/config)
> compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250410/202504100128.AjbVDQgK-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202504100128.AjbVDQgK-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> >> drivers/acpi/apei/einj-core.c:877:43: error: expected identifier
> 877 | module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
> | ^
> include/linux/init.h:397:21: note: expanded from macro '__exit_p'
> 397 | #define __exit_p(x) NULL
> | ^
> include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
> 8 | #define NULL ((void *)0)
> | ^
> >> drivers/acpi/apei/einj-core.c:877:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
> 877 | module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
> | ^
> | int
> >> drivers/acpi/apei/einj-core.c:877:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
> 877 | module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
> | ^
> | void
> 3 errors generated.
>
>
> vim +877 drivers/acpi/apei/einj-core.c
>
> 876
> > 877 module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
> 878
>
The macro module_faux_driver() was not merged as most of the users I
posted in v2 of the series depend on modprobe and modalias and that
doesn't work with faux devices.
If this ACPI APEI EINJ also needs that support we can't use faux device.
But I think this doesn't have modalias, so v1 of this change[1] which
doesn't introduce/use the macro module_faux_driver() can be used instead.
Sorry for the noise with v2.
--
Regards,
Sudeep
[1] https://lore.kernel.org/all/20250317-plat2faux_dev-v1-8-5fe67c085ad5@arm.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rafael-pm:bleeding-edge 39/52] drivers/acpi/apei/einj-core.c:877:43: error: expected identifier
2025-04-09 19:25 ` Sudeep Holla
@ 2025-04-09 19:34 ` Rafael J. Wysocki
0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2025-04-09 19:34 UTC (permalink / raw)
To: Sudeep Holla
Cc: kernel test robot, llvm, oe-kbuild-all, linux-acpi, devel,
linux-pm, Rafael J. Wysocki
On Wed, Apr 9, 2025 at 9:25 PM Sudeep Holla <sudeep.holla@arm.com> wrote:
>
> On Thu, Apr 10, 2025 at 02:10:04AM +0800, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
> > head: 089d4e79e2c932faef79e0061cb874000f755009
> > commit: 4ec052af63c58a62a896508cc5f8a0a2f516a590 [39/52] ACPI: APEI: EINJ: Transition to the faux device interface
> > config: x86_64-buildonly-randconfig-001-20250409 (https://download.01.org/0day-ci/archive/20250410/202504100128.AjbVDQgK-lkp@intel.com/config)
> > compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250410/202504100128.AjbVDQgK-lkp@intel.com/reproduce)
> >
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202504100128.AjbVDQgK-lkp@intel.com/
> >
> > All errors (new ones prefixed by >>):
> >
> > >> drivers/acpi/apei/einj-core.c:877:43: error: expected identifier
> > 877 | module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
> > | ^
> > include/linux/init.h:397:21: note: expanded from macro '__exit_p'
> > 397 | #define __exit_p(x) NULL
> > | ^
> > include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
> > 8 | #define NULL ((void *)0)
> > | ^
> > >> drivers/acpi/apei/einj-core.c:877:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
> > 877 | module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
> > | ^
> > | int
> > >> drivers/acpi/apei/einj-core.c:877:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
> > 877 | module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
> > | ^
> > | void
> > 3 errors generated.
> >
> >
> > vim +877 drivers/acpi/apei/einj-core.c
> >
> > 876
> > > 877 module_faux_driver(acpi_einj, einj_probe, __exit_p(einj_remove), true);
> > 878
> >
>
> The macro module_faux_driver() was not merged as most of the users I
> posted in v2 of the series depend on modprobe and modalias and that
> doesn't work with faux devices.
>
> If this ACPI APEI EINJ also needs that support we can't use faux device.
> But I think this doesn't have modalias, so v1 of this change[1] which
> doesn't introduce/use the macro module_faux_driver() can be used instead.
>
> Sorry for the noise with v2.
No worries.
I've picked up the v1 instead, let's see how it goes.
> [1] https://lore.kernel.org/all/20250317-plat2faux_dev-v1-8-5fe67c085ad5@arm.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-09 19:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 18:10 [rafael-pm:bleeding-edge 39/52] drivers/acpi/apei/einj-core.c:877:43: error: expected identifier kernel test robot
2025-04-09 19:25 ` Sudeep Holla
2025-04-09 19:34 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox