Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8022329ybi; Thu, 6 Jun 2019 05:32:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk591fhrStIqxWb+P+AW7cJxa0gx3xAAaUoPaNoMW4tKn6KvLNAmDYf4TToBsj+HEwGOsl X-Received: by 2002:a17:90a:e397:: with SMTP id b23mr29069982pjz.117.1559824363386; Thu, 06 Jun 2019 05:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559824363; cv=none; d=google.com; s=arc-20160816; b=gF+niwKLuwG7hYGBcM/tcEZ8boiM8QbuFru9MRAqsF1mRUkc3at6dSGRoXw9B/Neqs pxTgrCoTXpWJ2rfSchN7mOWI604/s8y2lJOZ7BPxL5Qf+1XMmOC0ulkehMslMp+6HddT kKJj2djSQ0Cj2eu4waaEGSkwEMqNrFFeXvxvkmC7VRzn4ywGYiVMuMxvKm+wGGDRRRet kzkXyHAkQnniNfpzgKIJHUla6MlvSnLTAENqFmjmQ7z9xFTZG8kKE64+RzqT1t5OrO50 qWHQKOUjw6GCSQa+oP5bb1rOcOqM37EsSforfF4rdOt24Bg3gSsnl2f5HPgl1wk2jHr3 mLJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=z1F6PHZmuc1YG8A1ts1rr1gl6K/z7hQn1Ct+jqvfadg=; b=Y4EHwbcTeOXcMzxGpRzBGVFllAwcf2X2jW2iwPIli8VrYD40E8fP/484niX5hDmCbA 5eqrdVZPxXpRg9U5zBTFgzz1qcx4ft63hf2+O6OKCgtCs4mol7LTkpRoTo7azoHpZ+Pc SipQkVVu7mjEs5h6xNEyljb0cgeumgfni7Xea+PwHtn7SAZBU1dM0b9AWNnanGZp/kv+ 0ljzfDE9zGgr9X1d+JLd//PxktBX9UNQxSr4Tj8jXXOVZFr+2Sx62Tf81iOilJcvYXKj I13YiZKJSLCH7cLBLwh0VYs2JhUhZ6DM82GodjnMIUKPlCqCG07+OhzDOdinbR1CdoYc ZXIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=wKNxZuab; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si1614169plt.200.2019.06.06.05.32.28; Thu, 06 Jun 2019 05:32:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@c-s.fr header.s=mail header.b=wKNxZuab; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728520AbfFFLbl (ORCPT + 99 others); Thu, 6 Jun 2019 07:31:41 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:57901 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728513AbfFFLbl (ORCPT ); Thu, 6 Jun 2019 07:31:41 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45KNlt4kgyzB09ZS; Thu, 6 Jun 2019 13:31:38 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=wKNxZuab; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id LGvoxYt9z0Ek; Thu, 6 Jun 2019 13:31:38 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 45KNlt3hh9zB09ZF; Thu, 6 Jun 2019 13:31:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1559820698; bh=z1F6PHZmuc1YG8A1ts1rr1gl6K/z7hQn1Ct+jqvfadg=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=wKNxZuabiknkjHFhEpNMEBBYKgYEVsqPmVlWVKH23OOngNkAMOXv/WWpirLrthAf4 dxdL5Ni2QCUIUjzkBGvQIOWCYaej6e6GYGQIsfxPMh/cgCO8fx3vC6p6WamX+EzeFL caskyQmrz3JaWNqIIMh45RuODxBm43ZAfoWnKb4k= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C28508B894; Thu, 6 Jun 2019 13:31:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id KnPu75gGijjF; Thu, 6 Jun 2019 13:31:39 +0200 (CEST) Received: from po16838vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 9677C8B891; Thu, 6 Jun 2019 13:31:39 +0200 (CEST) Received: by po16838vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 74F2668CFD; Thu, 6 Jun 2019 11:31:39 +0000 (UTC) Message-Id: <4d6b83bfa9a832229de142551cea779ddc56cf9a.1559819372.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 4/5] crypto: talitos - eliminate unneeded 'done' functions at build time To: Herbert Xu , "David S. Miller" , horia.geanta@nxp.com Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 6 Jun 2019 11:31:39 +0000 (UTC) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org When building for SEC1 only, talitos2_done functions are unneeded and should go away. For this, use has_ftr_sec1() which will always return true when only SEC1 support is being built, allowing GCC to drop TALITOS2 functions. Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 4f03baef952b..b2de931de623 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -3401,7 +3401,7 @@ static int talitos_probe(struct platform_device *ofdev) if (err) goto err_out; - if (of_device_is_compatible(np, "fsl,sec1.0")) { + if (has_ftr_sec1(priv)) { if (priv->num_channels == 1) tasklet_init(&priv->done_task[0], talitos1_done_ch0, (unsigned long)dev); -- 2.13.3