Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1693170rdb; Sat, 20 Jan 2024 09:06:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOamOWnwG5XTYUFSHNiK7cIfihl7McmjePKGNzmhIePvHiJE/OitgIzDtzgHqPQYFM9iF6 X-Received: by 2002:a17:906:1405:b0:a2d:79b6:bbea with SMTP id p5-20020a170906140500b00a2d79b6bbeamr713596ejc.64.1705770398094; Sat, 20 Jan 2024 09:06:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705770398; cv=pass; d=google.com; s=arc-20160816; b=si42d9IeIwTrKR5Emj1WAUinMWSgENd90/Pu4ekO5r9tbCGWsg4LOpumpliFkv124Z riOrPA6vSQV4zPSyeOsK+t5zG57f4glcdeA5fmm6cbeD7CtcMamzgyY1VLmbpsSsBbQS mQ4johhXsFYuthGPv9rzwnVAVyWY6lhEL1Jfap2H9W893Ov3QwmzEsMOM0VSqiRlgtVw m+80s1n5878zlP4FMQadVKjFE8KUtNdiBboUxtcJgShNDM2YXRBW+MdYEgRfgQsTSrQN ERjrkxCEceNcR0KqOCAJ5qtdn/PePQhBU1CUM/5Gi2iw9AFOB9bIiM0yeFue4u0DO6jp YnOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:message-id:dkim-signature; bh=XyVOGkOkVTm86r/oRSP+lx+TJBopO7lwL7TLREoXTNI=; fh=z5qsD8G5xLXbeS6ukdff87r2gnTKzziyKhN7Lc+QHps=; b=0d2ISL94I73hX8e6Xaya9A2FvACXCCe8ZlvjghsAaVendgK6yrWGA9xKI27MXukITj 88TZa3IDuUjQ42HkoLDsY4oHFBNt5EbB+qj01Td7enAYSN/DGvIidHUFUYGClaYIHcpZ s32emkvnNDXjlbS0fsZRJ6tcNUgTHt50rH31cvRnM1VGslDp86UIF+cMyxhVErlMbk7K qgfgV5ur8VPUOy20trSmBaqXJ/QfHtwNqOo0v2UOcyV5tVGqgT6XVQs8/cDsboQMVtIF VW0XGZtt5k5BzZHGMMWLaSdBSUrfpBNaB+EsYQ9CAysFTHMfeIcASx5d6hlkwW+OokdY zzbw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YJAW4Og1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-31848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k13-20020a170906128d00b00a234b6bc08csi8886488ejb.262.2024.01.20.09.06.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 09:06:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YJAW4Og1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-31848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0A2D81F24953 for ; Sat, 20 Jan 2024 17:00:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3283512B95; Sat, 20 Jan 2024 17:00:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YJAW4Og1" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B31E1172D for ; Sat, 20 Jan 2024 17:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705770039; cv=none; b=YAsB8SpUOrKRBZLaIfOA4VFzuFL/REkXPgMbsJivX/LfAdcBuloBLMJLH585Ui0qEdBdJS7oCwDV/41y8tyMFLRIM+eeMrM5Rp0YXvMTbLBQ62hNP76a78RvmHsZtOCB9eU18iDaFA9fJ3FadcR6B9hEXSjvcWCoLXOZVpC0Dsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705770039; c=relaxed/simple; bh=PKK6HYadXAwZCSYg1nzBG0fYqkoKTKlf+PEjvpx9m6I=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qsZ7Ekf4J5GHuMdVhnxD8hBUYgugan5dpSZGlkyp7BFQTObi3VJi+uouKcRjBKUX9H+/HAj8vJsxGtBzbdYuWVw9aQxuK/Lo1Fa3uE/dXmHoGqr72J31NQBZgrNH8I8Kboygz7Nh9EO2TimihSgC2kTf1jMWKDplCQcXXbD8jgU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YJAW4Og1; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-33922b66bd7so1008362f8f.2 for ; Sat, 20 Jan 2024 09:00:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705770036; x=1706374836; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:subject:cc:to:from:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=XyVOGkOkVTm86r/oRSP+lx+TJBopO7lwL7TLREoXTNI=; b=YJAW4Og1tr7LUCMJi6au+y80KjHpsbIFgS7PK5dKAGFPA2KGCWvDEFYaHIiqURmLSu 3nnHSgqUC5byd0kR26/9TNNVbNXiI57irzA74oUfeDVlVqMIh7QGo5WAGM1Ye6KBFTxz +61SyTtRhae8aeyFOGDDcc/sUkGy1ir6gUVKwanSpvwgn7VL9DHFAzXPXORXpyaGJHfB e0ndVwzKzbYgj1lIxhUcpFXQRc6XwvURlAqyO2N4COeyt1bHlYafhfUwrassp8zN3V79 n+tIfNUz2NvKdf0Ve6qeeW/Tp6IYugzQokhKtvfQEo8g+oQC3dNftUZj7VTw6kxtU7LE 82ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705770036; x=1706374836; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:subject:cc:to:from:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XyVOGkOkVTm86r/oRSP+lx+TJBopO7lwL7TLREoXTNI=; b=RLfqcCqh3CUIqAO5RwRvFXc/yGXcE0O/UYxj8oS2teFhbrk8HHo79tJzBIwVjzIYp3 4YJXcmeaEVzxibVndyXp99lxYpxdIl0P/RlWuG/6pWm51Du5J3JWVnOhg2yuQiDFA2di GpyAn9/n/UJulPPDrUfgswr0bKPLdmstwRVt6Dk54U9vWCsSwp8TnjtdtIc1lNFDe8Ph BWS/KN9NWfZm1A1JlHnVNJ9ddtQP8iJIcti4Bc2ir7am7i/dq034v7d7N/6Ljo1CSXRQ /S/Qu8HjWbHBweS0xPWl4hHmw0FFyie8alguXkYpBp1sAsFD06CHSlMHBmj8hGKFCAdn 0htw== X-Gm-Message-State: AOJu0Yxj8hPDRbBldrN8WgHVp6qNxMl6YjV17ZXkGDOKKRn8/GW/lQnr 0LizTMJEnCA2oGkPhm4T6cbq8FdE/62YDliL12RXUxMlajrxt4VS X-Received: by 2002:adf:cd0d:0:b0:337:51c6:8f09 with SMTP id w13-20020adfcd0d000000b0033751c68f09mr734147wrm.109.1705770036119; Sat, 20 Jan 2024 09:00:36 -0800 (PST) Received: from Ansuel-xps. (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.gmail.com with ESMTPSA id x8-20020adfdd88000000b003392ae3aee8sm1567523wrl.97.2024.01.20.09.00.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 09:00:35 -0800 (PST) Message-ID: <65abfc33.df0a0220.65bf1.4e35@mx.google.com> X-Google-Original-Message-ID: Date: Sat, 20 Jan 2024 18:00:32 +0100 From: Christian Marangi To: Linus Walleij Cc: Russell King , Arnd Bergmann , Andrew Morton , Geert Uytterhoeven , "Kirill A. Shutemov" , Jonathan Corbet , Thomas Gleixner , Randy Dunlap , "Mike Rapoport (IBM)" , Eric DeVolder , Nathan Chancellor , "Russell King (Oracle)" , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , John Crispin Subject: Re: [PATCH 2/2] ARM: decompressor: add option to ignore MEM ATAGs References: <20240119201356.7903-1-ansuelsmth@gmail.com> <20240119201356.7903-3-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sat, Jan 20, 2024 at 12:52:33PM +0100, Linus Walleij wrote: > On Fri, Jan 19, 2024 at 9:14 PM Christian Marangi wrote: > > > +#if defined(CONFIG_ARM_ATAG_DTB_COMPAT_IGNORE_MEM) > > +#define do_ignore_mem 1 > > +#else > > +#define do_ignore_mem 0 > > +#endif > > Is there a reason why you can't just use: > > if (IS_ENABLED(CONFIG_ARM_ATAG_DTB_COMPAT_IGNORE_MEM)) > in the code? > Was following the pattern, yes I can totally do this change... Will send a v2 with this changed. Since the first patch has to be regression tested, is it ok to add the Tag in v2 or I should wait that to send v2? -- Ansuel