linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] s390: add <linux/minmax.h> to <asm/facility.h>
@ 2021-10-29  0:26 Randy Dunlap
  2021-10-29 10:21 ` Vasily Gorbik
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2021-10-29  0:26 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Linux Kernel Functional Testing, Naresh Kamboju,
	Heiko Carstens, Vasily Gorbik, Christian Borntraeger, linux-s390

S390's <asm/facility.h> uses the min_t() macro, so it should
include <linux/minmax.h> to avoid build errors.

In file included from arch/s390/pci/pci_insn.c:12:
arch/s390/include/asm/facility.h: In function '__stfle':
arch/s390/include/asm/facility.h:98:22: error: implicit declaration of
function 'min_t' [-Werror=implicit-function-declaration]
   98 |                 nr = min_t(unsigned long, (nr + 1) * 8, size * 8);
arch/s390/include/asm/facility.h:98:28: error: expected expression
before 'unsigned'
   98 |                 nr = min_t(unsigned long, (nr + 1) * 8, size * 8);


Fixes: 4f18d869ffd0 ("s390: fix stfle zero padding")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: linux-s390@vger.kernel.org
---
 arch/s390/include/asm/facility.h |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20211028.orig/arch/s390/include/asm/facility.h
+++ linux-next-20211028/arch/s390/include/asm/facility.h
@@ -9,6 +9,7 @@
 #define __ASM_FACILITY_H
 
 #include <asm/facility-defs.h>
+#include <linux/minmax.h>
 #include <linux/string.h>
 #include <linux/preempt.h>
 #include <asm/lowcore.h>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] s390: add <linux/minmax.h> to <asm/facility.h>
  2021-10-29  0:26 [PATCH] s390: add <linux/minmax.h> to <asm/facility.h> Randy Dunlap
@ 2021-10-29 10:21 ` Vasily Gorbik
  0 siblings, 0 replies; 2+ messages in thread
From: Vasily Gorbik @ 2021-10-29 10:21 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: linux-kernel, Linux Kernel Functional Testing, Naresh Kamboju,
	Heiko Carstens, Christian Borntraeger, linux-s390

On Thu, Oct 28, 2021 at 05:26:33PM -0700, Randy Dunlap wrote:
> S390's <asm/facility.h> uses the min_t() macro, so it should
> include <linux/minmax.h> to avoid build errors.
> 
> In file included from arch/s390/pci/pci_insn.c:12:
> arch/s390/include/asm/facility.h: In function '__stfle':
> arch/s390/include/asm/facility.h:98:22: error: implicit declaration of
> function 'min_t' [-Werror=implicit-function-declaration]
>    98 |                 nr = min_t(unsigned long, (nr + 1) * 8, size * 8);
> arch/s390/include/asm/facility.h:98:28: error: expected expression
> before 'unsigned'
>    98 |                 nr = min_t(unsigned long, (nr + 1) * 8, size * 8);

Thank you, but it has been addressed in latest linux-next by:
https://lore.kernel.org/all/20211028170143.56523-1-andriy.shevchenko@linux.intel.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-29 10:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29  0:26 [PATCH] s390: add <linux/minmax.h> to <asm/facility.h> Randy Dunlap
2021-10-29 10:21 ` Vasily Gorbik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).