From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Mon, 20 Jan 2020 14:04:49 +0100 Subject: [LTP] [PATCH 2/3] tst_device.h: Use lapi/syscalls.h instead of In-Reply-To: <0409fc38-c432-e2f1-309e-f506826416d3@suse.cz> References: <20200117113715.22786-1-pvorel@suse.cz> <20200117113715.22786-3-pvorel@suse.cz> <20200120103108.GA15405@dell5510> <558281761.2778139.1579517819187.JavaMail.zimbra@redhat.com> <20200120120309.GA24136@dell5510> <0409fc38-c432-e2f1-309e-f506826416d3@suse.cz> Message-ID: <20200120130449.GA615@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi, > On 1/20/20 1:03 PM, Petr Vorel wrote: > > But none of lapi/syscalls.h use is in the API headers (only in API C and tests) > And you could avoid #including lapi/syscalls.h in API headers by simply > moving the implementation of tst_dev_sync() to lib/tst_device.c. > Why do you guys use static inline functions so much anyway? There are no > technical reasons to do that except for default main(). +1. I still think it's not good to include lapi/syscalls.h even it does not break anything. I'll send a patch which uses tst_syscall in socketcall01.c and second commit which moves tst_dev_sync() to lib/tst_device.c. It's up to you if agree on second one. Kind regards, Petr