Re: WTF: patch "[PATCH] ACPI / dock: Actually define acpi_dock_init() as void" was seriously submitted to be applied to the 3.10-stable tree?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/12/2013 1:30 AM, gregkh@xxxxxxxxxxxxxxxxxxx wrote:
The patch below was submitted to be applied to the 3.10-stable tree.

I fail to see how this patch meets the stable kernel rules as found at
Documentation/stable_kernel_rules.txt.

I could be totally wrong, and if so, please respond to
<stable@xxxxxxxxxxxxxxx> and let me know why this patch should be
applied.  Otherwise, it is now dropped from my patch queues, never to be
seen again.

Well, you may not agree with that obviously, but I consider cases when the function header declared in a header file doesn't match the definition of that function as serious breakage. Normally, it would cause a build failure to happen and the fact that it incidentally doesn't cause it for reasons not entirely clear to me doesn't really matter.

Thanks,
Rafael


------------------ original commit in Linus's tree ------------------

 From 2ce65fe89153b6091393541de7e211d505436ff7 Mon Sep 17 00:00:00 2001
From: "Rafael J. Wysocki" <rafael.j.wysocki@xxxxxxxxx>
Date: Thu, 4 Jul 2013 13:25:04 +0200
Subject: [PATCH] ACPI / dock: Actually define acpi_dock_init() as void

Commit 94add0f (ACPI / dock: Initialize ACPI dock subsystem upfront)
changed the header of acpi_dock_init() in internal.h so that it is
supposed to be a void function now, but it forgot to update its
actual definition in dock.c according to which it still is supposed
to return int.

Although that didn't cause any visible breakage or even a compiler
warning to be thrown, which is odd enough, fix it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
Cc: 3.10+ <stable@xxxxxxxxxxxxxxx>

diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index 14de9f46..82656075 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -1064,10 +1064,10 @@ find_dock_and_bay(acpi_handle handle, u32 lvl, void *context, void **rv)
  	return AE_OK;
  }
-int __init acpi_dock_init(void)
+void __init acpi_dock_init(void)
  {
  	if (acpi_disabled)
-		return 0;
+		return;
/* look for dock stations and bays */
  	acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
@@ -1075,11 +1075,10 @@ int __init acpi_dock_init(void)
if (!dock_station_count) {
  		pr_info(PREFIX "No dock devices found.\n");
-		return 0;
+		return;
  	}
register_acpi_bus_notifier(&dock_acpi_notifier);
  	pr_info(PREFIX "%s: %d docks/bays found\n",
  		ACPI_DOCK_DRIVER_DESCRIPTION, dock_station_count);
-	return 0;
  }


---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
z siedziba w Gdansku
ul. Slowackiego 173
80-298 Gdansk

Sad Rejonowy Gdansk Polnoc w Gdansku, VII Wydzial Gospodarczy Krajowego Rejestru Sadowego, numer KRS 101882

NIP 957-07-52-316
Kapital zakladowy 200.000 zl

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]