From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BF8BC433DB for ; Fri, 26 Feb 2021 12:48:02 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BD5C564DFF for ; Fri, 26 Feb 2021 12:48:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD5C564DFF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chrisdown.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2B7626B0005; Fri, 26 Feb 2021 07:48:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 240086B0006; Fri, 26 Feb 2021 07:48:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 108B36B006C; Fri, 26 Feb 2021 07:48:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0050.hostedemail.com [216.40.44.50]) by kanga.kvack.org (Postfix) with ESMTP id EB9116B0005 for ; Fri, 26 Feb 2021 07:48:00 -0500 (EST) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id AFDC7180002DE for ; Fri, 26 Feb 2021 12:48:00 +0000 (UTC) X-FDA: 77860396320.14.801355B Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by imf13.hostedemail.com (Postfix) with ESMTP id 7429DE0011FD for ; Fri, 26 Feb 2021 12:47:57 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id g11so3604819wmh.1 for ; Fri, 26 Feb 2021 04:47:59 -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=XKtw8ko45aGamYUAvCZJauU2Dvq0tqHQdknwVJz14YYgMwQJfv3oHxy1lkezhgKdne u0r7Yz57+vJ+E9fJK513BpNOZDKbMnoWQ7TLSSophnxNq77C/rvFMNu5c/23E+J5Gz+y ephxSKrQOb9XQzwZeFhRHpZI+GGedvPgnJ2S45Y2llPRzOycwgCXLvJKmCqIzmmb78/L AQgftO6dtF92rJGCqHNKSWCDSPWb4hObtL3UErG9bXzcjkQPInZKwybtXeQ+QbGrdZXZ glfRDvhAnKco2DBBLVXerWrg+cCq0wFYfIRdWwJLmwpWjGdgMYZ1TaMrD88VgNdf1w/F SaYg== X-Gm-Message-State: AOAM5321PdSw83p5I1AG0uon+koyWRVKSuWQ2zBBtiecM2m9O8FBumK2 c/pnzkGUe84bdyBBYeKnUwWLdw== X-Google-Smtp-Source: ABdhPJywxeh7Tv35PnGaJd8kuTd9tEkf3oMPkGi2cb3V+dxoFjbIk+aaDAy6hop6xlcSBR8AJakrQQ== 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) X-Stat-Signature: gt9aeqqh55t3bz99d3yfykcaebizz8p9 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 7429DE0011FD Received-SPF: none (chrisdown.name>: No applicable sender policy available) receiver=imf13; identity=mailfrom; envelope-from=""; helo=mail-wm1-f46.google.com; client-ip=209.85.128.46 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1614343677-388084 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: + 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 >