Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8230072rwl; Tue, 10 Jan 2023 10:34:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXs5GzQ51dskP7cHa2ohpsDwSm8cSDIzUxcQX9pX7hJX8SnvK8gT+2irzXlJHaut6bCvVXGF X-Received: by 2002:a17:907:8746:b0:7c1:413d:5b0 with SMTP id qo6-20020a170907874600b007c1413d05b0mr66543311ejc.47.1673375653780; Tue, 10 Jan 2023 10:34:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673375653; cv=none; d=google.com; s=arc-20160816; b=fmQlo68vyr2ijKcp2SszwwTYccePqr8iF3qfQLiPFr6Cn4dROHHzL7uIxe17o5J3uM 13wv2Vjfbou3QA2PuBi15jl5fRgTQ04xeVs41IBlX1PGQL6nD4Pyzh7Xzwdt+GJMtbPO vbNvcYiJ0FsiQ1tGCXdtCjhBcnn71MrTl6z9K0c7HtPNBv2akz1Q3E48zcorAwmhJUag JwgixbF6O0k2k6KqGTlDWw3kyPRsvxKxlVOURQjKMpXzaSJUJCbF1xoJPlfrwI1BgftV uV3dcXtJv8LUGQBYXF8QT0TBdDlEZHnqRxWllJkv6NSH/8/YRQpbLhAskF6VNzyX1RP9 pPiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LhqMrGa+5XAAvhdm/qvpg845MSH/5HVvI+D0qxBhnAg=; b=0jFOrXALJ7Pg7z0HVOz2Nxp2lTC/LG7ggulh/sFcHQMGp0ozQ6vtctBwALGMIenlgN Oa3+JLvDGogIokEYSldUg2bgNUu9RVLpPfIB8faSiosGmaoBADcWE2uxRh12HlzCJK8G Wyn1NnOaub8PCNemFVvQxzOCTmsnru5BeDAbf5hHgEIPMc3lM4KfR+f8ORxRCebGzzgJ yrpVYCfOO/ej8Zec2a2scM+OARADlzrHt68G7sb//LioJxDijvykVSMPZRMadoqZIQpG X5QJAHWNo1xJYggD5h0wN2PKfEsWhJZtoPjPVyPP3M5o9frjaylOO1lnXPgLhDUwNzm3 pfNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=crr5n881; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw8-20020a170906478800b0084d3d86a62bsi8131696ejc.84.2023.01.10.10.34.00; Tue, 10 Jan 2023 10:34:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=crr5n881; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239292AbjAJSX4 (ORCPT + 53 others); Tue, 10 Jan 2023 13:23:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239233AbjAJSXH (ORCPT ); Tue, 10 Jan 2023 13:23:07 -0500 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDCC21A22E for ; Tue, 10 Jan 2023 10:21:09 -0800 (PST) Received: by mail-vs1-xe2a.google.com with SMTP id k6so4262609vsk.1 for ; Tue, 10 Jan 2023 10:21:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LhqMrGa+5XAAvhdm/qvpg845MSH/5HVvI+D0qxBhnAg=; b=crr5n8812Ux90csqTMCY/9ikO5dYLT3PeVDNtY+owxJs8/cjRLyN1GSEJqAArFKTYb agQgQUwTuvIk9IQJxSP3rIKMlMQQlzgZEm4UGHvaULonPAeeMu73bl3cW6yHbKm/gHnT VqwKyMPjuXBIPRtGhzahm/OC2GLvx+fTbDdII7YqlezLFaEA3Z5yaoD48lRrA6tBlvo+ 0yxanczW/1ondR9hgf5yumrJMu5vbWR3VjOvdhSx4UFkpxn0npAqkikgciwgs8Gc6Bo+ 1CXEuVECVkCIhYvgGqzVj79z+0RpAb8DXUwEvEymg6QjPG5b8GCmPVOQaTDukOJjmKOZ uG0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LhqMrGa+5XAAvhdm/qvpg845MSH/5HVvI+D0qxBhnAg=; b=8KOmks5fjCal+WtEgeCVvP6nuDfLEZjEcBOE643JYU3LyduYO5apVD5g9TLPmEh6YX QxYDeBDHuEhjP6u05w06ojL5SpRv6AouXh6HyIiqAvmVdna9PMcNpuM6zNKfU3gq34hA eKpKcfUtGw2W7rsZWQMXuWAiPUmYw6qPMa14YARt5p1qMTC0INJ2DoMHneGho0LyFnJN 4L3uQGq9GC4glu4ROweHMoS+tL+Ei9BYP/9yvVJu53dObwVvjZyhhjAGDbInn8L0H0vO 2+1NXy6QQOgVHq3zunCtRdAMTOnmOTnuxkzs9ebSG8YmhnHt5ZgZgrHv6bEUzbNLT5kT FLbw== X-Gm-Message-State: AFqh2kqkhtArhQE+suAqZg47Z0mO9o7ricVjVPfOwhpy5sNr0k6jZsyv M/Q+FYYkJbwnwa4uFmX4zXqLA7CmsxkGPh10xT+NzA== X-Received: by 2002:a05:6102:94e:b0:3b5:1de3:19fa with SMTP id a14-20020a056102094e00b003b51de319famr8349620vsi.35.1673374867880; Tue, 10 Jan 2023 10:21:07 -0800 (PST) MIME-Version: 1.0 References: <20221219191855.2010466-1-allenwebb@google.com> <20221219204619.2205248-1-allenwebb@google.com> <20221219204619.2205248-3-allenwebb@google.com> <87cz7nsz24.fsf@esperi.org.uk> In-Reply-To: <87cz7nsz24.fsf@esperi.org.uk> From: Allen Webb Date: Tue, 10 Jan 2023 12:20:56 -0600 Message-ID: Subject: Re: [PATCH v9 02/10] rockchip-mailbox: Fix typo To: Nick Alcock Cc: Luis Chamberlain , Masahiro Yamada , Greg Kroah-Hartman , "linux-modules@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Rafael J. Wysocki" , stable@vger.kernel.org, kernel test robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 9, 2023 at 5:54 AM Nick Alcock wrote: > > On 20 Dec 2022, Luis Chamberlain uttered the following: > >> It also raises the question how many modules have device tables, but > >> do not call MODULE_DEVICE_TABLE since they are only ever built-in. > >> Maybe there should be some build time enforcement mechanism to make > >> sure that these are consistent. > > > > Definitely, Nick Alcock is doing some related work where the semantics > > of built-in modules needs to be clearer, he for instance is now removing > > a few MODULE_() macros for things which *are never* modules, and this is > > because after commit 8b41fc4454e ("kbuild: create modules.builtin > > without Makefile.modbuiltin or tristate.conf") we rely on the module > > license tag to generate the modules.builtin file. Without that commit > > we end up traversing the source tree twice. Nick's work builds on > > that work and futher clarifies these semantics by adding tooling which > > complains when something which is *never* capable of being a module > > uses module macros. The macro you are extending, MODULE_DEVICE_TABLE(), > > today is a no-op for built-in, but you are adding support to extend it > > for built-in stuff. Nick's work will help with clarifying symbol locality > > and so he may be interested in your association for the data in > > MODULE_DEVICE_TABLE and how you associate to a respective would-be > > module. His work is useful for making tracing more accurate with respect > > to symbol associations, so the data in MODULE_DEVICE_TABLE() may be > > useful as well to him. > > The kallmodsyms module info (and, thus, modules.builtin) and > MODULE_DEVICE_TABLE do seem interestingly related. I wonder if we can in > future reuse at least the module names so we can save a few KiB more > space... (in this case, the canonical copy should probably be the one in > kallmodsyms, because that lets kallmodsyms reuse strings where modules > and their source file have similar names. Something for the future...) It appeared to me like the symbols added for MODULE_DEVICE_TABLE are only needed temporarily and could be stripped as part of the final linking step. This would make space less of a concern, but extern variables don't support the visibility attribute and in the build I am using the space difference is less than 1MB out of 613MB for the uncompressed kernel. > > > You folks may want to Cc each other on your patches. > > I'd welcome that. > > btw, do you want another kallmodsyms patch series from me just arranging > to drop fewer MODULE_ entries from non-modules (just MODULE_LICENSE) or > would this be considered noise for now? (Are we deadlocked on each > other, or are you still looking at the last series I sent, which I think > was v10 in late November?) For now I just need MODULE_DEVICE_TABLE to stick around for USB and thunderbolt related modules (including built-in modules), so if you aren't removing it for any then I don't think we are blocking each other. Longer term it makes sense to have MODULE_DEVICE_TABLE for any module that makes use of a subsystem that had the authorized attribute. While this is currently just USB/thunderbolt it could expand in the future, but there are subsystems where it is likely to make no difference. We might have a tiny amount of redundancy in our patch sets because there are some cases of invalid MODULE_DEVICE_TABLE entries I fixed in my patch series, but that could be dropped. These have the potential for conflicts / blocking each other, but it should be easy to resolve them if I change my fixes to a removal of the MODULE_DEVICE_TABLE entries. > > -- > NULL && (void)