From patchwork Wed Dec 2 12:23:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Bonn X-Patchwork-Id: 11945909 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4FCBC83014 for ; Wed, 2 Dec 2020 12:24:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 569E72222A for ; Wed, 2 Dec 2020 12:24:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729951AbgLBMYQ (ORCPT ); Wed, 2 Dec 2020 07:24:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727224AbgLBMYP (ORCPT ); Wed, 2 Dec 2020 07:24:15 -0500 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FFADC0613D4 for ; Wed, 2 Dec 2020 04:23:29 -0800 (PST) Received: by mail-lf1-x143.google.com with SMTP id a9so4422802lfh.2 for ; Wed, 02 Dec 2020 04:23:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=norrbonn-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1G0LuInnIArsXXKtcOQKFPtvica/lf75PtMTKqoYgoY=; b=CvTPe2Xb++RJluxqxNZYxjLpds6wqokopbZGoFETRQ/44GrlFC6qVNaZI52J0sI/dn BV2i6bJjoRAyBI2ZvMo1KwI6o6ATpSc53nfK9nSGUUO+mwwU0I8MBQ3i8OtiqGQlSeEs JHkj8GRBaGpNbVePc2lynw/PqFrKMAn+SqUl5Oo8zSUDwINsY0nx8DD+6bfdtrFyEj20 3cj5IaVHKN1wz3cM8MkXF/lWZPhO4cay0LYY/9YOAreLO6Mlk6RyCMUDvDq2GUaGMxX+ 5wkQ/8aSCRsML7ejsTs4gRDsMy9KfDkbW0mNzgHE2Yu8C6CaDSr1Pg/s6+i8lkLEJ/S2 VWWg== 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:mime-version :content-transfer-encoding; bh=1G0LuInnIArsXXKtcOQKFPtvica/lf75PtMTKqoYgoY=; b=pASv4zYkuJxseI5EjvwgG60YtpengJ6g2Z7u9IfNiG0gm5D1W1ErSK5YZqKAIdIwU9 lGHDSySYC4717r3KG055iJd/UBlscs0+qEJ19WtcGOZMzlRJRr8cAwlEeKD3aWyKgLlS kFEqlTdqNE619ZkulOx61AYYWlGx1sH/zj43hbodoJt1Hx6glrJXQw+XO1FMZqg4G4qs cIjOaGQH6gqUuxbHFC/5b1kSXIzSih5ZyXFFUL+LiFxl9QRuXDo8zp6pwBxkGBED9Ryd m1m6fOCbShOjEuFj9Fj8GPfDJ5bdRPEOrxviXQv0/50yOdJgyd3GLPyPnkmEsL+bDKID e73g== X-Gm-Message-State: AOAM531nrVNhLYJn4m7muEp4i8LCiJ5LgeSA4hxzqfiO+aU1nwQCqI8B v9U3Jlt0gkDKol2PZagvgDQN6GaoH8PunA== X-Google-Smtp-Source: ABdhPJwqs9r/225QZPjOvH/MjqO9WGzqccMGnT4N/+XslmTaKgC5YD18dJRLfDmwE+DM0DdL7GDtyQ== X-Received: by 2002:ac2:52b5:: with SMTP id r21mr1055104lfm.349.1606911807937; Wed, 02 Dec 2020 04:23:27 -0800 (PST) Received: from mimer.lan (h-137-65.A159.priv.bahnhof.se. [81.170.137.65]) by smtp.gmail.com with ESMTPSA id n14sm413144lfa.4.2020.12.02.04.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 04:23:26 -0800 (PST) From: Jonas Bonn To: netdev@vger.kernel.org, kuba@kernel.org Cc: Jonas Bonn Subject: [PATCH 1/1] bareudp: constify device_type declaration Date: Wed, 2 Dec 2020 13:23:24 +0100 Message-Id: <20201202122324.564918-1-jonas@norrbonn.se> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org device_type may be declared as const. Signed-off-by: Jonas Bonn --- drivers/net/bareudp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c index 28257bccec41..85ebd2b7e446 100644 --- a/drivers/net/bareudp.c +++ b/drivers/net/bareudp.c @@ -522,7 +522,7 @@ static const struct nla_policy bareudp_policy[IFLA_BAREUDP_MAX + 1] = { }; /* Info for udev, that this is a virtual tunnel endpoint */ -static struct device_type bareudp_type = { +static const struct device_type bareudp_type = { .name = "bareudp", };