Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1184230pxb; Fri, 26 Feb 2021 04:51:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzA3TM/+ZJ3Dp+l14TgL6JY3ldHB5Ryd5ArLJMNZyfwQr4DDyGac4TkwYiy69DtoB4NVcSC X-Received: by 2002:aa7:d5c9:: with SMTP id d9mr3253459eds.102.1614343919029; Fri, 26 Feb 2021 04:51:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614343919; cv=none; d=google.com; s=arc-20160816; b=FxKlr6oGCnV7w20Iec1KrJZe9II+8GmvXAd06KWcXxHsmmWJeUOAjZmjpi6GFKrr6e elcEMhmoBc8ZVNCYNlj7I0d+f02QY9ux+2P2HICyVswjab3OwRWXHt3k9RbOMIbS5vLA agntWv5xEylMlPBj1/W+GmPNCZahOFt7mm+2MSNrAH20z5B8YcsiUj55ehJ+Mq+biM9j HySUhrSU5nT7ucwlmbGhAZ6Iw/Hp6YW1d4ye07arCzHeKIYZcvbIJN5BJMEKyeKW5RhL lfBlMYAkQ7E6R9pSC90su17H7AK1+KRWcvcQkPZje8OGcD1pFrF542MXxjma0DnnfTYr op8w== 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=TMdyoGpsUz60QnR0spjaWP1dFPFBzwuCMWnm1un/xsQ=; b=truOkhcasMq+ZlXwf4Xry47P8tK7/Z/jU2vS1wp5lUu6tYvgHXbHGOZ1G85WE2fl7A 3STq+plN8kg+/EimDaWV9nSrS0o0aStfRf/6eRNm/OBSmHn3V+dwHAjl9poQDKQD/NEB sddbZRL/VIArJqQDiGt5wUv3pzXrDur6JE0iEbXrw6QI3UwzEXnM5mbpDyxf+P659s16 XP3+LYdzFmN1qxxk9fS1YxfVOpgB6NqlUT4pUtM1cRD32EhKsOEGlWum5PvazKY2iLyS Qki8Pa7T6RxC6NSz7Q8+m0Ua9bJS8Ise1tve6w4rpFSCJyjDrGMAFB5+nAhwQtfe/zwm 1Qhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=eEqgi9n7; 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 t19si5106435ejd.179.2021.02.26.04.51.35; Fri, 26 Feb 2021 04:51:59 -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=eEqgi9n7; 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 S230071AbhBZMsl (ORCPT + 99 others); Fri, 26 Feb 2021 07:48:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbhBZMsk (ORCPT ); Fri, 26 Feb 2021 07:48:40 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B6F9C061756 for ; Fri, 26 Feb 2021 04:48:00 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id u125so7665993wmg.4 for ; Fri, 26 Feb 2021 04:48:00 -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=TMdyoGpsUz60QnR0spjaWP1dFPFBzwuCMWnm1un/xsQ=; b=eEqgi9n7vxuk2yqcdRUd4PX6Qj+/MYB4oOjvk4RRX82nzyg6TmMSs+YV+2a00qFACG 2u262/C+xHk2s4RaVNji6NzJwU++QP7GPlxG4e7THZ45d0L1zZ9uzVmDr7BjZ2v1bt5b fAbCnk9k/w/8RLdjCjtqO6UGTdJrCTS8fe/58= 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=TMdyoGpsUz60QnR0spjaWP1dFPFBzwuCMWnm1un/xsQ=; b=f8wrCwQCiZHzkrafOmzCLJ6j3v2C0dXlBDnjA/K9m0iGpnS5z5zLn91O7bWLTxym1T jqCJVb5Z8q6+3J0L8Qh80ck4XySzM+k9YnmMhondAwr50n/+RDOntLpJgkuHrzk9YUiX MwothMU4e3k5DtQTbGUZNycOcSlU+YTXx+01nsRCRSBQAT2a+cQPFOgWsaCGTG10C3mw LDg1k9HfM7xP5tXWnNuTQDq6B+lRUkUavCX4xsUttuoesezub66Gs2h7bkQYA739ax6x WzDNdt4LsUVJRnCAaJxroK82PerCI+rjsveVRC3As6Tp1EDXf7T4jnp9w29fneB8J2lG z7gw== X-Gm-Message-State: AOAM531XvFLSHyVSqMUvOv+c+X9zOUOhGlzv0UfuWznHnQPoWN6JseHx jL7DLdk4DWgoxnB94YRIyi+t9g== X-Received: by 2002:a05:600c:3546:: with SMTP id i6mr2819459wmq.24.1614343678763; Fri, 26 Feb 2021 04:47:58 -0800 (PST) Received: from localhost ([2620:10d:c093:400::4:87b5]) by smtp.gmail.com with ESMTPSA id y18sm12668754wrq.61.2021.02.26.04.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 04:47:58 -0800 (PST) Date: Fri, 26 Feb 2021 12:47:58 +0000 From: Chris Down To: Andrew Morton Cc: 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: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.5 (da5e3282) (2021-01-21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + akpm, linux-mm Hey folks, Chris Down writes: >With !CONFIG_PRINTK, printk() is static in the header, but ia64's >cmpxchg.h with CONFIG_IA64_DEBUG_CMPXCHG doesn't take this into account >before trying to use it as extern, resulting in a compiler error: > > ./include/linux/printk.h:219:5: error: static declaration of 'printk' follows non-static declaration > 219 | int printk(const char *s, ...) > | ^~~~~~ > ./arch/ia64/include/uapi/asm/cmpxchg.h:142:14: note: previous declaration of 'printk' was here > 142 | extern int printk(const char *fmt, ...); \ > | ^~~~~~ > >Make CONFIG_IA64_DEBUG_CMPXCHG dependent on CONFIG_PRINTK to avoid this. > >Signed-off-by: Chris Down >Reported-by: kernel test robot >Cc: Tony Luck >Cc: Fenghua Yu >Cc: linux-ia64@vger.kernel.org I now see that last month ia64 was marked as orphaned, so I'm going to send this over to Andrew/-mm. Andrew, any chance you can take this in your tree? It's causing spurious LKP noise for some recent work on printk and would be great to have in -next. Thanks, Chris >--- > arch/ia64/Kconfig.debug | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/arch/ia64/Kconfig.debug b/arch/ia64/Kconfig.debug >index 40ca23bd228d..2ce008e2d164 100644 >--- a/arch/ia64/Kconfig.debug >+++ b/arch/ia64/Kconfig.debug >@@ -39,7 +39,7 @@ config DISABLE_VHPT > > config IA64_DEBUG_CMPXCHG > bool "Turn on compare-and-exchange bug checking (slow!)" >- depends on DEBUG_KERNEL >+ depends on DEBUG_KERNEL && PRINTK > help > Selecting this option turns on bug checking for the IA-64 > compare-and-exchange instructions. This is slow! Itaniums >-- >2.30.1 >