public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Palmer Dabbelt <palmer@dabbelt•com>, Paul Walmsley <paul@pwsan•com>
Cc: Charlie Jenkins <charlie@rivosinc•com>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	Linux Next Mailing List <linux-next@vger•kernel.org>,
	Palmer Dabbelt <palmer@rivosinc•com>
Subject: linux-next: manual merge of the risc-v tree with Linus' tree
Date: Wed, 18 Sep 2024 10:05:30 +1000	[thread overview]
Message-ID: <20240918100530.5b39891c@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 2597 bytes --]

Hi all,

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

  tools/testing/selftests/riscv/mm/mmap_test.h

between commit:

  83dae72ac038 ("riscv: selftests: Remove mmap hint address checks")

from Linus' tree and commit:

  11c2dbd7f241 ("selftests: riscv: Allow mmap test to compile on 32-bit")

from the risc-v 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 tools/testing/selftests/riscv/mm/mmap_test.h
index 75918d15919f,1c3313c201d5..000000000000
--- a/tools/testing/selftests/riscv/mm/mmap_test.h
+++ b/tools/testing/selftests/riscv/mm/mmap_test.h
@@@ -13,6 -13,75 +13,8 @@@
  #define PROT (PROT_READ | PROT_WRITE)
  #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS)
  
 -// Only works on 64 bit
 -#if __riscv_xlen == 64
 -/* mmap must return a value that doesn't use more bits than the hint address. */
 -static inline unsigned long get_max_value(unsigned long input)
 -{
 -	unsigned long max_bit = (1UL << (((sizeof(unsigned long) * 8) - 1 -
 -					  __builtin_clzl(input))));
 -
 -	return max_bit + (max_bit - 1);
 -}
 -
 -#define TEST_MMAPS                                                            \
 -	({                                                                    \
 -		void *mmap_addr;                                              \
 -		for (int i = 0; i < ARRAY_SIZE(random_addresses); i++) {      \
 -			mmap_addr = mmap((void *)random_addresses[i],         \
 -					 5 * sizeof(int), PROT, FLAGS, 0, 0); \
 -			EXPECT_NE(MAP_FAILED, mmap_addr);                     \
 -			EXPECT_GE((void *)get_max_value(random_addresses[i]), \
 -				  mmap_addr);                                 \
 -			mmap_addr = mmap((void *)random_addresses[i],         \
 -					 5 * sizeof(int), PROT, FLAGS, 0, 0); \
 -			EXPECT_NE(MAP_FAILED, mmap_addr);                     \
 -			EXPECT_GE((void *)get_max_value(random_addresses[i]), \
 -				  mmap_addr);                                 \
 -		}                                                             \
 -	})
 -#endif /* __riscv_xlen == 64 */
 -
+ #define TEST_MMAPS do { } while (0)
+ 
  static inline int memory_layout(void)
  {
  	void *value1 = mmap(NULL, sizeof(int), PROT, FLAGS, 0, 0);

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2024-09-18  0:05 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-18  0:05 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-08  0:36 linux-next: manual merge of the risc-v tree with Linus' tree Stephen Rothwell
2025-08-08  0:33 Stephen Rothwell
2025-01-31  0:42 Stephen Rothwell
2025-01-31  0:39 Stephen Rothwell
2024-05-22 23:17 Stephen Rothwell
2024-05-23  6:54 ` Yangyu Chen
2024-05-15 23:36 Stephen Rothwell
2024-05-16  2:17 ` Yangyu Chen
2024-05-16  4:40   ` Stephen Rothwell
2024-02-11 22:55 Stephen Rothwell
2024-01-07 22:49 Stephen Rothwell
2024-01-11 17:20 ` Palmer Dabbelt
2023-11-02 22:14 Stephen Rothwell
2023-08-30 23:29 Stephen Rothwell
2023-08-31 17:50 ` Nick Desaulniers
2023-09-01 15:46   ` Palmer Dabbelt
2023-08-30 23:25 Stephen Rothwell
2023-07-04 23:46 Stephen Rothwell
2023-06-04 22:51 Stephen Rothwell
2023-02-05 22:48 Stephen Rothwell
2023-02-05 22:40 Stephen Rothwell
2023-02-05 22:43 ` Stephen Rothwell
2023-01-08 21:42 Stephen Rothwell
2022-12-12 23:03 Stephen Rothwell
2022-10-13 22:11 Stephen Rothwell
2022-07-24 23:33 Stephen Rothwell
2022-03-22 22:06 Stephen Rothwell
2021-12-19 22:47 Stephen Rothwell
2021-07-05 23:32 Stephen Rothwell
2021-06-14 23:26 Stephen Rothwell
2021-04-26 23:42 Stephen Rothwell
2021-03-30 22:40 Stephen Rothwell
2021-04-02  4:33 ` Palmer Dabbelt
2021-02-23 22:00 Stephen Rothwell
2020-10-25 22:01 Stephen Rothwell
2020-01-13 22:05 Stephen Rothwell
2020-01-05 22:32 Stephen Rothwell
2020-01-06  1:50 ` Paul Walmsley
2020-01-06  1:55   ` Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240918100530.5b39891c@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=charlie@rivosinc$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=palmer@dabbelt$(echo .)com \
    --cc=palmer@rivosinc$(echo .)com \
    --cc=paul@pwsan$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox