Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3050053pxb; Sun, 26 Sep 2021 04:00:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW81S8vPKTPs4FhSrZNN/Zmy9V4jakCen9QLDZr/Ktk8FIbXzEOGR6ujBP2e4XdpcrHAQt X-Received: by 2002:a05:6e02:1c41:: with SMTP id d1mr15169533ilg.31.1632654003165; Sun, 26 Sep 2021 04:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632654003; cv=none; d=google.com; s=arc-20160816; b=Pkf+5rF6G4RvjDs2WcokM3Kp4/MDiOaGgenAw9+pgH+t6QIhK4xPxId/o92Ic7miup eLBUY3l9p4fMRs0MmuY6NvpWJxt6mpPg76JGXsbpcyBe6f3gXpMVpJJM+9gEyG2zPIzk 2aOXSTMG7Z2ZywbD/KxFhA4XGhXinf2VX4he/ldiz8mQ05EbNrwbO+1uRq7Dik/7Oqjb P16mkoALc0BPejz4JaxS+tWPInOR26w3eWwTDJ4RmGYkEzDFKQljg8QM4qaE4pMNqoSW IIzqljZjael00yUpF4UWnb/yNhmz4onwy3pFKrTGK9qRbDn8yvYhtK5QpOyPvAykWHHW lNaQ== 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=t+YQA6NcnBwj140GMdqh1H1cRDgKuBzPuXJMzQi6QK4=; b=vgL8xfDZ03PjxntyJK92/pMZLfQbyel1/+k1xoQUZjl88Z2vdr0vKf3FHgws14Ie2B eGwHnmgw8kDT1cS3yfh+QWlvvcVky+wt9aNavXIzYiEaTVdKG/DBUMDAYb6Ifps+so+M 1lDdRXcqzt6zdwmCFkPazk8BcOSRyMEWXA8EHxIIAiRUYdgBk5JX7OPxfLZ0xUaEQxNy FcUUwYh2343YPT+EiiY/5ZOtAVCmFrPv9c+xz3cYsAgux29f+WzlvLF0rE40fEFAF3AV CsvvxCUTcyqLb7ZAmP0DXor/HioXYKdMjWk12wM4qQkK6SVbzbGVtBr6+JVBm+rekcCC kLnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=rc5oJE3l; 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 y5si5755707ill.73.2021.09.26.03.59.49; Sun, 26 Sep 2021 04:00:03 -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=@chrisdown.name header.s=google header.b=rc5oJE3l; 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 S230255AbhIZKwp (ORCPT + 99 others); Sun, 26 Sep 2021 06:52:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbhIZKwo (ORCPT ); Sun, 26 Sep 2021 06:52:44 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4C7BC061575 for ; Sun, 26 Sep 2021 03:51:08 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id u18so42471752wrg.5 for ; Sun, 26 Sep 2021 03:51:08 -0700 (PDT) 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=t+YQA6NcnBwj140GMdqh1H1cRDgKuBzPuXJMzQi6QK4=; b=rc5oJE3lQkAU6aKt6yVqGNHWRxzbY6mlw20Pt9TGLIJr+WNdwGaZrYZuvc+l0oyYbL L+eNTXaeMs84KMkJzNZ1/V+lj0m+t/4byQDiGrT8Sgyl2glADw0X/Yg/A40V9HDTWO7w zTG0HUVjHzsjyRXmjiOINKnzP+nyHf9Y+3ACY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=t+YQA6NcnBwj140GMdqh1H1cRDgKuBzPuXJMzQi6QK4=; b=CK7eQh/6Ll28n9kYxhfXOdXnOCyyHEe4b5gpv3ogsaDXmUGf+Svr/lRQ0MQDtSjZF9 iqW9qF+8FaOTdBoarXGzAI9wnjfYn/IOiynNkBfklk5kJxfxF2vFDiwBiSC2KdafObdt sxzQ1rU+zj94QceKi1x/59yCIyNMXpoJr0M479k8FnPG/pXUVBojH1h8zUGLsvP7flAh TyHRJUwrLtkBuA8hhhuxMnD+kkz4Vp94jOBi+szdydTkdXbeSdxAbdshjWUBFie7MfLl 4cld9IfvSkibOjpnm397b4fsM6theO8AYMR05MlETMaR3V7oY5qb8q0IQFUG9y4RZ8tX Vx4g== X-Gm-Message-State: AOAM533q2s4cSXywDvwmtKVjDsgr6UEq/qmf3zJiE1ub2wSROgT1aTqt cJ2bc86sv4SKTgJhSQuhW+JjtUtNNYo6kg== X-Received: by 2002:a5d:6545:: with SMTP id z5mr21609745wrv.51.1632653467271; Sun, 26 Sep 2021 03:51:07 -0700 (PDT) Received: from localhost ([2a01:4b00:8432:8a00:63de:dd93:20be:f460]) by smtp.gmail.com with ESMTPSA id a77sm13495210wme.28.2021.09.26.03.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Sep 2021 03:51:06 -0700 (PDT) Date: Sun, 26 Sep 2021 11:51:05 +0100 From: Chris Down To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, Petr Mladek , Andrew Morton , Tony Luck Subject: Re: [PATCH] ia64: don't do IA64_CMPXCHG_DEBUG without CONFIG_PRINTK Message-ID: References: <20210926063325.13581-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210926063325.13581-1-rdunlap@infradead.org> User-Agent: Mutt/2.1.3 (987dde4c) (2021-09-10) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, Randy Dunlap writes: >When CONFIG_PRINTK is not set, the CMPXCHG_BUGCHECK() macro calls >_printk(), but _printk() is a static inline function, not available >as an extern. >Since the purpose of the macro is to print the BUGCHECK info, >make this config option depend on PRINTK. > >Fixes multiple occurrences of this build error: > >../include/linux/printk.h:208:5: error: static declaration of '_printk' follows non-static declaration > 208 | int _printk(const char *s, ...) > | ^~~~~~~ >In file included from ../arch/ia64/include/asm/cmpxchg.h:5, >../arch/ia64/include/uapi/asm/cmpxchg.h:146:28: note: previous declaration of '_printk' with type 'int(const char *, ...)' > 146 | extern int _printk(const char *fmt, ...); > >Fixes: 337015573718 ("printk: Userspace format indexing support") This Fixes tag doesn't make much sense. This was already broken long before that patch, just the error message changed: printk() was already static inline on !CONFIG_PRINTK for eons. >Signed-off-by: Randy Dunlap >Cc: linux-ia64@vger.kernel.org >Cc: Petr Mladek >Cc: Andrew Morton >Cc: Tony Luck >Cc: Chris Down >--- > arch/ia64/Kconfig.debug | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >--- linux-next-20210917.orig/arch/ia64/Kconfig.debug >+++ linux-next-20210917/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