Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 356D2C64EC4 for ; Fri, 10 Mar 2023 18:29:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231263AbjCJS3m (ORCPT ); Fri, 10 Mar 2023 13:29:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbjCJS3j (ORCPT ); Fri, 10 Mar 2023 13:29:39 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EA9AD290A for ; Fri, 10 Mar 2023 10:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=c/P4HfuWEJ6q0Nqxd9GvnKNVVLfpkHZSOW3oGoBbL8I=; b=wcnILBpFSL2OULFuodA9UZkcKR AdZosWjqokmqdnj0Bazv6Yurujxvc18gkSDA2r7UjJcQH1lJ8MZglEZjiNrdqYQJcoqqQCrp/BHDG uc8qFvOiepOHB37feVsEjWn5DvkjZRDIH9mpwG1q1jLwUXEio/5SlFvEkQSHe7/YooGxCCpR10VxD I+aN1IjpMa5jYnjlbZ8l/M5Zlzew2WOPzOerBpGwLUJxL8tur2DU3d9U5bsj3i8jo0fFlfeD6tLI9 JKAPseU5q8LTt37QHz3GAKDn9gyTluK7cyN+MdH8iMu8JGravxjU93LAWxwXclQkKCfoEGQZTc0hl f4cgpU5w==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pahUi-00Fl1I-0F; Fri, 10 Mar 2023 18:29:32 +0000 Date: Fri, 10 Mar 2023 10:29:31 -0800 From: Luis Chamberlain To: Arnd Bergmann Cc: Vincenzo Palazzo , Jason Baron , Arnd Bergmann , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dyndbg: allow including dyndbg.h in decompressor Message-ID: References: <20230310140133.291594-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230310140133.291594-1-arnd@kernel.org> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 10, 2023 at 03:01:26PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > After a change to linux/module.h, dyndbg.h is now included > indirectly from the decompressor for lz4 support, which in turn > causes a build failure on 32-bit Arm: > > In file included from include/linux/module.h:30, > from arch/arm/boot/compressed/../../../../lib/lz4/lz4_decompress.c:39, > from arch/arm/boot/compressed/../../../../lib/decompress_unlz4.c:10, > from arch/arm/boot/compressed/decompress.c:59: > include/linux/dynamic_debug.h: In function 'ddebug_dyndbg_module_param_cb': > include/linux/dynamic_debug.h:307:14: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration] > 307 | if (!strcmp(param, "dyndbg")) { > | ^~~~~~ > include/linux/dynamic_debug.h:1:1: note: 'strcmp' is defined in header ''; did you forget to '#include '? > +++ |+#include > > The decompressor has its own replacement for the linux/string.h contents, > so the normal declaration is not visible here. Since the function is > not actually called, it is sufficient to add a declaration, and this > is in fact the correct one as it matches the definition in > arch/arm/boot/compressed/string.c. > > Fixes: 7deabd674988 ("dyndbg: use the module notifier callbacks") > Signed-off-by: Arnd Bergmann > --- > The patch that caused the problem is in linux-next, maybe fold > the fix into that patch if possible > --- Thanks for figuring this out, Arnd! Pushed to modules-next! Luis