From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Date: Fri, 12 Apr 2019 11:45:19 +0200 Subject: [LTP] [RFC PATCH 2/3] Add more missing and includes In-Reply-To: <806382ed-953c-f5f4-4629-15c5093b240f@xiaopeng.com> References: <20190411233115.32744-1-pvorel@suse.cz> <20190411233115.32744-3-pvorel@suse.cz> <20190412084932.GA28648@haruka.lan> <20190412084853.GB19937@x230> <806382ed-953c-f5f4-4629-15c5093b240f@xiaopeng.com> Message-ID: <20190412094518.GC28648@haruka.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > >>>> diff --git a/include/tst_numa.h b/include/tst_numa.h > >>>> index a4cd1be37..4f9806602 100644 > >>>> --- a/include/tst_numa.h > >>>> +++ b/include/tst_numa.h > >>>> @@ -7,6 +7,8 @@ > >>>> #ifndef TST_NUMA_H__ > >>>> #define TST_NUMA_H__ > >>>> +#include > >>>> + > >>>> /** > >>>> * Numa nodemap. > >>>> */ > >>>> diff --git a/lib/tst_af_alg.c b/lib/tst_af_alg.c > >>>> index 97be548b4..edf8c0140 100644 > >>>> --- a/lib/tst_af_alg.c > >>>> +++ b/lib/tst_af_alg.c > >>>> @@ -5,6 +5,7 @@ > >>>> #include > >>>> #include > >>>> +#include > >>> Why not simply include ?? in tst_test.h. I did it in my another > >>> review thread. This should be OK for most of cases. > >> Sounds reasonable to me. > > Agree, that'd be the easiest way :). NOTE: not sure what requires that, but > > sometimes is needed as well. > > As I know, calls likes str*, mem*, such as, strncpy, memset, requires > ,?? but bzero requires . Fortunately are > not used as often as . See my another review thread. :-) bzero() has been deprecated for quite some time, ideally we should replace it with memset(). -- Cyril Hrubis chrubis@suse.cz