From patchwork Mon Jan 9 11:29:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 9504405 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D377C6071A for ; Mon, 9 Jan 2017 11:31:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0FEF284AC for ; Mon, 9 Jan 2017 11:31:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C40BB284AE; Mon, 9 Jan 2017 11:31:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0918D284AC for ; Mon, 9 Jan 2017 11:31:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cQYAe-0002Jv-Ot; Mon, 09 Jan 2017 11:31:24 +0000 Received: from mail-co1nam03on0068.outbound.protection.outlook.com ([104.47.40.68] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQYAT-0001cg-N6 for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2017 11:31:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zG2ZzKk12oWx2a74TNmHJcmvAQNfz9FBjpxog85gVCU=; b=AoPS5sKAA3LTtFnH8nzgMC0z+oVz5lkN9cnRk8LSwWbOJMzO7za5dSShVx0aTJEe/zxdykgJEK9YBfD0hG9UeamoAytlqLJAnP8uOpUWj17ZE6o9EGYs7lj0hlqFCKRfVWiE0BneYDGRAtgU2h2gN1NkkQjNb9iiyWv8b6B/PtE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (103.78.20.242) by CY1PR07MB2245.namprd07.prod.outlook.com (10.164.112.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Mon, 9 Jan 2017 11:30:50 +0000 From: Yury Norov To: , , , "linux-arch @ vger . kernel . org Arnd Bergmann" , Catalin Marinas Subject: [PATCH 02/20] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option Date: Mon, 9 Jan 2017 16:59:39 +0530 Message-ID: <1483961397-8599-3-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483961397-8599-1-git-send-email-ynorov@caviumnetworks.com> References: <1483961397-8599-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [103.78.20.242] X-ClientProxiedBy: VI1PR07CA0082.eurprd07.prod.outlook.com (10.164.94.178) To CY1PR07MB2245.namprd07.prod.outlook.com (10.164.112.147) X-MS-Office365-Filtering-Correlation-Id: 75f4aa8e-b770-4d43-dc51-08d43882f78d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR07MB2245; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2245; 3:rPlFGH7ycYDpW1FRuOOtIRBVuQf7/ZzP5eT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CXqdpGReKco1LKjkBA= X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2245; 31:bEUtEGBBWVDRCh8BE/Ju6Ll8Z3iQ949V4y7vIVYdJqfjqplnUEUnCKh5NeDFnx+Kb6zdcc9Tsjg1zrEpPpKTSVp21uoo/Aq2FOINiR8AreJtjSGA1g6K3u0V8PUAwzTnndEP8vGJ1nDJ/maIO267nHAk3axJVHKDYsMpqsGComrdmotC+HgHGPFh5ZnQEHS1i1onuzm5zALNWekborCHfBn3AjI3toJLEZHt5k1Qf58pfIcaQFmL8KSLRl2qIMpw; 20:wtYBoNcKCM0Lmp+sys/FwBjnhumGF87bgnZ8arucetvKNhwHYRa2PwQANficSVmUoIn8XiHnLTjuB6MFyaFO4GtTUQaLBMIZ+ph4MJHxY1nup2DvsdZsY4IBrJMUutfZ6gFhMVWKxLpEX1yYXdlmMA2znwEnoSliRuFJxjWZ7d/SDe6jawYvAG+YHGaXFfg2yfG0PVu8pXZMSB8mnC6TAebnUfUvvZ6phYI+yqn3K9f4OdzW47i4Rnx5Bq2fpHyOUtkRnqnb8+W4QQFC6NjKTWKe6m8tbiCqPRQid7/+LNHkMSAmCrTx9F8fl2920c/Vfs678I+0KS5CFrwTn3KD+w9jd55uPLQU0nvKaRQnx7YGiZYhec6gw+FrX66G2sTnxHaTjtwkWLlFAh7jBm6cPzThBuHwqXcO6UHqIPFcQiRh9wXEM/o2DuSWeLnpA03Ih8NeBRbrpAQaYj5xErFcTgeQnDsjDHYCj9Rd09MM+1GvoTs+iTqPbRuHq2ePZTqeaValhgHCzrYxoAXOc8++v7F0zr8164OoyIfLsoTTfSny0ncxBF+nSHv155tI97hXUU4MH2ymjft+o73t381xf60NcLSpdgr9wvfiPWL/T2s= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(5213294742642); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:CY1PR07MB2245; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2245; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2245; 4:KpfpzLQDY0oB+jMbA7iz+hllSDvp3y2PGupNnqIwbflWmeiKuENS+AJuWHT01yKqu/R0vqiZg1xDOYSYu48wAFUTN01fN6dJlxh3uQIgJhikO7LF4XF3t0o0AQ3oZw1cOmIvRcRTkRyPfmssVZxW7pSkBj8RlSNxFN9IA92IVspWBWOGpgiwTNzHFZBqsyCrYBUI0H6UBEOf/NZ79LZhF+26Rii2GxEAxZGaALDKJlT00qys0VMjDdfDSoIo7e0zLX6z2jIfX7Sn/3AHN8Mw6/rboTcfVZvEiSByoZwZDzmGfOROnWkecGFimtIiHpPeaCiK7EHUBC+OeeUga2NBGmiGaSSb7MACUNifxGZBFANVWt7UVkjCzphv0e6DRL8ZNw8TUh5lW0YToxlt7g/GwCE0xlrSBMxYN0e8So0UmBok2twe+Ry0Q2IxfipSVBersVDQN9m6VytSSJpFtHTWhivjKvKOlRjMNzUiowigHJdEzNzeFFOtu2CzeVzIST5US3rEUaNSb0CTC2Td+9Uf7O/Gk2YdLhdWf9Fdk4xnTBkm5LfFl+ArQhsZHwjPvmOsbRAAD5cb++5WIA8ByhtfEhNpfhMX15JVjvmH7dcsAln8b6wdUOlsV4mf5qxc2lwR X-Forefront-PRVS: 0182DBBB05 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(199003)(189002)(6116002)(5660300001)(305945005)(2906002)(7736002)(66066001)(68736007)(2950100002)(47776003)(50986999)(101416001)(7416002)(6666003)(76176999)(33646002)(48376002)(36756003)(189998001)(50466002)(92566002)(97736004)(4326007)(76506005)(42186005)(54906002)(106356001)(5001770100001)(8676002)(38730400001)(6496003)(6486002)(2201001)(39060400001)(575784001)(5003940100001)(50226002)(105586002)(25786008)(3846002)(81166006)(81156014)(15760500002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2245; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2245; 23:XhJdHYM5Z4O6WjiV2iG21DuWo0v2AWjrJFH1CsY+q?= =?us-ascii?Q?g5To9h7FgpyEJx+yJnQY4HEULgzz5UMzkxWAhOU/I7E1N/QfEJUxvansQpat?= =?us-ascii?Q?UBQMZqtvBMzcOr1QAWkGnINvPUKDLfBiWhjy7iVProUtzuk2oOmK/23HsMKy?= =?us-ascii?Q?tsxQV7ALab0RC75u5MyjZWZRJk2hwyrNnQ9aQh18aEPaLUmpKyLNRsrxLMRo?= =?us-ascii?Q?LftDzzlr8k44S7hoZ5VWoihkQJIhk+A8GkZfbXWkaOkRYG/UYOVW1ngs+i09?= =?us-ascii?Q?iHVilfZXnXBEZsKkg7bHMOLnfBGn+biVHvbxr1CePnJTBsVgu+gyJhQK7ixn?= =?us-ascii?Q?yI8IBliGbVnMRt+A739hflZguHOso5b3UA0G1cRnza5bXDNvuD7V4iXadKu2?= =?us-ascii?Q?uKBIsQ6ZKHCCiF/bH75/pFSaUqgFDFZ71xKsyCP/KfBPLKrXp8tY70AZKKFo?= =?us-ascii?Q?tRiNfxBLfJBXj99JBPhR/+pbJAs1ofrmSMamW6ioB9NUGa32gUf9JxMVVvjJ?= =?us-ascii?Q?g4FB8oIhwPdMmpMEab15gdTL7XSuWXklvE74xZCL1FuOVwpGrEkISUfUCDSw?= =?us-ascii?Q?cPHyNfPwFeqq2Nmf7GrucZGIEYrdKOWOfy70w3Zbp0tdLzjZarB0K9VZZvUr?= =?us-ascii?Q?13yyjOJH0hE5nQVMHK2lSw3/k6HANSgzJkuJ0aFwEH/7i1LBE85ENPSgLY7P?= =?us-ascii?Q?BI4lILbG/zpb5M1dGmZ1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soCa2uY6ideoQ+56w2HaSx5mZtvaEQcjgroPxrs=; 5:4681T7rpd/8xRNkOBdN8xNIONShS+sI005rNQII18kDpHLeQvBI1CdpXK2U2vfJYC6fDtGTzQYqdJHcw6ZO7H7rk0pJKipqjZNPt8EgPIQm/ja9aIJtNH1Z2iOnuBUEcW/6gJQ9W/HwkdRSDCCb0IQ==; 24:9T51r+gvrsS8ts1wctmNtOVK9BNsDQ8X9661ZBYAEf668vRdlRwKQs0WTCmesty8J9Zz6oyXXk4KobOJlaUk3GP7tWdyNlSDrOI/yfvxmJU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2245; 7:B/7s15O4uqj/646w53DsdwEegu3f5+q2K7lvPziVbSS0cNIxPtJEJglekFpr2OObU3OuwAJuRaLJbZ19xiKMq+SJgkDZKfCSO82a5luri2y7xvI7/3C0Qti3E0sg/gSG8psRka+jeJON2iwuo6c+QHwP8tGL/C91ssHDS5ah/BR7EfolrYkYSRZyKacE7ZqHrD3dtczpYafemMNFsUkBq3SmZSzbk0oot2ilx1D/bkNUJakMX4R4FZLl0TC22IL6CP8URjH1YrKk1kR0APUL/crFOxmieADV4e82kgnSNBdlY0LdEomHn79bkskl6iHmvpHDEmhm1x9Ry9v7vt0XMDjCdYD6nhqVVOf3Zx5DayuNovd3Sw6zGZe0RIRLU+PLOTijhsDj8VGzm240/IzpuhAMwEzcHY/hy0L/ck0LWwqb5jCpnFE0UC0Gtp/sxkMKPl2sA3YiaCgWg0uoyUT2Mw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2017 11:30:50.6938 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2245 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170109_033113_962377_BB45654B X-CRM114-Status: GOOD ( 10.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Pinski , Heiko Carstens , Chris Metcalf , Yury Norov , philipp.tomsich@theobroma-systems.com, Joseph Myers , zhouchengming1@huawei.com, Steve Ellcey , Prasun.Kapoor@caviumnetworks.com, Andreas Schwab , agraf@suse.de, szabolcs.nagy@arm.com, geert@linux-m68k.org, Adam Borowski , manuel.montezelo@gmail.com, Chris Metcalf , Andrew Pinski , linyongting@huawei.com, klimov.linux@gmail.com, broonie@kernel.org, Bamvor Zhangjian , Maxim Kuvyrkov , Florian Weimer , Nathan_Lynch@mentor.com, Ramana Radhakrishnan , schwidefsky@de.ibm.com, davem@davemloft.net, christoph.muellner@theobroma-systems.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP All new 32-bit architectures should have 64-bit off_t type, but existing architectures has 32-bit ones. To handle it, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for non-64 bit architectures. All existing 32-bit architectures enable it explicitly here. New option affects force_o_largefile() behaviour. Namely, if off_t is 64-bits long, we have no reason to reject user to open big files. Note that even if architectures has only 64-bit off_t in the kernel (arc, c6x, h8300, hexagon, metag, nios2, openrisc, tile32 and unicore32), a libc may use 32-bit off_t, and therefore want to limit the file size to 4GB unless specified differently in the open flags. Signed-off-by: Yury Norov --- arch/Kconfig | 4 ++++ arch/arc/Kconfig | 1 + arch/arm/Kconfig | 1 + arch/blackfin/Kconfig | 1 + arch/cris/Kconfig | 1 + arch/frv/Kconfig | 1 + arch/h8300/Kconfig | 1 + arch/hexagon/Kconfig | 1 + arch/m32r/Kconfig | 1 + arch/m68k/Kconfig | 1 + arch/metag/Kconfig | 1 + arch/microblaze/Kconfig | 1 + arch/mips/Kconfig | 1 + arch/mn10300/Kconfig | 1 + arch/nios2/Kconfig | 1 + arch/openrisc/Kconfig | 1 + arch/parisc/Kconfig | 1 + arch/powerpc/Kconfig | 1 + arch/score/Kconfig | 1 + arch/sh/Kconfig | 1 + arch/sparc/Kconfig | 1 + arch/tile/Kconfig | 1 + arch/unicore32/Kconfig | 1 + arch/x86/Kconfig | 1 + arch/x86/um/Kconfig | 1 + arch/xtensa/Kconfig | 1 + include/linux/fcntl.h | 2 +- 27 files changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/Kconfig b/arch/Kconfig index 89e0b4f..051c21c 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -238,6 +238,10 @@ config ARCH_THREAD_STACK_ALLOCATOR config ARCH_WANTS_DYNAMIC_TASK_STRUCT bool +config ARCH_32BIT_OFF_T + bool + depends on !64BIT + config HAVE_REGS_AND_STACK_ACCESS_API bool help diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index c75d290..9b92f65 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -11,6 +11,7 @@ config ARC select ARC_TIMERS select ARCH_HAS_SG_CHAIN select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC + select ARCH_32BIT_OFF_T select BUILDTIME_EXTABLE_SORT select CLONE_BACKWARDS select COMMON_CLK diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 186c4c2..fcbd177 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1,6 +1,7 @@ config ARM bool default y + select ARCH_32BIT_OFF_T select ARCH_CLOCKSOURCE_DATA select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAS_ELF_RANDOMIZE diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index 3c1bd64..26418e7 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig @@ -12,6 +12,7 @@ config RWSEM_XCHGADD_ALGORITHM config BLACKFIN def_bool y + select ARCH_32BIT_OFF_T select HAVE_ARCH_KGDB select HAVE_ARCH_TRACEHOOK select HAVE_DYNAMIC_FTRACE diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig index 71b758d..8c059f0 100644 --- a/arch/cris/Kconfig +++ b/arch/cris/Kconfig @@ -50,6 +50,7 @@ config LOCKDEP_SUPPORT config CRIS bool default y + select ARCH_32BIT_OFF_T select HAVE_IDE select GENERIC_ATOMIC64 select HAVE_UID16 diff --git a/arch/frv/Kconfig b/arch/frv/Kconfig index eefd9a4..2f14904 100644 --- a/arch/frv/Kconfig +++ b/arch/frv/Kconfig @@ -1,6 +1,7 @@ config FRV bool default y + select ARCH_32BIT_OFF_T select HAVE_IDE select HAVE_ARCH_TRACEHOOK select HAVE_PERF_EVENTS diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig index 3ae8525..29bbcb1 100644 --- a/arch/h8300/Kconfig +++ b/arch/h8300/Kconfig @@ -1,5 +1,6 @@ config H8300 def_bool y + select ARCH_32BIT_OFF_T select GENERIC_ATOMIC64 select HAVE_UID16 select VIRT_TO_BUS diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig index 1941e4b..bbcea8c 100644 --- a/arch/hexagon/Kconfig +++ b/arch/hexagon/Kconfig @@ -3,6 +3,7 @@ comment "Linux Kernel Configuration for Hexagon" config HEXAGON def_bool y + select ARCH_32BIT_OFF_T select HAVE_OPROFILE # Other pending projects/to-do items. # select HAVE_REGS_AND_STACK_ACCESS_API diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig index d227a69..ff34dc5 100644 --- a/arch/m32r/Kconfig +++ b/arch/m32r/Kconfig @@ -1,6 +1,7 @@ config M32R bool default y + select ARCH_32BIT_OFF_T select HAVE_IDE select HAVE_OPROFILE select INIT_ALL_POSSIBLE diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index d140206..ed6f90c 100644 --- a/arch/m68k/Kconfig +++ b/arch/m68k/Kconfig @@ -1,6 +1,7 @@ config M68K bool default y + select ARCH_32BIT_OFF_T select ARCH_MIGHT_HAVE_PC_PARPORT if ISA select HAVE_IDE select HAVE_AOUT if MMU diff --git a/arch/metag/Kconfig b/arch/metag/Kconfig index 5b7a45d..c337192 100644 --- a/arch/metag/Kconfig +++ b/arch/metag/Kconfig @@ -1,5 +1,6 @@ config METAG def_bool y + select ARCH_32BIT_OFF_T select EMBEDDED select GENERIC_ATOMIC64 select GENERIC_CLOCKEVENTS diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig index 85885a5..643025c 100644 --- a/arch/microblaze/Kconfig +++ b/arch/microblaze/Kconfig @@ -1,5 +1,6 @@ config MICROBLAZE def_bool y + select ARCH_32BIT_OFF_T select ARCH_HAS_GCOV_PROFILE_ALL select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_WANT_IPC_PARSE_VERSION diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ffd2f67..1b971ac 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1,6 +1,7 @@ config MIPS bool default y + select ARCH_32BIT_OFF_T if !64BIT select ARCH_SUPPORTS_UPROBES select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO diff --git a/arch/mn10300/Kconfig b/arch/mn10300/Kconfig index 38e3494..75f226e 100644 --- a/arch/mn10300/Kconfig +++ b/arch/mn10300/Kconfig @@ -1,5 +1,6 @@ config MN10300 def_bool y + select ARCH_32BIT_OFF_T select HAVE_EXIT_THREAD select HAVE_OPROFILE select HAVE_UID16 diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index 51a56c8..f9273c9 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -1,5 +1,6 @@ config NIOS2 def_bool y + select ARCH_32BIT_OFF_T select CLKSRC_OF select GENERIC_ATOMIC64 select GENERIC_CLOCKEVENTS diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig index 8d22015..4641d67 100644 --- a/arch/openrisc/Kconfig +++ b/arch/openrisc/Kconfig @@ -5,6 +5,7 @@ config OPENRISC def_bool y + select ARCH_32BIT_OFF_T select OF select OF_EARLY_FLATTREE select IRQ_DOMAIN diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index 3a71f38..dc85602 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig @@ -1,5 +1,6 @@ config PARISC def_bool y + select ARCH_32BIT_OFF_T if !64BIT select ARCH_MIGHT_HAVE_PC_PARPORT select HAVE_IDE select HAVE_OPROFILE diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index a8ee573..0714461 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -80,6 +80,7 @@ config ARCH_HAS_DMA_SET_COHERENT_MASK config PPC bool default y + select ARCH_32BIT_OFF_T if PPC32 select BUILDTIME_EXTABLE_SORT select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO diff --git a/arch/score/Kconfig b/arch/score/Kconfig index 507d631..0a9484b 100644 --- a/arch/score/Kconfig +++ b/arch/score/Kconfig @@ -2,6 +2,7 @@ menu "Machine selection" config SCORE def_bool y + select ARCH_32BIT_OFF_T select GENERIC_IRQ_SHOW select GENERIC_IOMAP select GENERIC_ATOMIC64 diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index ee08695..1f99eb3 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -56,6 +56,7 @@ config SUPERH config SUPERH32 def_bool ARCH = "sh" + select ARCH_32BIT_OFF_T select HAVE_KPROBES select HAVE_KRETPROBES select HAVE_IOREMAP_PROT if MMU && !X2TLB diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index cf4034c..1ab0df5 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -47,6 +47,7 @@ config SPARC config SPARC32 def_bool !64BIT + select ARCH_32BIT_OFF_T select GENERIC_ATOMIC64 select CLZ_TAB select HAVE_UID16 diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig index 4583c03..845dcbd 100644 --- a/arch/tile/Kconfig +++ b/arch/tile/Kconfig @@ -3,6 +3,7 @@ config TILE def_bool y + select ARCH_32BIT_OFF_T if !64BIT select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAVE_NMI_SAFE_CMPXCHG select ARCH_WANT_FRAME_POINTERS diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig index 0a3bfd1..9629fd8 100644 --- a/arch/unicore32/Kconfig +++ b/arch/unicore32/Kconfig @@ -1,5 +1,6 @@ config UNICORE32 def_bool y + select ARCH_32BIT_OFF_T select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index e487493..af5988c 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -43,6 +43,7 @@ config X86 select ACPI_LEGACY_TABLES_LOOKUP if ACPI select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI select ANON_INODES + select ARCH_32BIT_OFF_T if X86_32 select ARCH_CLOCKSOURCE_DATA select ARCH_DISCARD_MEMBLOCK select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI diff --git a/arch/x86/um/Kconfig b/arch/x86/um/Kconfig index ed56a1c..8436bcd 100644 --- a/arch/x86/um/Kconfig +++ b/arch/x86/um/Kconfig @@ -21,6 +21,7 @@ config 64BIT config X86_32 def_bool !64BIT select HAVE_AOUT + select ARCH_32BIT_OFF_T select ARCH_WANT_IPC_PARSE_VERSION select MODULES_USE_ELF_REL select CLONE_BACKWARDS diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index f4126cf..683f24e 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -3,6 +3,7 @@ config ZONE_DMA config XTENSA def_bool y + select ARCH_32BIT_OFF_T select ARCH_WANT_FRAME_POINTERS select ARCH_WANT_IPC_PARSE_VERSION select BUILDTIME_EXTABLE_SORT diff --git a/include/linux/fcntl.h b/include/linux/fcntl.h index 76ce329..46960a1 100644 --- a/include/linux/fcntl.h +++ b/include/linux/fcntl.h @@ -5,7 +5,7 @@ #ifndef force_o_largefile -#define force_o_largefile() (BITS_PER_LONG != 32) +#define force_o_largefile() (!IS_ENABLED(CONFIG_ARCH_32BIT_OFF_T)) #endif #if BITS_PER_LONG == 32