Received: by 2002:ac8:6216:0:b0:41c:c224:f26f with SMTP id ks22csp76801qtb; Thu, 2 Nov 2023 12:01:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJLb1LTqTxdShPc7EmqR8fJUsuxGxvid/XQykq3UlYLsRtK4q8Go9sOJwAspn8tSX60iZD X-Received: by 2002:a05:6a21:4881:b0:180:ebec:da31 with SMTP id av1-20020a056a21488100b00180ebecda31mr9834272pzc.8.1698951714719; Thu, 02 Nov 2023 12:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698951714; cv=none; d=google.com; s=arc-20160816; b=W6aguVRWTKAGz3xiB6gAYE6aoEb6YvFTapMSGF7qvFirr22tWmO4IXw7vdH23Si/CQ 8fkH9FPHO+80TP06f7hP/Mke6dZo7NPNZn+9MIxfIPT6DU1yRXclrrHlPMFdEKYK1FT1 NWJ0t/m8cEl4XriTz8wMUxv5ieANlQGQko8lttS4V8JRImly0XDo2CDhYrY2wV3uM2fn mOjC3DcIWigRLDHhhme02XdAAE6mMN/+EWFYo9Wy4J5TfgZ++NRSKaOJ0FnvnB0kDMv7 OdVO1e+KxxlJOLQPWo9BfdQ/jgO1Z+kVHyCle39Hwkfx5dYLUWPo+Z3jA1sXPx2Zjhgl YoVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=bo8i4YOQ1Wx4e8B0eeo6gXTR86rAjm5MF1i8+KtSUbY=; fh=CZn2LCtibpDsl0Zo9a9tnbwjfnRU9o2A0KEGhAadkDo=; b=qLmNp57IIqSFZzqqLonv1J/oCKoRgdj3k7GyeE9tDYSdsW9Ms1reWsoWmutboIRuGO NL0nF/Gy/FDMDChPQBGs3JCmZVQmpgh3hNnUF4IZGLJCtcVU5QVlqZ9y1i07+rWRzzm6 6B3TBNg2RKRC0rvbjLjaL1OyX979vqc2e/1LKzHUD14oahm2w1XbMetHJhCMEpU0gekC +zZU5aknIf5pR5O6AXudLdo5Axvt1A2jtRwVe3dpp78U4bKt8DRwYo/fQwXx4Dw/owTD CwUc2tL/hFwYoFw1xkPxbVjqNpvlJzPGFFBhizDPolTl/gbkZvwYuqCD4WLza8K7207y cHhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NBsHm0DT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s14-20020a63770e000000b005b86142ee56si120918pgc.277.2023.11.02.12.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 12:01:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NBsHm0DT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4072E8388AD2; Thu, 2 Nov 2023 12:01:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377402AbjKBTBF (ORCPT + 99 others); Thu, 2 Nov 2023 15:01:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377369AbjKBTAz (ORCPT ); Thu, 2 Nov 2023 15:00:55 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33D321A6 for ; Thu, 2 Nov 2023 12:00:46 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5b0c27d504fso10412047b3.1 for ; Thu, 02 Nov 2023 12:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698951645; x=1699556445; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=bo8i4YOQ1Wx4e8B0eeo6gXTR86rAjm5MF1i8+KtSUbY=; b=NBsHm0DT/xAS/gzD1DuvEGeIVckyF2g6VKnZeW5jnRwv0V30FUEo9H8JprUxchYwOC cGyUQr9/+JOsHjm9MZsLfiF9HrJxlNG3pfuFowrpNtiq0p0OO8Ob3TpqNOdlngcm+mqw zvNdLzPUbf+JWZ7T/bFmZQDuYJBbJgjAiGiXdEHsfILDEIa49aELRaAQi5g6Ft+O1h6U KiQYPk9V2LAjEGmJDZgeN3j493XEV3KKJMrufYGpPoWzEL/aqVnPTX2Kf6whmxBA5qEc JJUNeAMqpgV0fLSWlOGLorQ3AvxZjJjvIHnOLxCUNMNti+qwcyLJmSkvtjnzoMbR7gFx fFrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698951645; x=1699556445; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bo8i4YOQ1Wx4e8B0eeo6gXTR86rAjm5MF1i8+KtSUbY=; b=rvb4DokKuOhpVGVnniMWo0FZ8XzrXiHrLI4j+WUduLAAeeNtkCFFbaSn4y9Is1wOVm L0Jqnfiop5BvlZJbaTMs0gSYB82Yspi+xGwqGIVTj9bXU008UNjXLIQ+J2XTvAFyeaFv H5UbSH+OuwzUfDyWYlMTVolwlnBeDYyUxeDCANzKeFu13YY2GR5THtv8cg5HZU9DqbmH PypvTYwtK4tifkkNe6YPEwdGa4dv0RizoFDxsrxWGBOnWLqcbA4uyDE7orvXo4xFY0iY wv/TOFayquQgV3YkA0udA2I9OoMU3EKw4NSpyNEGHdDfoH+9H4pX4AXX2kQOxa7qCuOg yGpg== X-Gm-Message-State: AOJu0Yz/JG2gdAXNuf+Fq5uexxpXPd8aRA2pEhjap2d3vnl/q3fpLVjB MP1Kl1MSMyz3GCJbefXPxcFEaPVbka9JVw== X-Received: from xllamas.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5070]) (user=cmllamas job=sendgmr) by 2002:a81:84ce:0:b0:5a7:b4d5:5f27 with SMTP id u197-20020a8184ce000000b005a7b4d55f27mr10784ywf.5.1698951645354; Thu, 02 Nov 2023 12:00:45 -0700 (PDT) Date: Thu, 2 Nov 2023 18:59:08 +0000 In-Reply-To: <20231102185934.773885-1-cmllamas@google.com> Mime-Version: 1.0 References: <20231102185934.773885-1-cmllamas@google.com> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog Message-ID: <20231102185934.773885-8-cmllamas@google.com> Subject: [PATCH 07/21] binder: remove extern from function prototypes From: Carlos Llamas To: Greg Kroah-Hartman , "=?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?=" , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan Cc: linux-kernel@vger.kernel.org, kernel-team@android.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 12:01:34 -0700 (PDT) The kernel coding style does not require 'extern' in function prototypes in .h files, so remove them from drivers/android/binder_alloc.h as they are not needed. No functional changes in this patch. Signed-off-by: Carlos Llamas --- drivers/android/binder_alloc.h | 38 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/android/binder_alloc.h b/drivers/android/binder_alloc.h index dc1e2b01dd64..82380febdd85 100644 --- a/drivers/android/binder_alloc.h +++ b/drivers/android/binder_alloc.h @@ -121,27 +121,27 @@ static inline void binder_selftest_alloc(struct binder_alloc *alloc) {} enum lru_status binder_alloc_free_page(struct list_head *item, struct list_lru_one *lru, spinlock_t *lock, void *cb_arg); -extern struct binder_buffer *binder_alloc_new_buf(struct binder_alloc *alloc, - size_t data_size, - size_t offsets_size, - size_t extra_buffers_size, - int is_async, - int pid); -extern void binder_alloc_init(struct binder_alloc *alloc); -extern int binder_alloc_shrinker_init(void); -extern void binder_alloc_shrinker_exit(void); -extern void binder_alloc_vma_close(struct binder_alloc *alloc); -extern struct binder_buffer * +struct binder_buffer *binder_alloc_new_buf(struct binder_alloc *alloc, + size_t data_size, + size_t offsets_size, + size_t extra_buffers_size, + int is_async, + int pid); +void binder_alloc_init(struct binder_alloc *alloc); +int binder_alloc_shrinker_init(void); +void binder_alloc_shrinker_exit(void); +void binder_alloc_vma_close(struct binder_alloc *alloc); +struct binder_buffer * binder_alloc_prepare_to_free(struct binder_alloc *alloc, uintptr_t user_ptr); -extern void binder_alloc_free_buf(struct binder_alloc *alloc, - struct binder_buffer *buffer); -extern int binder_alloc_mmap_handler(struct binder_alloc *alloc, - struct vm_area_struct *vma); -extern void binder_alloc_deferred_release(struct binder_alloc *alloc); -extern int binder_alloc_get_allocated_count(struct binder_alloc *alloc); -extern void binder_alloc_print_allocated(struct seq_file *m, - struct binder_alloc *alloc); +void binder_alloc_free_buf(struct binder_alloc *alloc, + struct binder_buffer *buffer); +int binder_alloc_mmap_handler(struct binder_alloc *alloc, + struct vm_area_struct *vma); +void binder_alloc_deferred_release(struct binder_alloc *alloc); +int binder_alloc_get_allocated_count(struct binder_alloc *alloc); +void binder_alloc_print_allocated(struct seq_file *m, + struct binder_alloc *alloc); void binder_alloc_print_pages(struct seq_file *m, struct binder_alloc *alloc); -- 2.42.0.869.gea05f2083d-goog