Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756210AbcJTOGK (ORCPT ); Thu, 20 Oct 2016 10:06:10 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:34801 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755751AbcJTOGI (ORCPT ); Thu, 20 Oct 2016 10:06:08 -0400 Date: Thu, 20 Oct 2016 16:06:02 +0200 From: Richard Cochran To: Nicolas Pitre Cc: John Stultz , Yann E MORIN , Thomas Gleixner , Josh Triplett , netdev@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] ptp_clock: allow for it to be optional Message-ID: <20161020140601.GC2238@netboy> References: <1476920573-14384-1-git-send-email-nicolas.pitre@linaro.org> <1476920573-14384-4-git-send-email-nicolas.pitre@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476920573-14384-4-git-send-email-nicolas.pitre@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 339 Lines: 12 On Wed, Oct 19, 2016 at 07:42:52PM -0400, Nicolas Pitre wrote: > +static inline void ptp_clock_event(struct ptp_clock *ptp, > + struct ptp_clock_event *event) > +{ (void)event; } Just out of curiosity, why do you need that cast? (I thought the kernel's gcc settings don't enable the warning for unused arguments.) Thanks, Richard