Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7028504ybi; Thu, 13 Jun 2019 08:22:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVmgkW+PzSZp8pmH91No/RXPmXF48gkWZ7iaOs3A+SVXdgsbe0NC1RC31iW5OHw9rXh8Ce X-Received: by 2002:a62:ac11:: with SMTP id v17mr31512718pfe.236.1560439372469; Thu, 13 Jun 2019 08:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439372; cv=none; d=google.com; s=arc-20160816; b=k+LTkKgYzR2cg8ONKLv/8rVjxp+Rz2/s5bBFYUFT4A86uOg9ULJuWQW/KaUIqwUkWF GIPEQ9DFQKRhDLaInsUC9Shbr/AgR7enb2fnlR9lQc9eS6YhJ4mF5cWg/2gWZUMXRwjR b0eCfy81miaVBlywp62drkJ9nmf/pVJAu1opYWwm8GZfyR2xvrswinTrN+z1sP5BJUIs 3PvM25v7aAMk02vS8rd05wTTyp5zKJVGEB98G3MZlx6AZDYT1azOkvWWmjhfy79zr2u3 VR+YdmZW+dPoYKayBPRx2RFCDcOAaDV8ovri1pyC6eCT8OPqhm5pIgN4ex+MNBypbtDD zXcg== 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:content-transfer-encoding :mime-version:subject:from:references:in-reply-to:message-id :dkim-signature; bh=M4ieM4Wn8tJYcGy+WsjbsmefTWGADM+fmU7zWTVEDCQ=; b=joP8f32SffOz4LAr9FyJDNIfvNmFdMQd+3bIK2F4CgCzkJaPRsoUwK4Rfrs1KbZvXK WUlZJF5PZDe7cKlD5xxL1cIzBYWqmfd2uAfc4YYDUxUcuTb0uRdHcrTrdOhPfnd8INyI 0Q5bvPAi4C4bvuxzDuJRCGSpeXUAKmyM4Mwtn05R6tYdUc+VS532Hzi9Z5j8j2GgWCuV K2VoL5fHWDmywTQeJNgQoWJv7OUBM3U/gKObafChTLBpASqdhQJvEFsWgfF03annmuHY YEzZaaiP+36Wj7SKcMASmAwO0jkcDoHhrO6TRZly/j7Vl4Q4Ys9F0lsdWwF2QP6mPAm+ B46g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=WTsX0AwN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q85si3872724pfc.85.2019.06.13.08.22.36; Thu, 13 Jun 2019 08:22:52 -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=@c-s.fr header.s=mail header.b=WTsX0AwN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732923AbfFMPVk (ORCPT + 99 others); Thu, 13 Jun 2019 11:21:40 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:51124 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731997AbfFMMsu (ORCPT ); Thu, 13 Jun 2019 08:48:50 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45Pk7g1q4tz9v00K; Thu, 13 Jun 2019 14:48:47 +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=WTsX0AwN; 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 FISjZ6grRRAl; Thu, 13 Jun 2019 14:48:47 +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 45Pk7g0fm0z9tyyY; Thu, 13 Jun 2019 14:48:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1560430127; bh=M4ieM4Wn8tJYcGy+WsjbsmefTWGADM+fmU7zWTVEDCQ=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=WTsX0AwNG73gtofjhYjf3ew/Dd4QBsAfoxWczMVa28R1kGQHCTUiMuLEwk8ha+syj dhG9J6avvgLO68zZo90oPhwlN7ZT6sEnDqhozrCASi7WL2kAcidWxWUhFwZ1LrRaIg emq2hD1tKo7EapDT1RsA2ksc75Thv2pwTv8wdqKU= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 750CE8B8E4; Thu, 13 Jun 2019 14:48:48 +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 bROVVyI8R2IK; Thu, 13 Jun 2019 14:48:48 +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 335558B8B9; Thu, 13 Jun 2019 14:48:48 +0200 (CEST) Received: by po16838vm.idsi0.si.c-s.fr (Postfix, from userid 0) id F23DC68D71; Thu, 13 Jun 2019 12:48:47 +0000 (UTC) Message-Id: <1418de918578227ffbdb79a0e85b452947c38785.1560429844.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v3 3/4] crypto: talitos - eliminate unneeded 'done' functions at build time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, 13 Jun 2019 12:48:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Reviewed-by: Horia Geantă --- 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