Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4037759imm; Mon, 14 May 2018 01:26:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrww/dI3dqegjTXVYotX5V5ntRt0yu/xH50yRAU1PdVSgjvnRwItxc8PWl+xqy39BEB1Fxy X-Received: by 2002:a63:4245:: with SMTP id p66-v6mr7753196pga.345.1526286381132; Mon, 14 May 2018 01:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526286381; cv=none; d=google.com; s=arc-20160816; b=Lu29FPwwgW08GMsXi2xRNaRTsOxR44yKH4I7JKgUV6x6zho5bFePV3+W+asFnqTchf 0xkniMUUKDl4+JuS2gGyCxXvZiNcfaHjQ1Pmo8gJUiOEMKW/DyyLZcUQxT46fr6bl4hu LSUYT25R5fq/5T8jf0ApahRx3Fn0wXiAL/c3K/uoKJgZomxIkotPfI0M32uwW0yOtFOy KYKPtqtzRi6H2HmFUkLByHMyxq3qaFr8Jsx6NdIaX+V4bPy+CfnYG8p3McOsiWBg/p/z YlNg8DbK3+AwdhSuJvvgK69Re9tFZfOY4rL+syQj3hIcgJuCfXymWLAetNMTCS67tb8n zgEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=nDE7OBjxqzlV9K/+YAs7edXSVFfnY5xVOqYK0+k6MF0=; b=cv+/E7KHjA7VqCm88d8ln/vfkjCfBwjHMxUKapVZarDWeJtH+6tV8kz8/5dUxEeqea CODqWpWa8k3pQPLucOxirShPh9MCq3LF4b9qwAF3wP0Miw/9O+pP49A+K1HQIfvTIMWL hg9h9w3GVR/FbgzyYitblaZKo0gDTvkPJAgjRhIzJ/qipTqEq6GokbeSgXqSaurvAIWZ jUh+/CfutEpMqm6oA+tkp03CJE8+8k0lO15audr15REYvlOMv0t+uzydIjnEcsOGt1uS W8j0X1TUcL0lConYeqcu7N5tgq5LtyUbi+uVHv5YHRDojMhXSwhZahIKy7Iy+k0rocNN kbCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14-v6si9078492plj.32.2018.05.14.01.26.06; Mon, 14 May 2018 01:26:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752160AbeENIZo (ORCPT + 99 others); Mon, 14 May 2018 04:25:44 -0400 Received: from verein.lst.de ([213.95.11.211]:35173 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751894AbeENIZm (ORCPT ); Mon, 14 May 2018 04:25:42 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id CCBE868D48; Mon, 14 May 2018 10:29:51 +0200 (CEST) Date: Mon, 14 May 2018 10:29:51 +0200 From: Christoph Hellwig To: Stephen Rothwell Cc: Jens Axboe , Linux-Next Mailing List , Linux Kernel Mailing List , Christoph Hellwig Subject: Re: linux-next: build warning after merge of the block tree Message-ID: <20180514082951.GA20978@lst.de> References: <20180514125139.459a058d@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180514125139.459a058d@canb.auug.org.au> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 14, 2018 at 12:51:39PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the block tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: The look entirely correct, but oddly enough my compiler did not bother to warn. Fix below: -- From 6610bd5bbbf05fa1d925b0601a09e84cada9e0a2 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 14 May 2018 10:24:34 +0200 Subject: memstick: remove unused variables Fixes: 7c2d748e8476 ("memstick: don't call blk_queue_bounce_limit") Reported-by: Stephen Rothwell Signed-off-by: Christoph Hellwig --- drivers/memstick/core/ms_block.c | 1 - drivers/memstick/core/mspro_block.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/memstick/core/ms_block.c b/drivers/memstick/core/ms_block.c index b2d025f42d14..a15181fa45f7 100644 --- a/drivers/memstick/core/ms_block.c +++ b/drivers/memstick/core/ms_block.c @@ -2094,7 +2094,6 @@ static const struct block_device_operations msb_bdops = { static int msb_init_disk(struct memstick_dev *card) { struct msb_data *msb = memstick_get_drvdata(card); - struct memstick_host *host = card->host; int rc; unsigned long capacity; diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c index a2fadc605750..5ee932631fae 100644 --- a/drivers/memstick/core/mspro_block.c +++ b/drivers/memstick/core/mspro_block.c @@ -1170,7 +1170,6 @@ static int mspro_block_init_card(struct memstick_dev *card) static int mspro_block_init_disk(struct memstick_dev *card) { struct mspro_block_data *msb = memstick_get_drvdata(card); - struct memstick_host *host = card->host; struct mspro_devinfo *dev_info = NULL; struct mspro_sys_info *sys_info = NULL; struct mspro_sys_attr *s_attr = NULL; -- 2.17.0