From patchwork Wed Aug 11 08:33:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Rothwell X-Patchwork-Id: 12430341 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 814B5C432BE for ; Wed, 11 Aug 2021 08:33:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 59E646101E for ; Wed, 11 Aug 2021 08:33:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236136AbhHKIdz (ORCPT ); Wed, 11 Aug 2021 04:33:55 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:55893 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236128AbhHKIdv (ORCPT ); Wed, 11 Aug 2021 04:33:51 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Gl34L5KS8z9sWd; Wed, 11 Aug 2021 18:33:22 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1628670803; bh=mrKO/1AwpBhJiLPvAZUci8dz5jM4rVv/jBQT2WKc7XU=; h=Date:From:To:Cc:Subject:From; b=jQdK6Aa1KsXyyluSJupheIvHH/pnsZn68Hpd5ha5PE2JIh45UkOn2nFBpjA5JybxI DxErgP6+TEjREhrn+RigaA/OpSthP0zA/q5Jhq+43/l5FFPgt3EkGuTzACb4r44LQz lhqXeP0RGI+3GvNFIfXK+wfE2K0HLQjtC0zZNRAhI44kfotRe2gmjMCsQymWUaITdj iFmGZjw1ooeI4calZI+i4ESUKkS5bPX4SXnQrCsV9yQ2aEe5soFd5sq89ACxWVLwzA rBb4aAV/C//7HAif8OPX7ayVZmcQtoFZ1+EzrxIptFLc5tXetqnlJdcmaO/2ajjd3C QU77qAp51Q1uw== Date: Wed, 11 Aug 2021 18:33:20 +1000 From: Stephen Rothwell To: Andrew Morton , "Darrick J. Wong" , David Chinner , linux-xfs@vger.kernel.org Cc: Dave Chinner , Linux Kernel Mailing List , Linux Next Mailing List , "Matthew Wilcox (Oracle)" Subject: linux-next: manual merge of the akpm-current tree with the xfs tree Message-ID: <20210811183320.59fa209e@canb.auug.org.au> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/mm.h between commit: de2860f46362 ("mm: Add kvrealloc()") from the xfs tree and commit: dcda39e2fd16 ("mm: move kvmalloc-related functions to slab.h") from the akpm-current tree. I fixed it up (I moved it to slab.h like the latter did with the other functions - see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. From: Stephen Rothwell Date: Wed, 11 Aug 2021 18:30:48 +1000 Subject: [PATCH] move kvrealloc to slab.h as well Signed-off-by: Stephen Rothwell --- include/linux/slab.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/slab.h b/include/linux/slab.h index 2c0d80cca6b8..05b8a316dc33 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -761,6 +761,8 @@ static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) return kvmalloc_array(n, size, flags | __GFP_ZERO); } +void *kvrealloc(const void *p, size_t oldsize, size_t newsize, + gfp_t flags); void kvfree(const void *addr); void kvfree_sensitive(const void *addr, size_t len);