All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] compilerh-fix-barrier_data-on-clang-fix.patch removed from -mm tree
@ 2020-11-14  6:45 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-11-14  6:45 UTC (permalink / raw)
  To: arnd, dhowells, ink, lkp, mattst88, mm-commits, rdunlap, rth, sfr, willy


The patch titled
     Subject: asm-generic: barrier.h: fix ALPHA builds when SMP is not enabled
has been removed from the -mm tree.  Its filename was
     compilerh-fix-barrier_data-on-clang-fix.patch

This patch was dropped because it was folded into compilerh-fix-barrier_data-on-clang.patch

------------------------------------------------------
From: Randy Dunlap <rdunlap@infradead.org>
Subject: asm-generic: barrier.h: fix ALPHA builds when SMP is not enabled

<asm-generic/barrier.h> uses barrier() but needs to #include
<linux/compiler.h> to get a generic definition of it to fix
build errors in arch/alpha/ builds when CONFIG_SMP is not enabled.

Fixes build errors like this (there are several like this):
[49 in the kernel config that was supplied by the 0day bot]

In file included from ../arch/alpha/include/asm/barrier.h:21,
                 from ../arch/alpha/include/asm/atomic.h:6,
                 from ../include/linux/atomic.h:7,
                 from ../include/linux/dcache.h:5,
                 from ../fs/proc/util.c:1:
../arch/alpha/include/asm/atomic.h: In function 'atomic_add_return_relaxed':
../include/asm-generic/barrier.h:78:18: error: implicit declaration of function 'barrier' [-Werror=implicit-function-declaration]
   78 | #define smp_mb() barrier()
      |                  ^~~~~~~

Link: https://lkml.kernel.org/r/20201101231835.4589-1-rdunlap@infradead.org
Fixes: 885df91ca357 ("Create asm-generic/barrier.h")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/asm-generic/barrier.h |    1 +
 1 file changed, 1 insertion(+)

--- a/include/asm-generic/barrier.h~compilerh-fix-barrier_data-on-clang-fix
+++ a/include/asm-generic/barrier.h
@@ -13,6 +13,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <linux/compiler.h>
 #include <asm/rwonce.h>
 
 #ifndef nop
_

Patches currently in -mm which might be from rdunlap@infradead.org are

compilerh-fix-barrier_data-on-clang.patch
procfs-delete-duplicated-words-other-fixes.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-14  6:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-14  6:45 [folded-merged] compilerh-fix-barrier_data-on-clang-fix.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.