Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932798AbdCIRLc (ORCPT ); Thu, 9 Mar 2017 12:11:32 -0500 Received: from mail-by2nam01on0084.outbound.protection.outlook.com ([104.47.34.84]:42995 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932284AbdCIRL1 (ORCPT ); Thu, 9 Mar 2017 12:11:27 -0500 Authentication-Results: spf=pass (sender IP is 204.128.141.23) smtp.mailfrom=infinera.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=infinera.com; From: Joakim Tjernlund To: "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" Subject: different xxx_bit() function prototypes in bitops for x86 vs generic Thread-Topic: different xxx_bit() function prototypes in bitops for x86 vs generic Thread-Index: AQHSmPgtsf6lXTtrA0aQWLx4eu3V8Q== Date: Thu, 9 Mar 2017 17:11:22 +0000 Message-ID: <1489079480.4533.12.camel@infinera.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.100.99.93] Content-Type: text/plain; charset="iso-8859-15" Content-ID: <666C272F352CBA4C80D30FA138FEB6F4@infinera.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:204.128.141.23;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(39410400002)(39450400003)(39830400002)(2980300002)(438002)(189002)(199003)(8936002)(3846002)(86362001)(102836003)(6116002)(8746002)(38730400002)(8676002)(5660300001)(2501003)(356003)(33646002)(36756003)(2906002)(189998001)(50986999)(2900100001)(50466002)(305945005)(47776003)(77096006)(7736002)(106466001)(106116001)(53416004)(54356999)(7636002)(103116003)(23756003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR10MB1323;H:owa.infinera.com;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2NAM03FT033;1:2g0eX/HIEQcIZ4Ddcr1dx8GYqcFx62CtRYNSyyDgsSkN+uTGCF9U1FaKNd5VeD2mGCB9hefVuESnbM/dIYzj6uJ7CNXNbI8iNtEnSUwh7C0f4jVmuxPQl3KKatnot+yz8P79ryuZwezu/KAeNcuMXeGJ0D3HXNXoDkDMyWYchG4lQUwWtxFAFLLkmNxEe20Pmkmx2wSGGpGEjfkZWOSpzffnM7uklRwQ9baF/9vyKS7wdX7lrbTTQeHwefVNbBwzmYKlBAxGAMb18Zv8nWSBx9aT6N1SVO+2T1uwUaW3jR2uOVXhJ9gBESrSU+C+1WkbgfJp29KWGASL1BeHd0ccOb6cSwVARTouqmT97eXfdoRqpYzSdEU4RI9F2XorLqgYpScf9i4iUIu3lI3T1YLe387o22DGQdrzKx/5e7aXbvg7EOclON7OPrIpwTaVY6rfCLwo2K52pYkKBaNGa6QswlyIoaLVDI/Xs8+k2uQEtjRREFem9G6I/YkDHQWdtpepj+1KHcaHMzA1u8hcrvAeQm/kOU4eLBGT0kjsUdSEBmk= X-MS-Office365-Filtering-Correlation-Id: 88def35d-5504-4f2b-8631-08d4670f5163 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002);SRVR:DM5PR10MB1323; X-Microsoft-Exchange-Diagnostics: 1;DM5PR10MB1323;3:19abweB5YurmZMKCiYJ8naPSBfNNDRLE5q+hlplgu0X6iVLY+SKdoM0WgejP8R0Kb3ba3CyVvEQ2mJu3FvTDzndmRSdTwJbJvLHuUWpfEw2SMGJMLk0wyLr7By5QtYINcDZ29bId73m5pI5T3vnRzP1O2Q/4cmLb1a/Tajd+IaGtuywLaIkG0MmQ4XNqqJaYwD8yD9dJ4/piX2c8tICLZJNbNuUofKUla424jwIvVEk+RqbHQtYjM6tzp91ZMigbUcRRfQuco3YkTHKEdGYDlb/mExOLH9IQyJ/RHSo5+dGW2OzSU33+SQ6hnTZqPSxP1muVZG/Thckn6EJl7CWOXGkElvDvkD4pCzy2n95jVE7hhL27dopJnsRj8Z3PTEePuVh8dMe8VHTY8To+pXbZaw==;25:JRRTVtj7Wg4q++OYwhwqw5OoopDtqkV4Wtqdp8Z5HTxC6crkpOqUcSeyZMGz5meHL78flxjZA6/tRX2WtGm2/MPee3c1M38q15xVf3K779QX0+3exbjyP7oZvYFu8s+31CxNCPpEJVE3rHcCWuEL60hhAJwCzRQg+QaxFoSeiVxXLABqGzpB2LVvPsw2NK1cEpKRBA/56ipRDDbV8ahYvPRZvCRgdbqSbB/oUrB7jzUE+54ute46rY5kbrrFZizAMRzeAcSiBNHpY29HZAKgDR7hLa8umriTZp/u1dhPXor+W+VLSXpm+GulOPIJIqMIKZTQfRoG7jaKv6bMlUPqaJq9XyT58W3EJrf/8phr3jbYc9bqInfssrfK+JY3lrklH2AVpjsnk1/X3yp4HIEACQvit0T/W1TVAXcXqXGj8n6DawBJ9EnAs/MAtmUsPMIq X-Microsoft-Exchange-Diagnostics: 1;DM5PR10MB1323;31:RjjVTUy5baTJWgTfxR325sO5dN8YRFiMLUqiosurO41PsLHUQd3TRoBVqvdW6lUZW3X7BaTX1Y/kLKSVjubuk+n2F3M4lrnhQEXsNfO5ezJyh7+v/V0rGKM9wynWVhaj3nVgyL5UNzHYKZMZkO1Ha/iGolp7dzgZpr3u7edZKYQOl7ZoJ7c2HTCuecE32m1ereEBvbfS8twLp7HTRaXgA29Ln+Mz/+saKyAmJLw0kmF9rvozXZV+D1J/9Xdj79CVrBBiy3Vb0Mlj6rvLyb1Geg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(13015025)(13017025)(8121501046)(5005006)(13018025)(13024025)(13023025)(10201501046)(3002001)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(20161123558025)(6072148);SRVR:DM5PR10MB1323;BCL:0;PCL:0;RULEID:;SRVR:DM5PR10MB1323; X-Microsoft-Exchange-Diagnostics: 1;DM5PR10MB1323;4:+J0vnlTuiZL9Ucf7rRO/8T8l6slvtpFZYCKcyGUrP9hRaoE59cWFOmER/5olOy3HCqc28R/qCC9SRV55Rja2kA8HspjS9jpjAgAazJRvDpFJ7SXqU/fEfTp50XZINVjPCo9GRx0SXSy/avAoT1vpPW0yzHTH06BYjodYeOm4ErFqLn0r8fEkNQg0VYvYfq6AU8cXyLPtSCpmUTt9Bj/tI5BPZinIAto6ZPqRalDrBg6a31b5j95/hWHYOxi1BXshiNeEEve705gp0MLTLjMJ9gujNH+kMrzZQxI/4ag2szgtShMOV2KvZ9IOGcEvMMqIwpEPevkm/7jbm3P+5DVPZemLYcktx4KpZZa1LJiyvyy+E7Iwvorg7bjpxllYOpxt5LLkJlyGMsrhpQ0B4yxjuOynfNZg8U2iicelnAktrzSXnik7Td6MR4km2AELWnA9UUVwCwek3uwQJBzwcrtyF0/uZOxLUAo60Q6oXYCerQE0Xc0fQDVwE0Vff2v55UcDi6dxGHGWTM3dxa+sNuZt4OWrXHmEuWWZ+yRzyCCEpEM0MVv+MOzciiywQJt1hIOkE+n0s9+/4NOKEoKabE810sVmXSsC2HW9W1nf1vSWfAxevn2lr/yDY3ZNjr557gZTth5vgWBOLthA/nHScn6bmrXIWjtnKGxsHudhKkX9+j0Lfg8O4fVIlejVy8ibvUKW X-Forefront-PRVS: 0241D5F98C X-Microsoft-Exchange-Diagnostics: 1;DM5PR10MB1323;23:u/bynN/Vv/SL52l0POc8YtWSnQP/MWn/Jp+ODKSZPuU9uNcahJ6zpOhZf+3Wc501/LfnLLOQ9MhtQA0t17a7g7Yy5fpGIu9FOHWis/X4WJeGST74aY+EuyYTwQNUBkD7yD6lqku5ThH4YnUWRyWza1gd3qFtlsCaPnvuKjPz+9epI7UbBq4QRAnEQCHwmHUHPeqZRkL/mq+Kj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7qhHPAqyld2/8wmI+8fMSAiokkmXCciTVK8mvXa48QiYlyJOk+AEnkIIcZYV/j0nk9w22njdsiiCDAHjcKyb391Q==;5:yQK/6gtC1a/7yyfc6pdlBsMEFi5u9eImeGal8UZNQFqzoOK7jlQxtrMaeEM4S2DBdjurKcfTE4Y08yA+eriiFYGY75LBkU05Xp2oxRuyDrr7jHzv5AeDJK0xSb9oYMPY5Tdel/YMPHuPOjMfVJIeQQ==;24:6jEUYPOnZKx94UuGMCeyHK3OwVwi437BzG2u3DCiTe/4L3DI6OB/Fhn7UYIBaCxnXgoucWQ0CygVsMKo5YejiWEpXYSlE2MhQx9+FdfR860= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR10MB1323;7:u89UCKwe62FcC9QcyjwUk0H335BXJ6+lzpVGB+UcB3FtmvDUqRHZX0Rs6g7xs13V8+r0ekYBLZd1PeEnKgOn3BzhZxDxRQeUusQZ+5DYHrpJo6yoG4bf1NUSfqEsY4u7pJM9P42qo6JeBelOEo89md23/aZ4vPr3LbpTgHZP8PGalDabuRzCwwwfL8EOIJqoqTlONMEqts4Rfp5iV4B3S45RipkFCcgYVfaQMMMT4NntAvbLIeFoCohYLaG2Y5PK7geNRmDmMNglYbW2soGxIqFLVBQ5mANYPIwf1vz8FhJBybVBx8u4NroWkcxfPB1noW1/Ep+kKrRkJ8gcdKqgyw== X-OriginatorOrg: infinera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2017 17:11:25.3104 (UTC) X-MS-Exchange-CrossTenant-Id: 285643de-5f5b-4b03-a153-0ae2dc8aaf77 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=285643de-5f5b-4b03-a153-0ae2dc8aaf77;Ip=[204.128.141.23];Helo=[owa.infinera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR10MB1323 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v29HBpnT005603 Content-Length: 458 Lines: 14 Building virtualbox external kernel modules warns about different types, example: include/asm-generic/bitops/le.h; set_bit_le(int nr, const void *addr) vs arch/x86/include/asm/bitops.h: set_bit(long nr, volatile unsigned long *addr) This difference is causes complaints, changing set_bit_le(int nr, const void *addr) to set_bit_le(int nr, const unsigned long *addr) makes the warnings go away for this function. Should not these two be the same?