* [PATCH v1 1/1] minmax: Fix header inclusions
@ 2023-07-21 13:39 Andy Shevchenko
2023-07-21 14:10 ` Herve Codina
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Andy Shevchenko @ 2023-07-21 13:39 UTC (permalink / raw)
To: Andy Shevchenko, Herve Codina, Jason A. Donenfeld, linux-kernel
Cc: Rasmus Villemoes, Andrew Morton
BUILD_BUG_ON*() are defined in build_bug.h.
It also provides __UNIQUE_ID() that is defined
in the compiler.h.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
include/linux/minmax.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/minmax.h b/include/linux/minmax.h
index 798c6963909f..049480235e53 100644
--- a/include/linux/minmax.h
+++ b/include/linux/minmax.h
@@ -2,6 +2,7 @@
#ifndef _LINUX_MINMAX_H
#define _LINUX_MINMAX_H
+#include <linux/build_bug.h>
#include <linux/const.h>
/*
--
2.40.0.1.gaa8946217a0b
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v1 1/1] minmax: Fix header inclusions
2023-07-21 13:39 [PATCH v1 1/1] minmax: Fix header inclusions Andy Shevchenko
@ 2023-07-21 14:10 ` Herve Codina
2023-07-24 14:29 ` Andy Shevchenko
2023-07-21 15:52 ` kernel test robot
2023-07-21 16:13 ` kernel test robot
2 siblings, 1 reply; 7+ messages in thread
From: Herve Codina @ 2023-07-21 14:10 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Jason A. Donenfeld, linux-kernel, Rasmus Villemoes, Andrew Morton
Hi Andy,
On Fri, 21 Jul 2023 16:39:32 +0300
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> BUILD_BUG_ON*() are defined in build_bug.h.
> It also provides __UNIQUE_ID() that is defined
> in the compiler.h.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> include/linux/minmax.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/minmax.h b/include/linux/minmax.h
> index 798c6963909f..049480235e53 100644
> --- a/include/linux/minmax.h
> +++ b/include/linux/minmax.h
> @@ -2,6 +2,7 @@
> #ifndef _LINUX_MINMAX_H
> #define _LINUX_MINMAX_H
>
> +#include <linux/build_bug.h>
> #include <linux/const.h>
>
> /*
Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Best regards,
Hervé
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 1/1] minmax: Fix header inclusions
2023-07-21 13:39 [PATCH v1 1/1] minmax: Fix header inclusions Andy Shevchenko
2023-07-21 14:10 ` Herve Codina
@ 2023-07-21 15:52 ` kernel test robot
2023-07-21 16:01 ` Andy Shevchenko
2023-07-21 16:13 ` kernel test robot
2 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2023-07-21 15:52 UTC (permalink / raw)
To: Andy Shevchenko, Herve Codina, Jason A. Donenfeld, linux-kernel
Cc: llvm, oe-kbuild-all, Rasmus Villemoes, Andrew Morton,
Linux Memory Management List
Hi Andy,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on crng-random/master v6.5-rc2 next-20230721]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/minmax-Fix-header-inclusions/20230721-214152
base: linus/master
patch link: https://lore.kernel.org/r/20230721133932.12679-1-andriy.shevchenko%40linux.intel.com
patch subject: [PATCH v1 1/1] minmax: Fix header inclusions
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20230721/202307212350.YQFKs9v6-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230721/202307212350.YQFKs9v6-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/202307212350.YQFKs9v6-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/um/os-Linux/sigio.c:6:
In file included from include/linux/minmax.h:5:
In file included from include/linux/build_bug.h:5:
>> include/linux/compiler.h:246:10: fatal error: 'asm/rwonce.h' file not found
246 | #include <asm/rwonce.h>
| ^~~~~~~~~~~~~~
1 error generated.
vim +246 include/linux/compiler.h
a9a3ed1eff3601 Borislav Petkov 2020-04-22 245
e506ea451254ab Will Deacon 2019-10-15 @246 #include <asm/rwonce.h>
e506ea451254ab Will Deacon 2019-10-15 247
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 1/1] minmax: Fix header inclusions
2023-07-21 15:52 ` kernel test robot
@ 2023-07-21 16:01 ` Andy Shevchenko
0 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2023-07-21 16:01 UTC (permalink / raw)
To: kernel test robot
Cc: Herve Codina, Jason A. Donenfeld, linux-kernel, llvm,
oe-kbuild-all, Rasmus Villemoes, Andrew Morton,
Linux Memory Management List
On Fri, Jul 21, 2023 at 11:52:46PM +0800, kernel test robot wrote:
> Hi Andy,
>
> kernel test robot noticed the following build errors:
Oh my...
UM without this header or even a stub?!
Hmm... Which one else? Let's wait a few days to see.
> In file included from arch/um/os-Linux/sigio.c:6:
> In file included from include/linux/minmax.h:5:
> In file included from include/linux/build_bug.h:5:
> >> include/linux/compiler.h:246:10: fatal error: 'asm/rwonce.h' file not found
> 246 | #include <asm/rwonce.h>
> | ^~~~~~~~~~~~~~
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 1/1] minmax: Fix header inclusions
2023-07-21 13:39 [PATCH v1 1/1] minmax: Fix header inclusions Andy Shevchenko
2023-07-21 14:10 ` Herve Codina
2023-07-21 15:52 ` kernel test robot
@ 2023-07-21 16:13 ` kernel test robot
2 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2023-07-21 16:13 UTC (permalink / raw)
To: Andy Shevchenko, Herve Codina, Jason A. Donenfeld, linux-kernel
Cc: oe-kbuild-all, Rasmus Villemoes, Andrew Morton,
Linux Memory Management List
Hi Andy,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on crng-random/master v6.5-rc2 next-20230721]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/minmax-Fix-header-inclusions/20230721-214152
base: linus/master
patch link: https://lore.kernel.org/r/20230721133932.12679-1-andriy.shevchenko%40linux.intel.com
patch subject: [PATCH v1 1/1] minmax: Fix header inclusions
config: um-randconfig-r021-20230720 (https://download.01.org/0day-ci/archive/20230721/202307212304.cH79zJp1-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230721/202307212304.cH79zJp1-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/202307212304.cH79zJp1-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/build_bug.h:5,
from include/linux/minmax.h:5,
from arch/um/os-Linux/sigio.c:6:
>> include/linux/compiler.h:246:10: fatal error: asm/rwonce.h: No such file or directory
246 | #include <asm/rwonce.h>
| ^~~~~~~~~~~~~~
compilation terminated.
vim +246 include/linux/compiler.h
a9a3ed1eff3601 Borislav Petkov 2020-04-22 245
e506ea451254ab Will Deacon 2019-10-15 @246 #include <asm/rwonce.h>
e506ea451254ab Will Deacon 2019-10-15 247
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 1/1] minmax: Fix header inclusions
2023-07-21 14:10 ` Herve Codina
@ 2023-07-24 14:29 ` Andy Shevchenko
2023-07-27 13:10 ` Andy Shevchenko
0 siblings, 1 reply; 7+ messages in thread
From: Andy Shevchenko @ 2023-07-24 14:29 UTC (permalink / raw)
To: Herve Codina
Cc: Jason A. Donenfeld, linux-kernel, Rasmus Villemoes, Andrew Morton
On Fri, Jul 21, 2023 at 04:10:33PM +0200, Herve Codina wrote:
> On Fri, 21 Jul 2023 16:39:32 +0300
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Thank you!
Note, the https://lore.kernel.org/all/20230724142307.28411-1-andriy.shevchenko@linux.intel.com/
has a fix to the broken builds the LKP reported about.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 1/1] minmax: Fix header inclusions
2023-07-24 14:29 ` Andy Shevchenko
@ 2023-07-27 13:10 ` Andy Shevchenko
0 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2023-07-27 13:10 UTC (permalink / raw)
To: Herve Codina
Cc: Jason A. Donenfeld, linux-kernel, Rasmus Villemoes, Andrew Morton
On Mon, Jul 24, 2023 at 05:29:25PM +0300, Andy Shevchenko wrote:
> On Fri, Jul 21, 2023 at 04:10:33PM +0200, Herve Codina wrote:
> > On Fri, 21 Jul 2023 16:39:32 +0300
> > Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
>
> > Reviewed-by: Herve Codina <herve.codina@bootlin.com>
>
> Thank you!
>
> Note, the https://lore.kernel.org/all/20230724142307.28411-1-andriy.shevchenko@linux.intel.com/
> has a fix to the broken builds the LKP reported about.
Andrew, since the build fix is in your tree, can you apply this one
on top of that, please?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-07-27 13:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-21 13:39 [PATCH v1 1/1] minmax: Fix header inclusions Andy Shevchenko
2023-07-21 14:10 ` Herve Codina
2023-07-24 14:29 ` Andy Shevchenko
2023-07-27 13:10 ` Andy Shevchenko
2023-07-21 15:52 ` kernel test robot
2023-07-21 16:01 ` Andy Shevchenko
2023-07-21 16:13 ` kernel test robot
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).