Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2926348pxb; Sat, 25 Sep 2021 23:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkCAqB3liZn5v6ToVXE3JRzvtH2JTZ85iOXFWi1BEnU2r8tW4jAl26IuMssGY2LhFkcmFc X-Received: by 2002:a05:6638:2650:: with SMTP id n16mr15475727jat.30.1632638179480; Sat, 25 Sep 2021 23:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632638179; cv=none; d=google.com; s=arc-20160816; b=VuoKtTEobq5ui51Lw5s1j8tILz/Z0p79E7FbcCrbyLm14Pvj8Y4K4HfU8qieOGDvAS i99BttDgZVjzfMLpHDq335mUt5N+NeADqKZVzhvLGhB7IbHnSZ/4BapNPdKA8leOL46f RN233B0eCTeCPjSl7ruhwYUEr1Z5fuzYBH04WC0oFBhEgFJgS8S3wzpJm7SXZ6j1b7Uu EaFoz9uqv07wqRbCZv84FhbUAY7x7vGQLR0g4FPMN+INDvbRsXI/QN9/JcuZ38Ezcb6f 0J9IbLiJF6a2DkClH5K+Xzu+dWzhn2nNKRAomynC/ZrbvPhLgmNp15TeBsqhUk4aD9Yk Y3IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=waCOeT4+Z0Ug7ewSDQv+n5+FK5owylBFTxfyHY08lGY=; b=F4quS19kiPLPuACVVQKUtZ1wvzy/ipK7Su0q0AWXUOhX71haI56RYtmgIBxWe7R5y2 gWzB5t4tKn6e1pIM0l1WMCAp5QzGqLRoYozGdcXfs8kcKQBB4RDSHudfCG+h/KdGUxOA nnCQSjsnSTuRiayF8HqMSl7vjxdemFY7oNLOgYoEVB22/m2Q/Ei3xJOrxVQMw/z9ttii L9RqL7K2OToUetiI7D2T8UhAnQV022hGvSLn/1viMJDrNHiff3365XC4GgeJzlDwlcO+ Nx5CxMYkSduH/LxZbwr2NLA8KqHouvcSDXO54wUDM66Mdrz6w/4MloJyeicW7v6aPnIx hx1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=bvXvLlGH; 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 k126si15505006iof.103.2021.09.25.23.36.07; Sat, 25 Sep 2021 23:36:19 -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=@infradead.org header.s=bombadil.20210309 header.b=bvXvLlGH; 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 S231127AbhIZGfF (ORCPT + 99 others); Sun, 26 Sep 2021 02:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhIZGfE (ORCPT ); Sun, 26 Sep 2021 02:35:04 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D609C061570; Sat, 25 Sep 2021 23:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=waCOeT4+Z0Ug7ewSDQv+n5+FK5owylBFTxfyHY08lGY=; b=bvXvLlGHr5uTg2W4Dfol7Cewsk 0KWITElrJ6bWouKm4EhseHCiHhJ6mWIFkOAcreG9HMkGjxJ+jZni34ZhnYGnV9fWSl2eEcEv23HaL fUgT6Kz4Ns9xrbDlgAV/ePMGyV/uYzleA8J31udHOwx+F251NIRF1Qi3nEwv67gdA3REq7GIWjn6D w8j4Q7YHqQkJgkBHFAeFnIsSoVThJoplt27LuSXyu/aFppHHfdrkhbWj+2DNaWxSNljHzsLFFV1Xy dV9qDgH2ocB01G2ywYaMo5YoeahUT0R3DbXQORc3f/zg6Wc1U/b1Dry+OeMSVq+DWbP+hzU67Ozxi ZbLdJDRw==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUNj4-0005xW-W1; Sun, 26 Sep 2021 06:33:27 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , linux-ia64@vger.kernel.org, Petr Mladek , Andrew Morton , Tony Luck , Chris Down Subject: [PATCH] ia64: don't do IA64_CMPXCHG_DEBUG without CONFIG_PRINTK Date: Sat, 25 Sep 2021 23:33:25 -0700 Message-Id: <20210926063325.13581-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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