Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1772919imm; Thu, 27 Sep 2018 02:12:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV633OefTj9o6SkYwTxzp0oPK5CMHb/luRh0jlXaspySroy9zCyay0yS8OnuKmvewD5NoX3IJ X-Received: by 2002:a63:9a02:: with SMTP id o2-v6mr9202750pge.440.1538039553948; Thu, 27 Sep 2018 02:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538039553; cv=none; d=google.com; s=arc-20160816; b=pFi7O+3OoNRyD3vznUYYIItprY8VXPuq5RYh4mNHu2AMmbx11rJyqQ+DbKyBjmFWKj aZut/xv+lZbWmGgR2t19sN9Suf9QzMCW5+zVLbUQ/Oou8GOPy5DmgZXLhubYhN5g3iqZ KCF24ynPKl+Z1oNC2iVv8qyt7WB255E8Se7Q3kasXi51OI7WyCUxKwFlZx1fuSmPs9WC Pp/gRqc4sVOaqCTZ6HFh5IPT4Jc1UBNqmWHsr1PUe7l7MaPxe0JOAVsqGRsdP/lgyWPJ WDXeJlD3bmwkQzc47owv5+raEZ0lKWnid063yYpImqkmp2u1SNOaxGjr83Mditei/ARM mDlg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=0v7+f1bqdLPKRA0PWOhhQ255HT36NuT2rlq4QiCEalM=; b=JN/TDcNu2dxK79UB/iwdyNUmpPBrLWG7u7Mq331AN29Nt/0ihrTNll6LQ8d66dc3SR AoCT4Cb6FIKN0crv0s0WxPh4t9S6Jabom+aIxKyGqPrqKiKIZhx6ME0LYO0Jw3v9r37a VIvGJhTdEI7nhN+jZUxFPY7iAz/1AiUvivecUMZMR+yVtOGz+Q9mixuNTIU6lZ6jYDgC /Q24a6bppY7uAqGIZXZa/ccosbEk6D9hYdxQg1h5s8kiXRmAWJUF+xSG5GIXAcCv8vLu TpotgUG8V805nDZ5o/bgAn7Tnc4J47WKhbDZPlNCEKeIrT3pPOqt8i/TFz2HU8N1s2kL C+uw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d31-v6si1492148pla.256.2018.09.27.02.12.18; Thu, 27 Sep 2018 02:12:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728528AbeI0P2q (ORCPT + 99 others); Thu, 27 Sep 2018 11:28:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55260 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727020AbeI0P2p (ORCPT ); Thu, 27 Sep 2018 11:28:45 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7EAF81120; Thu, 27 Sep 2018 09:11:28 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lubomir Rintel , David Howells , Randy Dunlap , Mat Martineau , Stephan Mueller , James Morris , "Serge E. Hallyn" , Andrew Morton , Linus Torvalds , James Morris Subject: [PATCH 4.18 55/88] Revert "uapi/linux/keyctl.h: dont use C++ reserved keyword as a struct member name" Date: Thu, 27 Sep 2018 11:03:36 +0200 Message-Id: <20180927090307.452564735@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180927090300.631426620@linuxfoundation.org> References: <20180927090300.631426620@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lubomir Rintel commit 8c0f9f5b309d627182d5da72a69246f58bde1026 upstream. This changes UAPI, breaking iwd and libell: ell/key.c: In function 'kernel_dh_compute': ell/key.c:205:38: error: 'struct keyctl_dh_params' has no member named 'private'; did you mean 'dh_private'? struct keyctl_dh_params params = { .private = private, ^~~~~~~ dh_private This reverts commit 8a2336e549d385bb0b46880435b411df8d8200e8. Fixes: 8a2336e549d3 ("uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name") Signed-off-by: Lubomir Rintel Signed-off-by: David Howells cc: Randy Dunlap cc: Mat Martineau cc: Stephan Mueller cc: James Morris cc: "Serge E. Hallyn" cc: Mat Martineau cc: Andrew Morton cc: Linus Torvalds cc: Signed-off-by: James Morris Signed-off-by: Greg Kroah-Hartman --- include/uapi/linux/keyctl.h | 2 +- security/keys/dh.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/include/uapi/linux/keyctl.h +++ b/include/uapi/linux/keyctl.h @@ -65,7 +65,7 @@ /* keyctl structures */ struct keyctl_dh_params { - __s32 dh_private; + __s32 private; __s32 prime; __s32 base; }; --- a/security/keys/dh.c +++ b/security/keys/dh.c @@ -300,7 +300,7 @@ long __keyctl_dh_compute(struct keyctl_d } dh_inputs.g_size = dlen; - dlen = dh_data_from_key(pcopy.dh_private, &dh_inputs.key); + dlen = dh_data_from_key(pcopy.private, &dh_inputs.key); if (dlen < 0) { ret = dlen; goto out2;