From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 32DBC145B10 for ; Sat, 5 Oct 2024 17:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728148513; cv=none; b=pd3rtNemm1WNOGhaq2yWLYW9GErMD9Tgq+VYZH2ZGbQFb8Fg4w+MapbAptnVoZALFaX8ScIglY8L6UT3SZuuJ6Efxb9xnmRUzJ63h7r5b5QuToKvvq0PSMgC9dmeS8+jwVPGvZxiaYQRw1r3hEqM9YO21bBaUdsJ7R5K//3kn/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728148513; c=relaxed/simple; bh=0EKWa++LIGWPJOXg+W2i41EvTac5ZqFtx7xj65QJuQw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=suMwabQahP7MrEK7G3pqbUXdUxx8uMoynBvJJyWHTF/fOBtiSIiNyaLQIv1uxNFGgIbL4U/YnzREJ866uORjGdVqYbLMo2CXw7dlbkEPTli1oRSYbZ8kFj41qLDV4B01lN0+idZxmfWkC2DVOudjZWgzqxGztj+td/TKDQ9CAWE= 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.180 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-f180.google.com with SMTP id d9443c01a7336-20b58f2e1f4so21445835ad.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=dAycf8O1hrWnvLnvBE+72aFn8608nmWdMDa1NyvyWDCO1woQKfLjfDb8L2sLI3PNA3 eN+lU1I8wN6Z8Ru0EbDFJT7pcWw/FiHHLtaZ+VtU/+/P2BqEl4QQheiDVXJOTX09SS5h kNkfY3Y22iql1AbZ7riccXcNuMGMiaid2jVbmqYw87FeyQ5H2v9GDCHAqLGZNi3kNl5g HC2/X5OKJOP2fd+TF9BuXKuQhCi6fVlnyNNSDH+mxdWVsk+4gzOWi0jZlZmI6qk+rtTs BdU/Dxw1A8K8AySmJfcpze147Jm82V2cy+gA57H8PbnPH1p2rIeMZKIR3HvU3po/OuQP UAPw== X-Forwarded-Encrypted: i=1; AJvYcCV42l7j/8SwV6Jf76f7mlF7Iwp4YyqOKwKNaDv8dFjUT1e0gVoZq8F9yhkzZyY7cA6nMYJbn3vhrmwy16Y=@vger.kernel.org X-Gm-Message-State: AOJu0YwRhS8RI8sXKjVlcP0J4QYS6YVnMbEo4fWybeaHsdy8Q06vhXw2 DGrhCh8Oy4NX4C5SZARXEqbgG6pJnrj76nqnvVvgtDwRPHS8cGmo7RUi7uYiPZA= 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-kernel@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~