Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp20892imu; Thu, 8 Nov 2018 14:03:16 -0800 (PST) X-Google-Smtp-Source: AJdET5d6ur51e5XDWWOdUMLrHPse5B4M4muPKTZaFGDRoe63Oj1rBPR4Gw2XVglZArfS7m29AJO9 X-Received: by 2002:a65:6249:: with SMTP id q9-v6mr5223739pgv.392.1541714596884; Thu, 08 Nov 2018 14:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541714596; cv=none; d=google.com; s=arc-20160816; b=dHEaYqaLcTamYthZzyiEZPMdtY3RjaqEHBrMJ+VdDnI0UDYlGqfh6FrXNvqqy6ibhH StqP8tZSslMHDb5nLL7Ls6yfSSWbizSpAEfQWc9j3CKX1EDD2E4mhXkB6ffsMYuscF7J UCgkgTFHfaVc+OOvOU/tLkJy5Diet6vGYTY9YRbCq5R9Cmt9OFxnQQYSk5vgp7UPsl0i qbV5WnX7MZ1JZsn/Ol306nyVe9AnnbduDhL0+i83WZqy5/5LW2g98dS0gZlSGpE/YQ0J s+U4ltMe/bEIHGf6MQjIZYJzHSJoMY0hivVDRTJ/A5NBi4n5uA53F6A9DFfFqvnwmMba mC2g== 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=UsaGu4ppS+nFoK84VGe/EoADfrNhZaN7eYf7u9JSC8Q=; b=Cl3hgK7iVWr8WPzVhZH8RffjNXEFNfTjReP/vBuPs3YgcStNpXzb0rujD0TEuevnzA bgW2f7JI8nMn+7/AXqM3LWO3ooE++OrRAHhS8g1h7SA3Jh2mHlKF59A40D/OsFmkCz4E 5eZh1dPjG6nDqSyp1KrqxluiLKYtctzN60Z1QyMxqQEyyPpAOesPJgYtsRZJ2/HSMuaB dHctU2ds5j5+kBYQ00Pq5CYQnpX9noJU43ae/afbO0kc0ug4ozgjXN8sok732dgolKjd TJw6JwoGJ+BRKI1k7wzTtohl7gMK+a7R4iUJWA6R2S4VoTF53PeR5m4u0r878auNe5+c UNFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xFRHpMH3; 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.03.00; Thu, 08 Nov 2018 14:03:16 -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=xFRHpMH3; 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 S1730034AbeKIHjX (ORCPT + 99 others); Fri, 9 Nov 2018 02:39:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:58978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728072AbeKIHjX (ORCPT ); Fri, 9 Nov 2018 02:39:23 -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 92ECE20989; Thu, 8 Nov 2018 22:01:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714513; bh=sHbk68r04Sr1zCJdlibpIQb5xP6775RGexkLms9DGts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xFRHpMH3Gmt7AtXoL6zHvZto3c+d1/H2lIghenDGxhLTbltBa2c+uJXdmJsB6NEgs fYg1Tv9WEn1PBaxFz7Q5+oufT/Nrp/Ql6BQY4sw6iY03h+rRYQpq9tEgXJmUm+UFs7 5gLlPUrbjw3zl5rtJ7dkoQV/xf4K/PnB0rS8p2K8= 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.4 114/114] x86/time: Correct the attribute on jiffies definition Date: Thu, 8 Nov 2018 13:52:09 -0800 Message-Id: <20181108215111.203502162@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215059.051093652@linuxfoundation.org> References: <20181108215059.051093652@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.4-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 @@ -23,7 +23,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)