Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1223461pxb; Fri, 26 Feb 2021 05:52:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJz49HuNx61sTJgL6SBkl1LULJnuaaOQgAkI1060r8W6qJrcEr9iW/mqtjW7SXA9KBsAdrFV X-Received: by 2002:a05:6402:1c9c:: with SMTP id cy28mr3418915edb.275.1614347561642; Fri, 26 Feb 2021 05:52:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614347561; cv=none; d=google.com; s=arc-20160816; b=gA1qLZHuKBTYEvAXXLCOGhiHctSzRjCy6yGm+Nxjzc7FdHZJ8qnE5uV2a+OC6Mdx6T kFcgPvXASXrfkXB2Iv0ayNzhvLv+2YrdIvzjd1LIFO4fJkjS+7W7IqQ4oVDzEljjSbZU /x30TtEyWn8a9l3ZzEQmCtWzgUxnollwxKCymKeKeJ8UbzWDMmKJio+Jx193/VnHrCPM BM9mWqvWT8rLa7Gqp4SxKW+mfihPAI9Mm0GmVxgFDDyjJHyHIQu6DAuph5sDgGB8B8eT D8MpjJ8uOrp5zoExugMZ77Hzn7Bebm2ZNtTWvY7hxHVm1bB4XtIIghtPOsccvbfy9uuT Qiaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Xb9xtwpTL4lk5rD+hInHkQNlk5EbdNVRWlBW9PFOfl0=; b=Vr67xhuY8kmwv5j9lVRQsi6FxaOeMjR3fIhNL4k/Moyix7udLE9jg6IATnd0GqsF77 mfGwAxIQAMy4xY7l4IB3mPy2BYH8olnNEH4kSYPp2njj8OPC48tPH/5tT2dwIcBWRje8 EBbY1w++O3+tiiuzv5YBmu49LIrdLKlRaRi3D+7ixqtE1u4T8TuZkxo+8x110VR1RZx3 gJNE78iuaiCtVKvBmxgJ/DWUbD3/BXSD7MlaB+C3CUqOO2ic4rQGejwD9VKPHdwa8snj v7dSwRf/Jh1cu0D2350luJfBo5KicOD88F+H8Siyfpp3ZHHFGKbkErOvmFS55WfZ51II qoIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=T0Z0vG6F; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si6122584ejg.121.2021.02.26.05.52.19; Fri, 26 Feb 2021 05:52:41 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=T0Z0vG6F; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229571AbhBZNvm (ORCPT + 99 others); Fri, 26 Feb 2021 08:51:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbhBZNvl (ORCPT ); Fri, 26 Feb 2021 08:51:41 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AA50C061574; Fri, 26 Feb 2021 05:51:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Xb9xtwpTL4lk5rD+hInHkQNlk5EbdNVRWlBW9PFOfl0=; b=T0Z0vG6F9aHvwy4kj3atsTdhqV KFg6314YV9TaMGSUrji3QGOC0oKV0rHxoHD+545kEGbcaN+guF9qBd8kx0gVnJhCaFutVDZ+Lhnri Aqng3m0F3mVoPrGJ17KuEtFIY2KMkkEgP1SsK9iSG3r8gwopy4hJEnv+6U0V3LA77AXOHd5sCyZ/x FeAQPIZQdLveDh3tlFOTcC7B8JO3WcQ/60T/fMMDyYyTOLweF7nq1dsD2eN2cvNMj/ssreUON4Wlm beJ7MO3qUakhfLgQ5jB0ZfT7+AjsTMEZPOco4AREGntD5Z5dArEqKx0TwwgoilP9FyPK+Sa+wlDun E9lKYbPQ==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lFdVy-00C5aQ-7k; Fri, 26 Feb 2021 13:50:43 +0000 Date: Fri, 26 Feb 2021 13:50:42 +0000 From: Matthew Wilcox To: Chris Down Cc: Andrew Morton , linux-mm@kvack.org, Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] ia64: Depend on non-static printk for cmpxchg debug Message-ID: <20210226135042.GD2723601@casper.infradead.org> References: <20210226130029.GC2723601@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 26, 2021 at 01:47:20PM +0000, Chris Down wrote: > Chris Down writes: > > I must confess I have no idea of the history of why it was `extern int` > > in the first place -- my fear was somehow we use cmpxchg.h from a > > different context. Do you have any idea? :-) > > Ok, found where it's introduced in the pre-git archives: "New file > asm-ia64/intrinsics.h." from David Mosberger , Dec > 9 2002. No indication why it's extern, but it's been there since the dawn of > ia64. It's just a quirk of C. 'extern' is only meaningful when applied to variables. In the context of functions, extern int printk(char *fmt); int printk(char *fmt); are completely equivalent. Unless (as you've seen) there's then a static definition following the extern declaration.