Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1296456ybg; Tue, 2 Jun 2020 06:29:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTNElgTKuAx5hiPAi+zT/EyfnIg4XC/9+PsqyjtJnlKPZpLJDkWiKMy1qdN4joZM1GsOfW X-Received: by 2002:a17:906:2656:: with SMTP id i22mr9445629ejc.397.1591104571138; Tue, 02 Jun 2020 06:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591104571; cv=none; d=google.com; s=arc-20160816; b=BFCWxooETCdiyJ7wuevcjYsTz49QNeq2HbceLnsblquS+8IJEeXwW+X+W123ts6D00 lcjlvUzz+sK/1mbalwgPPcKjLCedj6QEehOWuYNc0DwMvgii5pauVe6iYWKaNhE3AbxP tQLYXNmibOD4tPRqnZ2+KSIY21OqQrwfGQ6QpM12as9wr9qgyYo5JYhUA2rIZc7IX98g /X2cTTLRiWHmtFsfa0RUh5uENFoJV051VXLOzX7kERBoruerj1VqbRY+M1MknA20KUcV 618xOXELe+etPSRym+pjrnU24gpBZrJ0aECZmpJMAeWThbJTMxlAHHGQg8n+OZU0KgMk Kemw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=o0pQY5Ii8PXeO0UpV8bNoE8fyQdiCbwa63Xrsl6aXGw=; b=VS8r08vo292jAC3XCaTntiXbwg0huhRHxyzgt0szXBc3aokX3+nBpx34SxfG7DvPdn bvUfe6pd6X0pUxZq/5+nTDi0EYQh22w1F7rnz+gnBnfwOoItR6K/0wgkew1caP5YJfD2 IXbsv2O8nSRW/y4iBzCaLaubb0Jd8vGVwZlm9lBUvO3M3NZMQCccnzeZBvwHpvQflgZ0 9FvztbGaRtnoPjUg24w7Dicgc6SBD66PKRg0KDSGO7rBHPM0X4G/kZd5EdL3KnRZ9TCc wYQGVN3se04j9qnTgSfnjSkNAaTl1DDIE5X0T4eaYtUve4adapJmyZXJvPJvzNb64Po+ Jgww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="M3J4/69u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si1444444ejd.119.2020.06.02.06.29.07; Tue, 02 Jun 2020 06:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="M3J4/69u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbgFBN1W (ORCPT + 99 others); Tue, 2 Jun 2020 09:27:22 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:43136 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726420AbgFBN1V (ORCPT ); Tue, 2 Jun 2020 09:27:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591104439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o0pQY5Ii8PXeO0UpV8bNoE8fyQdiCbwa63Xrsl6aXGw=; b=M3J4/69uzJlpy1DD0MIujhf0G2fDySUMvFUv4UQHufoEBN6Mipy8yPRAzOlBeweP4Yhkl8 pxuGD5TS7MapTJp52EKSqTS3xEbZTqK2u4pg6q7g/6ofXmRJdjQKWqMztr1JycP9F+bs/3 OmzylAMV8nH/3lPzfp33po/2LA/lxko= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-409-ZM46vsn1NMyeIoHsDFXStw-1; Tue, 02 Jun 2020 09:27:14 -0400 X-MC-Unique: ZM46vsn1NMyeIoHsDFXStw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D0FAF107ACCD; Tue, 2 Jun 2020 13:27:10 +0000 (UTC) Received: from treble (ovpn-116-170.rdu2.redhat.com [10.10.116.170]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3E6F76C776; Tue, 2 Jun 2020 13:27:04 +0000 (UTC) Date: Tue, 2 Jun 2020 08:27:02 -0500 From: Josh Poimboeuf To: Bob Haarman Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Fangrui Song , Sami Tolvanen , stable@vger.kernel.org, Nathan Chancellor , Alistair Delva , Nick Desaulniers , x86@kernel.org, "H. Peter Anvin" , Masami Hiramatsu , Vincenzo Frascino , Kyung Min Park , afzal mohammed , Peter Zijlstra , Kees Cook , Heiko Carstens , Dave Hansen , Baoquan He , Thomas Lendacky , Ross Zwisler , Arvind Sankar , Dmitry Safonov <0x7f454c46@gmail.com>, Andi Kleen , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] x86_64: fix jiffies ODR violation Message-ID: <20200602132702.y3tjwvqdbww7oy5i@treble> References: <20200515180544.59824-1-inglorion@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200515180544.59824-1-inglorion@google.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 11:05:40AM -0700, Bob Haarman wrote: > `jiffies` [...] > `jiffies_64` [...] > ``` > In LLD, symbol assignments in linker scripts override definitions in > object files. GNU ld appears to have the same behavior. It would > probably make sense for LLD to error "duplicate symbol" but GNU ld is > unlikely to adopt for compatibility reasons. > ``` Kernel commit logs shouldn't be in Markdown. Symbol names can just be in single quotes (not back-quotes!) like 'jiffies'. Quotes can be indented by a few spaces for visual separation, like In LLD, symbol assignments in linker scripts override definitions in object files. GNU ld appears to have the same behavior. It would probably make sense for LLD to error "duplicate symbol" but GNU ld is unlikely to adopt for compatibility reasons. or can be formatting like an email quote: > In LLD, symbol assignments in linker scripts override definitions in > object files. GNU ld appears to have the same behavior. It would > probably make sense for LLD to error "duplicate symbol" but GNU ld is > unlikely to adopt for compatibility reasons. With Markdown-isms removed from the patch description: Reviewed-by: Josh Poimboeuf -- Josh