Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1442387rwd; Thu, 25 May 2023 12:40:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44sKR3sb5kUwSEMT1xWZOQRstZsKrdIEeYtChyJVOYMeGOHoso0NwtfSO9zLMNJ/wL+qDv X-Received: by 2002:a17:902:c402:b0:1ac:b259:87ea with SMTP id k2-20020a170902c40200b001acb25987eamr3828730plk.0.1685043650593; Thu, 25 May 2023 12:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685043650; cv=none; d=google.com; s=arc-20160816; b=du+Z+XpRhv0ea/oD9Jop1QwawSoKzhwonbc+9tFc1m3Spk5UXpJEGBZy6vZQFfTw5y s+AUTpfhtEQ7Nuk7OlhP7f05hFmWhhyvtwfMjbQKboXDMBvuOLyDmdiNlkGnzlSmkVQp 0eCZ6zP1sQjsJxQ9WtvgIPVe14SsVWtHtGThFCBJUA/Jkncpy1Ehc9oSdDD8oOU6GTCf 3T3ALpAIyiMCzxXE+MUY8zc7rUjluaFkaJ/3bZoj562aBIYVzIlzzBYlMB0CG+TTBbkl RTkxz+zb6hUTcu30gIHZgMdZxZeuj3KKmG/fJ/xBRQE3+1GYzYDceYiuDPPgsCd7vyGg nk2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6jDegPyLBipvm6iybaf/47fdtdrcldJ6L3Z0Wtmu4vk=; b=0nsBEHtCdClFrilWZwERIp1D9Vbh8B7mU9+ONUs1UkGTWUXG0Elsh3loXqI82Djdzq 0KCU63kZJZd/FxdOeN+W3sLGicdLaM/BRzbYnsh8m+HbAYg9sZYtqQSyIxkDbWx8b6dw mTd3QoZnNVwfz7SmWn8TXVqXv3bV53a/IQlg7zrQaRfne7sPSA4rCXj7ZpvO69Z+Bbgy Ip2XckxbwPmSPPtmKEJLGgAgvNHip5SKgSk439LPI9mZlRue6Xi7UrzHg/QkSHytv5S2 gfT8474n+hu6sQ6ENG3wsHcxyl3w3CCw1gCwZqSdgu9r877EmbKKhXbARGhDxcJ+ubsx cZ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=TgaA4Qj8; 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 k21-20020a170902761500b001a95c7e5ad9si2086529pll.352.2023.05.25.12.40.36; Thu, 25 May 2023 12:40:50 -0700 (PDT) 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=20221208 header.b=TgaA4Qj8; 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 S239801AbjEYSbD (ORCPT + 99 others); Thu, 25 May 2023 14:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233083AbjEYSbB (ORCPT ); Thu, 25 May 2023 14:31:01 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85673125 for ; Thu, 25 May 2023 11:31:00 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-6238200c584so302956d6.3 for ; Thu, 25 May 2023 11:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685039459; x=1687631459; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6jDegPyLBipvm6iybaf/47fdtdrcldJ6L3Z0Wtmu4vk=; b=TgaA4Qj8BT25QvIHzgG8TGPwyAWQ4G/lILzI1izsVWq6pifR/1PbwlaKisfKncg/Ur uiHe4VKkgp2yMhZApjbL6hE6wAObfcrgag0GXttT6ruEumkMX7/Ns0rUxQWDNVDHwm4a /U/DjRF35FG0tYsZ9lgma2CDpeAHG32s57BBu+1jNo8KfGaSRYehD8Sj/nYPW0jDHhGF gu+TXJDT4o4Pu1pccABUNd7H56Vq6McGg1arRbq1vkp9lpFgtu2wJPF+mxsJK52fdmCS 2JWe09ePs/+YjI71OAHXKNZwRm1OkF2jg4wItQsyzgod6ojrPHbJe8Js5ewwZ0yLrhn2 Ypyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685039459; x=1687631459; h=content-transfer-encoding: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=6jDegPyLBipvm6iybaf/47fdtdrcldJ6L3Z0Wtmu4vk=; b=X6aOF5EFpHPBAM4jkPFnJQC/B/FOUlsQY4kHeQD0SvT5M0yER77D0WKCbvKWWiDPNt QK7cmuWo1prdTDkqX5vJc506pmXcJZ7MpOjQIfSASHMigfxU/0ZG3Kj44/4wAPpdYW2Q K73Xf1yZrVpfosNmvHhvso8Na4QxpXISWU737Njx42F6zh9BDoqHFMYp2xr52jrC2N5b 9UuGjKEdCitISxDvUpgo0xMdIFHToVqp3UPI4SRniJrGP5PfSe84arKsqfCK7daJ91l1 qefly4+Es3YKhkK5ZkScfMp30mYIFQJ3T48F71W7CG7kb6cI+r+nX5lmw+vnwxGz2L59 kHiA== X-Gm-Message-State: AC+VfDxnJLzObXfYJvm3uxrX3tSdN9gHWSdOtzHOJnIxC8nNl7BHezbw V2J1zldRNKKTzFJead6y3z0Z1p3A9SrCBcmnGE8w5Q== X-Received: by 2002:a05:6214:27cf:b0:61f:1a72:6c89 with SMTP id ge15-20020a05621427cf00b0061f1a726c89mr1723666qvb.34.1685039459561; Thu, 25 May 2023 11:30:59 -0700 (PDT) MIME-Version: 1.0 References: <20230521160426.1881124-1-masahiroy@kernel.org> <20230521160426.1881124-17-masahiroy@kernel.org> In-Reply-To: <20230521160426.1881124-17-masahiroy@kernel.org> From: Nick Desaulniers Date: Thu, 25 May 2023 11:30:48 -0700 Message-ID: Subject: Re: [PATCH v6 16/20] modpost: merge fromsec=DATA_SECTIONS entries in sectioncheck table To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Nicolas Schier Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 Sun, May 21, 2023 at 9:05=E2=80=AFAM Masahiro Yamada wrote: > > You can merge these entries. > > Signed-off-by: Masahiro Yamada Thanks for the patch! Reviewed-by: Nick Desaulniers > --- > > scripts/mod/modpost.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c > index 516323c3910a..aea9d6cd243d 100644 > --- a/scripts/mod/modpost.c > +++ b/scripts/mod/modpost.c > @@ -884,12 +884,7 @@ static const struct sectioncheck sectioncheck[] =3D = { > }, > { > .fromsec =3D { DATA_SECTIONS, NULL }, > - .bad_tosec =3D { ALL_XXXINIT_SECTIONS, NULL }, > - .mismatch =3D DATA_TO_ANY_INIT, > -}, > -{ > - .fromsec =3D { DATA_SECTIONS, NULL }, > - .bad_tosec =3D { INIT_SECTIONS, NULL }, > + .bad_tosec =3D { ALL_XXXINIT_SECTIONS, INIT_SECTIONS, NULL }, > .mismatch =3D DATA_TO_ANY_INIT, > }, > { > -- > 2.39.2 > --=20 Thanks, ~Nick Desaulniers