Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp35802imu; Thu, 8 Nov 2018 14:18:00 -0800 (PST) X-Google-Smtp-Source: AJdET5d54oULY2IEBghw4QQi5GUYTpJ6gbEjgXq2hYd1V9q6ISoHMoGiUS5gljLrFh+7CfGH7fOW X-Received: by 2002:a63:6bc1:: with SMTP id g184mr5391668pgc.25.1541715480019; Thu, 08 Nov 2018 14:18:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541715479; cv=none; d=google.com; s=arc-20160816; b=NxVfBGGFT2Og9F5jLb3y5oSHZzqYi2L7aJ5mlxAHSQW7kKaJIOQVYaNd3Re385aNVx lDf6r4GvniyOuEVH36b7/pIdH3TL6oo1cV7w7nFM/JBjEq4MfyuekX5JuMVDVrAlylxZ BWybXdulWz2V7Uhd33v8uERA3TPUax8y8VI8sMGjTPzLL5hTUQFdfcYB9DFJq/scTf2f yFI48bYMUPTRvgHlJ90YbGpJG4bav4/l4odlWPiQGcBuWU2q/Uo2si/wx6IZZCr/z1d/ 6xs8Bqlr9tyhWhogCOYJkAWKQA7KSJGBQvFSvG46F//cfmbFHgw2YK6VnEwxjqoNRowe vWgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1HCC8z1YgpuYNGK2edwCwaUJJsotkyJe5QDrGOxYAJU=; b=sXZtBxHTWauUQhzpP1yHqkkBSNJ9L/kqDBH5fdqATRNgV7LJiruJivdbB4++qtSuf6 yoBRryQUhhrHK0XOWOlhcdXcpZKlFmtCSQ2bvCg/ratrsubTTEmD+vtZxt7CmjXzo80c pFbe+WCaC5sVxNKT6DE7oInmpK0oj1wwRlO3S5cJ1b+DxN5KUj05ygAykrsetY7w+eUu sids0GRRYtmLqMTpxRzj2XuoGktnt3qSqbuQJEq/sNtNIxzn47oFoWXCV1GEwCKwYn4s 9TOgU7G2iknpXm58hziyLR8Zen3gNe7Pa9dhrefdeHCEU3ucPLQ8j94rhHWxqWz3spy6 nR2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zErKclAg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4-v6si5846550ple.236.2018.11.08.14.17.42; Thu, 08 Nov 2018 14:17:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zErKclAg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732456AbeKIHpf (ORCPT + 99 others); Fri, 9 Nov 2018 02:45:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:38886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730895AbeKIHpe (ORCPT ); Fri, 9 Nov 2018 02:45:34 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 505FB21019; Thu, 8 Nov 2018 22:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714883; bh=knqt9E2VSyYO0z8HZoeBEsK2XEaP6+Tn7rwwOJ0KKyw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zErKclAgPwP23THk6y1AZVSTFBKLbxZKJH26gvc6NeyP2+Bycjs/3Er3sPf7wc0Oo hNhRYL0TFhhgWioE/umDrE/mP5JrBziY0TSQsDr9kPNFYV1rR96QXtxI8CdPiWvap3 NMG8J8mGd+fdJGwmaB8pg/VRIU8uT9wW6PL4dTsk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , Nick Desaulniers Subject: [PATCH 4.9 169/171] x86/time: Correct the attribute on jiffies definition Date: Thu, 8 Nov 2018 13:52:19 -0800 Message-Id: <20181108215139.193036416@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215127.257643509@linuxfoundation.org> References: <20181108215127.257643509@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nathan Chancellor commit 53c13ba8ed39e89f21a0b98f4c8a241bb44e483d upstream. Clang warns that the declaration of jiffies in include/linux/jiffies.h doesn't match the definition in arch/x86/time/kernel.c: arch/x86/kernel/time.c:29:42: warning: section does not match previous declaration [-Wsection] __visible volatile unsigned long jiffies __cacheline_aligned = INITIAL_JIFFIES; ^ ./include/linux/cache.h:49:4: note: expanded from macro '__cacheline_aligned' __section__(".data..cacheline_aligned"))) ^ ./include/linux/jiffies.h:81:31: note: previous attribute is here extern unsigned long volatile __cacheline_aligned_in_smp __jiffy_arch_data jiffies; ^ ./arch/x86/include/asm/cache.h:20:2: note: expanded from macro '__cacheline_aligned_in_smp' __page_aligned_data ^ ./include/linux/linkage.h:39:29: note: expanded from macro '__page_aligned_data' #define __page_aligned_data __section(.data..page_aligned) __aligned(PAGE_SIZE) ^ ./include/linux/compiler_attributes.h:233:56: note: expanded from macro '__section' #define __section(S) __attribute__((__section__(#S))) ^ 1 warning generated. The declaration was changed in commit 7c30f352c852 ("jiffies.h: declare jiffies and jiffies_64 with ____cacheline_aligned_in_smp") but wasn't updated here. Make them match so Clang no longer warns. Fixes: 7c30f352c852 ("jiffies.h: declare jiffies and jiffies_64 with ____cacheline_aligned_in_smp") Signed-off-by: Nathan Chancellor Signed-off-by: Thomas Gleixner Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Nick Desaulniers Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20181013005311.28617-1-natechancellor@gmail.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/time.c +++ b/arch/x86/kernel/time.c @@ -24,7 +24,7 @@ #include #ifdef CONFIG_X86_64 -__visible volatile unsigned long jiffies __cacheline_aligned = INITIAL_JIFFIES; +__visible volatile unsigned long jiffies __cacheline_aligned_in_smp = INITIAL_JIFFIES; #endif unsigned long profile_pc(struct pt_regs *regs)