Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2093561imm; Thu, 23 Aug 2018 14:06:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZtEPLIEtSjBYuWOkomKdx1wPtl4Op9lnQMYDsV7zwkuS9kJHNkgWifsswfSCiY5LrJszzZ X-Received: by 2002:a62:c9:: with SMTP id 192-v6mr9500240pfa.99.1535058362194; Thu, 23 Aug 2018 14:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535058362; cv=none; d=google.com; s=arc-20160816; b=As+wDSrWu5ziPRUvnLAQpujgIwyY4HWZOPG1SdQp9rWCMEQt3Bj/btgCfZi4CL3X9z yNiaBQmq0ZyRaTV4TG0H0wAeRJ9OgweGklcJW+UgGeKyWrNtXnnRtKRlH6mq/3ax1fLU QFhggoos1e3LbOZz+ClAVdP4B+XsrDOHUEJ6C3qnQCLK/4wdprzCfcPcODRG9Q8dtEoT BQGIIbkhE+iilmGNO3mfs4GPfQ9pboCwA8q2t8EdkfoAeBcyxKwXfnaTW8U1RaHxxzW8 jmUFu7Sdwwf7cCXStunIXozjaKeH2L9xnc5JRu3VsgmQNWQZzJuHgMEszLUFqryBsrWo 2kgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=pfdqREGxlfQ9EDusj/LfznURAr93iF5MG1lG/FBlkHw=; b=d9pB1TlO/mrdasgQTLDUJ1nEFMcIiSvKpxK9KjpxIU86s7wW/LLzoBtGdTdIBV/Tnp lgH0k/LVrJ5v+Oy1wUyPgVrJ1IuNtOt5EaSnUmE3YhoRHjAhNMVWOztsYHk0z0sM4D0h wcT1E/MzxG9HiwMGqEYJZtjG/fFXS/qnHRgU1Fd56Cz8naDpEdI/geH+HQx2qHasv6kh IxGQ2wzekIheDW7xluJlu8IGFD5Optr9cPMaWEmUiJMu2x523Rrh+AXT3Ev8lLV9QbBf 51koJ9CCIWDxGOis1NRtbwcrgmjimBOi0PsWH3sAnHu3HDSQPcQ6ynvOo0K7rPflw9ko mX0A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18-v6si5043860plo.191.2018.08.23.14.05.45; Thu, 23 Aug 2018 14:06:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727599AbeHXAfi convert rfc822-to-8bit (ORCPT + 99 others); Thu, 23 Aug 2018 20:35:38 -0400 Received: from mga05.intel.com ([192.55.52.43]:34485 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727306AbeHXAfi (ORCPT ); Thu, 23 Aug 2018 20:35:38 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Aug 2018 14:04:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,279,1531810800"; d="scan'208";a="85898320" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by orsmga002.jf.intel.com with ESMTP; 23 Aug 2018 14:04:09 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.46]) by ORSMSX109.amr.corp.intel.com ([169.254.11.80]) with mapi id 14.03.0319.002; Thu, 23 Aug 2018 14:04:09 -0700 From: "Brown, Aaron F" To: Jia-Ju Bai , "Kirsher, Jeffrey T" CC: "netdev@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: RE: [Intel-wired-lan] [PATCH 1/2] net: intel: igb: Replace GFP_ATOMIC with GFP_KERNEL in igb_sw_init() Thread-Topic: [Intel-wired-lan] [PATCH 1/2] net: intel: igb: Replace GFP_ATOMIC with GFP_KERNEL in igb_sw_init() Thread-Index: AQHUJYCyDcK1KNmEWkCbAPhBTkPl1aTN/nMw Date: Thu, 23 Aug 2018 21:04:08 +0000 Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B9655021D@ORSMSX101.amr.corp.intel.com> References: <20180727080453.3198-1-baijiaju1990@gmail.com> In-Reply-To: <20180727080453.3198-1-baijiaju1990@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On > Behalf Of Jia-Ju Bai > Sent: Friday, July 27, 2018 1:05 AM > To: Kirsher, Jeffrey T > Cc: netdev@vger.kernel.org; Jia-Ju Bai ; intel- > wired-lan@lists.osuosl.org; linux-kernel@vger.kernel.org > Subject: [Intel-wired-lan] [PATCH 1/2] net: intel: igb: Replace GFP_ATOMIC > with GFP_KERNEL in igb_sw_init() > > igb_sw_init() is never called in atomic context. > It calls kzalloc() and kcalloc() with GFP_ATOMIC, which is not necessary. > GFP_ATOMIC can be replaced with GFP_KERNEL. > > This is found by a static analysis tool named DCNS written by myself. > > Signed-off-by: Jia-Ju Bai > --- > drivers/net/ethernet/intel/igb/igb_main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Tested-by: Aaron Brown