Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2995868pxb; Sun, 26 Sep 2021 02:11:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm78TkE50jeVi5G3ZvncGow8TJAqjag/n9/7L0kElPDMzswRaHA5Sbpi2g7354gDro/xME X-Received: by 2002:a05:6602:204d:: with SMTP id z13mr16064908iod.162.1632647507021; Sun, 26 Sep 2021 02:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632647507; cv=none; d=google.com; s=arc-20160816; b=fK8xKL/09t1Bo2XqwJE9e3zLJqLGTq+1Lyw4J/hAZVnKOAj4DvSujWL8Rbqqn3F8H7 ketKaISSwTMTyBDQtb8WSHSHYmJtZRjXo5JJgMqFEUIoOJoDdIWf4ZMBWwfrEmC+h2A3 gx2Jar9FQZor4pdeOXOs5h3bSYLdj73UTUbH8e2Es3acetxFP2kCz10wpkpTF909Jkn4 fqHXipjdXGs8Kaug5ddzrr4wLNZDtpYNQnRcOa9jC60WyH56j2cvItp2Yj4FCqti65cY DFAsq3RF6K7mH6FmVm7Lt4195XSQFnc6dG5d71Hcv4uxAOSzXjYYMDz3KNEddMTMGh8x r2NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=/4dv+c3JG5wL2nRh+vQsZzkvcMfbyTYnsQz0pUZeO0M=; b=biCy8JwUq0n3Nq1KHHnxes76WYLy4g9LTnKa5aLhxGsLbkYS3OwM2vDmfkDahOWbhR tYf4GdKXpYVdeFmOUmpQoFmaaLMN/FOWkzJxvnVWl7E6rbVn8hSoE9drh7ewetfMJxcE HGfv5T7M9nlp7AcB2UmgUZ/mh3GKhlTyoPi+E/wF6Qw+U4eQtHRX+ZwBUIn1SvIn9wU7 72rqBdmjMWl0Hygbq97fxJBvLY1PVvLgzZITFtf+lVT+OrYUAie1d5O3wCehMWfl43Q7 fZ6WywiP1NefALBGDjN2AftLvKcuVjkDj15bc+1sXXT/CjBBAOt/kZKJin4lrNWk9gSj blKw== ARC-Authentication-Results: i=1; mx.google.com; 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 c6si16268237ioq.87.2021.09.26.02.11.35; Sun, 26 Sep 2021 02:11:47 -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; 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 S229933AbhIZJM0 (ORCPT + 99 others); Sun, 26 Sep 2021 05:12:26 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:57461 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbhIZJM0 (ORCPT ); Sun, 26 Sep 2021 05:12:26 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1mUQBL-001bVp-ID; Sun, 26 Sep 2021 11:10:47 +0200 Received: from p57bd97e9.dip0.t-ipconnect.de ([87.189.151.233] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1mUQBL-0041Cw-BF; Sun, 26 Sep 2021 11:10:47 +0200 Message-ID: <6ee982ca-6b99-da23-ec60-97ca2c317bd5@physik.fu-berlin.de> Date: Sun, 26 Sep 2021 11:10:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH] ia64: don't do IA64_CMPXCHG_DEBUG without CONFIG_PRINTK Content-Language: en-US To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: linux-ia64@vger.kernel.org, Petr Mladek , Andrew Morton , Tony Luck , Chris Down References: <20210926063325.13581-1-rdunlap@infradead.org> From: John Paul Adrian Glaubitz In-Reply-To: <20210926063325.13581-1-rdunlap@infradead.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.151.233 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy! On 9/26/21 08:33, Randy Dunlap wrote: > 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") > 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 We currently don't have a maintainer for ia64 - although I would be willing to pick up the job - so your patch would have to go through someone else's tree. I can boot test the patch on my RX2660 in the mean time. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913