From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 378281531F9 for ; Sat, 5 Oct 2024 17:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728148512; cv=none; b=GMP/AD4oaELgJOfpIQGAzKfgXDcZE1NdfuqARvBQUpE//6AWaoNnKy6+moU7kwNNR15YJwIDKRtxIsUhYdm9YXYzfMdeIM7gjF1RDy+8c3dYhXw0fCncFqYIVbJ9TDUOp93bnksn98mmGZbnnBcmu+ZQMyFf5rfmfi8I1RSJFgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728148512; c=relaxed/simple; bh=0EKWa++LIGWPJOXg+W2i41EvTac5ZqFtx7xj65QJuQw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tP9F8l1ChxBgRB9B/L5BKs0nkO92DaizIvzASNK8mn9yDtKFMDWr2s+iXB18P0FccUR/rSssC04ZkdwQB7DAPuw+HaDUbxg9U5gnIn1gRQWMNd/WI1sVyb7AZrnYr+QGhW5PoBGIhhYQImF5wsiWoj3ptl3QWTy+CkNPqsX56Q8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uKE1gLyu; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uKE1gLyu" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-20b58f2e1f4so21445875ad.2 for ; Sat, 05 Oct 2024 10:15:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728148510; x=1728753310; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=lsW7EQNzqFODn0fjV/O1dRd6PWZq45kEsuDrh2KXW2Y=; b=uKE1gLyuJHXRd0uN3cS3nHcGiW+jAoG+QOm8dF/GfSapC41fmEzhP2mWipbTsYvdZT MC689PFD6NG7ziT/WKSGRDilrvaM6BR/KlbM9YgBILl/z9+lQNJ+8iwzJ3huso7fNziU fY2IggVQt4LT/KTeq1UaGkwj0LixMEsE44cL8K2MmAcI+D1N32n6/VjFIJMPW2Xb6Cyi q/jbytXepcHVMNfDek6GRAtMem9X+T/EwxGJ6FIM9V2p0rk1JxOvkVZj+nJ0ZJgW4QLc H0jSOGYgoz/KeV2mFzvn7pgTbFlu+OI/jvkoPBy4V/WXA+Zxkj6cqFWrD6YjLe8LyS+h JW3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728148510; x=1728753310; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lsW7EQNzqFODn0fjV/O1dRd6PWZq45kEsuDrh2KXW2Y=; b=UTSqCs81BOGXhg+uQl/xYnz27cJOD7aw1onirlhl4gDIbXeFgmhhtfIY3FptPH3N1+ y7LP43EM7rr5AA4p1ndm98tBMII9AD8D+8z0VdiyToPionUl9KgZES3hWxTSxTx70E4v fMbtUT4CBOWLw4c4PWaYB1iWgrtcTDu46RbNItt1yA1qVcmfG9VOo4do34BLFkZsv0gT k6svleix/Uf+IRfloidXMcg0kBBpLRIB1Ayq5eJeiYg7vzWxpY9w71qQTxHpsY1bBL3F zQj3HEyqrEUqep04Fmqei30E+6WMoUSzWKZ+69WEWSej0EcKwswZLILG7tgNgDxLaMFM bxuw== X-Forwarded-Encrypted: i=1; AJvYcCVnO3FmC0T+eMr46kR3FzjCvVVPqyUGnNN3RQcTgitRqbdHQhg1i8ToAwZWbWZ3QL94aVXzb3YYiPqR@vger.kernel.org X-Gm-Message-State: AOJu0YxYz9XF+kEYsEeLd0YmJKTTbpF636FBPOWWPXGEeXAGJE/4oJX8 +2QNKS9Q0ih7vI3gaXt2z71R3Ke6tCc/pIdo1ijctoVJz2n4OoXdrVU0maixjTk= X-Google-Smtp-Source: AGHT+IENbFDG/A+fVoOl/3+aASUI1BapHoAWqdH3kxJgz5oqEs9gbrypUJkbtSsFqXqIWpDd5XosEA== X-Received: by 2002:a17:902:fc46:b0:20b:8bd0:7387 with SMTP id d9443c01a7336-20bff1ca475mr95440335ad.52.1728148510524; Sat, 05 Oct 2024 10:15:10 -0700 (PDT) Received: from [192.168.0.4] (174-21-81-121.tukw.qwest.net. [174.21.81.121]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c139317desm15149965ad.125.2024.10.05.10.15.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Oct 2024 10:15:10 -0700 (PDT) Message-ID: <99346751-30b3-4245-974b-94be618cf5bd@linaro.org> Date: Sat, 5 Oct 2024 10:15:06 -0700 Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/5] asm-generic: use asm-generic/mman-common.h on parisc and alpha To: Arnd Bergmann , linux-mm@kvack.org Cc: Arnd Bergmann , "Jason A. Donenfeld" , Alexander Viro , Alexandre Torgue , Andreas Larsson , Andrew Morton , Ard Biesheuvel , Christian Brauner , Christoph Hellwig , Christophe Leroy , Damien Le Moal , David Hildenbrand , Greg Ungerer , Helge Deller , Kees Cook , "Liam R . Howlett" , Lorenzo Stoakes , Matt Turner , Max Filippov , Michael Ellerman , Michal Hocko , Nicholas Piggin , Thomas Bogendoerfer , Vladimir Murzin , Vlastimil Babka , linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org References: <20240925210615.2572360-1-arnd@kernel.org> <20240925210615.2572360-5-arnd@kernel.org> Content-Language: en-US From: Richard Henderson In-Reply-To: <20240925210615.2572360-5-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/25/24 14:06, Arnd Bergmann wrote: > From: Arnd Bergmann > > These two architectures each have their own set of MAP_* flags, like > powerpc, mips and others do. In addition, the msync() flags are also > different, here both define the same flags but in a different order. > Finally, alpha also has a custom MADV_DONTNEED flag for madvise. > > Make the generic MADV_DONTNEED and MS_* definitions conditional on > them already being defined and then include the common header > header from both architectures, to remove the bulk of the contents. > > Signed-off-by: Arnd Bergmann > --- > arch/alpha/include/uapi/asm/mman.h | 68 +++----------------------- > arch/parisc/include/uapi/asm/mman.h | 66 +------------------------ > include/uapi/asm-generic/mman-common.h | 5 ++ > 3 files changed, 13 insertions(+), 126 deletions(-) Reviewed-by: Richard Henderson r~