On 01-04-18, Baoquan He wrote:
> On 01/04/18 at 03:54pm, Alexander Kuleshov wrote:
> > we align minimal possible address during randomization to
> > CONFIG_PHYSICAL_ALIGN
> > two times: during getting of random physical address and virtual
> > address (only for x86_64
_addr().
Signed-off-by: Alexander Kuleshov
---
arch/x86/boot/compressed/kaslr.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c
index 8199a6187251..8c93e399fdfd 100644
--- a/arch/x86/boot/compressed/kaslr.c
Signed-off-by: Alexander Kuleshov
---
lib/assoc_array.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/assoc_array.c b/lib/assoc_array.c
index 59fd7c0b119c..155c55d8db5f 100644
--- a/lib/assoc_array.c
+++ b/lib/assoc_array.c
@@ -1,6 +1,6 @@
/* Generic associative array
Commit-ID: 07d495dae20717b00881798ef812f7aa53ca0eb3
Gitweb: http://git.kernel.org/tip/07d495dae20717b00881798ef812f7aa53ca0eb3
Author: Alexander Kuleshov
AuthorDate: Mon, 28 Nov 2016 13:50:57 +0600
Committer: Thomas Gleixner
CommitDate: Sat, 4 Feb 2017 09:36:59 +0100
x86/traps: Get
preempt_enable_no_resched() after/before
ist_enter()/ist_exit(). Let's get rid from them.
Signed-off-by: Alexander Kuleshov
---
arch/x86/kernel/traps.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c
index bd4e3d4..5fbff64 100644
--- a/arc
Commit-ID: 5e25d5bdf6d407224ad185a3fb8b870ad7d6c627
Gitweb: http://git.kernel.org/tip/5e25d5bdf6d407224ad185a3fb8b870ad7d6c627
Author: Alexander Kuleshov
AuthorDate: Sun, 23 Oct 2016 19:56:46 +0600
Committer: Ingo Molnar
CommitDate: Tue, 25 Oct 2016 11:43:31 +0200
x86/entry64: Remove
n the
CALL_enter_from_user_mode macro expands to the informing of
context tracking about this event. Let's move part of comment to
the right place where actual call to context tracing occured.
Signed-off-by: Alexander Kuleshov
---
arch/x86/entry/entry_64.S | 6 --
1 file changed, 4 insert
arch/x86/entry/common.c")
commit.
syscall_trace_enter() now uses same defines from ,
so these defines are no longer used anywhere in entry_64.S outside
of it and we may remove them.
Signed-off-by: Alexander Kuleshov
Reviewed-by: Borislav Petkov
---
ChangeLog:
v1 -> v2:
- Added more detail
On 10-23-16, Borislav Petkov wrote:
> Now, I went and made it a bit more readable and put the commit IDs and
> their names on separate lines, like we do in tip:
>
> "These macros were added in commit
>
> 86a1c34a929f ("x86_64 syscall audit fast-path").
>
> They were used for sycalls auditing,
entry and exit code to arch/x86/entry/common.c by Andy Lutomirski
).
The syscall_trace_enter() now uses same defines from ,
so these defines are no longer used anywhere in entry_64.S and we may
remove them.
Signed-off-by: Alexander Kuleshov
---
ChangeLog:
v1 -> v2:
- Added more details in the com
Hello Borislav,
On 10-23-16, Borislav Petkov wrote:
> I'd prefer it if you said which patch *removed* them and made those
> defines unused again.
>
> What would be even better is if your commit message explained *why* they
> were removed in that patch and that because of we
> don't need them her
which are ocured in the 86a1c34a929f commit (x86_64 syscall audit
fast-path by Roland McGrath ) and now they are
not used anymore.
Signed-off-by: Alexander Kuleshov
---
arch/x86/entry/entry_64.S | 6 --
1 file changed, 6 deletions(-)
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry
Commit-ID: 29a6d7964d6853f5bcd84dfb92c074fb41d00563
Gitweb: http://git.kernel.org/tip/29a6d7964d6853f5bcd84dfb92c074fb41d00563
Author: Alexander Kuleshov
AuthorDate: Thu, 20 Oct 2016 18:07:04 +0600
Committer: Ingo Molnar
CommitDate: Fri, 21 Oct 2016 07:47:36 +0200
entry/64: Remove
Commit-ID: b05d20f9a12fb7795b2bd220e7dd56e29e196ba8
Gitweb: http://git.kernel.org/tip/b05d20f9a12fb7795b2bd220e7dd56e29e196ba8
Author: Alexander Kuleshov
AuthorDate: Thu, 20 Oct 2016 18:07:04 +0600
Committer: Thomas Gleixner
CommitDate: Thu, 20 Oct 2016 23:41:15 +0200
entry/64: Remove
Signed-off-by: Alexander Kuleshov
---
arch/x86/entry/calling.h | 9 -
1 file changed, 9 deletions(-)
diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h
index 9a9e588..e32353a 100644
--- a/arch/x86/entry/calling.h
+++ b/arch/x86/entry/calling.h
@@ -147,15 +147,6 @@ For 32
Commit-ID: 59df2268311795ee7161776248d5288ee0841d41
Gitweb: http://git.kernel.org/tip/59df2268311795ee7161776248d5288ee0841d41
Author: Alexander Kuleshov
AuthorDate: Thu, 20 Oct 2016 01:11:08 +0600
Committer: Ingo Molnar
CommitDate: Thu, 20 Oct 2016 08:42:36 +0200
x86/entry/64: Remove
Commit-ID: ac679bf247cf044a5be6ca7d380307540284dd45
Gitweb: http://git.kernel.org/tip/ac679bf247cf044a5be6ca7d380307540284dd45
Author: Alexander Kuleshov
AuthorDate: Thu, 20 Oct 2016 01:11:08 +0600
Committer: Thomas Gleixner
CommitDate: Thu, 20 Oct 2016 10:57:37 +0200
x86/entry
as no-one user of ALLOC_PT_GPREGS_ON_STACK macro doesn't pass it.
Signed-off-by: Alexander Kuleshov
---
arch/x86/entry/calling.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h
index 9a9e588..b493c6a 100644
--- a
Commit-ID: 00b992deaa08495ab958da5950c9ebbba27d0ddc
Gitweb: http://git.kernel.org/tip/00b992deaa08495ab958da5950c9ebbba27d0ddc
Author: Alexander Kuleshov
AuthorDate: Tue, 19 Jul 2016 15:54:08 +0600
Committer: Thomas Gleixner
CommitDate: Tue, 6 Sep 2016 12:14:12 +0200
genirq: No need
current information about THREAD_SIZE value is obsoleted. This patch
fixes this.
Signed-off-by: Alexander Kuleshov
---
Documentation/x86/kernel-stacks | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/x86/kernel-stacks b/Documentation/x86/kernel-stacks
index
as the ACPI_INFO already prints `\n` in the end itself.
Signed-off-by: Alexander Kuleshov
---
drivers/acpi/acpica/tbxfload.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/acpica/tbxfload.c b/drivers/acpi/acpica/tbxfload.c
index ac71abc..e7119b7 100644
--- a
s/accomodate/accommodate
Signed-off-by: Alexander Kuleshov
---
mm/memblock.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/memblock.c b/mm/memblock.c
index ff5ff3b..1f065da 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -482,7 +482,7 @@ static void
Some callers of __irq_set_trigger() masks all flags besides trigger mode
flags. Actually it is unnecessary operation now, because the
__irq_set_trigger() already does this before usage of flags.
Signed-off-by: Alexander Kuleshov
---
kernel/irq/chip.c | 1 -
kernel/irq/manage.c | 5 ++---
2
used by anybody
outside of memblock.c and the memblock_{add,reserve}() have the same set of
flags and nids.
Since the memblock_add_region() and memblock_reserve_region() anyway will be
inlined, there will not be functional changes, but will improve code readability
a little.
Signed-off-by: Alexander
which is introduced in the 7aca0c072 commit to simplify calculation of
the mult and shift in the clocks_calc_mult_shift().
Signed-off-by: Alexander Kuleshov
---
kernel/time/clocksource.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/kernel/time/clocksource.c b/kernel
Commit-ID: 6fc77525f509e16b1e909e5ffd6f9ad9dccc0f82
Gitweb: http://git.kernel.org/tip/6fc77525f509e16b1e909e5ffd6f9ad9dccc0f82
Author: Alexander Kuleshov
AuthorDate: Fri, 26 Feb 2016 15:04:36 +0600
Committer: Ingo Molnar
CommitDate: Sat, 27 Feb 2016 12:52:27 +0100
x86/setup: Calculate
Commit-ID: 232d26373d310a941ef2ab46e53ea62fe076ed13
Gitweb: http://git.kernel.org/tip/232d26373d310a941ef2ab46e53ea62fe076ed13
Author: Alexander Kuleshov
AuthorDate: Fri, 26 Feb 2016 19:14:14 -0800
Committer: Thomas Gleixner
CommitDate: Sat, 27 Feb 2016 08:55:31 +0100
jiffies: Use
Commit-ID: 7aca0c07207385cca76025cc85231519935722b9
Gitweb: http://git.kernel.org/tip/7aca0c07207385cca76025cc85231519935722b9
Author: Alexander Kuleshov
AuthorDate: Fri, 26 Feb 2016 19:14:13 -0800
Committer: Thomas Gleixner
CommitDate: Sat, 27 Feb 2016 08:55:30 +0100
clocksource
The arch/x86/include/asm/bitops.h provides IS_IMMEDIATE macro which expands to
the call of the __builtin_constant_p(). Let's use this macro in the test_bit()
to be more clear.
Signed-off-by: Alexander Kuleshov
---
arch/x86/include/asm/bitops.h | 2 +-
1 file changed, 1 insertion(+), 1 del
relocate_initrd() functions.
This allows us to not get/check ramdisk parameters from the bootparams
every time in the early_reserve_initrd(), reserve_initrd() and
relocate_initrd() function.
Signed-off-by: Alexander Kuleshov
---
Tested as with virtual machine as with real hardware.
Changelog:
v8
relocate_initrd() functions.
This allows us to not get/check ramdisk parameters from the bootparams
every time in the early_reserve_initrd(), reserve_initrd() and
relocate_initrd() function.
Signed-off-by: Alexander Kuleshov
---
Tested as with virtual machine as with real hardware.
Changelog:
v7
We have definition of the early_idt_ripmsg which represents string header
for the output of the kernel symbols during early exception. But the
header with kernel symbols will be printed in a case if the CONFIG_KALLSYMS=y.
Signed-off-by: Alexander Kuleshov
---
Changelog:
v2: commit message fixed
relocate_initrd() functions.
This allows us to not get/check ramdisk parameters from the bootparams
every time in the early_reserve_initrd(), reserve_initrd() and
relocate_initrd() function.
Signed-off-by: Alexander Kuleshov
---
Tested as with virtual machine as with real hardware.
Changelog:
v6
29979605 1c973d5 vmlinux
text data bss dec hex filename
9292602 5011696 15675392 29979690 1c9742a vmlinux
Signed-off-by: Alexander Kuleshov
---
Tested as with virtual machine as with real hardware.
Changelog:
v5:
* move check of the reserve_ramdisk to the reserve_initrd
29979690 1c9742a vmlinux.orig
text data bss dec hex filename
9292517 5011696 15675392 29979605 1c973d5 vmlinux
Signed-off-by: Alexander Kuleshov
---
Tested as with virtual machine as with real hardware.
Changelog:
v4:
* bool reserve_ramdisk moved to the struct
Commit-ID: a91bbe017552b80e12d712c85549b933a62c6ed4
Gitweb: http://git.kernel.org/tip/a91bbe017552b80e12d712c85549b933a62c6ed4
Author: Alexander Kuleshov
AuthorDate: Tue, 9 Feb 2016 19:44:54 +0600
Committer: Ingo Molnar
CommitDate: Tue, 9 Feb 2016 14:55:48 +0100
x86/boot: Use proper
We changed loops with memset in the 5e9ebbd87a99 commit (x86/boot:
Micro-optimize reset_early_page_tables()). The base for size of
memset was size of pud_p/pmd_p, but the they are actually
represented as pointers, although they have the same sizes.
Signed-off-by: Alexander Kuleshov
---
based on
1cc8500 vmlinux.old
9735119 4970776 15474688301805831cc84e7 vmlinux
Signed-off-by: Alexander Kuleshov
---
Changelog:
v2: We got sizeof pud_p/pmd_p in the v1, but actually we need
to take sizeof of pud_p/pmd_p pointer, although their sizes are
the same.
arch/x86/kernel/head64.c
bss dechex filename
9281559 5010736 15474688297669831c63547 vmlinux
Signed-off-by: Alexander Kuleshov
---
Tested as with virtual machine as with real hardware.
Changelog:
v3: introduced ramdisk setup which is filled in th
setup_arch() and passed
Hello Ingo,
On Tue, Feb 9, 2016 at 3:16 PM, Ingo Molnar wrote:
>
> So I don't think the code got easier to understand - in particular the
> memblock_reserve()/free() pattern, depending on a flag value, is confusing.
>
> The duplication is there - but please factor it out into a helper structure
>
data bss dec hex filename
9281618 5010736 15474688 29767042 1c63582 vmlinux.orig
textdata bss dec hex filename
9281222 5010672 15474688 29766582 1c633b6 vmlinux.new
Signed-off-by: Alexander Kuleshov
---
Changelog:
v2: parameter of
On Mon, Feb 8, 2016 at 9:56 PM, Andy Shevchenko
wrote:
> On Fri, Feb 5, 2016 at 7:38 PM, Alexander Kuleshov
> wrote:
>> The check and definitions related to ramdisk are similar in the
>> early_reserve_initrd() and reserve_initrd(). So we can get rid of
>> early_reserve_i
The CLOCKSOURCE_MASK(32) macro expands to the same value, but
makes code more readable.
Signed-off-by: Alexander Kuleshov
---
v2: typo fixed in commit message
kernel/time/jiffies.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/jiffies.c b/kernel/time
The CLOCKSOURCE_MASK(32) macro expands to the same value, but
makes code more readable.
Signed-off-by: Alexander Kuleshov
---
kernel/time/jiffies.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c
index 347fecf..555e21f 100644
code duplication.
Signed-off-by: Alexander Kuleshov
---
include/linux/clocksource.h | 45 +++--
1 file changed, 19 insertions(+), 26 deletions(-)
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index 6013021..a307bf6 100644
--- a
The check and definitions related to ramdisk are similar in the
early_reserve_initrd() and reserve_initrd(). So we can get rid of
early_reserve_initrd() and and use late or early algorithm for
initrd reservation depends on reserve_initrd() parameter value.
Signed-off-by: Alexander Kuleshov
We define struct memblock_type *type in the memblock_add_region()
and memblock_reserve_region() functions only for passing it to the
memlock_add_range() and memblock_reserve_range() functions. Let's
remove these variables and will pass a type directly.
Signed-off-by: Alexander Kuleshov
--
Signed-off-by: Alexander Kuleshov
---
init/do_mounts.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/init/do_mounts.c b/init/do_mounts.c
index dea5de9..ca5da05 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -505,7 +505,9 @@ void __init change_floppy(char *fmt
Commit-ID: d99e1bd175f4291ddb6e62b22bb5bdbe3976389a
Gitweb: http://git.kernel.org/tip/d99e1bd175f4291ddb6e62b22bb5bdbe3976389a
Author: Alexander Kuleshov
AuthorDate: Mon, 25 Jan 2016 20:41:46 +0100
Committer: Ingo Molnar
CommitDate: Mon, 1 Feb 2016 10:45:14 +0100
x86/entry/traps
checks 'dis_ucode_ldr'
option which may be passed through builtin command line.
Signed-off-by: Alexander Kuleshov
---
arch/x86/include/asm/setup.h | 2 +-
arch/x86/kernel/head64.c | 5 +
arch/x86/kernel/setup.c | 31 +++
3 files changed, 25
We have definition of the early_idt_ripmsg which represents string header
for the output of the kernel symbols during early exception. But it will
be used only if CONFIG_KALLSYMS is enabled.
Signed-off-by: Alexander Kuleshov
---
arch/x86/kernel/head_64.S | 2 ++
1 file changed, 2 insertions
Commit-ID: a4733143085d6c782ac1e6c85778655b6bac1d4e
Gitweb: http://git.kernel.org/tip/a4733143085d6c782ac1e6c85778655b6bac1d4e
Author: Alexander Kuleshov
AuthorDate: Tue, 26 Jan 2016 22:12:10 +0100
Committer: Ingo Molnar
CommitDate: Sat, 30 Jan 2016 11:22:48 +0100
x86/boot: Simplify
Commit-ID: 5e9ebbd87a99ecc6abb74325b0ac63c46891f6f3
Gitweb: http://git.kernel.org/tip/5e9ebbd87a99ecc6abb74325b0ac63c46891f6f3
Author: Alexander Kuleshov
AuthorDate: Sat, 30 Jan 2016 14:01:12 +0600
Committer: Ingo Molnar
CommitDate: Sat, 30 Jan 2016 09:20:55 +0100
x86/boot: Micro
1cc8500 vmlinux.old
9735119 4970776 15474688301805831cc84e7 vmlinux
Signed-off-by: Alexander Kuleshov
---
arch/x86/kernel/head64.c | 14 +++---
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
index
Commit-ID: dd42ac8f02aea32661756554aace2095f7181d34
Gitweb: http://git.kernel.org/tip/dd42ac8f02aea32661756554aace2095f7181d34
Author: Alexander Kuleshov
AuthorDate: Fri, 16 Oct 2015 15:20:53 +0600
Committer: Thomas Gleixner
CommitDate: Wed, 27 Jan 2016 12:38:03 +0100
clockevents
Commit-ID: 14365449b6ce34cf6a3040ff8ebbb39d89d67159
Gitweb: http://git.kernel.org/tip/14365449b6ce34cf6a3040ff8ebbb39d89d67159
Author: Alexander Kuleshov
AuthorDate: Tue, 26 Jan 2016 18:21:21 +0600
Committer: Thomas Gleixner
CommitDate: Wed, 27 Jan 2016 11:37:49 +0100
x86/asm: Remove
The kernel/head_64.S has L3_PAGE_OFFSET definition which is not
used anywhere. It was introduced in the a6523748bd commit
(paravirt/x86, 64-bit: move __PAGE_OFFSET to leave a space for hypervisor
by Eduardo Habkost ), but still not used
anywhere.
Signed-off-by: Alexander Kuleshov
---
arch/x86
We are using temporary %rax register during checking of kernel address
alignment. We can ged rid of it since testl instruction is safe and does
not change value of the rbp register.
Signed-off-by: Alexander Kuleshov
Suggested-by: Brian Gerst
---
arch/x86/kernel/head_64.S | 4 +---
1 file
Hello Brian,
On 01-22-16, Brian Gerst wrote:
> >
> > - /* Is the address not 2M aligned? */
> > - movq%rbp, %rax
> > - andl$~PMD_PAGE_MASK, %eax
> > - testl %eax, %eax
> > - jnz bad_address
> > -
> > /*
> > * Is the address too large?
>
-by: Alexander Kuleshov
---
arch/x86/kernel/head_64.S | 6 --
1 file changed, 6 deletions(-)
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
index ffdc0e8..4967cba 100644
--- a/arch/x86/kernel/head_64.S
+++ b/arch/x86/kernel/head_64.S
@@ -75,12 +75,6 @@ startup_64
code duplication.
Signed-off-by: Alexander Kuleshov
---
arch/x86/boot/compressed/aslr.c| 3 +--
arch/x86/boot/compressed/cmdline.c | 2 +-
arch/x86/boot/compressed/misc.h| 1 +
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/boot/compressed/aslr.c b/arch/x86/boot/compr
We have the special case for an empty array in the memblock_add_range()
function. In the same time we have almost the same functional in the
memblock_insert_region() function. Let's use the memblock_insert_region()
instead of direct initialization.
Signed-off-by: Alexander Kuleshov
--
This patch removes rgnbase and rgnsize variables from the
memblock_overlaps_region() function. We use these variables
only for passing to the memblock_addrs_overlap() function and
that's all. Let's remove them.
Signed-off-by: Alexander Kuleshov
---
mm/memblock.c | 9 +++--
1 file
- for_each_memblock_type() which allows
us iterate over memblock regions with the given type when the type is
unknown.
Signed-off-by: Alexander Kuleshov
---
include/linux/memblock.h | 5 +
mm/memblock.c| 32
2 files changed, 21 insertions(+), 16
There are no callers of the xfs_buf_ioend_async() function outside
of the fs/xfs/xfs_buf.c. So, let's make it static.
Signed-off-by: Alexander Kuleshov
---
fs/xfs/xfs_buf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index 32
Signed-off-by: Alexander Kuleshov
---
arch/mn10300/unit-asb2364/irq-fpga.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/arch/mn10300/unit-asb2364/irq-fpga.c
b/arch/mn10300/unit-asb2364/irq-fpga.c
index 073e2cc..9772598 100644
--- a/arch/mn10300/unit-asb2364/irq
On Thu, Nov 26, 2015 at 12:26 PM, Sudip Mukherjee
wrote:
> Signed-off-by ?
Hello Sudip,
I've put it in the v2 (https://lkml.org/lkml/2015/11/25/650)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo inf
There are no callers of the tegra_serial_handle_break() function
outside of drivers/tty/serial/of_serial.c. So let's make it static.
Signed-off-by: Alexander Kuleshov
---
Forgot Signed-off-by line
drivers/tty/serial/of_serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
The provides inline function - crypto_skcipher_type().
Let's use it in the cryptd_alloc_ablkcipher() instead of direct calculation.
Signed-off-by: Alexander Kuleshov
---
crypto/cryptd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/crypto/cryptd.c b/crypto/cry
these functions to prevent
code duplication.
Signed-off-by: Alexander Kuleshov
---
Forgot Signed-off-by line
drivers/staging/dgap/dgap.c | 103
1 file changed, 37 insertions(+), 66 deletions(-)
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging
The dgap driver contains three functions: dgap_cmdb(), dgap_cmdw()
and dgap_cmdw_exit which are contain duplicated code which waits
if necessary before updating the pointer to limit outstanding
commands. This patch introduces the wait_for_fep_cmds_limit()
function which is will be called from these
There are no callers of the tegra_serial_handle_break() function
outside of drivers/tty/serial/of_serial.c. So let's make it static.
---
drivers/tty/serial/of_serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.
The already provides the PAGE_ALIGNED macro. Let's
use this macro instead of IS_ALIGNED and passing PAGE_SIZE directly.
Signed-off-by: Alexander Kuleshov
---
arch/arm64/mm/pageattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/mm/pageattr.c b/arch/arm
There are no users of the node_hstates array outside of the
mm/hugetlb.c. So let's make it static.
Signed-off-by: Alexander Kuleshov
---
mm/hugetlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 9cc7734..3afd92f 100644
--- a/mm/huge
Last parameter of the clocks_calc_mult_shift() was renamed from minsec to
maxsec in the 5fdade95 (time: Rename misnamed minsec argument of
clocks_calc_mult_shift()).
Signed-off-by: Alexander Kuleshov
---
include/linux/clockchips.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff
The provides memblock_is_memory() function that
tries to find a given physical address in the memblock.memory.regions.
Let's use this function instead of direct coding of the same functionality.
Signed-off-by: Alexander Kuleshov
---
arch/powerpc/mm/mem.c | 6 ++
1 file chang
The pci_subsys_init() is a subsys_initcall that can be declared
static.
Signed-off-by: Alexander Kuleshov
---
arch/x86/pci/legacy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/pci/legacy.c b/arch/x86/pci/legacy.c
index 5b662c0..ea6f380 100644
--- a/arch/x86/pci
The clocksource does not provide clocksource_register() function since
f893598 commit (clocksource: Mostly kill clocksource_register()), so
let's remove unnecessary information about this function from a comment.
Signed-off-by: Alexander Kuleshov
Suggested-by: Herbert Xu
---
c
The clocksource does not provide clocksource_register() function since
f893598 commit (clocksource: Mostly kill clocksource_register()), but
__clocksource_register() instead.
Signed-off-by: Alexander Kuleshov
---
crypto/jitterentropy-kcapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
Hello Geert
On Fri, Sep 25, 2015 at 1:21 PM, Geert Uytterhoeven
wrote:
> Have you tested this?
>
> This means enabling/disabling interrupts never worked on Sun 3, which
> I find a bit difficult to believe.
> There are other 0x0f?? addresses in arch/m68k/sun3/mmu_emu.c.
>
Nope, just trying to
Hello Greg,
On Mon, Sep 21, 2015 at 8:25 AM, Greg Kroah-Hartman
wrote:
> On Mon, Aug 24, 2015 at 03:27:36PM +0300, Tomas Winkler wrote:
>> From: "Signed-off-by: Alexander Kuleshov"
>
> I kind of doubt that's the real author name :(
>
Why? I've definite
The provides PFN_PHYS and PFN_DOWN macros for the
getting page frame number and physical address of a page frame number.
This patch replaces (pfn << PAGE_SHIFT) and (addr >> PAGE_SHIFT)
expressions with the PFN_PHYS and PFN_DOWN macros.
Signed-off-by: Alexander Kuleshov
---
arch
The already provides for_each_mem_range() macro that
iterates through memblock areas from type_a and not included in type_b.
We can remove custom for_each_dump_mem_range() macro and use the
for_each_mem_range() instead.
Signed-off-by: Alexander Kuleshov
---
arch/s390/kernel/crash_dump.c | 16
The memblock_remove_range() function is only used in the
mm/memblock.c, so we can do it static.
Signed-off-by: Alexander Kuleshov
---
include/linux/memblock.h | 4
mm/memblock.c| 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/include/linux/memblock.h b
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/mincore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/mincore.c b/mm/mincore.c
index be25efd..a011355 100644
This patchset does not provide functional changes, but just replaces
(addr & ~PAGE_MASK) expression with already defined offset_in_page()
macro from the .
Alexander Kuleshov (10):
mm/msync: Use offset_in_page macro
mm/nommu: Use offset_in_page macro
mm/mincore: Use offset_in_page macro
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/mmap.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/mm/mmap.c b/mm/mmap.c
index 971dd2c..a313a9c 100644
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/percpu.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/mm/percpu.c b/mm/percpu.c
index a63b4d8..8a943b9 100
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/nommu.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/mm/nommu.c b/mm/nommu.c
index ab14a20..1e0f168 100644
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/util.c b/mm/util.c
index 68ff8a5..9af1c12 100644
--- a/mm/uti
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/mremap.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/mm/mremap.c b/mm/mremap.c
index 5a71cce..3fea8
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/vmalloc.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 2faaa29..b51b7
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/msync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/msync.c b/mm/msync.c
index bb04d53..24e612f 100644
--- a/m
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/mlock.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/mlock.c b/mm/mlock.c
index 25936680..e86206b 100644
The provides offset_in_page() macro. Let's use already
predefined macro instead of (addr & ~PAGE_MASK).
Signed-off-by: Alexander Kuleshov
---
mm/early_ioremap.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/early_ioremap.c b/mm/early_ioremap.c
inde
The MMU base is 32 bits size - 0xfe00, seems that we missed
one zero in the definition of the clock and interrupt register
addresses.
Signed-off-by: Alexander Kuleshov
---
arch/m68k/sun3/config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/m68k/sun3/config.c
The provides rol32() inline function, let's use already
predefined function instead of direct expression.
Signed-off-by: Alexander Kuleshov
---
lib/halfmd4.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/halfmd4.c b/lib/halfmd4.c
index a8fe627..137e861 100644
The provides strpbrk() function that does
the same that the dgap_sindex(). Let's use already defined
function instead of writing custom.
Signed-off-by: Alexander Kuleshov
---
drivers/staging/dgap/dgap.c | 24 +---
1 file changed, 1 insertion(+), 23 deletions(-)
diff
not
used [-Wunused-function]
static void process_smi_save_seg_64(struct kvm_vcpu *vcpu, char *buf, int n)
^
Signed-off-by: Alexander Kuleshov
---
arch/x86/kvm/x86.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 1e7e76e..a60bdbc
This patch removes two unused macros: X86_VENDOR and X86_HARD_MATH
from the arch/x86/kernel/head_32.S. Also as CPUINFO_x86_vendor not
used anywhere, we can safely remove it from asm-offsets_32.c
Signed-off-by: Alexander Kuleshov
---
arch/x86/kernel/asm-offsets_32.c | 1 -
arch/x86/kernel
1 - 100 of 360 matches
Mail list logo