Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1779132rdb; Thu, 7 Dec 2023 08:32:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHucdnvqnBboHdMYDroopAOh1Vk31Pb9Tgzaz7+cEpbdyOVe3vc480h6VLpNIAY4/ABs5mV X-Received: by 2002:a05:6a20:8f28:b0:188:444e:2b6c with SMTP id b40-20020a056a208f2800b00188444e2b6cmr3855059pzk.49.1701966772814; Thu, 07 Dec 2023 08:32:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701966772; cv=none; d=google.com; s=arc-20160816; b=mb0MeAgLSnHc7dkH9d+/auvYEEb81G5kMaW2+jwfB0LIcL90tfuAK6XwRDh8tBaeh3 HQgum20dDODpnm9s8rBdp/vixS9dyb8LDAtDWS0iPZVsm5y0KFDGe8jkN9wHmBpUmCDo Q+xCtLCU+UpVricne6gdAO5gazBUA8hekXMros6roRIJqZudWbTXSEo8KrPP3919WDbq xL0uFgCPb/nTs+akrD3e3dYo4WVC4PTXRy/M6IcR9Fghk6GPFWVbQ1/SmeoplGGQt3da 6tyNqH9x8Ubj7RZf6zNT9GtwVknSpQ2slLNB2/C4HScI0THDh+KHhfv8lKJI/8x4TMb8 Q8WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6s/G2fCaPsfjUltC6wP5KXnRvEhfZWy1kUDC1w9CkeU=; fh=zMoE1SRcPKB4rO6DJA5kjYxg/HzT803EFwbi67Fem7s=; b=ip1Yq/AG5THFO+J48+TWXDh3/dJBapsk8kM/t6pNZ+Dswxyy96oOc6ZcXVpt8+ul+G bpTZyMcCcYBgYDvmrCKb3PNV5QZRQ8R9aBBSEedpootDzJobV/mcAhBaNPKBY/fLOgj+ 9OW2bX604FMCsrCLMByGUoIdjxDPkKIYaXEsFVDhq+7IsC0k7Db7j9/LV8ld0oT4iaNf sEWVZ+CAblMt/LXk9Qu1ufZxjexWa0/vfmG5BxbPZWwgMS9HSYKhospyGStYPNJ66H6G rBKpG7KBZSXDtWEUpSOiVKoGQ8D4hjbDzwuOdAJV+tt7PFu1cWFJKFEeUvNdLeAzEIk5 Nslw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tiK93JOw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id g1-20020a056a000b8100b006cd82b3585esi1446979pfj.287.2023.12.07.08.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 08:32:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tiK93JOw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5BF64826EEAB; Thu, 7 Dec 2023 08:32:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232834AbjLGQcf (ORCPT + 99 others); Thu, 7 Dec 2023 11:32:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232532AbjLGQcd (ORCPT ); Thu, 7 Dec 2023 11:32:33 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73039132 for ; Thu, 7 Dec 2023 08:32:39 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1d06d42a58aso9536485ad.0 for ; Thu, 07 Dec 2023 08:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701966759; x=1702571559; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=6s/G2fCaPsfjUltC6wP5KXnRvEhfZWy1kUDC1w9CkeU=; b=tiK93JOw6EPMlDBLuaJ/56pp8ogzhRE44uzkXTpapanoNVxCbmfA3JCwlBCothnklj D0CDgbkSyMrxwut27IKSkZ+JNz83pnmsUSv30MWZi7FUZhEDbvgDMtGSNkEoSR2bEFDt AdBM7NtZzQ3PIyE30dZ3dAGDiwzewJCTSr59ov/i+zs8tU6DPytidoA9LAeJu8aFmaZo KWVMnub4fVgmkx/91jyqHqM+0rbUHnfOfg2ZQEpNVwvDgR3NyaTEkAShO5jJKa6w/3Es w1R9x+VAznk4DHhunBmSXPX5ucXq8PXkBVy7MERjHnczqfgFaHUz2cmOV0BZ8xCXm3MQ w8ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701966759; x=1702571559; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6s/G2fCaPsfjUltC6wP5KXnRvEhfZWy1kUDC1w9CkeU=; b=IreN8b7D5Qfit5mrwq6GGgcIqpmOO5pnzE6pPhrRQqSv6w7Ty9Rsc03Rb2oXaNkSFW PHQz3274QNUbpHoPxHCrtkSQm13IsKhdRT3iNqWNqLQOLvR+8uXQgDPfqigj1HZ7F3s1 oqdjcgrSo0BxdWpIh3il7feRbvj0eVFp4ubvhE/vXnxuOzzzlJk3UZGKDLCoygYCHzq9 9dGsXuliAQ8mi/Yv0HmfMMJ6vA/4huYz2zz735DWf4UKPfecutrCWOByCMDzuPF6hnCk 4snh+t/dLSm4z+1zqYwCeNbjD0iHuy+j7Ir0/120LbY6wmDQV16Ub2zP2jHI6MuULE5R PyNg== X-Gm-Message-State: AOJu0YwXOAXtUQCV7PKW9gViNSwqz+jm1Un2blK80DK9Yudpx0NWXuoW mbrL76PPm3eHqygIMQvGGY29dA== X-Received: by 2002:a17:902:c411:b0:1d0:8e61:1020 with SMTP id k17-20020a170902c41100b001d08e611020mr3546038plk.89.1701966758757; Thu, 07 Dec 2023 08:32:38 -0800 (PST) Received: from google.com (170.102.105.34.bc.googleusercontent.com. [34.105.102.170]) by smtp.gmail.com with ESMTPSA id j18-20020a170902c3d200b001cc3a6813f8sm6281plj.154.2023.12.07.08.32.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 08:32:38 -0800 (PST) Date: Thu, 7 Dec 2023 16:32:34 +0000 From: Carlos Llamas To: Stephen Rothwell Cc: Greg KH , Arnd Bergmann , Andrew Morton , Greg Kroah-Hartman , Linux Kernel Mailing List , Linux Next Mailing List , Nhat Pham Subject: Re: linux-next: manual merge of the char-misc tree with the mm tree Message-ID: References: <20231207134213.25631ae9@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231207134213.25631ae9@canb.auug.org.au> X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 07 Dec 2023 08:32:50 -0800 (PST) On Thu, Dec 07, 2023 at 01:42:13PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the char-misc tree got a conflict in: > > drivers/android/binder_alloc.c > > between commit: > > 8b59d7857c30 ("list_lru: allow explicit memcg and NUMA node selection") > > from the mm tree and commits: > > ea9cdbf0c727 ("binder: rename lru shrinker utilities") > ea2735ce19c1 ("binder: refactor page range allocation") > (and maybe others) > > from the char-misc tree. > > I fixed it up (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. > > -- > Cheers, > Stephen Rothwell Oh I wasn't aware of this patch. Thanks for fixing it Stephen! I checked the diff against the char-misc tree and it looks correct. It's a much much easier read too. I'll post it below if anyone is interested. -- Carlos Llamas diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index a4a4dc87ba53aa..ea5e1ba2d0d77f 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -210,7 +210,7 @@ static void binder_lru_freelist_add(struct binder_alloc *alloc, trace_binder_free_lru_start(alloc, index); - ret = list_lru_add(&binder_freelist, &page->lru); + ret = list_lru_add_obj(&binder_freelist, &page->lru); WARN_ON(!ret); trace_binder_free_lru_end(alloc, index); @@ -317,7 +317,7 @@ static void binder_lru_freelist_del(struct binder_alloc *alloc, if (page->page_ptr) { trace_binder_alloc_lru_start(alloc, index); - on_lru = list_lru_del(&binder_freelist, &page->lru); + on_lru = list_lru_del_obj(&binder_freelist, &page->lru); WARN_ON(!on_lru); trace_binder_alloc_lru_end(alloc, index); @@ -931,7 +931,7 @@ void binder_alloc_deferred_release(struct binder_alloc *alloc) if (!alloc->pages[i].page_ptr) continue; - on_lru = list_lru_del(&binder_freelist, + on_lru = list_lru_del_obj(&binder_freelist, &alloc->pages[i].lru); page_addr = alloc->buffer + i * PAGE_SIZE; binder_alloc_debug(BINDER_DEBUG_BUFFER_ALLOC, @@ -1307,4 +1307,3 @@ int binder_alloc_copy_from_buffer(struct binder_alloc *alloc, return binder_alloc_do_buffer_copy(alloc, false, buffer, buffer_offset, dest, bytes); } -