Skip to content

Commit ccd7728

Browse files
sndk: checkpatch.pl fixes for sndk plugin c and h files
Fixes to eliminate the checkpatch.pl script build failures. Signed-off-by: jeff-lien-wdc <[email protected]>
1 parent 0d43b35 commit ccd7728

4 files changed

Lines changed: 8 additions & 50 deletions

File tree

plugins/sandisk/sandisk-nvme.c

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22
/*
33
* Copyright (c) 2025 Sandisk Corporation or its affiliates.
44
*
5-
* This program is free software; you can redistribute it and/or
6-
* modify it under the terms of the GNU General Public License
7-
* as published by the Free Software Foundation; either version 2
8-
* of the License, or (at your option) any later version.
9-
*
10-
* This program is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
* GNU General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU General Public License
16-
* along with this program; if not, write to the Free Software
17-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18-
* MA 02110-1301, USA.
19-
*
205
* Author: Jeff Lien <[email protected]>
216
* Brandon Paupore <[email protected]>
227
*/
@@ -190,9 +175,11 @@ static int sndk_capabilities(int argc, char **argv,
190175
printf("drive-resize : %s\n",
191176
capabilities & SNDK_DRIVE_CAP_RESIZE ? "Supported" : "Not Supported");
192177
printf("vs-fw-activate-history : %s\n",
193-
capabilities & SNDK_DRIVE_CAP_FW_ACTIVATE_HISTORY_MASK ? "Supported" : "Not Supported");
178+
capabilities & SNDK_DRIVE_CAP_FW_ACTIVATE_HISTORY_MASK ? "Supported" :
179+
"Not Supported");
194180
printf("clear-fw-activate-history : %s\n",
195-
capabilities & SNDK_DRIVE_CAP_CLEAR_FW_ACT_HISTORY_MASK ? "Supported" : "Not Supported");
181+
capabilities & SNDK_DRIVE_CAP_CLEAR_FW_ACT_HISTORY_MASK ? "Supported" :
182+
"Not Supported");
196183
printf("vs-telemetry-controller-option: %s\n",
197184
capabilities & SNDK_DRIVE_CAP_DISABLE_CTLR_TELE_LOG ? "Supported" : "Not Supported");
198185
printf("vs-error-reason-identifier : %s\n",
@@ -218,7 +205,8 @@ static int sndk_capabilities(int argc, char **argv,
218205
printf("get-latency-monitor-log : %s\n",
219206
capabilities & SNDK_DRIVE_CAP_C3_LOG_PAGE ? "Supported" : "Not Supported");
220207
printf("cloud-boot-SSD-version : %s\n",
221-
capabilities & SNDK_DRIVE_CAP_CLOUD_BOOT_SSD_VERSION ? "Supported" : "Not Supported");
208+
capabilities & SNDK_DRIVE_CAP_CLOUD_BOOT_SSD_VERSION ? "Supported" :
209+
"Not Supported");
222210
printf("vs-cloud-log : %s\n",
223211
capabilities & SNDK_DRIVE_CAP_CLOUD_LOG_PAGE ? "Supported" : "Not Supported");
224212
printf("vs-hw-rev-log : %s\n",

plugins/sandisk/sandisk-nvme.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// SPDX-License-Identifier: GPL-2.0-or-later
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
22
#undef CMD_INC_FILE
3-
#define CMD_INC_FILE plugins/sandisk/sandisk-nvme
3+
#define CMD_INC_FILE (plugins/sandisk/sandisk-nvme)
44

55
#if !defined(SANDISK_NVME) || defined(CMD_HEADER_MULTI_READ)
66
#define SANDISK_NVME

plugins/sandisk/sandisk-utils.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22
/*
33
* Copyright (c) 2025 Sandisk Corporation or its affiliates.
44
*
5-
* This program is free software; you can redistribute it and/or
6-
* modify it under the terms of the GNU General Public License
7-
* as published by the Free Software Foundation; either version 2
8-
* of the License, or (at your option) any later version.
9-
*
10-
* This program is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
* GNU General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU General Public License
16-
* along with this program; if not, write to the Free Software
17-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18-
* MA 02110-1301, USA.
19-
*
205
* Author: Jeff Lien <[email protected]>
216
* Brandon Paupore <[email protected]>
227
*/

plugins/wdc/wdc-nvme-cmds.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22
/*
33
* Copyright (c) 2025 Western Digital Corporation or its affiliates.
44
*
5-
* This program is free software; you can redistribute it and/or
6-
* modify it under the terms of the GNU General Public License
7-
* as published by the Free Software Foundation; either version 2
8-
* of the License, or (at your option) any later version.
9-
*
10-
* This program is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
* GNU General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU General Public License
16-
* along with this program; if not, write to the Free Software
17-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18-
* MA 02110-1301, USA.
19-
*
205
* Author: Jeff Lien <[email protected]>,
216
*/
227

0 commit comments

Comments
 (0)