linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] sh: Implement __get_user_u64() required for 64-bit get_user()
@ 2020-06-11  7:58 John Paul Adrian Glaubitz
  2020-06-11  7:58 ` [PATCH] " John Paul Adrian Glaubitz
  2020-06-17  7:52 ` [PATCH v3] " John Paul Adrian Glaubitz
  0 siblings, 2 replies; 19+ messages in thread
From: John Paul Adrian Glaubitz @ 2020-06-11  7:58 UTC (permalink / raw)
  To: linux-sh
  Cc: Rich Felker, Yoshinori Sato, Geert Uytterhoeven, Michael Karcher,
	NIIBE Yutaka, linux-kernel

Hi!

This is version 3 of my patch to implement __get_user_u64() for SH.

I have asked both Yutaka Niibe and Yoshinori Sato to look over my changes and they
both agreed that an entry in __ex_tables for the second access was missing, so I
add the missing ".long 1b+2, 3b\n\t".

The changes should be correct now and will hopefully get a positive review by
the SH maintainers.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [RESEND] sh: Implement __get_user_u64() required for 64-bit get_user()
@ 2020-05-29 17:45 John Paul Adrian Glaubitz
  2020-05-29 17:45 ` [PATCH] " John Paul Adrian Glaubitz
  0 siblings, 1 reply; 19+ messages in thread
From: John Paul Adrian Glaubitz @ 2020-05-29 17:45 UTC (permalink / raw)
  To: linux-sh
  Cc: Rich Felker, Yoshinori Sato, Geert Uytterhoeven, Michael Karcher,
	linux-kernel


Hi!

This is my attempt of implementing a 64-bit get_user() for SH to address the
build problem when CONFIG_INFINIBAND_USER_ACCESS is enabled.

I have carefully looked at the existing implementations of __get_user_asm(),
__put_user_asm() and the 64-bit __put_user_u64() to come up with the 64-bit
__get_user_u64().

I'm admittedly not an expert when it comes to writing GCC contraints, so the
code might be completely wrong. However, it builds fine without warnings
and fixes the aforementioned issue for me.

Hopefully someone from the more experienced group of kernel developers can
review my code and help me get it into proper shape for submission.

Resent because I forgot to add a subject for the first cover text.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

^ permalink raw reply	[flat|nested] 19+ messages in thread
* (no subject)
@ 2020-05-29 17:34 John Paul Adrian Glaubitz
  2020-05-29 17:34 ` [PATCH] sh: Implement __get_user_u64() required for 64-bit get_user() John Paul Adrian Glaubitz
  0 siblings, 1 reply; 19+ messages in thread
From: John Paul Adrian Glaubitz @ 2020-05-29 17:34 UTC (permalink / raw)
  To: linux-sh
  Cc: Rich Felker, Yoshinori Sato, Geert Uytterhoeven, Michael Karcher,
	linux-kernel


Hi!

This is my attempt of implementing a 64-bit get_user() for SH to address the
build problem when CONFIG_INFINIBAND_USER_ACCESS is enabled.

I have carefully looked at the existing implementations of __get_user_asm(),
__put_user_asm() and the 64-bit __put_user_u64() to come up with the 64-bit
__get_user_u64().

I'm admittedly not an expert when it comes to writing GCC contraints, so the
code might be completely wrong. However, it builds fine without warnings
and fixes the aforementioned issue for me.

Hopefully someone from the more experienced group of kernel developers can
review my code and help me get it into proper shape for submission.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

end of thread, other threads:[~2020-06-27 15:26 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11  7:58 [PATCH v3] sh: Implement __get_user_u64() required for 64-bit get_user() John Paul Adrian Glaubitz
2020-06-11  7:58 ` [PATCH] " John Paul Adrian Glaubitz
2020-06-27 15:26   ` Yoshinori Sato
2020-06-17  7:52 ` [PATCH v3] " John Paul Adrian Glaubitz
2020-06-26  8:41   ` John Paul Adrian Glaubitz
  -- strict thread matches above, loose matches on Subject: below --
2020-05-29 17:45 [RESEND] " John Paul Adrian Glaubitz
2020-05-29 17:45 ` [PATCH] " John Paul Adrian Glaubitz
2020-05-31  9:52   ` Geert Uytterhoeven
2020-05-31  9:54     ` John Paul Adrian Glaubitz
2020-05-31  9:59       ` John Paul Adrian Glaubitz
2020-05-31 10:43         ` Geert Uytterhoeven
2020-05-31 10:52           ` John Paul Adrian Glaubitz
2020-06-01  3:03           ` Rich Felker
2020-06-01  9:02             ` Geert Uytterhoeven
2020-06-01  9:13               ` John Paul Adrian Glaubitz
2020-06-01 16:57                 ` Rich Felker
2020-06-01 20:26                   ` Michael Karcher
2020-06-01 20:50                     ` Rich Felker
2020-06-02 10:19                       ` Michael Karcher
2020-05-29 17:34 John Paul Adrian Glaubitz
2020-05-29 17:34 ` [PATCH] sh: Implement __get_user_u64() required for 64-bit get_user() John Paul Adrian Glaubitz

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).