From patchwork Sat Oct 21 16:50:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 116610 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2900801qgn; Sat, 21 Oct 2017 09:52:41 -0700 (PDT) X-Received: by 10.99.177.4 with SMTP id r4mr7489711pgf.391.1508604761566; Sat, 21 Oct 2017 09:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508604761; cv=none; d=google.com; s=arc-20160816; b=adVPdmeUgiQTc08U+3iIbfOGjzaDz0T8B9zb+RbNSZ7mfUcTU45Z4V18YdRA7SDoel ypyZ1yAX3CvSl91XvnOhNvE+DYCskthsVhURxYw5++HflGYhExOtpEeB+1OGVPZP3rsN aVK9HCVPjTGILbgoVuNOowXRCh4HZHlfzDd2pODiXDeCWVSigs7rzQs6RFnVuiJXXfso itma6/k3xed3vGpuhJbkAjVcy9vBprnhBYSJUIWDrkzD8PuYSSK2bwpx7By75VGKlwqG Wz9NbmBLn2HGrY/w/gC7u9W7ewZWn2X7Ld0LPhotyHZPc1Pd7RkUDtgXIONpSRzt9nQC u1Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=95OUpSVeaaJyLK2os9X3Jrvuqs5LqKFqRaDrksbMxCs=; b=ZHZUGBuKl7eCv7zGJN0VdmhGQZghcDKNsoa0GvGbtdgi7b4kfReUc8CSBlYkJQjMOR E8X+kuqLaL6O53GxgMoA0pawG6OoibVDRYiAx/Ul5545NY5a88f8qDQ2PI4/FVS0YBK6 VROsl/pO/g+l72RdbOyVD9qSVfDSNW4l/BKjfBKNr7bFtB6Kg5i+xuXqCmY5oVJvuRIH 3XN8c5NraYPbIzKAAnryOF6+qY3TD1OwuaGwF5lMwVV5i744gdcyeJB23YgU2A6ya99T wLZ4IZTUDKj1kvlGOXVbsCdQ13WaGIdAvFScdqLDmEKgitcgzeymnfWuppHT0x9USDHc ZllQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MOvGJtr9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si1955644plk.751.2017.10.21.09.52.41; Sat, 21 Oct 2017 09:52:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MOvGJtr9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932234AbdJUQwi (ORCPT + 27 others); Sat, 21 Oct 2017 12:52:38 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:55596 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932136AbdJUQwh (ORCPT ); Sat, 21 Oct 2017 12:52:37 -0400 Received: by mail-wm0-f67.google.com with SMTP id u138so2928661wmu.4 for ; Sat, 21 Oct 2017 09:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=95OUpSVeaaJyLK2os9X3Jrvuqs5LqKFqRaDrksbMxCs=; b=MOvGJtr9Ud+W851F4vaqGSnTNX199iFGefq4I1GLGmTZvTGVUNoXn/RiBfIVQMTb2Y k8UZ/w+be0HB+OxJw7A02yVbvXJM0YRP2mvmzdc1KkNSVrd0ouF3ooimWtkpINrOTAQ6 Ga6Vw3sr9kQ3V2QZZUMUMS65nsuejBxGUbmA4I4fW1Y/nYl03NWbQu6idZ1GkGWwH/Cp 0jEnWL4g/RO2MCaV77GYU8xQ1fFms2zVhcX03QNiohiIwyan8DsveL4mMrJLFdbncax8 jgnDiqzUddx4+mTGBl1OF3+2k3TBkEqmo/d828oZgA5kqGinpA+dLC3VOm7QWUfDThBp s5wA== 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; bh=95OUpSVeaaJyLK2os9X3Jrvuqs5LqKFqRaDrksbMxCs=; b=O5h1O30ZvO4qDFL5NvFH2Xz0t5JiOhQJ2tCYkdKlP4wRS/jbKOfugN8ji/o24vnjRb bKhnnX3wwwCpTQhyRO5fBWyn3OhlsodVFju8O3YG8L0Gx4o2jPN+SmYloCJ2jgLbXJfY vJ2gLtw3PtGecZGGJgCK8+7q/QUcvkK8hMJOtLVePcXHXNAlb9JVBM1iWBYKY8jPC4fc O65l5PU00Bss/90F+ijTygVhJqAh4wKdJSPF5BKE/IH/Ra1xm/DD/M2tG6eojuT1RXwp PKaXAXXkZ7Lbd6OYf4/ZKiR+O/cZKxNZTz9WVTDXHjGOCzDBieyTjiO9x6nPbc0Jco11 lu1Q== X-Gm-Message-State: AMCzsaXQb/t4xClnqmnJf6e8bvaClLuPFcmZl3mkQeOBwpNtEiGJwgpj Bkd35H0KEeHdwut5DvCrfvbFwzIk X-Google-Smtp-Source: ABhQp+TH9UZqxjo02mggVAqiveR5eHpPwi5RrzHb8pypXGlY3wJz7/pTA8L1ZlimZD31QpNYjpbd3Q== X-Received: by 10.28.14.195 with SMTP id 186mr1667260wmo.56.1508604756334; Sat, 21 Oct 2017 09:52:36 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id c37sm10716425wra.73.2017.10.21.09.52.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 21 Oct 2017 09:52:35 -0700 (PDT) From: Corentin Labbe To: hughd@google.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH] mm: shmem: Fix build warning Date: Sat, 21 Oct 2017 18:50:32 +0200 Message-Id: <20171021165032.20542-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fix the following build warning by simply removing the unused info variable. linux-next/mm/shmem.c:3205:27: warning: variable 'info' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- mm/shmem.c | 2 -- 1 file changed, 2 deletions(-) -- 2.13.6 diff --git a/mm/shmem.c b/mm/shmem.c index 9a981f063d5d..ffa5897b8a0c 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -3202,7 +3202,6 @@ static int shmem_symlink(struct inode *dir, struct dentry *dentry, const char *s int len; struct inode *inode; struct page *page; - struct shmem_inode_info *info; len = strlen(symname) + 1; if (len > PAGE_SIZE) @@ -3222,7 +3221,6 @@ static int shmem_symlink(struct inode *dir, struct dentry *dentry, const char *s error = 0; } - info = SHMEM_I(inode); inode->i_size = len-1; if (len <= SHORT_SYMLINK_LEN) { inode->i_link = kmemdup(symname, len, GFP_KERNEL);