Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1201086pxb; Fri, 26 Feb 2021 05:16:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0F6aCdQrBJCNAGlU4uKEHFsD8t463blztyw1nNfSX01Img7wW6x0AKbbS0SIu3ENKbTkS X-Received: by 2002:a17:906:5797:: with SMTP id k23mr3181958ejq.489.1614345416765; Fri, 26 Feb 2021 05:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614345416; cv=none; d=google.com; s=arc-20160816; b=jAFl+IrnMi8Pg2QFu12XreWfQ39YVFGvxHR/8P9HKlp6tLfHcgxoPX4BrbrRbWX3SZ T+9ttvqDrdj29uRtu6uUtvpl5wobidRqU23vseZamiYDpVJWfkAWmhgunncUZntGwdJd tA2TxdL4uiGAiVDs8Ex3IwfoUmluuMQYOEZn9lAzT6OZuEjTRnWiSCOnV6bPUozpFsbD dzt4MnPFy6yq3/yfQQn/hJO9thheo7jBJYabQ6O4SUub11SJO8Sv0O4PXTiudb5tlk6T AxTuF4sEHVQQIFB90+eS/Ra4TYtwdqAjPXqJF3WSpo8sntum1n3eL9GvqcDyEA24X2mt NwZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XxDrSAz+s0u9GghMJmZiJqB1we4OdhhnM7uHXW+NNPE=; b=ejY5+iU8/7x1yJZ/rJjnJHaKarzCk6EvJZUZVIzhPB22WG3GDmWWacxAIFF6v9j1d+ s8abA0xgf3WU9oFThMX3y0VJIeyHi9DHXlQXa7nB157/HxQPNQg9PH1pqEjolyjvzd1Z lMctBOBz2DLhvHMAjmx7k6o8PgoqZNjPEPop5B1D14+kpLL7UPG9+jugSvBSzk3nOaXf CJMYcJLvbsMNoU5pgqopA35abbTGw9AjajgoneuSpQtSX54tHAeBHIp9CfvO9sD6vNBv 30y1O+SyVeF8UtdJfzTlnZc9R6CZovggupJQEL+sn0ffUu4blKSTX4VdP+wbYv4FGst4 BaJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=ktc1Ouuc; 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=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl4si6132478ejb.47.2021.02.26.05.16.32; Fri, 26 Feb 2021 05:16:56 -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=@chrisdown.name header.s=google header.b=ktc1Ouuc; 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=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229841AbhBZNPj (ORCPT + 99 others); Fri, 26 Feb 2021 08:15:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbhBZNPi (ORCPT ); Fri, 26 Feb 2021 08:15:38 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B980CC06174A for ; Fri, 26 Feb 2021 05:14:57 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id n4so6326699wmq.3 for ; Fri, 26 Feb 2021 05:14:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XxDrSAz+s0u9GghMJmZiJqB1we4OdhhnM7uHXW+NNPE=; b=ktc1OuuclGHmKXvMLlLD6jYnuTewLQk7HEJiXkEJ5+Rj8HE0Xm2Ym75TsHFXjMBTCc z415izJUnuxOB9AejmcZK0UuVd7gzPLIfDljK4sg7yVLVYwaytbFUFNHftoyNGkEiR91 N2pf6b2h+7lJzLhkiAQGEL4oSTlDNLG7sgC4M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XxDrSAz+s0u9GghMJmZiJqB1we4OdhhnM7uHXW+NNPE=; b=JSyNpTB9vxHv3Uz7GeyRDAnVtf7uibvG1PSeZ/MUMYar+4a0hk4pDIjat4gWoNJH1R anGVrCV6UXFN8tQOWKqqEyUkDBVFe7/kZ8RFrqYk37EOoG94NqHZ3RRVct6WxtTqx1A4 EkC+8psSczKImDOmxeQOq0csjP8emifjvKqkbFY0/6oNKc5Hp4jOgeTWlY49nJyBFG0r 11ZwTIAlPimA15Jeft7MvgJ4HNt1Ryta0BfL00CGXCyACqy4671MIbdaFM1LY6zpQYXG RnOlbspYDhmbyAcZ9zqRQi+K6RRk8cH6FegJJX3lO29siDqDoFRXbvVu53bfq1KxTp07 5azg== X-Gm-Message-State: AOAM53209h+lkFgnoaBELdDnE6WW3Ad+jDcjMn3JcXtSrbRJD4p6isSt pIZo2VHlbAqr7ZBnhPBNOZ36hw== X-Received: by 2002:a1c:f20f:: with SMTP id s15mr2796384wmc.35.1614345296506; Fri, 26 Feb 2021 05:14:56 -0800 (PST) Received: from localhost ([2620:10d:c093:400::4:87b5]) by smtp.gmail.com with ESMTPSA id p18sm1584342wro.18.2021.02.26.05.14.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 05:14:56 -0800 (PST) Date: Fri, 26 Feb 2021 13:14:55 +0000 From: Chris Down To: Matthew Wilcox 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: References: <20210226130029.GC2723601@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210226130029.GC2723601@casper.infradead.org> User-Agent: Mutt/2.0.5 (da5e3282) (2021-01-21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox writes: >Why not just fix it? > >diff --git a/arch/ia64/include/uapi/asm/cmpxchg.h b/arch/ia64/include/uapi/asm/cmpxchg.h >index 5d90307fd6e0..d955a8e3ebde 100644 >--- a/arch/ia64/include/uapi/asm/cmpxchg.h >+++ b/arch/ia64/include/uapi/asm/cmpxchg.h >@@ -139,7 +139,7 @@ extern long ia64_cmpxchg_called_with_bad_pointer(void); > do { \ > if (_cmpxchg_bugcheck_count-- <= 0) { \ > void *ip; \ >- extern int printk(const char *fmt, ...); \ >+ int printk(const char *fmt, ...); \ > ip = (void *) ia64_getreg(_IA64_REG_IP); \ > printk("CMPXCHG_BUGCHECK: stuck at %p on word %p\n", ip, (v));\ > break; \ 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? :-)