Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751432AbdFFMUQ (ORCPT ); Tue, 6 Jun 2017 08:20:16 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:32913 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305AbdFFMUP (ORCPT ); Tue, 6 Jun 2017 08:20:15 -0400 From: Corentin Labbe To: jeyu@redhat.com, rusty@rustcorp.com.au Cc: linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v2 0/2] suppress warning about unused nowarn variable Date: Tue, 6 Jun 2017 14:17:38 +0200 Message-Id: <20170606121740.350-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1056 Lines: 21 Hello This patch serie suppress the following warning: kernel/module.c: In function 'add_usage_links': kernel/module.c:1653:6: warning: variable 'nowarn' set but not used [-Wunused-but-set-variable] Changes since v1: - renamed out_unreg_usage_links to out_unreg_modinfo_attrs - added extra newline - added missing call to del_usage_link() in case of add_usage_link() error - added patch #1 Corentin Labbe (2): kernel/module.c: Invert add_usage_link and del_usage_link functions kernel/module.c: suppress warning about unused nowarn variable kernel/module.c | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) -- 2.13.0