Skip to content

Commit 14681ed

Browse files
committed
drop unused CAN headers and update the ISOTP header
1 parent 5a601e5 commit 14681ed

File tree

3 files changed

+39
-244
lines changed

3 files changed

+39
-244
lines changed

core/src/include/linux/can/gw.h

Lines changed: 0 additions & 222 deletions
This file was deleted.

core/src/include/linux/can/isotp.h

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
1-
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
1+
/* SPDX-License-Identifier: ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-3-Clause) */
22
/*
3-
* socketcan/can/isotp.h
3+
* linux/can/isotp.h
44
*
5-
* Definitions for isotp CAN sockets
5+
* Definitions for isotp CAN sockets (ISO 15765-2:2016)
66
*
7-
* Author: Oliver Hartkopp <oliver.hartkopp@volkswagen.de>
8-
* Copyright (c) 2008 Volkswagen Group Electronic Research
7+
* Copyright (c) 2020 Volkswagen Group Electronic Research
98
* All rights reserved.
109
*
11-
* Send feedback to <socketcan-users@lists.berlios.de>
10+
* Redistribution and use in source and binary forms, with or without
11+
* modification, are permitted provided that the following conditions
12+
* are met:
13+
* 1. Redistributions of source code must retain the above copyright
14+
* notice, this list of conditions and the following disclaimer.
15+
* 2. Redistributions in binary form must reproduce the above copyright
16+
* notice, this list of conditions and the following disclaimer in the
17+
* documentation and/or other materials provided with the distribution.
18+
* 3. Neither the name of Volkswagen nor the names of its contributors
19+
* may be used to endorse or promote products derived from this software
20+
* without specific prior written permission.
1221
*
22+
* Alternatively, provided that this notice is retained in full, this
23+
* software may be distributed under the terms of the GNU General
24+
* Public License ("GPL") version 2, in which case the provisions of the
25+
* GPL apply INSTEAD OF those given above.
26+
*
27+
* The provided data structures and external interfaces from this code
28+
* are not restricted to be used by modules with a GPL compatible license.
29+
*
30+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
38+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
41+
* DAMAGE.
1342
*/
1443

15-
#ifndef CAN_ISOTP_H
16-
#define CAN_ISOTP_H
44+
#ifndef _UAPI_CAN_ISOTP_H
45+
#define _UAPI_CAN_ISOTP_H
1746

47+
#include <linux/types.h>
1848
#include <linux/can.h>
1949

2050
#define SOL_CAN_ISOTP (SOL_CAN_BASE + CAN_ISOTP)
@@ -132,4 +162,4 @@ struct can_isotp_ll_options {
132162
*
133163
*/
134164

135-
#endif
165+
#endif /* !_UAPI_CAN_ISOTP_H */

core/src/include/linux/can/vxcan.h

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)