Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1641374rwb; Wed, 16 Nov 2022 22:54:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ChsDOUMVbGgpBUF9EeFVGlAAxJqDwhY5tCwIpCbUuEPwItCGxQnTMXOiTeXrg0nUOhTzT X-Received: by 2002:a05:6402:444a:b0:459:401:c23e with SMTP id o10-20020a056402444a00b004590401c23emr1052415edb.23.1668668065236; Wed, 16 Nov 2022 22:54:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668668065; cv=none; d=google.com; s=arc-20160816; b=t9EOoVA5ba688wo6YgaTfs/0AYiLuSXBTRiPFzwMvVGxqb7/3i1i3LqfDZx0oeoWil 4xBK/R96hwliyrC7j1ZfdAYuO/oVjdNoabRg8snyk//HbAk95cOG8+MyzvGrPvAcR3kR UuSeomF3MeIlxj36DwlIZU0mlFy+8Ouo8BWzz4GJBjz3U1kiXb3cvM1EEZ4aH7UetVia 6dZhv2YoO/F4Wno3BbQiHpXGIB/w05pxhSlg539IQAYC1Rvn3Pk4DCkG4oH01QN+wMLB +IK/zKrBS7kqhJQGm4gb3ac0/oQbu/SmTdfz5KCDGvVwKi0j8Ij4aXG9RSSu2z2phoI/ PeqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kHF5InD2dVXmNATylNpJoWtabagfJKfOBMVaq8eHTOw=; b=QR/JtxaT8FD+K19hBNUZ1zF6z9O2Tq/09TVkUtArebI4YXQWZYGFepF9nGlAkr0d/7 6XiJqyAElBDSX4m5o3uawoKEf3f4w8n3g64BoH+m+54qytyPK2GEnIe8nPJpTo0pT6bi 3a7TuB9xeY4VGx3oOFtU0hvacwwgZChVZJid4nTT8Nstx2AwPI+hEnV33Z0wezzp+kqo EYexAAu7z/p3JIic3PmXvHsflI5WROaeUceJjDOLcHAHQjvi/dC1+Aw7Siuu7LRBySr2 h+3sm3ju8aJkltxxCZKHB5eMeb0ehGvIIz39oN4qADo8NtnQ8IUIEAT6tV2QctNDvEnB HHOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B7OSaU2l; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a05640242c200b0046453c385e4si273837edc.365.2022.11.16.22.54.04; Wed, 16 Nov 2022 22:54:25 -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=@linuxfoundation.org header.s=korg header.b=B7OSaU2l; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238685AbiKQGaH (ORCPT + 91 others); Thu, 17 Nov 2022 01:30:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234725AbiKQGaF (ORCPT ); Thu, 17 Nov 2022 01:30:05 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D178DEF6 for ; Wed, 16 Nov 2022 22:30:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B0C39B81F88 for ; Thu, 17 Nov 2022 06:30:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18E68C433D6; Thu, 17 Nov 2022 06:30:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668666602; bh=SSUm3upjyQsbVG8IDiE/j1VTpVbYRQxa+bjigUbOYO4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B7OSaU2lgKabP5Hq+g9vtn+SbxI4u8J5MjDHpif30tubGqkv3mm3HKxTb4fxQmNPd kzKaLs1i/Esiuvkv/y7wPk0VsdGPmaamB+UVzRndx5hN1SgVyanzSpmujVrALaRcmd OItoDM0VWD8Hg1X/2+uFnz/gGCpFVFZgDGqMt1RQ= Date: Thu, 17 Nov 2022 07:29:59 +0100 From: Greg KH To: Jim Cromie Cc: jbaron@akamai.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] vmlinux.lds.h: fix BOUNDED_SECTION_(PRE|POST)_LABEL macros Message-ID: References: <20221117002022.860237-1-jim.cromie@gmail.com> <20221117002022.860237-2-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221117002022.860237-2-jim.cromie@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Wed, Nov 16, 2022 at 05:20:21PM -0700, Jim Cromie wrote: > commit foo added BOUNDED_SECTION_(PRE|POST)_LABEL macros, > encapsulating the basic boilerplate to: KEEP/pack records into a > section, and to mark the begin and end of the section with > linker-symbols. > > But it tried to do extra, adding KEEP(*(.gnu.linkonce.##_sec_)) to > optionally reserve a header record in front of the data. It wrongly > placed the KEEP after the linker-symbol starting the section, > so if a header was added, it would wind up in the data. > > Putting the KEEP in the "correct" place proved brittle, and too clever > by half. The obvious safe fix is to remove the KEEP, and provide > separate macros to do the extra work. > > While here, the macro var-names: _s_, _e_ are nearly invisible, change > them to more obvious names: _BEGIN_, _END_ > > Signed-off-by: Jim Cromie > --- > include/asm-generic/vmlinux.lds.h | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) This change fails to apply to my driver-core-next tree. Are you sure it is correct? confused, greg k-h