Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp23659ybt; Tue, 7 Jul 2020 15:00:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxligRw8/YswPK9C8DjCFztbvaa9VKfTObJo5Z6Os3DkCcwY0XiJOJvXgf+nzpO5T+jtLuU X-Received: by 2002:a05:6402:2d7:: with SMTP id b23mr51447826edx.145.1594159218815; Tue, 07 Jul 2020 15:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594159218; cv=none; d=google.com; s=arc-20160816; b=EbR/WXWn1QweXaMTVhtdXA23GMYFonYDERkZ9DECLkRMMC5Umrzgq//iXxMxnCpnL/ rMInnG23LnXbJ019foVoPaWOl+12XSVPJaJNHv9R7yW4hbGAUeeou8rH2h+tylePKrhV 5zGtIxT6RE6GNkL6Q32FnoSOTHNLSdlyHxfm/vc1H9Pefn3LA4aC8WdS4l8f4luiO2p2 0UO0pR2w7K3m8tWVQuAO6FsFS9FznO1JJhVdtSkiR5MjF+2yQrNdXPKyAuXLQL9ZTXPU cYyx0Z64mNCql/Ekz4yXdq4uCJM8AP2zrgWXgqmoUyN534GtNNsRx032y283xyzSnFZT Zu3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=0LujZH3tbuUZGpL+nqS5KjyB11nfc4ieFAgqsO06FcQ=; b=VK3YQWqEpXsHaCEFMRDcbYTh+fVldffm/ynqVn9+4SGywd0t9I7rB60flkll448nc5 brQ8Mbg/RcW6/pCek0p1u7QuQ+cn6YtBzkkpJddqVs+nr+ZoMIlmEDlaqu39dd7DfFF6 VLfEyJB52+eGCbq1j/SOaSRtfIixfs/1M2XcPRWYFLHLwLJUjU1BU2nj/Gs+gWshfuFQ hwSsIV0Vp8nxTIDnFmsKP9jRWRgZ+Nn8P9K5k2WL3cgt/hTfEEfpLj0fiUOt1pz8/GWg csS+w9ptHtDTeEQjxofDJF3etEIQtz+VCK9O96wWCrislPSXNXngxPLRTOppRHxRJOJn fM2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LrprgMdB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si14570779ejf.411.2020.07.07.14.59.55; Tue, 07 Jul 2020 15:00:18 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=LrprgMdB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729052AbgGGV7a (ORCPT + 99 others); Tue, 7 Jul 2020 17:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728357AbgGGV73 (ORCPT ); Tue, 7 Jul 2020 17:59:29 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 645D1C061755; Tue, 7 Jul 2020 14:59:29 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id e13so39691778qkg.5; Tue, 07 Jul 2020 14:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0LujZH3tbuUZGpL+nqS5KjyB11nfc4ieFAgqsO06FcQ=; b=LrprgMdBbCVp4quez8dlfvVtMub+Odvz2yu07WWstpvYsuUbb4QotlwvYJrZgzgXa3 LIV3ic16E2kQ+5Z4BxFSLv1qJo8RCXVF3NwuyNgos0lkmpqcsFoU+t5YpkeLSY0AUqYN tpkgwHjubJWQ7ifSbuGIWDQft6LXLbizfrPUlrmp4jiCJdt3ZvlFVvy0OHfxrtVkvMbe cVqkAx/rkEYHVqaiz1xOhLKkMx2LPa8caaQWG5iJbNG7ZQJJqa4GfHoP6ZvjM9kcaMEf dx7PAwLVzxFEyOaQNVOIw10S/GcxtkR+FbQyHt3I0KAlKI9Rb6f1kZIgrcAl2IH7QBU1 WO3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=0LujZH3tbuUZGpL+nqS5KjyB11nfc4ieFAgqsO06FcQ=; b=r9gWnsJUnQ9nqu7Mbi4z2U9dcpfRGU2aaXm3qgSTDOqz8BkHqPs3rtFVahNjwdSNNE 3O8DxHM6KxkMSAJPlzurEA/hFRUfACaZqs6invNPCcgNCLvxyNKHKRXCiaPp8vtbZ9E/ WwaAibEqCilMMxFb2kTEs6XFjMX4aDkM8Ayf1n2Kig+ze18gfeb6BWgB3jjjPxgaXz4C n0ZbUuQqz4qDLnwx6REt0J5pzh9EWzqxPHw50cTz5Yfjet+LyJwsrPF6j+9+EmqeIIgB +qm9FQanQQEHnMvn+Vy2v3GaG024LqLUfOO0cRdXQhqQE4/HgKPNMqs6TTFxqjEf90/Z tm6A== X-Gm-Message-State: AOAM531w0VIKUuzeXwht1vB+ZbsMknDNd6Nd6dCYCaB+pfigHToWvxMX qj5m4yqdfMf19Wr11uq7VEE= X-Received: by 2002:a37:a316:: with SMTP id m22mr55887513qke.378.1594159167658; Tue, 07 Jul 2020 14:59:27 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id p66sm25301009qkf.58.2020.07.07.14.59.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 14:59:27 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Tue, 7 Jul 2020 17:59:25 -0400 To: Nick Terrell Cc: Borislav Petkov , Thomas Gleixner , linux-kernel@vger.kernel.org, Chris Mason , linux-kbuild@vger.kernel.org, x86@kernel.org, gregkh@linuxfoundation.org, Petr Malat , Kees Cook , Kernel Team , Adam Borowski , Patrick Williams , rmikey@fb.com, mingo@kernel.org, Patrick Williams , Sedat Dilek , Norbert Lange , Andrew Morton , Nick Terrell Subject: Re: [PATCH v6 2/8] lib: prepare xxhash for preboot environment Message-ID: <20200707215925.GA1591079@rani.riverdale.lan> References: <20200707034604.1539157-1-nickrterrell@gmail.com> <20200707034604.1539157-3-nickrterrell@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200707034604.1539157-3-nickrterrell@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 06, 2020 at 08:45:58PM -0700, Nick Terrell wrote: > From: Nick Terrell > > Don't export symbols if XXH_PREBOOT is defined. > > This change is necessary to get xxhash to work in a preboot environment, > which is needed to support zstd-compressed kernels. The usual way to do it is by adding -D__DISABLE_EXPORTS to the CFLAGS, which will cause EXPORT_SYMBOL to be stubbed out. Doesn't that work here?