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 E6BADC636CC for ; Wed, 15 Feb 2023 17:23:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230037AbjBORXY (ORCPT ); Wed, 15 Feb 2023 12:23:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjBORXV (ORCPT ); Wed, 15 Feb 2023 12:23:21 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FE0EAD31 for ; Wed, 15 Feb 2023 09:23:17 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id r2so19912524wrv.7 for ; Wed, 15 Feb 2023 09:23:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=QqtBdN+1ppp8e/CSn0vupSzwChby4224H0BfpXodQLA=; b=KUjhCHq/IyaBxJIaBshTwK5EQy/ynz7jLapyf7e2pN9XEQE1moQhCOl/Mj+qbRrfSy 3q+6cXGQF/jwUKdmo8XEUZ4a+Eho+aCAZT0nMGYMZVwCmsArr96yhUZfmXcjOqgInGRt eLPd7AuccY2D8L6b90YVy5eIQAO1JxPA82NVs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QqtBdN+1ppp8e/CSn0vupSzwChby4224H0BfpXodQLA=; b=P5QCbrdiJE10UIYM6P8XRWrGcm1kROdEc3JpPVyoB/71d/ZaU949TfbCBYPFcgGOpJ 2heBPyaPlIZtNbbCJ3alD7rR0Umi2vKGQzaDIzzZp7mcbA8BDLu82+zftxqjNqs0ojFK 0Je+OydiAo3jtjcC/3hWZ5Xzw0/a7h5rUu5CNVeInZqcUgVEPJQDhdN6gGHALZTyKuay rs7Gw5vGk43CHmL1fkhCETKtp4KCebKh8jwmNHGq79A92KFU6uF/FAvNu3Gy1QNgvddi DeXvUnrkSTGDUjVmDSOHOSYdrtzXdRVOJfpxCymo76MHOqSl8PT1R2GpgXlX6WCohN89 ofFg== X-Gm-Message-State: AO0yUKX0pDtlFQxtAqF4VjYyiIvClGOKyqzRfVrsq+wFTkazFrnAKBtL XlnFWj1kHWcMJdhliLQQi7HeSg== X-Google-Smtp-Source: AK7set9OHudQqPkdfMrIhN61SvMXrhUrNNXk+iAP3BJDjiL/w2O5ZVFfBlp2c3m/PeRCYgaHEFmw1w== X-Received: by 2002:adf:f30d:0:b0:2c5:4cf1:a57b with SMTP id i13-20020adff30d000000b002c54cf1a57bmr2257952wro.35.1676481795981; Wed, 15 Feb 2023 09:23:15 -0800 (PST) Received: from localhost ([2620:10d:c092:500::4:270c]) by smtp.gmail.com with ESMTPSA id n27-20020a05600c3b9b00b003e206cc7237sm1211706wms.24.2023.02.15.09.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 09:23:15 -0800 (PST) Date: Wed, 15 Feb 2023 17:23:14 +0000 From: Chris Down To: Nathan Chancellor Cc: Jiapeng Chong , mcgrof@kernel.org, ndesaulniers@google.com, trix@redhat.com, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev, Abaci Robot , Song Liu Subject: Re: [PATCH] module: Remove the unused function within Message-ID: References: <20230210064243.116335-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.9 (2022-11-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Cc: Song Nathan Chancellor writes: >On Wed, Feb 15, 2023 at 04:47:44PM +0000, Chris Down wrote: >> Jiapeng Chong writes: >> > The function within is defined in the main.c file, but not called >> > elsewhere, so remove this unused function. >> >> Huh? It's used by __module_text_address(), no? > >Not after commit 2ece476a2346 ("module: replace module_layout with >module_memory") in -next. This patch should have a fixes tag, even if >the warning is currently hidden behind W=1. Huh, I thought I had checked out latest -next, but must have not done so somehow :-) Mea culpa. If it's only in -next then no Fixes needed, since there's no stable rev yet. Jiapeng, in future, please make sure to cc the author of related commits when reporting stuff like this :-) It helps people to update their patches. Song, you probably want to update your patch.