Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1835539lqg; Mon, 4 Mar 2024 05:32:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXezeTmeKAwSqV1tSTkz4dX2bLYJSrh+kgReuMv+Nr5Yh/hcs/8xkqOmohrDTCHUpIy8m17goU879BHtjzeofh0RoaCF7gRol59/D3TaQ== X-Google-Smtp-Source: AGHT+IGUJ6E0pRwqDsO+V2ThRgdK1jCJ+NPOWa6fDYMF9/JyMoSnvAvQh4r1i5WVDVcqaMvy4RIP X-Received: by 2002:a05:6a00:99a:b0:6e5:faca:3683 with SMTP id u26-20020a056a00099a00b006e5faca3683mr7112239pfg.26.1709559138443; Mon, 04 Mar 2024 05:32:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709559138; cv=pass; d=google.com; s=arc-20160816; b=zB896SVcEXpdY4iGkHZgxwwGAL191pNtse2l9DJOMokQ/VWmHQTlwC1RMA+VsGAfjU kLSaVa1/XBVDn04ad2MHs637uEiBHw67B8gca5ns9iTB5wH4MitPZpM/Qdl3fSWwrA2U JL7UplL1clet9nPf//kxiTCn6K/zzQxTAF4/6Ur7Dr7nW412xpB3ghXwj1GejkOgJg3V dkuWDmKxkUN37nF0+VbxtmqTX0hnDSuoUaVdzDfkGNJEe4tKLixfEaBUgpS+Ln+wnfQi ovLD81i9SLrfpKZIgfnrmj6Gc1K7DY+GiCd/m94gUQ92Xc2DrbGIT/TBxOgimd5m2aZV HJUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=5b+Cvu8XLy0B3CcR4jvhEyTFX5ESyq9Rd4VnECSgIU8=; fh=vkrqv7cj2qfZs69+pxFMt/IXYWv7MdS1fftKUnlpN0U=; b=EMFUIl558tQhQu2ndUzV3uxESQqd54sfCnX9x9Rv5YY8/OhTWhb25YxKUhrl9MnxKy atkWnS/AJBY9Y0zDKsxMI882TC8HO1f/H7ZOKBGRw5Rb77Ixh8f/NbUwTDZV6Uxlb9U5 CD3Pg3NAxpWZiPl3/tqkheW8FBTjyhOh5RYkRniItec3jtF4vLPyaRhzUEpmG9K4ynG7 kLD/XpEY9iLzVdGdkVPk+F0zZr5Lh1p2heOaFc0lcTkVWEekyLmVp+Yv66NrfcJ2R49s AePoTmHPe+m1vO6aQRwZ8zxq1Feme4fY28ueIqBrqseujqQfTNySS34XU/pJYmqFozHM H6aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l8RaCFde; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90644-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p39-20020a056a000a2700b006e628ededf8si1034759pfh.74.2024.03.04.05.32.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 05:32:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l8RaCFde; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90644-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E15A5283AFB for ; Mon, 4 Mar 2024 13:27:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 319B93D996; Mon, 4 Mar 2024 13:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l8RaCFde" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58AB23D542; Mon, 4 Mar 2024 13:27:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709558828; cv=none; b=GJwiY+SkV+T/imu/30H/TLUoX2vxH2SbwqVWuTP/XbRgPmGEguiGyyZYVgYxPghxdjQWaWpNerJ5RwIEIqQ7IZky8vA7UuPDj4a4sLNv11lJNeAD4r+ZUl+Ww89siVWkcCY+sQQHccBSNtFNze4O5UhWw7/FNtMyK+unFnO8tKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709558828; c=relaxed/simple; bh=5b+Cvu8XLy0B3CcR4jvhEyTFX5ESyq9Rd4VnECSgIU8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=i9u9y2XN3hpoC9CxFosOwxSP4Tqkm0hhyecr3tycXuXj730krfV9lYAqyDnbqqtjTSdpoQQmXwHwVyuoIuB6qIAYEBXQWv5OevGsXdv7dmBIXq7GvH8YwSRghwAq3P/CJqNbZV/d9sudyT2ECU0FAKTHqgeRZ5Y77RN2+MQC99g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l8RaCFde; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA314C433A6; Mon, 4 Mar 2024 13:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709558828; bh=5b+Cvu8XLy0B3CcR4jvhEyTFX5ESyq9Rd4VnECSgIU8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=l8RaCFdeXFpTv+51Lyzgr1WUhKCPqi9wyUt4e6vv1h51t2REPTPWmT/3twLvgfIAG PpsT38GUk1KwShSmh+jGdj7j0PPznL6fUE6reuB+c3dOYkmJeQexe06wuYqYzf/7Sp gHCb6XRIXDQ5Hfx6sirnUXiDgSJmmI1vZ1miCGUhRke1XBn0eTUnDKgap2HcqQ5zeU ahZ2WiZgt8fx0ba1U2L05hGIzjfLS8FNKyIt7uLZLJJdjC5oYxvazxc3Qb015ZLQ34 NmXFt3gXQU22s5QlLYZsZmyOQR8ruizjvb07WC+bItA10Wxfr+YQIBWFdVSPc3QAun c89ooRjQkoH/g== Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-51320ca689aso5220853e87.2; Mon, 04 Mar 2024 05:27:07 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVIKdzDWUZtNCfu5tDqjwxwd+89Lt5DAdbi6O0g37rDPCTASY/RnuCYOGW6nz7LlQaQ1Pe623KHPD++ChGsmYyx+YJGCKUqXz3GDhng5n/XX4E9f6R9mOUDeMhAXDHwSXZ1geb7AfVvwQ== X-Gm-Message-State: AOJu0YxSYUS9YF62MS+hEsgBbQWdf5Nh025qP0a+U6Lo49eSBSaYuUIy v/h/nqFMVKvxpiIyA6dkBjL81EvYwckYX5LQOn86Txs/nm1A+E37qgcGczcu25XZNlc+eJ20XYM UOdG6rmCQ9FTjAebvvkN/7JFzwA== X-Received: by 2002:a05:6512:3b90:b0:513:45b6:18b2 with SMTP id g16-20020a0565123b9000b0051345b618b2mr2698906lfv.44.1709558826164; Mon, 04 Mar 2024 05:27:06 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240302140335.117769-1-skseofh@gmail.com> In-Reply-To: <20240302140335.117769-1-skseofh@gmail.com> From: Rob Herring Date: Mon, 4 Mar 2024 07:26:52 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] of: fdt: add size 0 check after page align To: skseofh@gmail.com Cc: frowand.list@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 2, 2024 at 8:03=E2=80=AFAM wrote: > > From: Daero Lee > > After page aligning, the size may become zero. So I added exception > handling code for size 0. That may be true, but when would anyone only have memory regions of less than 2 pages. In any case memblock_add will just do nothing. What is the actual problem you are having? Rob