mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Explicitly include <linux/export.h> in files which contain an
EXPORT_SYMBOL().
See commit a934a57a42
("scripts/misc-check: check missing #include
<linux/export.h> when W=1") for more details.
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
22 lines
347 B
C
22 lines
347 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright IBM Corp. 2023
|
|
*/
|
|
|
|
#include <linux/export.h>
|
|
#include <asm/facility.h>
|
|
|
|
unsigned int stfle_size(void)
|
|
{
|
|
static unsigned int size;
|
|
unsigned int r;
|
|
u64 dummy;
|
|
|
|
r = READ_ONCE(size);
|
|
if (!r) {
|
|
r = __stfle_asm(&dummy, 1) + 1;
|
|
WRITE_ONCE(size, r);
|
|
}
|
|
return r;
|
|
}
|
|
EXPORT_SYMBOL(stfle_size);
|