From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Mon, 29 Jul 2019 16:47:18 +0200 Subject: [LTP] [PATCH 1/1] syscalls/ustat: Use __kernel_daddr_t instead of daddr_t In-Reply-To: <20190718082655.GA24449@rei.lan> References: <20190617213138.15896-1-petr.vorel@gmail.com> <20190717173456.GA5272@dell5510> <20190718082655.GA24449@rei.lan> Message-ID: <20190729144718.GB8824@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Cyril, > > > This fixes build for musl, which does not have nor > > > typedef daddr_t. Musl does not define these as ustat is deprecated > > > in favor of statfs() and daddr_t is ancient [1]. > > > Other libc also does not have (ustat support was removed > > > from glibc in 2.28), but they have daddr_t. > > > This brings dependency for ustat testing. > > > Typedef is needed as sparc and mips have __kernel_daddr_t long, > > > otherwise it's int. > > > [1] https://www.openwall.com/lists/musl/2019/06/10/1 > I'm always worried when we use types starting with double underscores > but let's apply this one, we can always revert it in a case that it > breaks build somewhere. Thanks, merged. BTW is also checked in m4/ltp-signalfd.m4 so there is duplicity in check, but I gave up cleanup it now. Kind regards, Petr