]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/cephfs: drop redundant int32_t typedef 69521/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Mon, 15 Jun 2026 20:10:52 +0000 (04:10 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Tue, 16 Jun 2026 13:48:41 +0000 (21:48 +0800)
int32_t is already provided by "from libc.stdint cimport *", so the extra
ctypedef in the platform_errno.h extern block redeclares it:

  warning: c_cephfs.pxd:29:4: 'int32_t' redeclared

Fixes: https://tracker.ceph.com/issues/77440
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/pybind/cephfs/c_cephfs.pxd

index 9d5b93c04937d5f805908f442b0e8d48d829731c..603906046a438b8f0f512dba07cab1b2ef9f18c0 100644 (file)
@@ -26,7 +26,6 @@ cdef extern from *:
     unsigned long DIRENT_D_OFF(dirent *d)
 
 cdef extern from "../include/platform_errno.h":
-    ctypedef signed int int32_t;
     int32_t ceph_to_hostos_errno(int32_t e)
 
 cdef extern from "cephfs/ceph_ll_client.h":