From patchwork Fri Sep 4 14:10:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7123801 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 10FF2BEEC1 for ; Fri, 4 Sep 2015 14:10:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 968E620546 for ; Fri, 4 Sep 2015 14:10:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B2EF620504 for ; Fri, 4 Sep 2015 14:10:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759235AbbIDOKj (ORCPT ); Fri, 4 Sep 2015 10:10:39 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36397 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759229AbbIDOKi (ORCPT ); Fri, 4 Sep 2015 10:10:38 -0400 Received: by pacwi10 with SMTP id wi10so25633276pac.3; Fri, 04 Sep 2015 07:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=aMKwGbX+LbaW/i4OvICZ4ibWpFWDcBNlZ21TWK26GVQ=; b=q9CRejGjC+aANa4s8qdz10kGxbeCqFr5qmUZ7vX9VIUq0R9qY3mWCU2vbbgnV1rqFC 2Hgr6DNcnCjTQpP9tboIoDbx9zZvKqTC3fjdEyo4P51/G5jFyGWUJVBMzhuo9rf6dkzj vrTfrHWNT4r6Ktgsin/2dm41MAD/iJtUrljluwhcnmwlv5FH9LAWWNV/oM0DKzDAlPJ7 Z41FsLkpUPsTJVTED9KyTkpVy0aOUZ84WRJmWS3112scWBhIxXVO4o36L6XwNCCOvYtd GOgurdq807ZEGqbahOfVsf3vFvhj5TJWvSAj68egZJtuzLj+C5DjPvd8g/YjDJatVwpR tQjA== X-Received: by 10.66.161.137 with SMTP id xs9mr8906608pab.117.1441375837561; Fri, 04 Sep 2015 07:10:37 -0700 (PDT) Received: from localhost.localdomain ([122.175.59.239]) by smtp.gmail.com with ESMTPSA id yt2sm2689744pbb.84.2015.09.04.07.10.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Sep 2015 07:10:36 -0700 (PDT) From: Sudip Mukherjee To: "James E.J. Bottomley" Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Sudip Mukherjee Subject: [PATCH] scsi: sim710: fix build warning Date: Fri, 4 Sep 2015 19:40:29 +0530 Message-Id: <1441375829-6061-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We were getting build warning about: "Section mismatch in reference from the variable sim710_eisa_driver to the function .init.text:sim710_eisa_probe() The variable sim710_eisa_driver references the function __init sim710_eisa_probe()" sim710_eisa_probe() was having __init but that was being referenced from sim710_eisa_driver. Signed-off-by: Sudip Mukherjee --- drivers/scsi/sim710.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/sim710.c b/drivers/scsi/sim710.c index 3b3b56f..82ed998 100644 --- a/drivers/scsi/sim710.c +++ b/drivers/scsi/sim710.c @@ -176,8 +176,7 @@ static struct eisa_device_id sim710_eisa_ids[] = { }; MODULE_DEVICE_TABLE(eisa, sim710_eisa_ids); -static __init int -sim710_eisa_probe(struct device *dev) +static int sim710_eisa_probe(struct device *dev) { struct eisa_device *edev = to_eisa_device(dev); unsigned long io_addr = edev->base_addr;