Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1009860lqp; Sun, 14 Apr 2024 09:34:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1yGYE2L/6qXVE1YaS0NHFuYDhI8HajLgMeQNezxjxsIlsctsTVo4gUPA3h5QJxIGQIVh2+r2zB+YvYQ4O4hnlGJRHRP+4CnqT/ktNOQ== X-Google-Smtp-Source: AGHT+IEWAt78ocH5EqTG3vf7O0U23/sQSn1u4Q0cFZfDZ8sVlg1UFEF5AxTziNuVAiiw7EU1TYHO X-Received: by 2002:a05:6a00:23d6:b0:6ec:d3a6:801 with SMTP id g22-20020a056a0023d600b006ecd3a60801mr10996726pfc.11.1713112444072; Sun, 14 Apr 2024 09:34:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713112444; cv=pass; d=google.com; s=arc-20160816; b=YAEtUW0j9x/kUv03g6wN/ZxCS1LI0Bkp+0H5i4y4fQ3imUjZgx3k0XsqBoxpimbOur 7EahG1PuwLkKlCWXH5czUcnM+lROa13y5+FLCx4WlZVCTuWx3vW35xJYT6eh708TT1Fv 6SK6xiUbpYK82ZXLS6dLT1NolTp11QCXuFc4rg9Sqdl9llyC/iJHDW8bOvJM2gJ+mWtk 5U4Cwn2wbh4uwRawFbA7Xj1NrVu/JWbqZTo+G0VbDbI/deF9toE69kzQoRYlrfRN8lDF ALRwKxiLShf4K3M+SY0Hh0YnPASsQYEQ8MkYiLfWx2oSMbxm4UE/pb5yVHKDxjVcNxMf SZrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=eqL0WG5MvKc2cIq0z8Q5OhCeWqEk3epdhelny8K600w=; fh=/77lVKRupcbOxaHbZS7R5O74bJaWTAypwCyYl6MPKh8=; b=aqZlr6GopwPTkYiHSDvYIpjiCGw+z886F+5oFjYeDgdSL1WlnD5GjqIaU4NPaBUm5W gT43FUt90s9ncGNyquQY8E9A7ELH8znV0sO03JAFgHC/xQex7Q65xJRbABmRMPVzg7M5 Yv4NF3fYCcGTXv9xJwBoBucw+klRWyTr93qY0pTlyYR3mOOS2ua212CaVgAz//XZ7O/A nROtsr/IS2wj91XTmOb8rt+N2Lc5ccnQ6/kPQ6igiAEciM+ToMcuX9aOGAiRWy8ZBYCO RBA/MKjfQTFM/uXYoNqUUFLRx0Jhf8ToeZ/ZwY1wve679ZDGZNeLeUTRZAFiRUQqffgg nYAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eGDJfIl9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-144267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b12-20020a056a000ccc00b006efd777ff96si993918pfv.288.2024.04.14.09.34.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 09:34:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eGDJfIl9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-144267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BB9E32826E8 for ; Sun, 14 Apr 2024 16:34:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE66A1353F8; Sun, 14 Apr 2024 16:33:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eGDJfIl9" Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0B2F1CF92; Sun, 14 Apr 2024 16:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713112432; cv=none; b=VWof/1YswA0vfc8yNPjX5h7nWJNIDMH8UF9f4q7h/0kCmt/Co+NvpFN6ZESdxS7eRZ7Ko2Hg8Pucmy0Lx8Si2g1f6r+LmvOYVDY0WNAxFpR5CWE3pu/3DsmLqjklu271Q6hFQ0hq7Tn8p1CVsjlyMsIFT9ZOGj4x/dxOIKLoPKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713112432; c=relaxed/simple; bh=dyXqlvW9YjzLdAkkWuX++ClIqo70zTkGtGKhUa4LQpM=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: Mime-Version:Content-Type; b=enCwX7TfjoMyR0wObIwY4xUjOaprwfCuZycOUv24RV22q6Q9yvc78q7Q4IVjg47YMXKjSVbUiRHuucJhc5bOfAOd2hDZQAKkLb+rqqfxufm3FUS7j88ftLYTrzY8t8bAxf4VN2c/EagVVuB7Wgh92X142ntLemTJixWiKoUPGLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eGDJfIl9; arc=none smtp.client-ip=209.85.222.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-78ec78c4fceso168077585a.0; Sun, 14 Apr 2024 09:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713112430; x=1713717230; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=eqL0WG5MvKc2cIq0z8Q5OhCeWqEk3epdhelny8K600w=; b=eGDJfIl98CDRAq8WfVTN3Qx9tI2bVhkdRGExQy9y41Ji039X86T/4JByWDcOKWdCEH KZhWUmb7ONMwJ3WOs+zy95Nx4l1u1OPanzdlTqrT5prKkM3Rtp9mmhd5i0U7bIdhdaAX LxkHosc5Bja4tOBmHwsNPlD6qxkBOGqvEV/MEPixXVCwJNF1GzB1l8VqZ7qeVIvMw4+n YiMo4HQBd3Ro8ye7M582H3Av7xidKvHrL2/N7eA7zbGI/wWj+SDq/8odlJWDQsbWr76K wNzQtSm1kkxPwpxvfIxKyb2kcFH1mWsM53MeRLIqF29Od1R7jG5aLY4ajL9DEkyluC+2 mpyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713112430; x=1713717230; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=eqL0WG5MvKc2cIq0z8Q5OhCeWqEk3epdhelny8K600w=; b=omvQEdKjl0RVnAwEhMpk++rX+sVJnSfE4OUQhH5ytDBdjX8J2E1/vkpWlucSsQbbmS jPTFz0K2QiPdZ+A/+5HkR+Ibi6c6vX6LrQjt2EGtyIdc83kYRfUheQ8sMFCY8wdUsA/z KU+mhWv6y/s06KXxdTjmffhYkpxT+F3xoB9gVojAWfAxKpuKZvRbYpT7gP8iK7YpPEnZ f7M6utN7FZCLnIUQvN4We3JEOUhehiv41JLcbpG6d0TZZVdmxuOjtfym2c1H+Nymdjby fm1gMY0gc9I4hrw/GZO/13iGRJGIn1ILJfxvdL6I3z3YwDS9Lstb4rwo05BS9GLA7NG4 XdZw== X-Forwarded-Encrypted: i=1; AJvYcCWb0KOhPL6SmzOI7m7/uGt9QXNRK7pY0Inbvl4QZygbz3sRm+P/2dCkJwS5vGxQNARr0d2WPogE92Yncu2s1eLzlRDfITvUNpoEitmxmLRjOPn/6Y3aEGd1fVZT9tf2C6JQFtU7RCEEnAMOz/S7WmFPEVQC0SkOLkxIMwA1JT5Z X-Gm-Message-State: AOJu0YxT6jHPR0AZp0C2Jmt00yk+ISU8AiHEU9rzVbOByOma9dfXdZSw OFbiiKlkJSYK51pJy3+JSTyMR2F4rknw+llSN+pyPmwpehRlQAA6 X-Received: by 2002:a05:620a:191d:b0:78e:13f1:3040 with SMTP id bj29-20020a05620a191d00b0078e13f13040mr14999873qkb.22.1713112429649; Sun, 14 Apr 2024 09:33:49 -0700 (PDT) Received: from localhost (73.84.86.34.bc.googleusercontent.com. [34.86.84.73]) by smtp.gmail.com with ESMTPSA id m12-20020ae9e70c000000b007883184574esm5208818qka.98.2024.04.14.09.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 09:33:49 -0700 (PDT) Date: Sun, 14 Apr 2024 12:33:48 -0400 From: Willem de Bruijn To: Kory Maincent , Willem de Bruijn Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu Message-ID: <661c056cf26d6_3e7732294f3@willemb.c.googlers.com.notmuch> In-Reply-To: <20240414073315.5aa7adf0@kmaincent-XPS-13-7390> References: <20240409-feature_ptp_netnext-v10-0-0fa2ea5c89a9@bootlin.com> <20240409-feature_ptp_netnext-v10-8-0fa2ea5c89a9@bootlin.com> <66175265992c8_2d6bc6294d8@willemb.c.googlers.com.notmuch> <20240414073315.5aa7adf0@kmaincent-XPS-13-7390> Subject: Re: [PATCH net-next v10 08/13] ptp: Add phc source and helpers to register specific PTP clock or get information Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Kory Maincent wrote: > On Wed, 10 Apr 2024 23:00:53 -0400 > Willem de Bruijn wrote: > > > > +/** > > > + * netdev_ptp_clock_register() - register a PTP hardware clock driver for > > > + * a net device > > > + * > > > + * @info: Structure describing the new clock. > > > + * @dev: Pointer of the net device > > > + */ > > > + > > > +extern struct ptp_clock * > > > +netdev_ptp_clock_register(struct ptp_clock_info *info, > > > + struct net_device *dev); > > > > No need for explicit extern? > > Indeed I don't think it is needed. > I am wondering why few other functions uses it (ptp_clock_register, > ptp_clock_event, ptp_clock_index). Do you know? Perhaps it predates the coding style rule Do not use the ``extern`` keyword with function declarations as this makes lines longer and isn't strictly necessary.