From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933695AbbI3L2Z (ORCPT ); Wed, 30 Sep 2015 07:28:25 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:54504 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933330AbbI3L1S (ORCPT ); Wed, 30 Sep 2015 07:27:18 -0400 From: Arnd Bergmann To: netdev@vger.kernel.org Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, "David S. Miller" , Arnd Bergmann , Chas Williams <3chas3@gmail.com>, linux-atm-general@lists.sourceforge.net Subject: [PATCH 07/12] atm: hide 'struct zatm_t_hist' Date: Wed, 30 Sep 2015 13:26:37 +0200 Message-Id: <1443612402-3000775-8-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.1.0.rc2 In-Reply-To: <1443612402-3000775-1-git-send-email-arnd@arndb.de> References: <1443612402-3000775-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:rpAxUaJi+SFs9yZsrpiByHS8nMaeSioFKrfgcvzVGGxeXM6U/vQ /XRkeTiYPZvwS/vtaeudESpNyNo6B0HPyFGFejAqtSLEEf9oVLUrU07eJ7fuHmVFFUfgkFH 1QsaHUCdV4h5Ya2xSDjiw3Q+M/dMx+XrmvCz1I9lLNI1DbKFeLH4fUfh5Y0T72SmSFc4X8U xWhcC9wDrn6rZYsF0jn4Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:/oxebGX6RU8=:emvbiBwqyKepV8p4wdhCW3 sj9W/N4nisQHmPXGs1upf++KDpGOZZkQcIHbJNQm3hSn6WW4eY9EpYRWeWfCetbtWxdNbIoNI YqawlPVtrV8nGDcnphUEQP7pa7G/h/A1ovilyT/o5ali0sM3/jGQ2Q2KlSPeebWhKw80Auxxo DVBhdPt+5TGjPC2mYOUuQivGFmzQDQrF3vgw+WWaGyLX7J4cVciTrQBvy+K2zOnf0qbZQDN2y z9jPfz5/5ol44XXfTNRns0guEMzCUkqA7o5kQhDH6vZzbHmuYi2dgF+2H47i8Bf3+36WxPVFQ K4AcX1Lu85LFZgiVAHoNxWuhQah3TIEnEaiRxYw9qZDv5dNGHbuSytuIYVXH57XcZZnX05dvL qF8w5OXaVy7gNbLZCxPa/HNx5t4PmASyXqQ0u/uK/wxHSLTTI8ivnuUwzJV8tEbVVGM5USehc Q3HDHruPI/gkO7z6yjm6gfJxttQibMZ6NCHuh/LEyQ/lBK+ZelB3NhjKMoRnisjm46A4xZKZH /krZGT/zBn/Engo92PJ1rEtm5r+jVaz4Cl6la7q0epLIA/GlmlBEid7O0I9EZeTFiTSQi0HVh C5ftCSl3nNwd6Rn9uLaCA/aAUmpbADliShf4Yvd3206Re7KAe4eMJA3YYxnrM426jgAHQNsOz wy80h4lixitWDYfln6i7tWZwOTRnWuLwkNLA2lM19HHSzUFEZL2k1ejGd1RoMaF/TjuQ= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The zatm_t_hist structure is not used anywhere in the kernel, but is exported to user space. As we are trying to eliminate uses of time_t in the kernel for y2038 compatibility, the current definition triggers checking tools because it contains 'struct timeval'. We can work around this by adding '#ifdef __KERNEL__'. I could not find out what the structure is actually used for, so this is the safe choice in case there is some user space tool that relies on the definition. If we are sure that nothing in user space relies on the structure, we can instead remove the definition completely. Signed-off-by: Arnd Bergmann Cc: Chas Williams <3chas3@gmail.com> Cc: linux-atm-general@lists.sourceforge.net --- include/uapi/linux/atm_zatm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/atm_zatm.h b/include/uapi/linux/atm_zatm.h index 10f0fa29454f..2908ea86e6f2 100644 --- a/include/uapi/linux/atm_zatm.h +++ b/include/uapi/linux/atm_zatm.h @@ -35,11 +35,12 @@ struct zatm_pool_req { struct zatm_pool_info info; /* actual information */ }; +#ifndef __KERNEL__ struct zatm_t_hist { struct timeval real; /* real (wall-clock) time */ struct timeval expected; /* expected real time */ }; - +#endif #define ZATM_OAM_POOL 0 /* free buffer pool for OAM cells */ #define ZATM_AAL0_POOL 1 /* free buffer pool for AAL0 cells */ -- 2.1.0.rc2