Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CC2AC6FD1F for ; Tue, 14 Mar 2023 15:44:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231363AbjCNPoV (ORCPT ); Tue, 14 Mar 2023 11:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231311AbjCNPoH (ORCPT ); Tue, 14 Mar 2023 11:44:07 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2105.outbound.protection.outlook.com [40.107.92.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA5DE8681; Tue, 14 Mar 2023 08:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LtZRCsVqsK+PMfFIaxv9ejO1Jyxat5oYWa+ST0BELZo0IYzcgRHpRrrWbipfXUnF3N85ZLNJ8hYG+w85W9Pka5pvl5VXtbz2Kr5G8BDd7dmJD7wNWr42alZhHzOrW3gduo/mG9PvoHnM/tTPT5BdPL3GhgEvX5k4i3emRAtMPOp56lzGLPEADL++a9gVmfEcnhXLimptr6OFBgb1TwwTlWAzmC2l+ZMYIiJpQHDyTbJJGQ00P97t/UT4ffgpZzrQAjc3n2S4ewaNThXTuAzu/Cvf4JBhF0IGYOuW0bMlhb7jR3rGYLIl21CjFZ8eJpu348D6QroIwbwRDYv/69foDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uBpcmQW6cYVv8wkjY5jvaWM+C5WcYsp+sXUUxMsyLSA=; b=Gw9rQTc9UirzolFuvyoSlf2fT17ZeJawBwmHK00GBNyBwRBII6TbYzYzE2S0+0bS0nabXd95UE/1IITQz8HhSB/ybzg7mJWjRqiroh5WTykzopAZEE3BoNSiao4CA5g8EyjaMXta2Kbdi18Up0Oouk2wlAR7ryMrHx5FPsejolHuG1xRp8cGRJqgf5J8UKXk8HLw2Rzlt5F2Rfp07v8w1Dxx9J44GUACzTJYAA+1qeunRiJhWsDjf+u4O2Vv5I5Rxp+mU/aWLnwyldJFsx/sHNVDwiVo+Hn1jzBnMC56tUCdLTuZwwr9VwvbfT2tt1coOSAylIqBFOXyupUR4pF3Jw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uBpcmQW6cYVv8wkjY5jvaWM+C5WcYsp+sXUUxMsyLSA=; b=khBRAPBnrBd6Q2URDex33vQjCbnwSlca/SwfxLTjMRtUzlpDHNtvLw64Bh3iVeCsTznuxgkYRLlRTkwD6vv6NnuJAFo7cR+pWF9PVqnDcyhVbfoqFUMzfFOHwkLxUZiTNWUT1p2K6XWcLcZyMaxaIsX5aHOxepOC41Wnn5JyMPA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by CH2PR13MB3669.namprd13.prod.outlook.com (2603:10b6:610:a1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Tue, 14 Mar 2023 15:42:50 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::85f5:bdb:fb9e:294c]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::85f5:bdb:fb9e:294c%2]) with mapi id 15.20.6178.026; Tue, 14 Mar 2023 15:42:50 +0000 Date: Tue, 14 Mar 2023 16:42:43 +0100 From: Simon Horman To: Eric Dumazet Cc: Gavin Li , davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, roopa@nvidia.com, eng.alaamohamedsoliman.am@gmail.com, bigeasy@linutronix.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, gavi@nvidia.com, roid@nvidia.com, maord@nvidia.com, saeedm@nvidia.com Subject: Re: [PATCH net-next v7 4/5] ip_tunnel: Preserve pointer const in ip_tunnel_info_opts Message-ID: References: <20230313075107.376898-1-gavinl@nvidia.com> <20230313075107.376898-5-gavinl@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: AM0PR03CA0059.eurprd03.prod.outlook.com (2603:10a6:208::36) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|CH2PR13MB3669:EE_ X-MS-Office365-Filtering-Correlation-Id: 3c853e79-7e42-495a-2b41-08db24a2c457 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gAwJR6mWm+m+nY5fCps+u5CQZYTYgAmMwZzybz7oJTdL+2Q+JWkh9TiqrLMzcFpkjGmMqdB9ICFFOpSbB0mkc9G575XZAHlg/3hbpl0TAKlDV/E6pYiHQfhFYBdwrrpqDSADr/Y2Jo3PBygZhtAHwR6frSzT01bs+nleA3tbu8UdQ2zm7GZm4lQHndV4oDByiEGcJxFyd09F41KR9uzfyI6uVQbtsUqnmFvWoNZuHTiQ/NeB1cKL681mGLbTQHb5SBtnzxJkq6Y9FRY+KLDPXWbJg/u9EBx/CqjT+PchljNyme63VDeY8M1iP/zJPU85UC2CRLZ+/Q/2Nm4C7c+UO4rMiHSufRqajzvMO2dpNSGUn2Vd6hV3OV40C/DwuHpavWeP2KhwT+33IEdWLTjFzEueT8uk/AnTObKT8FwYVOSmOOTU6cxBASmcSDw6rykMvAiyqJ7sdGNoqbZn7Fju7YrgNYCPaEeQsHAUFk8gOSxeJQ04qoVYtgArGUQyjCjdg2snBvupE6PcCYG3ASvyBO57yResXFOkzBrkfC4WOYGWqQppHp0ED1dSime8M0htRd7u+dSZf/Q+vBBAqSNg92YMCRGt9xzUpvDlDuZpmu7WBGUC4XyqnUOsI6L5jNVhBe4fvalwPn7hpySP7BQnoQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(39840400004)(396003)(366004)(346002)(376002)(136003)(451199018)(86362001)(38100700002)(36756003)(478600001)(66476007)(66556008)(66946007)(8676002)(6916009)(4326008)(41300700001)(8936002)(316002)(2906002)(5660300002)(6512007)(44832011)(4744005)(2616005)(7416002)(6486002)(6666004)(186003)(53546011)(6506007)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OG9INzlxTVFvdURnaWZ4RFNGQ096SkdnMkNjeitiSTM4KzlFRDFoWjkvU3RS?= =?utf-8?B?Y1R6Z05DYVFLeTQ2eUc5Vk5uOHFUeExqbkhYM0E3a3UzM2did3ZZcHhJTVIr?= =?utf-8?B?NXVRbDk1WVlIdjN4VThSYndWaXZ1N0VBL1M2ZWt1bkNHai9WamJKVkRCMXYr?= =?utf-8?B?Ly9PdHlUYTJvb1RqTnVPSkN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KzdyYmZ3Rm9BZVgzN0V1ZGhZT05YUmYwSk9yK0dtODRtbHFob2lvQ1Vy?= =?utf-8?B?aVZoSHpPM0g2cU9SNUNPNk9FV08rNm9nbXE2dUVLWEFpbkFiNUdLNmRaMGFh?= =?utf-8?B?enpmM2tuckFPM0lqTnBiY1RRYUx2V0VzeG5XeGlQMzYyTkxndFhSaWFCWVIw?= =?utf-8?B?VUlKdGFiUzRoaWQ3YmZEcGRSQlI3dWl0eEw1VEx6UlRsMkIyZk5TczdLcG5V?= =?utf-8?B?MUcrZTF1cHN6MkllZ1VhSm0vY3RBPT0=?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3c853e79-7e42-495a-2b41-08db24a2c457 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2023 15:42:50.3374 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6Iph4gvwH3P4a9w7zRUsYQ9zZgimeBlozzj2AT9d9Wv2sZBFLt6vmlFzdE/qqqZyQRfUEsNRDX2aT0Aet9CBreX36sUtzrflhP2VZ1PgTss= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3669 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 13, 2023 at 07:57:23PM -0700, Eric Dumazet wrote: > On Mon, Mar 13, 2023 at 12:51 AM Gavin Li wrote: > > > > Change ip_tunnel_info_opts( ) from static function to macro to cast return > > value and preserve the const-ness of the pointer. > > > > Signed-off-by: Gavin Li > > --- > > include/net/ip_tunnels.h | 11 ++++++----- > > 1 file changed, 6 insertions(+), 5 deletions(-) > > > > Reviewed-by: Eric Dumazet Thanks Gavin, this addresses my concerns. Reviewed-by: Simon Horman