Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1416513imm; Wed, 26 Sep 2018 18:02:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV617FCfcgbcrYvku+ugtHVFDUOYP47pOuEIVIBVOG16uepY3I/Uy01vcxOXJxMRjWBhgn05r X-Received: by 2002:a62:c60e:: with SMTP id m14-v6mr8831988pfg.40.1538010159651; Wed, 26 Sep 2018 18:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538010159; cv=none; d=google.com; s=arc-20160816; b=da8Wti7nVfD6BQqDj8VamAKmznmAzu0CJhcvFnDX6FVnwmXcCLztprljjPyAw4no44 00pqdpGMqAWpu0AbdG5EINWb/HdUEQjB8wr2VVGzn+ip6REQRGIn7wi4bi7LHshKS8Vz S6I3rZxlB18aLZhr7ajTj5TTCpgsJVPn2ZnKtgcaGSOxx9sNne5dQVZE46Xcp06ZUnMD Dv8Ur987rq5XPADQASf2EmJmMwCsAI5IO2GnCdSKptYdL/n5kGyTnYUIGbwYJnyJ14Hf oAVzjKi7GZN9GcXJaZ9OlF1RCQsdk/I8uyCn3pIvCRfHh/gQaRb+M6cP4ZOTwfQ/+S/B f42w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=tzLI9Nm8T6ipPyv+xsQ8ntnWkTG/eRpO7hmxlGzQR5s=; b=rGrO0lphx7SFUIVMNvje2z5h2wxqblUTMrQuqCjfTeN7JM7d1FI8BWgt5c//YBha3e lHGrYAVH6nw7CZekFXuULAXX4FMnl+wAZoT/x/LAHLWdcaexRMt5Snco4e8xXLlvjEsS wIT+Sphswp49P/WFjVCC8+x59qWam+W0g0U7zUNlgjKVre+VR+CMuS9/T0QuyJomDLt0 6jOiOw+jozEpj9TtvhloFLnTFnZmZ/wXTX72QdzFEtgYOGaePEIN7M9bgoeESsOYUICl /8cvQZyrcSqORir9x7GCPz3GBLCqDuqS+c2dMOMgPIafw2wMpyGaO+bICEM9kAhgZpsN jf5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PDQTEfcr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1-v6si528484pgs.110.2018.09.26.18.02.24; Wed, 26 Sep 2018 18:02:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PDQTEfcr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727049AbeI0HRB (ORCPT + 99 others); Thu, 27 Sep 2018 03:17:01 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38386 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726635AbeI0HRB (ORCPT ); Thu, 27 Sep 2018 03:17:01 -0400 Received: by mail-lj1-f194.google.com with SMTP id p6-v6so757676ljc.5 for ; Wed, 26 Sep 2018 18:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tzLI9Nm8T6ipPyv+xsQ8ntnWkTG/eRpO7hmxlGzQR5s=; b=PDQTEfcrCSuphgwOhZd/VBBlDjBoyxEVZVvStXzgwKlnuoTdMxBtks123yBKqRaH/x GZ9rtKenIHio9znywsAhHmbrro1HaHRSuIyB543DZqpNkEC2hGRuFMSPbx/1reBv0CH9 9zix+piy610xXWhrHfFtDnJ8W1jrGDOuMza4Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tzLI9Nm8T6ipPyv+xsQ8ntnWkTG/eRpO7hmxlGzQR5s=; b=V5C+IiQwNA5Iv2F5ln1XkIouFJU86Bp93ux/EgoLk3ntqCv5LDDzpWU/KuFDRYH9EK c2KSvYnSBqP2IM5XsL7STPxJaK2pE0N+tVc0zaQYOJpduJA4YfVAMuddoRDK0MTs8ESa p3IHfBDrsGsvzBuFsu49hDUsNUswHfecDJhKxUMdplLRNGvrbBULc4/EYVYlgv2UcATH DHcilcoRuyYN0+//JSiO9TfSF0TYC4ybBYVsCGIBuwlkC+QXNdlIheryyUnqYh+SHihg 3432g/EswVpa3Tv6r/DKO9mvJkqg/BaE/ulf9wUWoVkow7ZmtD39ktcva6tLCe4YAQAn t7VQ== X-Gm-Message-State: ABuFfohJzOEncV6c/nDGOTBFm9LvZ9fqguePc2SqJ7G4R/Kbkm51cZzk px/KvVtT78SBBZ2nXu+PDx/jwqhkOaDUeK/nM0sR+Q== X-Received: by 2002:a2e:9851:: with SMTP id e17-v6mr5959576ljj.143.1538010082199; Wed, 26 Sep 2018 18:01:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:95d7:0:0:0:0:0 with HTTP; Wed, 26 Sep 2018 18:01:21 -0700 (PDT) In-Reply-To: <20180926125833.2225931-1-arnd@arndb.de> References: <20180926125833.2225931-1-arnd@arndb.de> From: Baolin Wang Date: Thu, 27 Sep 2018 09:01:21 +0800 Message-ID: Subject: Re: [PATCH] spi: sprd: don't mark remove function as __exit To: Arnd Bergmann Cc: Mark Brown , Orson Zhai , Chunyan Zhang , Lanqing Liu , linux-spi@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26 September 2018 at 20:58, Arnd Bergmann wrote: > The __exit section is left out for built-in drivers, so a > 'remove' callback must not be marked as such to avoid breaking when > we unbind a device at runtime. This was pointed out by kbuild: > > `sprd_spi_remove' referenced in section `.data' of drivers/spi/spi-sprd.o: defined in discarded section `.exit.text' of drivers/spi/spi-sprd.o > > Fixes: e7d973a31c24 ("spi: sprd: Add SPI driver for Spreadtrum SC9860") > Signed-off-by: Arnd Bergmann Thanks Arnd. Acked-by: Baolin Wang > --- > drivers/spi/spi-sprd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-sprd.c b/drivers/spi/spi-sprd.c > index a9a6c5ed443f..8daa24eec624 100644 > --- a/drivers/spi/spi-sprd.c > +++ b/drivers/spi/spi-sprd.c > @@ -676,7 +676,7 @@ static int sprd_spi_probe(struct platform_device *pdev) > return ret; > } > > -static int __exit sprd_spi_remove(struct platform_device *pdev) > +static int sprd_spi_remove(struct platform_device *pdev) > { > struct spi_controller *sctlr = platform_get_drvdata(pdev); > struct sprd_spi *ss = spi_controller_get_devdata(sctlr); > -- > 2.18.0 > -- Baolin Wang Best Regards