Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753195AbaLTRf6 (ORCPT ); Sat, 20 Dec 2014 12:35:58 -0500 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:58123 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752448AbaLTRf4 (ORCPT ); Sat, 20 Dec 2014 12:35:56 -0500 Message-ID: <1419096953.2184.3.camel@HansenPartnership.com> Subject: Re: [PATCH] scsi: arm: cumana_1.c: Remove unused function From: James Bottomley To: Russell King - ARM Linux Cc: Jeremiah Mahler , Rickard Strandqvist , Finn Thain , Michael Schmitz , linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Sat, 20 Dec 2014 09:35:53 -0800 In-Reply-To: <20141220165809.GK11285@n2100.arm.linux.org.uk> References: <1419093375-8016-1-git-send-email-rickard_strandqvist@spectrumdigital.se> <20141220165045.GA5013@hudson.localdomain> <20141220165809.GK11285@n2100.arm.linux.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.7 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2014-12-20 at 16:58 +0000, Russell King - ARM Linux wrote: > On Sat, Dec 20, 2014 at 08:50:45AM -0800, Jeremiah Mahler wrote: > > On Sat, Dec 20, 2014 at 05:36:15PM +0100, Rickard Strandqvist wrote: > > > Remove the function cumanascsi_setup() that is not used anywhere. > > > > > > This was partially found by using a static code analysis program called cppcheck. > > > > > > Signed-off-by: Rickard Strandqvist > > > > You can blame Linus for this one :-) > > > > ~/linux-next$ git blame -L 38,40 drivers/scsi/arm/cumana_1.c > > ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 38) void > > cumanascsi_setup(char *str, int *ints) > > ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 39) { > > ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 40) } > > ~/linux-next$ > > Great, that gets me off the hook :) Well, no, it doesn't: 1da177e is the git tree root commit which was created by importing the existing bitkeeper version 2.6.12-rc2 into git. It means this code predates the git import. You might be able to chase it through the history tree if you want, but that only goes back as far as bitkeeper history. James -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/