Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4539482rwj; Tue, 20 Dec 2022 11:30:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf72ddhKteM0WvtvMv+nVHDaArz4QAK+qt7GA30N7eTe0pLi5Aes5TIZT1JU/oFDoI/hNtEc X-Received: by 2002:a17:902:7005:b0:189:dc47:fe40 with SMTP id y5-20020a170902700500b00189dc47fe40mr49338333plk.15.1671564614266; Tue, 20 Dec 2022 11:30:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671564614; cv=none; d=google.com; s=arc-20160816; b=xFQtre+C3cpb6SmOcOaGWi2ia7VJkCVPfqtsMqm+DvpOrvahAhG88h1TKkUFVimtt5 SRSY8z1Aj4Q5PcXIJEFxvPXFogUWYSANiue2R+sc05w5y//3k4m3Ce6p80yru45lYDea Rr31aDntX0TjIiTM09xnkCHEu1Y4xXrxYm53+b+iWGkImbPVqDiDhrSaQ7Wds30TKhPw 9MJ2XzLfTZH87KQgMzdE5f2pmJ9btN9oXh/oqZ1MmttjYrriPKs3Nd7z3KwoT+D2aAyd inyQD54248keXV2Xck+thdhm3LUSNhl4aksc/+2PSTgsHrPQ81FP9UTonhTKM4kZE2DE dj1Q== 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=botoMruAittvs+rTHSmzE3zrQGz596aYpbROQsMAW8A=; b=R8egU3sB2lplEIL7EOHISYcF+Nr2YQUM4Tn5UrAs8SRjKEZHvHvJ85QZ6FOPHEuRKj DiFCZoiBUPKubnblMC16x9LK7P2sPV0nTEm8we/CytKO3GgWMt682hNzdzF9MUnYAUPP HXaEeP56Cpw2TBqngxdunpFrwu+zOVGFtWm/Z++SNOAKnI2HQXZZgVfEqRfF3LVKPDKB iCmAlkgxd4rV7ND0AUNIketS4RAruxd8BhupT/miu5zbemsUip9LcWTbaTEQNiuz7UAy Ts7SMG2JOvpA1tHdfPS5agi2BvbpIEYaO4V1HTm3OWjDc2UVeEZm/RlkhYr/a5z8FKNv 75lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="N3/3XOMf"; 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 x10-20020a170902ec8a00b0018951533e11si15794461plg.278.2022.12.20.11.30.05; Tue, 20 Dec 2022 11:30:14 -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="N3/3XOMf"; 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 S233913AbiLTSUG (ORCPT + 69 others); Tue, 20 Dec 2022 13:20:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233872AbiLTSUC (ORCPT ); Tue, 20 Dec 2022 13:20:02 -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 6D1FD1C113 for ; Tue, 20 Dec 2022 10:20:01 -0800 (PST) Received: by mail-vs1-xe2a.google.com with SMTP id i188so6580652vsi.8 for ; Tue, 20 Dec 2022 10:20:01 -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=botoMruAittvs+rTHSmzE3zrQGz596aYpbROQsMAW8A=; b=N3/3XOMf30/cvQ8Yxflqc8xDvvKIdFXEIfFToqSiw8sHWW69unaujMovBLHOue+TEF oaUTqjGhRgxvLGkjCJvvetJyGePOMcRYZy1RrY0l7sFJIa+ElElKIh5PO3fiN8YITtUg B9nic5CJRwBRd9L88dQ5B8AxwXWaoDfTXjWKh4KLIBT+mw5tlyYHNQMQvUlftXQapFIu g80SV0RRYdRszPeAqDnqoV2olfVoGiCS8tP9e8EDdnY7QZzlMgXB8THifsfD8IZpBKBH 7DYR6qrK/gE9k78axURhYvhNFT2gZWlT1P/PJ5kpReB4bNv7IeefokQqvrZnNiXkn3ct Yy2g== 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=botoMruAittvs+rTHSmzE3zrQGz596aYpbROQsMAW8A=; b=mrVAzwEtyuqboW1loaUa+UMJ/53I93AA9qr3q4NpUYrGPm+OKKi1WZT1rVNsQdr9/t VurUgsBECipR4277yFvndejAT6zjdzTxbHdElCDhUPlifu8TeNfdnVl5CuLnCZpAMU3E q11cr14eAIncpMphKFr+kj4twZ9jM5kowsJ28NyNScNJb83zQMj7fc94XlcmlLwCxCxy 4YbciZSGp7x6HhMP9QAgcoHfAxUARjkejSkEfz+teUZ0/FschGeQu9qC0rj11i/lt6b0 hP+/kPScKNRE+iw8d9QHoLaBO57Qm+poS2px36lNqsU7Fr74b3voLEzWlhf16hCcHKhX tYww== X-Gm-Message-State: ANoB5plvfYGf6wVLefnAlwduKYaK16fazDPm+UfUh9xtMnv6fSPwpNWJ hk6dthdEE5wssi3c2Ct1aTv7YJs7+9+C6nsZl3i4+A== X-Received: by 2002:a05:6102:578c:b0:3b5:1de3:19fa with SMTP id dh12-20020a056102578c00b003b51de319famr3230005vsb.35.1671560400231; Tue, 20 Dec 2022 10:20:00 -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> In-Reply-To: From: Allen Webb Date: Tue, 20 Dec 2022 12:19:49 -0600 Message-ID: Subject: Re: [PATCH v9 02/10] rockchip-mailbox: Fix typo To: Luis Chamberlain Cc: 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 Tue, Dec 20, 2022 at 12:12 PM Luis Chamberlain wrote: > > On Tue, Dec 20, 2022 at 08:58:36AM -0600, Allen Webb wrote: > > As mentioned in a different sub-thread this cannot be built as a > > module so I updated the commit message to: > > > > imx: Fix typo > > > > A one character difference in the name supplied to MODULE_DEVICE_TABLE > > breaks compilation for SOC_IMX8M after built-in modules can generate > > match-id based module aliases, so fix the typo. > > Are you saying that it is a typo *now* only, and fixing it does not fix > compilation now, but that fixing the typo will fix a future compilation > issue once your patches get merged for built-in module aliases? It was always a typo, it just doesn't affect the build because MODULE_DEVICE_TABLE is not doing anything for built-in modules before this patch series. > > > This was not caught earlier because SOC_IMX8M can not be built as a > > module and MODULE_DEVICE_TABLE is a no-op for built-in modules. > > Odd, so why did it use MODULE_DEVICE_TABLE then? What was the reason for > the driver having MODULE_DEVICE_TABLE if it was a no-op? That is a good question. I can only speculate as to the answer but it is plausible people copied a common pattern and since no breakage was noticed left it as is. 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. > > Luis