Linux kbuild/kconfig development
 help / color / mirror / Atom feed
From: Harald Freudenberger <freude@linux.ibm.com>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: Sasha Levin <sashal@kernel.org>, Nicolas Schier <nsc@kernel.org>,
	Nathan Chancellor <nathan@kernel.org>,
	Holger Dengler <dengler@linux.ibm.com>,
	Heiko Carstens <hca@linux.ibm.com>,
	Vasily Gorbik <gor@linux.ibm.com>,
	Alexander Gordeev <agordeev@linux.ibm.com>,
	Huacai Chen <chenhuacai@kernel.org>,
	WANG Xuerui <kernel@xen0n.name>,
	Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	linux-kbuild@vger.kernel.org, linux-s390@vger.kernel.org,
	loongarch@lists.linux.dev, linux-mips@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"kernelci.org bot" <bot@kernelci.org>
Subject: Re: [PATCH 1/2] s390/pkey: Include <linux/device-id/ap.h> for struct ap_device_id
Date: Fri, 13 Nov 2026 14:38:12 +0100	[thread overview]
Message-ID: <38297cf4ed5755a0e54d781485d4bddd@linux.ibm.com> (raw)
In-Reply-To: <avHpQIREsJRjpD3R@monoceros>

On 2026-11-09 16:48, Uwe Kleine-König wrote:
> On Mon, Nov 09, 2026 at 09:14:40AM -0500, Sasha Levin wrote:
>> pkey_cca.c and pkey_ep11.c got struct ap_device_id from
>> <linux/mod_devicetable.h> by way of <linux/cpufeature.h>. Commit
>> cdfdbc11552b ("Move struct cpu_feature to <linux/cpufeature.h>") 
>> dropped
>> that include, so s390 defconfig no longer builds:
>> 
>>   drivers/s390/crypto/pkey_cca.c:22:28: error: array type has 
>> incomplete element type 'struct ap_device_id'
>>   drivers/s390/crypto/pkey_ep11.c:23:28: error: array type has 
>> incomplete element type 'struct ap_device_id'
>> 
>> Include the header that defines it, as the other AP drivers do.
>> 
>> Reported-by: kernelci.org bot <bot@kernelci.org>
>> Closes: 
>> https://d.kernelci.org/i/maestro:7baaa311bc9c30a8ad43f42c24225ab2fead866a
>> Fixes: cdfdbc11552b ("Move struct cpu_feature to 
>> <linux/cpufeature.h>")
>> Signed-off-by: Sasha Levin <sashal@kernel.org>
>> ---
>>  drivers/s390/crypto/pkey_cca.c  | 1 +
>>  drivers/s390/crypto/pkey_ep11.c | 1 +
>>  2 files changed, 2 insertions(+)
>> 
>> diff --git a/drivers/s390/crypto/pkey_cca.c 
>> b/drivers/s390/crypto/pkey_cca.c
>> index e8dc2f77c137b..f95d61fd5b090 100644
>> --- a/drivers/s390/crypto/pkey_cca.c
>> +++ b/drivers/s390/crypto/pkey_cca.c
>> @@ -10,6 +10,7 @@
>>  #include <linux/init.h>
>>  #include <linux/module.h>
>>  #include <linux/cpufeature.h>
>> +#include <linux/device-id/ap.h>
>> 
>>  #include "zcrypt_ccamisc.h"
>>  #include "pkey_base.h"
> 
> that makes me wonder why there is an ap MODULE_DEVICE_TABLE in
> drivers/s390/crypto/pkey_cca.c while that file doesn't seem to contain 
> a
> driver for these device IDs.
> 

This makes the pkey_cca kernel module automatically loaded when an AP 
device
(CEX4...CEX8) is detected by the kernel. Similar the pkey_ep11 kernel 
module
has a MODULE_DEVICE_TABLE entry.

>> diff --git a/drivers/s390/crypto/pkey_ep11.c 
>> b/drivers/s390/crypto/pkey_ep11.c
>> index f99c19323f3d7..f66fc97ad5adc 100644
>> --- a/drivers/s390/crypto/pkey_ep11.c
>> +++ b/drivers/s390/crypto/pkey_ep11.c
>> @@ -10,6 +10,7 @@
>>  #include <linux/init.h>
>>  #include <linux/module.h>
>>  #include <linux/cpufeature.h>
>> +#include <linux/device-id/ap.h>
>> 
>>  #include "zcrypt_ccamisc.h"
>>  #include "zcrypt_ep11misc.h"
> 
> Same here.
> 
> But anyhow, as a regression fix the change looks fine.
> 
> Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> 
> Thanks
> Uwe

  reply	other threads:[~2026-11-13 13:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-16 10:09 [PATCH v2 0/3] <linux/mod_devicetable.h> deprecation continues Uwe Kleine-König (The Capable Hub)
2026-10-16 10:09 ` [PATCH v2 1/3] Move struct cpu_feature to <linux/cpufeature.h> Uwe Kleine-König (The Capable Hub)
2026-10-16 10:09 ` [PATCH v2 2/3] devicetable-offsets: Include the needed device-id headers instead of the catch-all Uwe Kleine-König (The Capable Hub)
2026-10-16 10:09 ` [PATCH v2 3/3] file2alias: " Uwe Kleine-König (The Capable Hub)
2026-11-08 19:20 ` [PATCH v2 0/3] <linux/mod_devicetable.h> deprecation continues Nicolas Schier
2026-11-09 14:14   ` [PATCH 1/2] s390/pkey: Include <linux/device-id/ap.h> for struct ap_device_id Sasha Levin
2026-11-09 14:14     ` [PATCH 2/2] devicetable-offsets: Get struct cpu_feature from a device-id header Sasha Levin
2026-11-09 15:57       ` Uwe Kleine-König
2026-11-09 16:07       ` Nicolas Schier
2026-11-09 15:48     ` [PATCH 1/2] s390/pkey: Include <linux/device-id/ap.h> for struct ap_device_id Uwe Kleine-König
2026-11-13 13:38       ` Harald Freudenberger [this message]
2026-11-09 16:07     ` Nicolas Schier
2026-11-13 13:30     ` Harald Freudenberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38297cf4ed5755a0e54d781485d4bddd@linux.ibm.com \
    --to=freude@linux.ibm.com \
    --cc=agordeev@linux.ibm.com \
    --cc=bot@kernelci.org \
    --cc=chenhuacai@kernel.org \
    --cc=dengler@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=kernel@xen0n.name \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=nathan@kernel.org \
    --cc=nsc@kernel.org \
    --cc=sashal@kernel.org \
    --cc=tsbogend@alpha.franken.de \
    --cc=u.kleine-koenig@baylibre.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox