Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1453571 > unrolled thread

linux-next: manual merge of the akpm tree with the powerpc tree

Started byStephen Rothwell <sfr@canb.auug.org.au>
First post2016-08-02 05:50 +0200
Last post2016-08-02 05:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  linux-next: manual merge of the akpm tree with the powerpc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-08-02 05:50 +0200

#1453571 — linux-next: manual merge of the akpm tree with the powerpc tree

FromStephen Rothwell <sfr@canb.auug.org.au>
Date2016-08-02 05:50 +0200
Subjectlinux-next: manual merge of the akpm tree with the powerpc tree
Message-ID<s1ySl-7jF-3@gated-at.bofh.it>
Hi Andrew,

Today's linux-next merge of the akpm tree got a conflict in:

  kernel/jump_label.c

between commit:

  e3f91083facb ("jump_label: Make it possible for arches to invoke jump_label_init() earlier")

from the powerpc tree and patch:

   "jump_label: remove bug.h, atomic.h dependencies for HAVE_JUMP_LABEL"

from the akpm tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc kernel/jump_label.c
index 85b7105fdd86,20400055f177..000000000000
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
@@@ -235,9 -279,15 +279,18 @@@ void __init jump_label_init(void
  	struct static_key *key = NULL;
  	struct jump_entry *iter;
  
+ 	/*
+ 	 * Since we are initializing the static_key.enabled field with
+ 	 * with the 'raw' int values (to avoid pulling in atomic.h) in
+ 	 * jump_label.h, let's make sure that is safe. There are only two
+ 	 * cases to check since we initialize to 0 or 1.
+ 	 */
+ 	BUILD_BUG_ON((int)ATOMIC_INIT(0) != 0);
+ 	BUILD_BUG_ON((int)ATOMIC_INIT(1) != 1);
+ 
 +	if (static_key_initialized)
 +		return;
 +
  	jump_label_lock();
  	jump_label_sort_entries(iter_start, iter_stop);
  

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web