Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1741683ybl; Thu, 15 Aug 2019 00:02:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDgc/P5PsYJDZh+C0bh5ssLITVXBd6OChpzerBfeOdCraSkJ+kavsRg+gW0F3kuzVkk9+X X-Received: by 2002:a17:902:e4:: with SMTP id a91mr3072929pla.150.1565852526077; Thu, 15 Aug 2019 00:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565852526; cv=none; d=google.com; s=arc-20160816; b=dtsAdmmY6HWvaqbMefpFubAF4/NA+StvvdjsrJqBp1pL0Zb2n7FwiCe1UbS4ehXv6/ rPnATEs4kTBbk7pqfgwHS5w36ezXlf2tjdMBKaoGU2MthwlcvF8srL4E3TB3qU2qKr2M F33SQ3ZhzQJX/lpE69rSZBMFtumttTLjrEX4ocvaX8mo43laH4HSwGYkYkz9RBWj9YEu Mf01+FJhVD9vbwMIPzPyfctPnEgHDSCs3TdGo80MByJ8XTnO2+Zb6TwrD94P1zsi8r3v eynS1LduOZTdfEtmYH7MCtYMUtpElY85bEH7jr5RA8ZLNqVz17K7swqInq42KY3dgxuz DUgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=tRjLdM6Wl66sfJD2+Ybtx0D/sx7EhKrz7VcL7Okscn4=; b=izGIJ6Vrh7cdtMjP4bhJhV+0YmfLNsZ3w0DdB5AJHl0XaxfcHUjYoUFl3N1OhxUAV5 hlbMFjL7QJ4LVzzeAXXLriSsVF50HrOoXnGsuTMsv0bgsuy1jZv8JB6dn2yKLzxHj4qj oHgO30ui2+aBixhR1o972SdUL/ex2d5dxjMXa/ZMVzrYO3EUJOFTfrre5EQXvZxdPDwp p95yPQb+DB52dC3p4UuFrfS1pTkAmMlkg9tw1wiiRq0j+jSZi8Zl9VlK83i+eFsCHXFX lDha8unv+6g0cASaQ8/UJiI+7+LhrWYNmSfpkCuAMJ+ZeDS+UYx/R8FG3Q0SNALQE2zL 5yzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 l184si1294336pgd.203.2019.08.15.00.01.37; Thu, 15 Aug 2019 00:02:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727814AbfHOGqa (ORCPT + 99 others); Thu, 15 Aug 2019 02:46:30 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:45493 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbfHOGqa (ORCPT ); Thu, 15 Aug 2019 02:46:30 -0400 Received: from marcel-macbook.fritz.box (p4FEFC580.dip0.t-ipconnect.de [79.239.197.128]) by mail.holtmann.org (Postfix) with ESMTPSA id 3E33BCED13; Thu, 15 Aug 2019 08:55:10 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] Bluetooth: 6lowpan: Make variable header_ops constant From: Marcel Holtmann In-Reply-To: <20190815055255.1153-1-nishkadg.linux@gmail.com> Date: Thu, 15 Aug 2019 08:46:27 +0200 Cc: Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <4E787A5C-3B2E-4056-8392-94193C9616C0@holtmann.org> References: <20190815055255.1153-1-nishkadg.linux@gmail.com> To: Nishka Dasgupta X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Nishka, > Static variable header_ops, of type header_ops, is used only once, when > it is assigned to field header_ops of a variable having type net_device. > This corresponding field is declared as const in the definition of > net_device. Hence make header_ops constant as well to protect it from > unnecessary modification. > Issue found with Coccinelle. > > Signed-off-by: Nishka Dasgupta > --- > net/bluetooth/6lowpan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel