Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp199135ybp; Thu, 3 Oct 2019 12:12:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIWP0sxscoDB81Ipi+g8DBzyde1u4vT2sJv2XSQWuawMiiEtaon6qsV/4uhabx1AQFQpO+ X-Received: by 2002:a50:eb44:: with SMTP id z4mr10980837edp.207.1570129979688; Thu, 03 Oct 2019 12:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570129979; cv=none; d=google.com; s=arc-20160816; b=BiEy7vzZHOGWV/v0zIqHechNvOzqj3Q3lsf2tY67NRstKY51so0wTI+uUGqW5ELDLT mFhiKavxzWak+hOZaGhywXL8BciidK9athrVglXwMANC7hhGfPwk5WNgW6e3fJXU20rR iSH2zDcb58twW2MBgu6UBeyfMu22HhR5+FeBIdPgDQQe8Idzix7diYYCJuMr/7semq3J g3I1OVhKHI+z3aZePflevo3qRF+R54mm+wSWzH30beuUXcen+Ycisob/s9aF2RhU/6Dy C903kvw46mx4TpBT11dTcy6A93lX8nzT/ukGZqFI9O7+Ty7fVipRl62cuM/ti6QetW4T eynw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=T7ZJYSWr1q+gBfzX7jfJoXIhhqEFWglAUzjc3CHd3+k=; b=yGwjFj6C+CCNyfjLdE3/oWQBzM8ZLyrwC5SAw+8yugym8qfcDOiV5Y0UP4qWiFrq7z Roxhs6idcKGlNEPx+j3fyZ8XTDAKRCkhQXq46+MXYh3afoGIgfsvgln4wNT5Sn+ySNF/ rQRF9G4FDKDc/OMtjv3omCY5ix1tyt4x9djnRTdZtseokdT+bt+REQV+mPZuw9sOknRw bnVClddQucJidFkwX6DdOGBndEZYeiq7V5bFjE8wLyJZVeqLBQ5HrQHyqelO4nH0vob2 0hh6GfstQoBp82SSWeHvwlOD09ZG9PzIQfXcppx+3qAvVWSj43Yn7P3soi9+CqxsQjM+ IAlw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14si1745913eju.187.2019.10.03.12.12.35; Thu, 03 Oct 2019 12:12:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731514AbfJCSvQ (ORCPT + 99 others); Thu, 3 Oct 2019 14:51:16 -0400 Received: from mga06.intel.com ([134.134.136.31]:34085 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbfJCSvQ (ORCPT ); Thu, 3 Oct 2019 14:51:16 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Oct 2019 11:51:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,253,1566889200"; d="scan'208";a="392046309" Received: from okiselev-mobl1.ccr.corp.intel.com (HELO localhost) ([10.251.93.117]) by fmsmga005.fm.intel.com with ESMTP; 03 Oct 2019 11:51:12 -0700 From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: Jarkko Sakkinen , James Bottomley , Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 1/2] tpm: Use GFP_KERNEL for allocating struct tpm_buf Date: Thu, 3 Oct 2019 21:51:02 +0300 Message-Id: <20191003185103.26347-2-jarkko.sakkinen@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191003185103.26347-1-jarkko.sakkinen@linux.intel.com> References: <20191003185103.26347-1-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch from GFP_HIGHUSER to GFP_KERNEL. On 32-bit platforms kmap() space could be unnecessarily wasted because of using GFP_HIGHUSER by taking a page of from the highmem. Suggested-by: James Bottomley Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index a4f74dd02a35..d20745965350 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h @@ -297,7 +297,7 @@ static inline void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal) static inline int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal) { - buf->data_page = alloc_page(GFP_HIGHUSER); + buf->data_page = alloc_page(GFP_KERNEL); if (!buf->data_page) return -ENOMEM; -- 2.20.1