From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 694FBC4321E for ; Mon, 28 Nov 2022 22:21:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232957AbiK1WVb (ORCPT ); Mon, 28 Nov 2022 17:21:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232825AbiK1WVa (ORCPT ); Mon, 28 Nov 2022 17:21:30 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0DD930563 for ; Mon, 28 Nov 2022 14:21:29 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 84F8561496 for ; Mon, 28 Nov 2022 22:21:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3AEFC433C1; Mon, 28 Nov 2022 22:21:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1669674088; bh=tpAYamYB3UCWkmy7jhtbjQp442BUQCyxy4X/WlLEMQw=; h=Date:To:From:Subject:From; b=z8lg6Urw7t1VsvlXZslTHfrisTTEkba+cX9BqZINkbr34Af/TrgGmEYSc5nRxua4a Y3pFcb6S33jZ//PZLC6W9ZFjDkjO8hxNhiQRzvF1VcTQYtdhpYzhCoe4U44dRhqOEU HVCqX7UwP2V/SEQ63UmRiB+hFC8Gd1Bvx74EXLx4= Date: Mon, 28 Nov 2022 14:21:28 -0800 To: mm-commits@vger.kernel.org, zhang.songyi@zte.com.cn, akpm@linux-foundation.org From: Andrew Morton Subject: + =utf-8bw1bbveniigxpbnv4lw5lehrdig1toibyzw1vdmugcmvkdw5kyw50ihb0zsb2yxjpywjszq===.patch added to mm-unstable branch Message-Id: <20221128222128.D3AEFC433C1@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: include/linux/pgtable.h: : remove redundant pte variable has been added to the -mm mm-unstable branch. Its filename is =utf-8bw1bbveniigxpbnv4lw5lehrdig1toibyzw1vdmugcmvkdw5kyw50ihb0zsb2yxjpywjszq===.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/=utf-8bw1bbveniigxpbnv4lw5lehrdig1toibyzw1vdmugcmvkdw5kyw50ihb0zsb2yxjpywjszq===.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: zhang songyi Subject: include/linux/pgtable.h: : remove redundant pte variable Date: Mon, 28 Nov 2022 21:07:43 +0800 (CST) Return value from ptep_get_and_clear_full() directly instead of taking this in another redundant variable. Link: https://lkml.kernel.org/r/202211282107437343474@zte.com.cn Signed-off-by: zhang songyi Signed-off-by: Andrew Morton --- include/linux/pgtable.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/include/linux/pgtable.h~=utf-8bw1bbveniigxpbnv4lw5lehrdig1toibyzw1vdmugcmvkdw5kyw50ihb0zsb2yxjpywjszq=== +++ a/include/linux/pgtable.h @@ -425,9 +425,7 @@ static inline pte_t ptep_get_and_clear_f unsigned long address, pte_t *ptep, int full) { - pte_t pte; - pte = ptep_get_and_clear(mm, address, ptep); - return pte; + return ptep_get_and_clear(mm, address, ptep); } #endif _ Patches currently in -mm which might be from zhang.songyi@zte.com.cn are =utf-8bw1bbveniigxpbnv4lw5lehrdig1toibyzw1vdmugcmvkdw5kyw50ihb0zsb2yxjpywjszq===.patch