Linus Torvalds
736706bee3
get rid of legacy 'get_ds()' function
...
Every in-kernel use of this function defined it to KERNEL_DS (either as
an actual define, or as an inline function). It's an entirely
historical artifact, and long long long ago used to actually read the
segment selector valueof '%ds' on x86.
Which in the kernel is always KERNEL_DS.
Inspired by a patch from Jann Horn that just did this for a very small
subset of users (the ones in fs/), along with Al who suggested a script.
I then just took it to the logical extreme and removed all the remaining
gunk.
Roughly scripted with
git grep -l '(get_ds())' -- :^tools/ | xargs sed -i 's/(get_ds())/(KERNEL_DS)/'
git grep -lw 'get_ds' -- :^tools/ | xargs sed -i '/^#define get_ds()/d'
plus manual fixups to remove a few unusual usage patterns, the couple of
inline function cases and to fix up a comment that had become stale.
The 'get_ds()' function remains in an x86 kvm selftest, since in user
space it actually does something relevant.
Inspired-by: Jann Horn <jannh@google.com >
Inspired-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2019-03-04 10:50:14 -08:00
..
2018-12-04 22:37:38 +00:00
2018-08-13 18:28:19 -07:00
2019-01-23 22:14:56 +01:00
2018-03-22 13:46:18 +00:00
2017-11-15 10:56:56 -08:00
2015-03-27 13:44:35 +00:00
2018-11-12 10:51:59 +00:00
2018-06-21 14:25:24 +02:00
2015-03-27 22:20:45 +00:00
2018-05-31 23:27:21 +01:00
2018-07-30 11:45:53 +01:00
2017-11-02 11:10:55 +01:00
2018-09-27 21:55:30 +02:00
2018-05-31 10:39:29 +01:00
2017-11-02 11:10:55 +01:00
2018-06-15 18:10:01 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-09-23 17:19:25 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-31 10:40:32 +01:00
2017-03-30 19:45:52 +01:00
2017-11-02 11:10:55 +01:00
2019-01-02 10:37:05 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-05-30 11:31:33 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-20 10:01:59 +01:00
2018-12-06 06:56:37 -08:00
2018-12-13 21:06:18 +01:00
2017-11-02 11:10:55 +01:00
2017-06-05 17:50:44 +02:00
2016-05-05 19:03:02 +01:00
2017-11-02 11:10:55 +01:00
2015-05-28 15:31:53 +02:00
2018-07-22 14:13:43 +02:00
2017-11-16 12:50:35 -08:00
2017-11-02 11:10:55 +01:00
2017-12-17 22:14:21 +00:00
2017-11-02 11:10:55 +01:00
2015-06-06 02:17:56 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-07-02 11:02:13 +01:00
2018-09-19 10:44:50 +01:00
2019-01-03 18:57:57 -08:00
2017-12-17 22:15:35 +00:00
2014-05-30 01:12:30 +01:00
2014-07-18 12:29:37 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-16 12:50:35 -08:00
2018-10-26 16:26:34 -07:00
2018-10-26 16:26:34 -07:00
2018-06-26 09:07:58 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-26 08:45:18 -06:00
2017-11-02 11:10:55 +01:00
2019-02-01 21:54:49 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-19 13:28:51 +02:00
2017-11-02 11:10:55 +01:00
2018-05-19 11:53:46 +01:00
2017-11-02 11:10:55 +01:00
2018-06-21 12:33:07 +02:00
2018-10-17 13:14:33 -07:00
2018-10-25 17:57:35 -07:00
2018-12-19 17:47:53 +00:00
2017-05-15 14:29:19 +02:00
2018-08-22 14:07:56 +02:00
2019-02-07 11:44:13 +00:00
2018-03-19 10:53:21 +00:00
2016-05-20 15:39:42 +02:00
2018-12-18 15:14:49 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2015-05-06 11:47:10 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-11 10:28:38 -07:00
2017-03-02 08:42:37 +01:00
2017-11-16 12:50:35 -08:00
2018-12-14 20:27:29 +01:00
2018-05-19 11:53:46 +01:00
2017-11-02 11:10:55 +01:00
2015-07-25 15:28:05 +01:00
2017-06-27 14:58:10 +01:00
2018-09-03 16:50:35 +02:00
2017-11-02 11:10:55 +01:00
2018-05-07 07:15:41 +02:00
2014-11-13 23:58:06 +00:00
2015-05-27 16:12:05 +01:00
2019-01-04 13:13:47 -08:00
2016-09-12 12:12:30 +01:00
2018-11-02 08:31:52 +01:00
2016-09-12 12:12:30 +01:00
2018-06-07 17:34:35 -07:00
2017-06-05 10:29:40 +01:00
2018-01-08 15:20:45 +01:00
2018-06-21 12:33:07 +02:00
2018-11-12 10:51:01 +00:00
2018-10-31 08:54:12 -07:00
2016-01-20 17:55:20 -08:00
2018-01-21 15:32:20 +00:00
2017-10-24 13:17:32 +02:00
2017-12-17 22:14:21 +00:00
2018-05-08 14:50:42 +02:00
2017-05-08 17:15:13 -07:00
2016-01-04 11:26:00 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-16 14:05:12 -08:00
2017-11-02 11:10:55 +01:00
2017-10-23 16:58:59 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2018-12-12 13:20:07 -08:00
2017-11-02 11:10:55 +01:00
2019-02-07 11:44:47 +00:00
2018-01-21 15:37:56 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-31 10:40:32 +01:00
2017-11-02 11:10:55 +01:00
2018-12-12 13:20:07 -08:00
2018-07-25 12:09:09 +02:00
2017-03-02 08:42:37 +01:00
2017-11-02 11:10:55 +01:00
2018-09-10 11:05:48 +02:00
2017-12-17 22:14:21 +00:00
2016-10-11 15:06:33 -07:00
2019-03-04 10:50:14 -08:00
2017-11-16 12:50:35 -08:00
2017-10-24 10:33:23 +01:00
2017-12-17 22:14:21 +00:00
2018-08-29 15:42:23 +02:00
2017-11-02 11:10:55 +01:00
2018-05-19 11:53:46 +01:00
2015-03-27 22:20:45 +00:00
2018-03-24 14:27:49 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-04-09 07:49:34 -07:00
2017-11-02 11:10:55 +01:00