From patchwork Wed Feb 8 16:24:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9562757 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 00BD7601E5 for ; Wed, 8 Feb 2017 16:25:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D382A2852B for ; Wed, 8 Feb 2017 16:25:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C67D32852C; Wed, 8 Feb 2017 16:25:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56E5628528 for ; Wed, 8 Feb 2017 16:25:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932270AbdBHQZa (ORCPT ); Wed, 8 Feb 2017 11:25:30 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34392 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752563AbdBHQYb (ORCPT ); Wed, 8 Feb 2017 11:24:31 -0500 Received: by mail-pf0-f196.google.com with SMTP id y143so11993090pfb.1 for ; Wed, 08 Feb 2017 08:24:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vwxj0sMLOQcFzlC5Hmt64yc9xxoI7bZ7Xp10pHkVEw4=; b=I9WEfvU0Fc3gFiXAx9zh/p9up0IroY8nm3vM5by/8XdZ1ogP+PdtxrYVTMC2miMXwK bNvSf3vyVTjdBHaCifzI1NAZ8n+t3ZyBJI8iERVVTD7X8HNlxLoC8uEXklF52zq7c2oC oH8L+ucPvi/S26dgC1f5Dc4UyS1nXFUSbtoDPzGbhBtIzbHz9/Qu2a/fWaP7vLQrxVIV 7lHTZYv51WhLewEm4PUYTVWLRVgYH0rUfTt5HnaPlO/V5mNbYhVKUfDvLsQFE0qR2hVf KKmIhoVu6AiLIMsIhiSM13+nSg3577wgvy4oQMJdpQnFJ9yQKBiaNtljgCLf8/g51XjF 8uhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vwxj0sMLOQcFzlC5Hmt64yc9xxoI7bZ7Xp10pHkVEw4=; b=p8xYBV+vpKQ7KWMBZBah+ZPucMawI0pVsadIdw5o9/BbR6GgFC8r8tOfXOWg6aUXv6 MDn2cY/FjUAXDCM8l4Ju731+Z6o/DNem03ODaW1mqJ/syCbil8zinB6BoOFhoj97skN3 /edk//IDbiukDG1pnwbehdJF80ARK8H5asv6ZRA2lsy1XwzeoiE4eNKS1dsrBBHXgCRt DrEYfqHU1K6XeFePyqQn6Uy+PTWsKwT8Zk8Msk8WycbPmCYz5URVnjtd4qGqRylG6wyJ FPcZXjUNvCSLMz0M0Z9Orm+ZL1apfAAr3BNw2TCq9Kdyya5GyxVQ6s3FdfJQm3E60zAy tjtQ== X-Gm-Message-State: AIkVDXISTDG4MruRpaOMCn5mT4Qtx5tqL4pAJWoLEAZ8vPAvEQq3XnXpuVDcs/Rxl0U5WQ== X-Received: by 10.99.188.10 with SMTP id q10mr27861147pge.106.1486571070269; Wed, 08 Feb 2017 08:24:30 -0800 (PST) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id y23sm21600029pfi.66.2017.02.08.08.24.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Feb 2017 08:24:29 -0800 (PST) From: Wei Yongjun To: "James E . J . Bottomley" , "Martin K. Petersen" , Dan Williams , Jens Axboe Cc: Wei Yongjun , linux-scsi@vger.kernel.org Subject: [PATCH -next] scsi: sd: make sd_devt_release() static Date: Wed, 8 Feb 2017 16:24:24 +0000 Message-Id: <20170208162424.6279-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/scsi/sd.c:3087:6: warning: symbol 'sd_devt_release' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/scsi/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index cb6e68d..b9b32f58 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -3084,7 +3084,7 @@ struct sd_devt { struct disk_devt disk_devt; }; -void sd_devt_release(struct disk_devt *disk_devt) +static void sd_devt_release(struct disk_devt *disk_devt) { struct sd_devt *sd_devt = container_of(disk_devt, struct sd_devt, disk_devt);