Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3709934pxb; Sat, 13 Feb 2021 06:44:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDVvDH4av8VXlsOhrqVmeVVSxK8d5gFX9GrtU3Lh4MmuVs1DsX8D+ydQFt+fk0C2VRjWnK X-Received: by 2002:a05:6402:5211:: with SMTP id s17mr8021482edd.312.1613227448746; Sat, 13 Feb 2021 06:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613227448; cv=none; d=google.com; s=arc-20160816; b=Mst4OCLmWJT12/jZhS/9JMejKNu40MH2ad35N9wO2HvJ772xZvF40nMFvUOUa1GLbo IAHf1o80VAF28PJa7Fvp3Jq7YLp3NdKfS1VyP6w5AommZDT+NtIegCRRFMFFa7l4laA7 TMufshHbLVpd1JDO96+Fq6ZD10bT3bUR1izYG8YCk+g3xuhV5i03ad3fN8EgXBEsby1W +0pK2Jo8uQyyuHXCuHBub2n9iTJOnvys54VZU8UXQiBgaQSvufICCeRzq5NkIYJIGoYZ CcrJC4wMMCrKDPzNE2HancbMXOEuzr3WGlFn/cD7dFocJ5osWG7rSBe4KGBgukEdN/bq ADPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=t2hD8XWbXgiIhH0tTQ3l0lSYwAQ2IrFpZZ7rZL9ddzI=; b=jX9dUElPOanEVQZ5S1eQ7v2rH5ZNq89Db2rDZEbTPoyfrgzL3KAE0YcTFcweSzRUMy ZdTvk7LGaoHqEIvXp7VHZbNAyhjyQOp+80HNNMVyk/SBjiDENUZcI8BIN7eWIE0DGGGs lWWKw0Igg5HhiAK9wvbOKBEjJDaSMKMrCM/6PgCPJDP47ZZeZc5ht7MlFAxnvjDB4TXl wuH+3QXxUiOq73njo5u0QHFJW9EfL3pdM6ZzW2PMwqsM6Q4zyPBjMYI1RPZzsREzvXvj L5QiikSOq7VYp3bvkaB3eXvb8nkZYUa0Gvjbaj1B+5fzmhc1WaVY8g3cAoiFqQ6Kc5k9 GR7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=gPoVzMrK; 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 x5si2690033ede.575.2021.02.13.06.43.41; Sat, 13 Feb 2021 06:44:08 -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=gPoVzMrK; 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 S229703AbhBMOmn (ORCPT + 99 others); Sat, 13 Feb 2021 09:42:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbhBMOmm (ORCPT ); Sat, 13 Feb 2021 09:42:42 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B06DC061574 for ; Sat, 13 Feb 2021 06:42:01 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id c6so3267925ede.0 for ; Sat, 13 Feb 2021 06:42:01 -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:mime-version:content-disposition :user-agent; bh=t2hD8XWbXgiIhH0tTQ3l0lSYwAQ2IrFpZZ7rZL9ddzI=; b=gPoVzMrKYWT5P5FUqvfXPmaj0PBivmyTERUcOC7JAdB7h7imXiUcpDbp+SdBWUJ1v6 tudDvNum7GFpntleOaMS7JJdJCBQuAbG1IiAz802RJPoRd+U8VnDgJOna8RQbGDho83Y JgmzRYPCVrj31KmvV9v3KH14TVNWZ2/iZ7rlE= 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:mime-version :content-disposition:user-agent; bh=t2hD8XWbXgiIhH0tTQ3l0lSYwAQ2IrFpZZ7rZL9ddzI=; b=cZoNSXZ0Wjfekoh0/W8xvtccxmBlzS77UkxXYY+7wCYIKFtlXW2AK0nIACsYixx6ME YBhK6SLE2YymU+R/CLidYDjte0HFCnDZp9UogUjKDyzHSvlmFSjWvl5oEBpqkqWUzA7K tVFs4CG4ofzu+MasyH8eKinxhyPH0OMVcMhO6nr+1DTim4tdjno20r1rm1J5rrGE7nRM 4xTaJxR4JqRlgVAgEYwwz2DnzfO/7Y9J2R3YPMBjU9Jjdal/v6DntGZmU41Oh/uGmycs xyUIbkGAWF4hsAlnu6TvYb6mvhHmaYeCjaoCbvLmSHwdK8G99CFEmGxm9cv2LWsKjF/c 7crA== X-Gm-Message-State: AOAM531XqLwC7U/d7LsM+Q3JBEzgq0V59aUYwqXEUIALlpm7cy1YiVzO k7nq9QuB9q/dUDTAl8Z3IjnYrw== X-Received: by 2002:a05:6402:38d:: with SMTP id o13mr7928059edv.155.1613227320169; Sat, 13 Feb 2021 06:42:00 -0800 (PST) Received: from localhost ([2a01:4b00:8432:8a00:63de:dd93:20be:f460]) by smtp.gmail.com with ESMTPSA id c1sm7843073eja.81.2021.02.13.06.41.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 06:41:59 -0800 (PST) Date: Sat, 13 Feb 2021 14:41:59 +0000 From: Chris Down To: linux-ia64@vger.kernel.org Cc: Tony Luck , Fenghua Yu , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: [PATCH] ia64: Depend on non-static printk for cmpxchg debug Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.0.5 (da5e3282) (2021-01-21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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