Re: [PATCH 1/5] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-08 Thread Raphaël Beamonte
2015-09-07 4:38 GMT-04:00 Jiri Olsa : > Adding part of the kernel's interface: > inline void * __must_check ERR_PTR(long error); > inline long __must_check PTR_ERR(__force const void *ptr); > inline bool __must_check IS_ERR(__force const void *ptr); > > it will be used to propagate error

Re: [PATCH 1/5] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-08 Thread Raphaël Beamonte
2015-09-08 17:06 GMT-04:00 Arnaldo Carvalho de Melo : > Em Tue, Sep 08, 2015 at 04:22:39PM -0400, Raphaël Beamonte escreveu: >> 2015-09-07 4:38 GMT-04:00 Jiri Olsa : >> > Adding part of the kernel's interface: >> > inline void * __must_check ERR_PTR(long error); >> > inline long __must_check

Re: [PATCH 1/5] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-08 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 08, 2015 at 04:22:39PM -0400, Raphaël Beamonte escreveu: > 2015-09-07 4:38 GMT-04:00 Jiri Olsa : > > Adding part of the kernel's interface: > > inline void * __must_check ERR_PTR(long error); > > inline long __must_check PTR_ERR(__force const void *ptr); > > inline bool __mus

Re: [PATCH 1/5] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-08 Thread Raphaël Beamonte
2015-09-08 16:22 GMT-04:00 Raphaël Beamonte : > Perhaps a dumb question, but it seems the code is exactly the same as > in linux/err.h besides the part of the comment you added. Why not > using that file directly in the other patches then? I meant include/linux/err.h, from git root -- To unsubscri

Re: [PATCH 1/5] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-08 Thread Raphaël Beamonte
2015-09-07 4:38 GMT-04:00 Jiri Olsa : > Adding part of the kernel's interface: > inline void * __must_check ERR_PTR(long error); > inline long __must_check PTR_ERR(__force const void *ptr); > inline bool __must_check IS_ERR(__force const void *ptr); > > it will be used to propagate error