Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp909107pxu; Thu, 3 Dec 2020 16:08:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3Q2ZH4il4nD7Jb54BmgQDOyHZqXTluUO+IPtK7nafP0NvUxZ3DOfcklBfMEt155168e5/ X-Received: by 2002:a17:907:2506:: with SMTP id y6mr4799118ejl.53.1607040510608; Thu, 03 Dec 2020 16:08:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607040510; cv=none; d=google.com; s=arc-20160816; b=S+5j8UyNYeE6c7gOPsMOl5AsQ/rJvynZmnK2FL57D1380/EPEXNgA8sY9yMnUNrC2S MzdgoqH4QtLgP1FG3fB6Sw0to4K73RuK8ljDDzvTuk75s1EsnDS2kRe9BC+52ypz4qhO QdAxpdoKlN+gRwo7YBEyA24e4mVkTPlVe3LDcqdtayAT2pvHWy17SnK8ZlSPRuchdg43 SkALI3jURtRoM7h6l0tI7cFHQluyjuwIHGfXph6yZpZn2S+gKb+0Hl+FjWahFF32LZFM Fhdko1ATLwLXX2wWgu2ne9AinIcOvnqPmrM9v7mSXYKiKfhMsiNIfvmS4ODMAwm+Phxs QasA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=tl5Utng9ytojtJagiqymkbPGSz2X+7BJN1ECR1XJmdk=; b=Z9JcAytOhJ3842EWDtWv/EFjcqmL099kgRae4OaJqEN7763Z+fpld42MF/T+CJIShf kFp+NDLR8gJDces2qbFfiOP8ZJQpcMO8aNVvVwm2/+Ko1DokO4pxP8z+FR3j8sugCtAb sS55dmEtVtedHwLqOSLWAgXm+1BMUSLOoPiB9vPKE1JHLqSwSBA4ARMCyTv4iI18fcIn K5G7Kf2CqDf7JCxI6hJFykTgB6lOrtGhkOUbpddPisSwk+pe7rQ68tGngk64p0GzBOjg /bxJKpLV1AlyhLZ9g7FJqlyv/vfaGPJ9lq8b+wejHAPpHFa8NAdlN0DA4y6PDlzSVFlc y9pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Wd3/5S5t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si357585ejj.52.2020.12.03.16.08.06; Thu, 03 Dec 2020 16:08:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Wd3/5S5t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388814AbgLDAFk (ORCPT + 99 others); Thu, 3 Dec 2020 19:05:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388195AbgLDAFk (ORCPT ); Thu, 3 Dec 2020 19:05:40 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D12A8C061A4F for ; Thu, 3 Dec 2020 16:04:54 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id w6so2462636pfu.1 for ; Thu, 03 Dec 2020 16:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=tl5Utng9ytojtJagiqymkbPGSz2X+7BJN1ECR1XJmdk=; b=Wd3/5S5tk2qpeNkG1ZR6yr5Ao/cQdLRr+Xxc+RBPqqRGflpAxei2YGZamgE2qeI1Ql IW0+JlMniOfHCDVB11iWFvFOJ35JI3WJtssx0LkGQm+ZKTblndHLIsLrfbKfSycogDcT WIfS3K5tDqgohvZlt1qrI4G/ltTwvz6PXfcOY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=tl5Utng9ytojtJagiqymkbPGSz2X+7BJN1ECR1XJmdk=; b=n2feGdjk6A0KuCaZzHIt0vjDR6u92iAhcwwS0fhuedQ+BqQbSP33Ok3LI5nonJSbRV OyWH3opWU6REGUm1CMlKuzqBe22nVjXCDTu0GM9alK+MdlAahfbqfY3UK6bfzQM56a16 Mm0zp8T+6UJCXgkho0rYOG14BhlEcI93wizZGXB9C9V/lSXrM6VNlIHbVHRlJJie5ISx e4u2UcIhv0KdU9YA/mBClVAoQCrlQ+uj+A1hyLxPP+LUcUPwBPKMP6QWjXgFIIJcSV7Z ftnQxBCXx5D3hlKFLWv4HaS23DoWQP4kUC7dGaRm/JbD2Ykm5ltyHOfETvWSxoa0Rm0M V39g== X-Gm-Message-State: AOAM531ro4nXckxXkB8nP0i5PBnZMPMDbZJJeGuawwaFDvPlx6xPZ6Jv JEhG6pgI9kJAtn0OUhShyOnCtzDPcG8iGw== X-Received: by 2002:a63:c749:: with SMTP id v9mr5125868pgg.451.1607040294421; Thu, 03 Dec 2020 16:04:54 -0800 (PST) Received: from chromium.org ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id p7sm2858430pfn.56.2020.12.03.16.04.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 16:04:53 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201203231232.1482792-1-arnd@kernel.org> References: <20201203231232.1482792-1-arnd@kernel.org> Subject: Re: [PATCH] coresight: remove broken __exit annotations From: Stephen Boyd Cc: Arnd Bergmann , Mike Leach , Leo Yan , Greg Kroah-Hartman , Tingwei Zhang , Sai Prakash Ranjan , Mian Yousaf Kaukab , Dan Carpenter , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com To: Alexander Shishkin , Arnd Bergmann , Kim Phillips , Mathieu Poirier , Suzuki K Poulose Date: Thu, 03 Dec 2020 16:04:52 -0800 Message-ID: <160704029234.1580929.9183785406117157105@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Arnd Bergmann (2020-12-03 15:11:40) > From: Arnd Bergmann >=20 > Functions that are annotated __exit are discarded for built-in drivers, > but the .remove callback in a device driver must still be kept around > to allow bind/unbind operations. >=20 > There is now a linker warning for the discarded symbol references: >=20 > `tmc_remove' referenced in section `.data' of drivers/hwtracing/coresight= /coresight-tmc-core.o: defined in discarded section `.exit.text' of drivers= /hwtracing/coresight/coresight-tmc-core.o > `tpiu_remove' referenced in section `.data' of drivers/hwtracing/coresigh= t/coresight-tpiu.o: defined in discarded section `.exit.text' of drivers/hw= tracing/coresight/coresight-tpiu.o > `etb_remove' referenced in section `.data' of drivers/hwtracing/coresight= /coresight-etb10.o: defined in discarded section `.exit.text' of drivers/hw= tracing/coresight/coresight-etb10.o > `static_funnel_remove' referenced in section `.data' of drivers/hwtracing= /coresight/coresight-funnel.o: defined in discarded section `.exit.text' of= drivers/hwtracing/coresight/coresight-funnel.o > `dynamic_funnel_remove' referenced in section `.data' of drivers/hwtracin= g/coresight/coresight-funnel.o: defined in discarded section `.exit.text' o= f drivers/hwtracing/coresight/coresight-funnel.o > `static_replicator_remove' referenced in section `.data' of drivers/hwtra= cing/coresight/coresight-replicator.o: defined in discarded section `.exit.= text' of drivers/hwtracing/coresight/coresight-replicator.o > `dynamic_replicator_remove' referenced in section `.data' of drivers/hwtr= acing/coresight/coresight-replicator.o: defined in discarded section `.exit= .text' of drivers/hwtracing/coresight/coresight-replicator.o > `catu_remove' referenced in section `.data' of drivers/hwtracing/coresigh= t/coresight-catu.o: defined in discarded section `.exit.text' of drivers/hw= tracing/coresight/coresight-catu.o >=20 > Remove all those annotations. >=20 > Fixes: 8b0cf82677d1 ("coresight: stm: Allow to build coresight-stm as a m= odule") > Signed-off-by: Arnd Bergmann > --- Reviewed-by: Stephen Boyd