Received: by 10.213.65.68 with SMTP id h4csp349788imn; Fri, 6 Apr 2018 00:58:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx495KEGnuu604afM05QfSvuAUKBMuVhVzRzSCbfc2PcCdJmT3Y8QAhFtNz/gViW+EOfz5ZMs X-Received: by 10.98.19.132 with SMTP id 4mr19432121pft.87.1523001504386; Fri, 06 Apr 2018 00:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523001504; cv=none; d=google.com; s=arc-20160816; b=u1SM75zGszUeOWnEi8RSrAq8ZENS7UA8Veemosmn9Z0vM/hrEZogTdFLhFWJzhnU7r mtnu+60jGT6Or6GhjGn+ui77VG8sxb2WhtNxLJsSlGW22JYrdZaG6nPVgWScyLVt47E8 hq30yzaWmDl/3v+zil6Jy7SwvWpVoev4WKlByFU12lPA9aj/ZIwSh3NpX3obrSiHlEDY ITGNvVRh0Cu4HoZj3Ud/CmkoCQAQdcCLxt3MJM6Oy4+wqe1dmg4bdh+q3GAdABdP9pHd dzJMHB4blKz4VFk21I0t23tUCmZS00bc4VXfL7Tk8DPI1as1wP6TfOSa/7L1wwt6iLET H6rQ== 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 :arc-authentication-results; bh=LhLytOmfeDerPFweNJMLi+koG3a8h0ME/Um8t4B2wM4=; b=FbS4OkqNdDAy8/enTtwFcBpySEv0/g8hI9DjjcfIrXSwdaKxQf/Hc8hU50pviqYlPj ADJYnHFmQDqnOthtYOdCbkhOzBeziCdDTsiXEZpZ8Vd80ay2dXjMDfMCpa+i19VGLsfl Uuakhp3vv7V1WKL6NAiVhC5Gw82tR9kz3V9RKcR9hg580eB8SvTaPglcHk+3CxHjrpb8 zwz//O+nqBXodiplIa3Nk9VyeyzjRa6TJ9jkSMJUTsNopbrk95CNPVogNttm0CwHXBMV gBlOpkeLfyY1qjH84ZRxVjfL4i4j42ntTVp66e+KNXSgoH2+GCWqNb/XvKFfNjAbRFzE iV6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=d13CWVNx; 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 33-v6si7565793pll.332.2018.04.06.00.58.10; Fri, 06 Apr 2018 00:58:24 -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=fail header.i=@gmail.com header.s=20161025 header.b=d13CWVNx; 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 S1752049AbeDFH5A (ORCPT + 99 others); Fri, 6 Apr 2018 03:57:00 -0400 Received: from mail-qt0-f180.google.com ([209.85.216.180]:36654 "EHLO mail-qt0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751704AbeDFH45 (ORCPT ); Fri, 6 Apr 2018 03:56:57 -0400 Received: by mail-qt0-f180.google.com with SMTP id w23so272918qtn.3 for ; Fri, 06 Apr 2018 00:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=LhLytOmfeDerPFweNJMLi+koG3a8h0ME/Um8t4B2wM4=; b=d13CWVNx4L6pXQXq7JLo6QJLgFa9JBn4FBLnXy3Rm5gnQSofQdaycmoH2iTcdaaV6n W+lsAHwzszrfR4lvrpVKDcBrAuSkolsJmbqjgs3tlARhYy2cC4YccnJqjYgF2MTBpqMe y5CC682NQcMgDxcSVwxFe0DRdBZo8WPMk81gW6C+NRusFweIbdo+mgp/kCRvYkrL2nTH Yr1Pz32jCEo+vzY2YY3BqkSFPPCKFXYT9i1nmilNtQQFn9XKlYT2zObQQsvKLjAjbWyw VO24/Hm80cY26mN8/mh5WWmCohXikyv36VtjwN6oehph17jEAJSNny5xMzDFyG4IYpS4 MWxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=LhLytOmfeDerPFweNJMLi+koG3a8h0ME/Um8t4B2wM4=; b=FKVlBPkJE80iJasF91Q/miKfuh/MEM+QZ/fdNWbgmpl3MMEWpY+xtDxnBNENacdsin tHiTHzM3NqFFGCp/1zs49reVlLdKfJz2dbr99eETSNGGpCefxbBF2LevEBEPCjBiT8xh 7nB0XJvfgI6vLqsaP9yJ+XpnIrjZnrUe/qLkpl/ZP3WnlwSNeB5m3YXwo/2ySXfsSB0V Tm20KSi2fyW4puZpSwK6Nhhq91U8sCB8a8K5qZsdPLSsdTQacStuHQzeGslAxwkYkZmd QYUkx9d90j4beE2z4XPlvZ4uTwXfu9NKpgrIWts3uClZyj2an4Nd3yyXFpi5TcHU0LXI EM8Q== X-Gm-Message-State: ALQs6tAlW5O1yGOd9o2kRKUdViPhaAU/KcfiHsZbdvBWNEjfSWybUwqz u2d2eWKvKOSWVXISbbzWWhjmM0SlGHFoZhwuiUDnaQ== X-Received: by 10.200.56.177 with SMTP id f46mr38195285qtc.9.1523001416678; Fri, 06 Apr 2018 00:56:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Fri, 6 Apr 2018 00:56:55 -0700 (PDT) In-Reply-To: <20180406072517.27709-1-tobias.regnery@gmail.com> References: <20180406072517.27709-1-tobias.regnery@gmail.com> From: Arnd Bergmann Date: Fri, 6 Apr 2018 09:56:55 +0200 X-Google-Sender-Auth: Qke7Apt2x4VgPzOhZeFPqFDdMwg Message-ID: Subject: Re: [PATCH v2] pstore: fix crypto dependencies without compression To: Tobias Regnery Cc: Kees Cook , Linux Kernel Mailing List 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 Fri, Apr 6, 2018 at 9:25 AM, Tobias Regnery wrote: > Commit 58eb5b670747 ("pstore: fix crypto dependencies") fixed up the crypto > dependencies but missed the case when no compression is selected. > > With CONFIG_PSTORE=y, CONFIG_PSTORE_COMPRESS=n and CONFIG_CRYPTO=m we see > the following link error: > > fs/pstore/platform.o: In function `pstore_register': > (.text+0x1b1): undefined reference to `crypto_has_alg' > (.text+0x205): undefined reference to `crypto_alloc_base' > fs/pstore/platform.o: In function `pstore_unregister': > (.text+0x3b0): undefined reference to `crypto_destroy_tfm' > > Fix this by checking at compile-time if CONFIG_PSTORE_COMPRESS is enabled. > > Fixes: 58eb5b670747 ("pstore: fix crypto dependencies") > Signed-off-by: Tobias Regnery > --- > v2: check the config at compile-time rather than change the > kconfig-dependency as suggested by Arnd. Thanks! Acked-by: Arnd Bergmann