From patchwork Tue Mar 17 14:54:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11443077 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EADE313B1 for ; Tue, 17 Mar 2020 14:54:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA1862073E for ; Tue, 17 Mar 2020 14:54:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="rb7245Ra" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726976AbgCQOyi (ORCPT ); Tue, 17 Mar 2020 10:54:38 -0400 Received: from mail-wm1-f73.google.com ([209.85.128.73]:43416 "EHLO mail-wm1-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbgCQOyh (ORCPT ); Tue, 17 Mar 2020 10:54:37 -0400 Received: by mail-wm1-f73.google.com with SMTP id a23so7241138wmm.8 for ; Tue, 17 Mar 2020 07:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=YnO147Q8BfuYNBKiEQsszIXKG8E9VejO4ffbcq8Gn6s=; b=rb7245Ras6C7y9qgw0zRxUstsDae6mXfHrz3F0GCcwWusok6lOSl/FLtbSXIBAlfAG pU/Gc01TdHjEAD4RfQa/mEescGcs/dwrVlhAnEPTrur54OVdeD9V/IPqXQltBDrIQcAq w5v2wYv0hqb6T+pGK/4MoPsHM2iKQUTFPPDlAjc58y6ffDaiF7ZLFM2RsEHZUuf6TV3y v/cxYLxN3MhtmcqrOWqQIdPF0F4Ryn42SoLljX47Z474bt+Zub1SNNH/dbIRzaEAJTAS clot3+jzM4JYF2HrHvCZTpgXRO97oyhUoguzWKDL/nbP8jQFTPsEnjANlJYJBmR8SHF/ 1v6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=YnO147Q8BfuYNBKiEQsszIXKG8E9VejO4ffbcq8Gn6s=; b=pEiZgpSjoxA79+jZeTyL4SHsyal4EE2o1JBGTH01cPj10GYeEgghk3eC5W8ujL71sN t0jy3yl/hlep44NaXRcZSXPAvaPw4Zx0qjAN30yKDD8Bnwcfw8Y2fS2hL4/RblnglC5v G/9pXqH5RBv45sSvQi8VdxP73gNCFIPvOwzzKoEte+ismB3sdvVFQyFMgaEbepfI9aER oHM/BtDUaFkz4wfhtYk370SwpfFyjaJ6J8Nb4P+YvdYSO2h89d/mxWl1eZD6t6VqB9BW fuIOLJGmCeFJzrKRJSQQZboegEb06XbMBjEjqiHVVogMNM/U/GkmfHp06Z03uTSuHa5i I2mQ== X-Gm-Message-State: ANhLgQ20HLx7Hd3q8TAlGerx4Hsj4IuiyNLFXc5cFtFlIvijtkXTfn12 T8kIGgQVobZr3ijuPwV1vWyQTMktDDDSPdNC X-Google-Smtp-Source: ADFU+vuk+Yi3YFMcAI8MRlwoyHn7t0KCazaq6gRywdKYSzsiW1YSWh93dqA033BnLe0hih5cIW9z1npcTigPA9W1 X-Received: by 2002:a05:6000:12c5:: with SMTP id l5mr6163103wrx.134.1584456876192; Tue, 17 Mar 2020 07:54:36 -0700 (PDT) Date: Tue, 17 Mar 2020 15:54:31 +0100 Message-Id: <6206b80b3810f95bfe1d452de45596609a07b6ea.1584456779.git.andreyknvl@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.25.1.481.gfbce0eb801-goog Subject: [PATCH USB] usb: raw_gadget: fix compilation warnings in uapi headers From: Andrey Konovalov To: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Felipe Balbi , Jonathan Corbet , Alan Stern , Dmitry Vyukov , Alexander Potapenko , Marco Elver , Andrey Konovalov , "kernelci . org bot" , Stephen Rothwell Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Mark usb_raw_io_flags_valid() and usb_raw_io_flags_zero() as inline to fix the following warnings: ./usr/include/linux/usb/raw_gadget.h:69:12: warning: unused function 'usb_raw_io_flags_valid' [-Wunused-function] ./usr/include/linux/usb/raw_gadget.h:74:12: warning: unused function 'usb_raw_io_flags_zero' [-Wunused-function] Reported-by: kernelci.org bot Reported-by: Stephen Rothwell Signed-off-by: Andrey Konovalov --- include/uapi/linux/usb/raw_gadget.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/usb/raw_gadget.h b/include/uapi/linux/usb/raw_gadget.h index 00cbded71061..ea375082b3ac 100644 --- a/include/uapi/linux/usb/raw_gadget.h +++ b/include/uapi/linux/usb/raw_gadget.h @@ -66,12 +66,12 @@ struct usb_raw_event { #define USB_RAW_IO_FLAGS_ZERO 0x0001 #define USB_RAW_IO_FLAGS_MASK 0x0001 -static int usb_raw_io_flags_valid(__u16 flags) +static inline int usb_raw_io_flags_valid(__u16 flags) { return (flags & ~USB_RAW_IO_FLAGS_MASK) == 0; } -static int usb_raw_io_flags_zero(__u16 flags) +static inline int usb_raw_io_flags_zero(__u16 flags) { return (flags & USB_RAW_IO_FLAGS_ZERO); }