lkml.org 
[lkml]   [2017]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/16] x86/microcode/AMD: Shorten function parameter's name
    Date
    From: Borislav Petkov <bp@suse.de>

    The whole driver calls this "mc", do that here too.

    No functionality change.

    Signed-off-by: Borislav Petkov <bp@suse.de>
    Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
    ---
    arch/x86/kernel/cpu/microcode/amd.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c
    index 5c1509a38048..1691f41fcfdb 100644
    --- a/arch/x86/kernel/cpu/microcode/amd.c
    +++ b/arch/x86/kernel/cpu/microcode/amd.c
    @@ -187,15 +187,15 @@ find_proper_container(u8 *ucode, size_t size, struct container *ret_cont)
    return eq_id;
    }

    -static int __apply_microcode_amd(struct microcode_amd *mc_amd)
    +static int __apply_microcode_amd(struct microcode_amd *mc)
    {
    u32 rev, dummy;

    - native_wrmsrl(MSR_AMD64_PATCH_LOADER, (u64)(long)&mc_amd->hdr.data_code);
    + native_wrmsrl(MSR_AMD64_PATCH_LOADER, (u64)(long)&mc->hdr.data_code);

    /* verify patch application was successful */
    native_rdmsr(MSR_AMD64_PATCH_LEVEL, rev, dummy);
    - if (rev != mc_amd->hdr.patch_id)
    + if (rev != mc->hdr.patch_id)
    return -1;

    return 0;
    --
    2.11.0
    \
     
     \ /
      Last update: 2017-01-20 21:32    [W:3.288 / U:0.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site