Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp966824imm; Thu, 5 Jul 2018 12:07:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdhmenm9Lq3OulVAXAuIZ/KiCQDTQF3/zO8rfCN+JcrTIBoj8P6l8gKtucqbVozK6O03Zow X-Received: by 2002:a17:902:22e:: with SMTP id 43-v6mr7525551plc.82.1530817652305; Thu, 05 Jul 2018 12:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530817652; cv=none; d=google.com; s=arc-20160816; b=hP0KZAVRmxZeaegPLc1shIHRcUkegBgROM3IUNbXwa0M/Qns9u5+MzT14vS67sr2oH RxqHacu4EzIk/Hsl8BbtDCd+I4HwnUT31DEjG9DnEQ7aJ7wWpXzU5cJ8kb/bysLeLvKi cE6z3AY/24Z5/LMqURx2CUxsw1//ieglsMUSaD/Z4X+09z+qMiOWNNBj8imNASVVeFJa weihXz4DV7R7BFijNtw1l/dAhvVLdnIGpOHIBm2V1iHHdAX0Mj6cLyw7gJVuN/yZl+Jj /O7keqM4SijBXlU53ZcDq4RNncZeb5MuEfd45NOpZrlygqLLSCBTqJvrGFk6zkgDwcfX Zs+Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=sslrhwr7phJIYYt/gFhVwD6/b7a0KcJliBFtR8ZJNsQ=; b=rKi1BsPtv49Vuwk/zwwivW/526ADP7RditqgzlCMg3AyrjU+foMWKJ6yTYJ5QmIw7A mnnk+7O//GTe8FxkiiMOm4sm5glNMG+kszcF7PamrvqRPpBLNE95XQGHjj/guGdta8Cb Qaujug+RS1Q7IQAu6eICymYmz2/jA726WagR4eFVX5yO3+dSTBEzGh5dpGTn9HKGXUGv 6R9FtJvTNwH61YROI4WgNRLIWP2H/qVE3YE/uD/G2i2AgVzS3ecl15rlcgs7F3eCj4AP sxZ2/TI6pYLpD2PkvbFB4slnb7iwyBJxXNXD/XRqITRUX5pX8br4RG12w/yKWG/dMSKE dQ/w== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8-v6si6359002pgl.101.2018.07.05.12.07.17; Thu, 05 Jul 2018 12:07:32 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754207AbeGETFo (ORCPT + 99 others); Thu, 5 Jul 2018 15:05:44 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:42544 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753931AbeGETFm (ORCPT ); Thu, 5 Jul 2018 15:05:42 -0400 Received: by mail-qt0-f195.google.com with SMTP id y31-v6so8003967qty.9 for ; Thu, 05 Jul 2018 12:05:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sslrhwr7phJIYYt/gFhVwD6/b7a0KcJliBFtR8ZJNsQ=; b=mzB3JMGs80ID+ygyJ9Zw/U+P0a87gSpc8N+GVv+1o265FM3nPYPNpSo5rpL9TGL3Dt jnNRdunq/7BUgrhZzad6jXFLtmwl4VM1+biHlxnNym3xZI4BhsJ6AZVY0aoBh/QXWR2C xlS0V06ZifFHpi+ZlTf+eqpTQTsYD8gXaXQvCN4jcWvukTSJFjVuUXaMLyMT8BCoCL3y kIlOI/J6V0Z/0u1LZK5otAY+gmsD9a+4/Znf2KVqW1Le3OiHXABsFBL4tZXkM2mTDw8y ak36Dc+77T5T2X4q85DV3XcSimyzrrzd3LwCJW9ieFNz/sOkHH9SC5/iI2Lpkcc4iWA8 SpSg== X-Gm-Message-State: APt69E0dcz6qKkmoB/2nPZNFBhWr4Uz3wM2zUtTegdD8VOFPkW2wxBIT Z8McdJJ1FmGYXyBQimXkNxX3wA== X-Received: by 2002:ac8:2853:: with SMTP id 19-v6mr6605328qtr.61.1530817541886; Thu, 05 Jul 2018 12:05:41 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::f0c1? ([2601:602:9802:a8dc::f0c1]) by smtp.gmail.com with ESMTPSA id l7-v6sm4782334qtc.27.2018.07.05.12.05.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 12:05:40 -0700 (PDT) Subject: Re: [PATCHv5 4/4] arm64: Add build salt to the vDSO To: Masahiro Yamada Cc: Mark Wielaard , "H . J . Lu" , Catalin Marinas , Will Deacon , Andy Lutomirski , Linus Torvalds , X86 ML , Linux Kernel Mailing List , Nick Clifton , Cary Coutant , Linux Kbuild mailing list , linuxppc-dev , Michael Ellerman , linux-arm-kernel References: <20180703233430.14416-1-labbott@redhat.com> <20180703233430.14416-5-labbott@redhat.com> From: Laura Abbott Message-ID: <33c28c0a-e429-51ea-0428-26fcfafa61bb@redhat.com> Date: Thu, 5 Jul 2018 12:05:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/2018 08:55 PM, Masahiro Yamada wrote: > Hi. > > 2018-07-04 8:34 GMT+09:00 Laura Abbott : >> >> The vDSO needs to have a unique build id in a similar manner >> to the kernel and modules. Use the build salt macro. >> >> Signed-off-by: Laura Abbott >> --- >> v5: I was previously focused on x86 only but since powerpc gave a patch, >> I figured I would do arm64 since the changes were also fairly simple. >> --- >> arch/arm64/kernel/vdso/note.S | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/arch/arm64/kernel/vdso/note.S b/arch/arm64/kernel/vdso/note.S >> index b82c85e5d972..2c429dfd3f45 100644 >> --- a/arch/arm64/kernel/vdso/note.S >> +++ b/arch/arm64/kernel/vdso/note.S >> @@ -22,7 +22,10 @@ >> #include >> #include >> #include >> +#include >> >> ELFNOTE_START(Linux, 0, "a") >> .long LINUX_VERSION_CODE >> ELFNOTE_END >> + >> +BUILD_SALT; > > > > I think this works, but > I prefer no-semicolon in assembly files. > > For coding consistency, > I want ';' as statement delimiter in .c files. > But, only new line after each statement in .S files. > > For example, in arch/x86/xen/xen-head.S > I see no semicolon after ELFNOTE(). > > I found this: > http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473k/dom1359731141352.html > It says ';' starts a comment line > although it is not the case of GAS. > > > Same for 3/4. > > > Yes, that was a typo out of habit. Will fix.